:root {
    --primary: #94817a;
    --primary-dark: #75645e;
    --dark: #32312d;
    --bg: #f3f3f3;
    --surface: #ffffff;
    --surface-soft: #e9e5e2;
    --text-muted: #6d6963;
    --line: rgba(148, 129, 122, 0.28);
    --shadow-sm: 0 8px 24px rgba(50, 49, 45, 0.07);
    --shadow-lg: 0 24px 64px rgba(50, 49, 45, 0.13);
    --radius: 20px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--dark);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 90% 8%, rgba(148,129,122,.13), transparent 30%);
}

h1, h2, h3, h4 {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.18;
    letter-spacing: -.02em;
}

a { text-underline-offset: 3px; }

a:focus-visible, .hamburger:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
    border-radius: 4px;
}

nav {
    padding: 10px 24px;
    background: rgba(243, 243, 243, .94);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 18px rgba(50,49,45,.05);
    backdrop-filter: blur(14px);
    z-index: 100;
}

.nav-container { max-width: 1240px; }
.logo img { height: 70px; }

.menu { align-items: center; gap: 6px; }
.menu > a, .dropdown > a {
    display: block;
    padding: 12px 15px;
    border-radius: 999px;
    font-size: .91rem;
    font-weight: 700;
    letter-spacing: .025em;
    transition: color .2s ease, background .2s ease;
}
.menu > a:hover, .dropdown > a:hover { color: var(--dark); background: var(--surface-soft); }
.menu > a:last-child { color: #fff; background: var(--dark); padding-inline: 20px; }
.menu > a:last-child:hover { background: var(--primary-dark); color: #fff; }

.dropdown-content {
    top: 100%;
    min-width: 260px;
    padding: 18px 10px 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
}
.dropdown-content a { padding: 10px 12px; border-radius: 8px; }
.dropdown-content a:hover { background: var(--surface-soft); }

.hero {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    isolation: isolate;
    background: var(--dark);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgba(50,49,45,.88) 0%, rgba(50,49,45,.60) 50%, rgba(50,49,45,.22) 100%);
}
.hero img { height: clamp(340px, 52vw, 620px); opacity: .72; transform: scale(1.01); }
body:not(:has(.hero-text-small)) .hero img { height: 340px; }

.hero-text-big {
    z-index: 1;
    left: max(24px, calc((100% - 1200px) / 2));
    width: min(720px, calc(100% - 48px));
    transform: translateY(-50%);
    color: #fff;
}
.hero-text-big h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 5.25rem); font-weight: 500; padding: 0; }
.hero-text-big h1::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 22px 0;
    background: var(--primary);
}
.hero-text-big p { max-width: 650px; color: rgba(255,255,255,.9); font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 400; line-height: 1.55; }
.hero-cta { display: inline-flex; align-items: center; justify-content: center; margin-top: 24px; padding: 13px 24px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: var(--primary-dark); color: #fff; font-size: .95rem; font-weight: 700; letter-spacing: .035em; text-decoration: none; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.hero-cta:hover { transform: translateY(-2px); border-color: #fff; background: var(--primary-dark); }
.hero-text-small { display: none !important; }

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(64px, 8vw, 104px) 24px;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 92px;
}
.section > h2 {
    margin: 0 0 38px;
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 500;
}
.section > h2::before {
    content: "";
    display: block;
    width: 46px;
    height: 3px;
    margin-bottom: 18px;
    background: var(--primary);
}
.section h3 { margin: 34px 0 12px; font-size: clamp(1.25rem, 2vw, 1.55rem); }
.section p { max-width: 850px; margin-bottom: 18px; color: var(--text-muted); line-height: 1.8; text-align: left; }
.section > p:first-child { max-width: 920px; font-size: 1.16rem; color: var(--dark); }

