:root {
    --olive: #73785b;
    --olive-dark: #555b42;
    --sage: #b3b796;
    --beige: #e6d6bd;
    --cream: #faf7f1;
    --brown: #946f58;
    --text-dark: #2f332d;
    --text-soft: #62665f;
    --white: #ffffff;
    --line: rgba(47, 51, 45, 0.12);
    --shadow: 0 24px 65px rgba(68, 58, 48, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto;
    scroll-padding-top: 78px;
}

body {
    min-width: 320px;
    background: var(--cream);
    color: var(--text-dark);
    font-family: "Lato", sans-serif;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    height: auto;
    max-width: 100%;
}

a {
    color: inherit;
}

h1,
h2,
h3,
.logo-font {
    font-family: "Cormorant Garamond", serif;
}

h1,
h2,
h3 {
    line-height: 1.08;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #bf7d4d;
    outline-offset: 4px;
}

/* Navegación compartida */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--line);
    background: rgba(250, 247, 241, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 3rem));
    min-height: 76px;
    margin: 0 auto;
}

.logo {
    color: var(--olive-dark);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.logo-font {
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    position: relative;
    color: var(--text-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links a::after {
    position: absolute;
    bottom: -0.45rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brown);
    content: "";
    transition: width 180ms ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    border-radius: 2px;
    background: var(--olive-dark);
    transition: transform 180ms ease, opacity 180ms ease;
}

.hamburger.is-open span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* Portada */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
    width: min(1180px, calc(100% - 3rem));
    min-height: clamp(700px, calc(100vh - 77px), 900px);
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content::before {
    position: absolute;
    z-index: -1;
    top: -3rem;
    left: -4rem;
    width: 13rem;
    height: 13rem;
    border-radius: 50%;
    background: rgba(179, 183, 150, 0.2);
    content: "";
    filter: blur(2px);
}

.eyebrow {
    margin-bottom: 1rem;
    color: var(--brown);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 680px;
    color: var(--olive-dark);
    font-size: clamp(3.3rem, 7.2vw, 6.5rem);
    font-weight: 600;
    letter-spacing: -0.045em;
}

.credential {
    margin-top: 0.75rem;
    color: var(--text-soft);
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.credential span {
    margin: 0 0.45rem;
    color: var(--brown);
}

.hero-lead {
    max-width: 560px;
    margin: 2rem 0 2.25rem;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    line-height: 1.25;
}

.hero-note {
    margin-top: 1.25rem;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.hero-photo {
    position: relative;
    justify-self: end;
    width: min(100%, 460px);
}

.hero-photo::before {
    position: absolute;
    z-index: -1;
    inset: 2.5rem -1.5rem -1.5rem 2rem;
    border-radius: 48% 48% 22% 22% / 38% 38% 18% 18%;
    background: var(--beige);
    content: "";
}

.hero-photo::after {
    position: absolute;
    right: -1.8rem;
    bottom: 3rem;
    width: 4.7rem;
    height: 8rem;
    border: 1px solid rgba(148, 111, 88, 0.45);
    border-radius: 100% 0;
    content: "";
    transform: rotate(20deg);
}

.hero-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 48% 48% 22% 22% / 38% 38% 18% 18%;
    box-shadow: var(--shadow);
    object-fit: cover;
    object-position: 50% 34%;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 52px;
    padding: 0.85rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-align: center;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
    flex: 0 0 auto;
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    background: var(--olive-dark);
    box-shadow: 0 14px 30px rgba(85, 91, 66, 0.22);
    color: var(--white);
}

.button--primary:hover {
    background: #454b35;
    box-shadow: 0 18px 36px rgba(85, 91, 66, 0.3);
}

/* Áreas */

.areas-section {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--white);
    padding: clamp(5rem, 9vw, 8rem) 0;
}

.section-shell {
    width: min(1180px, calc(100% - 3rem));
    margin: 0 auto;
}

.section-heading {
    max-width: 650px;
    margin-bottom: 3rem;
}

.section-heading h2,
.approach-content h2,
.closing-section h2 {
    font-size: clamp(2.7rem, 5.5vw, 4.8rem);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.section-heading h2 {
    color: var(--olive-dark);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.area-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--cream);
    text-align: center;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.area-card:hover {
    border-color: rgba(115, 120, 91, 0.34);
    box-shadow: 0 18px 42px rgba(68, 58, 48, 0.09);
    transform: translateY(-4px);
}

.area-icon {
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    background: var(--olive);
    place-items: center;
}

.area-icon img {
    width: 1.6rem;
    height: 1.6rem;
}

.area-card h3 {
    color: var(--olive-dark);
    font-size: 1.7rem;
    font-weight: 600;
}

.area-card p {
    margin-top: 0.8rem;
    color: var(--text-soft);
    font-size: 0.94rem;
}

/* Enfoque con fondo serrano */

.approach-section {
    position: relative;
    display: grid;
    min-height: 680px;
    overflow: hidden;
    isolation: isolate;
    place-items: center;
}

.approach-background {
    position: absolute;
    z-index: -2;
    inset: -22px;
    background: url("../img/WEBP/sierras-cordoba-suave.jpg") center / cover no-repeat;
    filter: blur(5px);
    transform: scale(1.035);
}

.approach-section::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(250, 247, 241, 0.95), rgba(250, 247, 241, 0.78));
    content: "";
}

.approach-content {
    width: min(900px, calc(100% - 3rem));
    margin: 0 auto;
    padding: clamp(5rem, 10vw, 9rem) 0;
    text-align: center;
}

.approach-content h2 {
    max-width: 820px;
    margin: 0 auto;
    color: var(--olive-dark);
}

.approach-content blockquote {
    max-width: 760px;
    margin: 2rem auto 1.5rem;
    color: var(--brown);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.65rem, 3.3vw, 2.6rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.25;
}

.approach-content>p:not(.eyebrow) {
    max-width: 660px;
    margin: 0.6rem auto;
    color: #4f544d;
    font-size: 1.03rem;
}

/* Cierre */

.closing-section {
    padding: clamp(5rem, 9vw, 8rem) 1.5rem;
    background: var(--olive-dark);
    color: var(--white);
    text-align: center;
}

.closing-content {
    max-width: 760px;
    margin: 0 auto;
}

.closing-section .eyebrow {
    color: var(--beige);
}

.closing-section h2 {
    margin-bottom: 1.1rem;
}

.closing-section p:not(.eyebrow) {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.78);
}

