:root {
    --navy: #17324d;
    --navy-dark: #0e2235;
    --gold: #AE2C43;
    --cream: #f7f3ec;
    --white: #ffffff;
    --text: #263744;
    --muted: #677784;
    --border: #dde4e9;
    --shadow: 0 22px 55px rgba(15, 38, 58, .12);
    --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Montserrat", Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.container {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
}

.topbar {
    background: var(--navy-dark);
    color: rgba(255,255,255,.88);
    font-size: .88rem;
}
.topbar .container {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.topbar a { text-decoration: none; }

header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(23,50,77,.08);
}
nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    text-decoration: none;
    display: flex;
    align-items: center;
}
.brand-logo {
    width: 330px;
    max-width: 42vw;
    height: auto;
    display: block;
}
.nav-links {
    display: flex;
    gap: 26px;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    color: var(--navy);
}
.nav-links a:hover { color: var(--gold); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 22px;
    text-decoration: none;
    border: 1px solid transparent;
    font-weight: 700;
    transition: .2s ease;
    cursor: pointer;
    font: inherit;
}
.btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(.98); }
.btn-outline {
    color: var(--white);
    border-color: rgba(255,255,255,.55);
}
.btn-outline:hover { background: rgba(255,255,255,.08); }

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: #17324D;
}
.hero::after {
    content: "";
    position: absolute;
    right: -160px;
    bottom: -260px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    border: 95px solid rgba(255,255,255,.035);
}
.hero-grid {
    min-height: 690px;
    display: grid;
    grid-template-columns: 1.22fr .78fr;
    align-items: center;
    gap: 68px;
    position: relative;
    z-index: 1;
    padding: 72px 0;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    color: var(--gold);
}
.eyebrow::before {
    content: "";
    width: 38px;
    height: 2px;
    background: currentColor;
}
h1, h2, h3 { margin-top: 0; }
h1 {
    max-width: 760px;
    margin-bottom: 22px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(3rem, 7vw, 5.6rem);
    line-height: .98;
    letter-spacing: -.035em;
}
.hero p {
    max-width: 690px;
    font-size: 1.08rem;
    color: rgba(255,255,255,.78);
}
.hero-actions {
    margin-top: 34px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.service-card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 30px;
    padding: 34px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}
.service-card .small-title {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 800;
    font-size: .75rem;
    margin-bottom: 16px;
}
.schedule-row {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.13);
}
.schedule-row:first-of-type { border-top: 0; }
.schedule-row strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 2px;
}
.schedule-row span { color: rgba(255,255,255,.7); }

section { padding: 94px 0; }
.section-head {
    max-width: 730px;
    margin-bottom: 46px;
}
.section-head h2 {
    font-family: "Playfair Display", Georgia, serif;
    color: var(--navy-dark);
    font-size: clamp(2.15rem, 5vw, 3.5rem);
    line-height: 1.05;
    margin-bottom: 16px;
}
.section-head p { color: var(--muted); margin-bottom: 0; }

.welcome-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 38px;
    align-items: stretch;
}
.welcome-copy {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 46px;
}
.welcome-copy h3 {
    color: var(--navy);
    font-size: 1.5rem;
}
.welcome-copy p { color: var(--muted); }

.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.info-card {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 26px;
    background: var(--white);
}
.info-card h3 {
    color: var(--navy);
    font-size: 1rem;
    margin-bottom: 8px;
}
.info-card p,
.info-card a {
    margin: 0;
    color: var(--muted);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.support {
    background: var(--navy);
    color: var(--white);
}
.support-wrap {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 54px;
    align-items: start;
}
.support h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.25rem, 5vw, 3.6rem);
    line-height: 1.08;
    margin-bottom: 18px;
}
.support-copy p { color: rgba(255,255,255,.74); }
.support-note {
    border-left: 3px solid var(--gold);
    padding-left: 20px;
    margin-top: 28px;
    font-size: 1.1rem;
}

form {
    background: var(--white);
    color: var(--text);
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 28px 65px rgba(5,18,29,.25);
}
.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
label {
    display: block;
    font-weight: 700;
    font-size: .87rem;
    color: var(--navy);
    margin-bottom: 7px;
}
input, textarea, select {
    width: 100%;
    border: 1px solid #ced7de;
    background: #fbfcfd;
    border-radius: 12px;
    padding: 13px 14px;
    font: inherit;
    color: var(--text);
    outline: none;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(214,174,98,.17);
}
textarea { min-height: 145px; resize: vertical; }
.field { margin-bottom: 16px; }
.form-help {
    color: var(--muted);
    font-size: .78rem;
    margin: 12px 0 18px;
}
.honeypot { display: none !important; }