.areas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 0; }
.area-card {
    position: relative;
    min-height: 255px;
    padding: 34px;
    gap: 16px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.area-card::after { content: "→"; position: absolute; right: 30px; top: 31px; color: var(--primary); font-size: 1.5rem; transition: transform .25s ease; }
.area-card:hover { transform: translateY(-6px); background: var(--surface); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.area-card:hover::after { transform: translateX(5px); }
.area-icon { width: 54px; height: 54px; background: var(--surface-soft); border: 0; }
.area-card h3 { max-width: 80%; margin: 0; font-size: 1.45rem; }
.area-card p { font-size: .98rem; line-height: 1.65; color: var(--text-muted); }

#experiencia { max-width: none; padding-left: max(24px, calc((100% - 1152px) / 2)); padding-right: max(24px, calc((100% - 1152px) / 2)); background: var(--dark); color: #fff; }
#experiencia h2 { color: #fff; }
#experiencia p { color: rgba(255,255,255,.72); }
#experiencia .experiencia-caption { margin: -8px 0 28px; padding-left: 16px; border-left: 3px solid #d8b4a8; color: #d8b4a8; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; letter-spacing: .02em; }

#quienes { display: block; }
#quienes::after { content: ""; display: block; clear: both; }
#quienes .quienes-intro { margin-bottom: clamp(36px, 5vw, 54px); }
#quienes .quienes-intro p { margin: 0 0 14px; }
#quienes .quienes-intro p:last-child { margin-bottom: 0; }
#quienes > img { float: left; width: min(42%, 460px); height: auto; max-height: 680px; margin: 0 clamp(32px, 5vw, 60px) 30px 0; border-radius: var(--radius); object-fit: cover; object-position: center top; box-shadow: var(--shadow-lg); }
#quienes h3 { margin: 0 0 16px; }
#quienes .quienes-recorrido p, #quienes .quienes-trabajo p { margin: 0 0 16px; }
#quienes .quienes-recorrido p:last-child, #quienes .quienes-trabajo p:last-child { margin-bottom: 0; }
#quienes .quienes-trabajo { margin-top: 38px; }

#reviews { min-height: 300px; }
.contacto-grid { gap: clamp(28px, 6vw, 76px); align-items: stretch; }
.contacto-image, .contacto-info { flex: 1; }
.contacto-image iframe { height: 100% !important; min-height: 420px; border-radius: var(--radius); box-shadow: var(--shadow-lg); filter: saturate(.7); }
.contacto-info { padding: clamp(28px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contacto-info h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 28px; }
.contacto-info p { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contacto-info a { color: var(--dark); font-weight: 700; text-decoration-color: var(--primary); }

.area-item {
    display: block;
    margin: 22px 0;
    padding: clamp(24px, 3vw, 34px);
    background: linear-gradient(135deg, var(--surface) 0%, rgba(148,129,122,.06) 100%);
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.area-item-text { min-width: 0; }
.area-item h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 15px; }
.area-item h3 svg { flex: 0 0 auto; color: var(--primary); }
.area-item p:last-child { margin-bottom: 0; }

footer { padding: 52px 24px; border-top: 0; background: var(--dark); }
footer .container { max-width: 1200px; margin: auto; }
footer h3 { margin-bottom: 8px; color: #fff; font-size: 1.6rem; }
footer p { color: rgba(255,255,255,.7); }
.social-links { margin: 18px 0 6px; }
.social-links a { margin: 0 16px 0 0; color: #fff; font-weight: 700; }

@media (max-width: 768px) {
    nav { padding: 9px 18px; }
    .logo img { height: 58px; }
    .hamburger { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--dark); color: #fff; font-size: 0; }
    .hamburger::after { content: "☰"; font-size: 22px; }
    .menu { top: calc(100% + 10px); right: 0; left: auto; width: min(340px, calc(100vw - 36px)); padding: 12px; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
    .menu.active { display: flex; }
    .menu .dropdown { width: 100%; }
    .menu > a, .dropdown > a { padding: 11px 12px; }
    .menu > a:last-child { text-align: left; }
    .dropdown-content { position: static; display: block; min-width: 0; padding: 2px 0 4px 14px; background: transparent; border: 0; box-shadow: none; }
    .dropdown-content a { padding: 7px 10px; color: var(--text-muted); font-size: .9rem; }
    .hero { min-height: 390px; }
    .hero img, body:not(:has(.hero-text-small)) .hero img { height: 390px; }
    .hero::after { background: linear-gradient(0deg, rgba(50,49,45,.9), rgba(50,49,45,.32)); }
    .hero-text-big { display: block; top: auto; bottom: 44px; left: 24px; transform: none; }
    .hero-text-big h1 { font-size: clamp(2.35rem, 11vw, 3.45rem); }
    .hero-text-big h1::after { margin: 16px 0; }
    .hero-cta { margin-top: 18px; padding: 12px 21px; }
    .areas-grid { grid-template-columns: 1fr; }
    .area-card { min-height: 0; padding: 28px; }
    #quienes > img { float: none; width: 100%; max-width: 100%; max-height: 520px; margin: 0 0 32px; }
    #quienes .quienes-intro { margin-bottom: 32px; }
    #quienes .quienes-trabajo { margin-top: 34px; }
    .contacto-grid { flex-direction: column; }
    .contacto-image iframe { min-height: 310px; }
    .area-item { margin: 16px 0; padding: 22px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