.button--light {
    background: var(--white);
    box-shadow: 0 14px 34px rgba(25, 29, 20, 0.25);
    color: var(--olive-dark);
}

.button--light:hover {
    background: var(--beige);
}

/* Footer compartido */

footer {
    padding: clamp(3rem, 6vw, 5rem) 1.5rem;
    background: #454b35;
    color: rgba(255, 255, 255, 0.76);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
    align-items: stretch;
    gap: clamp(2rem, 5vw, 4.5rem);
    width: min(1180px, 100%);
    margin: 0 auto;
    font-size: 0.9rem;
}

.footer-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-name {
    margin-bottom: 0.1rem;
    color: var(--white);
    font-size: 1.45rem;
}

.footer-location {
    max-width: 260px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-map {
    min-height: 300px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 55px rgba(25, 29, 20, 0.25);
}

.footer-map iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: 0;
}

/* Clases compartidas con turnos.html */

.center-text {
    text-align: center;
}

.padding-bottom {
    padding-bottom: 25px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-box {
    padding: 2rem;
    border-radius: 12px;
    background: var(--white);
    color: var(--text-dark);
}

.icon-F40 {
    width: 40px;
    height: 40px;
    fill: var(--brown);
}

@media (max-width: 900px) {
    .nav-container {
        width: min(calc(100% - 2rem), 1180px);
    }

    .hamburger {
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--line);
        border-radius: 50%;
        color: var(--olive-dark);
    }

    .hamburger span {
        display: none;
    }

    .hamburger::after {
        content: "☰";
        font-size: 1.3rem;
        line-height: 1;
    }

    .hamburger.is-open::after {
        content: "×";
        font-size: 1.8rem;
    }

    .nav-links {
        position: absolute;
        top: 76px;
        left: 0;
        display: grid;
        width: 100%;
        max-height: 0;
        gap: 0;
        overflow: hidden;
        border-bottom: 1px solid transparent;
        background: var(--cream);
        transition: max-height 220ms ease, border-color 220ms ease;
    }

    .nav-links.open {
        max-height: 360px;
        border-color: var(--line);
    }

    .nav-links li {
        border-top: 1px solid var(--line);
    }

    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
    }

    .nav-links a::after {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr 0.78fr;
        gap: 2rem;
    }

    .hero h1 {
        font-size: clamp(3.1rem, 8vw, 5rem);
    }
}

@media (max-width: 720px) {
    .hero {
        grid-template-columns: 1fr;
        width: min(calc(100% - 2rem), 560px);
        padding: 3.5rem 0 5rem;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-content::before {
        top: -2rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-lead {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-photo {
        order: 2;
        justify-self: center;
        width: min(84vw, 390px);
    }

    .hero h1 {
        font-size: clamp(2.2rem, 9.5vw, 2.5rem);
        letter-spacing: -0.035em;
    }

    .hero-photo::after {
        right: -0.5rem;
    }

    .section-shell,
    .approach-content {
        width: min(calc(100% - 2rem), 560px);
    }

    .section-heading {
        text-align: center;
    }

    .area-card {
        min-height: auto;
    }

    .approach-section {
        min-height: 620px;
    }

    .approach-section::after {
        background: rgba(250, 247, 241, 0.86);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-location {
        margin-right: auto;
        margin-left: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