.location-box {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 40px;
}
.location-box h2 {
    color: var(--navy-dark);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.45rem;
    margin-bottom: 15px;
}
.location-box p { color: var(--muted); }
.location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}
.location-actions .btn-outline-dark {
    border-color: var(--navy);
    color: var(--navy);
}

footer {
    background: #3A84B8;
    color: #000000;
    padding: 36px 0;
    font-size: .88rem;
}
footer a { color: #000000; }

footer .container {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.status {
    display: none;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: .9rem;
}
.status.success { display: block; background: #eaf7ef; color: #27623d; }
.status.error { display: block; background: #fff0f0; color: #8a3030; }

@media (max-width: 850px) {
    .nav-links a:not(.nav-cta) { display: none; }
    .hero-grid,
    .welcome-grid,
    .support-wrap,
    .contact-grid { grid-template-columns: 1fr; }
    .hero-grid { min-height: auto; gap: 38px; }
    .info-cards { grid-template-columns: 1fr 1fr; }
    .support-wrap { gap: 36px; }
}

@media (max-width: 560px) {
    .topbar .container { padding: 8px 0; }
    nav { min-height: 70px; }
    .brand-logo { width: 230px; max-width: 58vw; }
    .nav-cta { padding: 10px 14px; font-size: .82rem; }
    .hero-grid { padding: 58px 0; }
    section { padding: 70px 0; }
    .service-card, form, .welcome-copy, .location-box { padding: 26px; }
    .field-grid, .info-cards { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
    h1 { font-size: clamp(2.9rem, 15vw, 4.2rem); }
}

.hero-photo { position:absolute; inset:0; background:url("../images/651DA56D-3DBD-49E3-A6AD-E3722D278010.jpeg") center/cover no-repeat; opacity:.18; mix-blend-mode:luminosity; }
.photo-card { overflow:hidden; border-radius:var(--radius); min-height:360px; box-shadow:var(--shadow); }
.photo-card img { width:100%; height:100%; min-height:360px; object-fit:cover; }
.story-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:38px; margin-top:38px; }
.photo-strip { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:38px; }
.photo-strip figure { margin:0; overflow:hidden; border-radius:20px; height:280px; }
.photo-strip img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.photo-strip figure:hover img { transform:scale(1.035); }
.support-photo { margin-top:28px; border-radius:20px; overflow:hidden; height:280px; }
.support-photo img { width:100%; height:100%; object-fit:cover; }
.community-gallery { background:var(--cream); }
.gallery-grid { display:grid; grid-template-columns:1.2fr .8fr .8fr; grid-auto-rows:240px; gap:18px; }
.gallery-grid figure { margin:0; overflow:hidden; border-radius:20px; }
.gallery-grid figure:first-child { grid-row:span 2; }
.gallery-grid img { width:100%; height:100%; object-fit:cover; }
@media (max-width:850px){ .story-grid,.gallery-grid{grid-template-columns:1fr 1fr}.gallery-grid figure:first-child{grid-row:auto}.photo-strip{grid-template-columns:1fr 1fr} }
@media (max-width:560px){ .story-grid,.gallery-grid,.photo-strip{grid-template-columns:1fr}.gallery-grid{grid-auto-rows:260px}.photo-strip figure{height:260px} }


/* Hero color adjustments */
.hero .eyebrow {
    color: #FFFFFF;
}

.hero h1,
.hero p {
    color: #ffffff;
}

.hero .btn-primary,
.hero .btn-outline {
    color: #ffffff;
}

/* Horarios card title inside hero */
#horarios.service-card .small-title {
    color: #FFFFFF;
}

/* Button text and hover adjustments */
.btn,
.btn-primary,
.btn-outline,
.btn-outline-dark,
.nav-cta {
    color: #FFFFFF;
}

.btn:hover,
.btn-primary:hover,
.btn-outline:hover,
.btn-outline-dark:hover,
.nav-cta:hover {
    background: #3983B9;
    border-color: #3983B9;
    color: #FFFFFF;
}

/* Navbar CTA button adjustments */
.nav-links .nav-cta,
.nav-links .btn-primary {
    color: #FFFFFF;
}

.nav-links .nav-cta:hover,
.nav-links .btn-primary:hover {
    background: #3983B9;
    border-color: #3983B9;
    color: #FFFFFF;
}


/* Eyebrow de la sección de apoyo */
#apoyo .eyebrow {
    color: #FFFFFF;
}
