:root {
  --red: #b52d2a;
  --red-dark: #7d1f20;
  --blue: #163d7a;
  --blue-dark: #0d2e5c;
  --cream: #f8f1e7;
  --gold: #d9b25b;
  --white: #ffffff;
  --black: #171717;
  --text: #1d1d1d;
  --muted: #5b5b5b;
  --border: rgba(21, 31, 39, 0.09);
  --shadow: 0 20px 45px rgba(21, 38, 56, 0.1);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(22, 61, 122, 0.10), transparent 22%),
    radial-gradient(circle at top right, rgba(181, 45, 42, 0.08), transparent 25%),
    linear-gradient(180deg, #fdf9f4 0%, #eef4fb 100%);
}

img {
  max-width: 100%;
}

.navbar-brand {
  text-decoration: none;
}

.brand-logo {
  width: 180px;
  height: auto;
}

.header-wrapper {
  background: rgba(255, 255, 255, 0.9);
}

.hero-section {
  padding-top: 4rem;
  padding-bottom: 2rem;
  background:
    linear-gradient(135deg, rgba(13, 46, 92, 0.08), rgba(22, 61, 122, 0.02)),
    linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0.15));
}

.section-label {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 800;
}

.display-4,
.display-6,
.h3 {
  letter-spacing: -0.04em;
}

#inicio h1{
    font-size: 3rem;
}

.hero-card,
.info-card,
.community-card,
.contact-card,
.history-box,
.page-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(22, 61, 122, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-section .lead {
  max-width: 760px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-color: var(--blue);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-color: var(--blue-dark);
}

.btn-outline-primary {
  color: var(--blue-dark);
  border-color: rgba(22, 61, 122, 0.35);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-color: var(--blue);
  color: #fff;
}

.hero-card {
  padding: 2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f1f6fd 100%);
  border-top: 5px solid var(--blue);
}

.hero-socials {
  margin-top: 0.5rem;
}

.hero-socials .btn-social {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(22, 61, 122, 0.18);
  background: rgba(255, 255, 255, 0.7);
  color: var(--blue-dark);
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(13, 46, 92, 0.08);
}

.hero-socials .btn-social:hover {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-color: var(--blue);
  color: #fff;
}

.badge-soft,
.community-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(22, 61, 122, 0.08);
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.time-highlight,
.schedule-time {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.detail-list li + li {
  margin-top: 1rem;
}

.detail-list span {
  color: var(--muted);
}

.bg-soft {
  background: rgba(238, 244, 251, 0.8);
}

.info-card,
.community-card,
.contact-card {
  padding: 1.5rem;
}

.card-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(22, 61, 122, 0.12), rgba(181, 45, 42, 0.08));
  color: var(--blue-dark);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.info-card h3,
.community-card h3,
.contact-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--black);
}

.featured-card {
  background: linear-gradient(180deg, rgba(22, 61, 122, 0.06) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-color: rgba(22, 61, 122, 0.2);
}

.schedule-row {
  margin-top: 1rem;
}

.schedule-pill {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 170px;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(13, 46, 92, 0.1);
  box-shadow: 0 12px 28px rgba(13, 46, 92, 0.05);
}

.featured-schedule {
  background: linear-gradient(180deg, rgba(22, 61, 122, 0.08), rgba(255,255,255,0.95));
  border-color: rgba(22, 61, 122, 0.2);
}

.schedule-day {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.3;
}

.schedule-pill .schedule-time {
  font-size: 1.25rem;
  margin-top: 0.4rem;
}

.history-box {
  padding: 2rem;
  border-left: 6px solid var(--blue);
}

.mini-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mini-feature:last-child {
  border-bottom: none;
}

.mini-feature-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(22, 61, 122, 0.12), rgba(181, 45, 42, 0.08));
  color: var(--blue-dark);
  font-size: 1.2rem;
}

.mini-feature strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.mini-feature p {
  margin: 0;
  color: var(--muted);
}

.history-box p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.highlight-text {
  color: var(--blue-dark) !important;
  font-weight: 700;
}

.gallery-carousel {
  max-width: 980px;
  margin: 0 auto;
}

.gallery-carousel .carousel-item img {
  height: 520px;
  object-fit: cover;
}

.community-card {
  border-top: 5px solid var(--gold);
}

.community-card p {
  color: var(--muted);
  min-height: 70px;
  margin-bottom: 0.5rem;
}

.community-time {
  font-weight: 700;
  color: var(--blue-dark);
}

.community-badge {
  background: rgba(217, 178, 91, 0.15);
  color: #674f20;
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: grid;
  gap: 0.25rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-list a {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
}

.social-links .btn {
  background: rgba(22, 61, 122, 0.06);
  border: none;
  color: var(--blue-dark);
  font-weight: 700;
}

.map-card {
  background: var(--white);
  min-height: 100%;
}

.map-card iframe {
  min-height: 420px;
  border: 0;
}

.site-footer {
  background: rgba(0, 0, 0, 0.96);
  color: rgba(255, 255, 255, 0.9);
  border-top: 4px solid var(--gold);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer p {
  color: rgba(255,255,255,0.76) !important;
  margin-bottom: 0;
  text-align: left;
}

.page-hero {
  background: linear-gradient(180deg, rgba(22, 61, 122, 0.05), rgba(255, 255, 255, 0.95));
}

.page-card {
  padding: 2rem;
}

.timeline-item {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(13, 46, 92, 0.25);
  margin-left: 0.5rem;
  padding-bottom: 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 0.3rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(13, 46, 92, 0.14);
}

.story-quote {
  background: linear-gradient(135deg, rgba(22, 61, 122, 0.06), rgba(181, 45, 42, 0.04));
  border-left: 4px solid var(--blue);
  border-radius: 18px;
  padding: 1.2rem 1.3rem;
  color: var(--blue-dark);
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .navbar-nav {
    padding-top: 1rem;
  }

  .navbar-nav .btn {
    margin-top: 0.5rem;
    width: 100%;
  }

  .brand-logo {
    width: 180px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding-top: 3rem;
  }

  .display-4 {
    font-size: 2.5rem;
  }

  .hero-card,
  .info-card,
  .community-card,
  .contact-card,
  .page-card,
  .history-box {
    padding: 1.2rem;
  }

  .gallery-carousel .carousel-item img {
    height: 340px;
  }

  .d-flex.flex-wrap.gap-3 {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .schedule-pill {
    width: 100%;
  }
}
