/* ============================================
   CALA · Centro de Psicología y Desarrollo Integral
   Estilos compartidos por todas las páginas.
   Radios: botones en pastilla, tarjetas e imágenes 18px.
   ============================================ */

:root {
    --cream: #FDF9F1;
    --light: #F6F3EF;
    --sand: #EFE4DB;
    --muted: #D8CCCA;
    --sage: #D4DCD5;
    --rose: #B98685;          /* decorativo */
    --rose-strong: #9A6463;   /* botones y links (contraste AA) */
    --rose-deep: #7F5251;
    --dark: #7B6666;          /* títulos */
    --text: #4A3F3F;
    --soft: #6B5D5B;          /* texto secundario (contraste AA) */
    --line: rgba(123, 102, 102, 0.16);
    --wa: #1FAA59;

    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', system-ui, -apple-system, sans-serif;

    --r: 18px;
    --r-sm: 12px;
    --pill: 999px;

    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

    --pad: 20px;
    --header-h: 64px;
    --shadow: 0 1px 2px rgba(123, 102, 102, 0.06), 0 8px 28px rgba(123, 102, 102, 0.08);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--rose-strong); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 720px; }

.skip {
    position: absolute; left: 12px; top: -60px; z-index: 600;
    background: var(--text); color: #fff; padding: 10px 16px; border-radius: var(--pill);
    text-decoration: none; font-size: 14px;
}
.skip:focus { top: 12px; }

/* ============ TIPOGRAFÍA ============ */
.title {
    font-family: var(--serif);
    font-weight: 300;
    color: var(--dark);
    font-size: clamp(34px, 8vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.01em;
}
.title em { font-style: italic; color: var(--rose-strong); }
.title-sm { font-size: clamp(28px, 6.5vw, 40px); }
.eyebrow {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rose-strong);
    margin-bottom: 12px;
}
.lead { font-size: 17px; color: var(--soft); max-width: 60ch; margin-top: 16px; }
.muted { color: var(--soft); }

/* ============ BOTONES ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 24px;
    border-radius: var(--pill);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn i { font-size: 18px; }
.btn-primary { background: var(--rose-strong); color: #fff; }
.btn-ghost { color: var(--rose-strong); box-shadow: inset 0 0 0 1px rgba(154, 100, 99, 0.45); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-light { background: var(--cream); color: var(--rose-deep); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--rose-strong); font-weight: 400; text-decoration: none;
}
.link-arrow i { transition: transform 200ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover { background: var(--rose-deep); }
    .btn-ghost:hover { background: rgba(185, 134, 133, 0.1); }
    .btn-wa:hover { background: #1b9a50; }
    .btn-light:hover { background: #fff; }
    .link-arrow:hover i { transform: translateX(3px); }
}

/* ============ HEADER ============ */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 300;
    height: var(--header-h);
    background: rgba(253, 249, 241, 0.9);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    backdrop-filter: saturate(150%) blur(14px);
    box-shadow: 0 1px 0 var(--line);
}
.header-inner {
    height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad);
    display: flex; align-items: center; justify-content: flex-start; gap: 20px;
}
.nav { margin-left: auto; }
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.logo b { font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: 0.14em; color: var(--dark); }
.logo small { font-size: 9px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft); margin-top: 5px; }

.nav { display: none; align-items: center; gap: 24px; }
.nav > a, .nav-drop > a {
    font-size: 14px; font-weight: 400; text-decoration: none; color: var(--text);
    padding: 6px 0; position: relative; transition: color 200ms ease;
}
.nav > a[aria-current="page"], .nav-drop > a[aria-current="page"] { color: var(--rose-strong); }
.nav > a[aria-current="page"]::after, .nav-drop > a[aria-current="page"]::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rose);
}
.nav-drop { position: relative; }
.nav-drop-menu {
    position: absolute; top: calc(100% + 10px); left: 50%;
    min-width: 180px; padding: 8px;
    background: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden;
    transform: translate(-50%, -4px) scale(0.98); transform-origin: top center;
    transition: opacity 160ms ease, transform 180ms var(--ease-out), visibility 0s linear 180ms;
}
.nav-drop-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu {
    opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1);
    transition: opacity 160ms ease, transform 180ms var(--ease-out), visibility 0s;
}
.nav-drop-menu a {
    display: block; padding: 9px 12px; border-radius: 8px;
    font-size: 14px; text-decoration: none; white-space: nowrap;
}
.nav-drop-menu a:hover { background: var(--light); color: var(--rose-strong); }
.nav > a.nav-cta { margin-left: 4px; padding: 0 18px; color: #fff; }
.nav > a.nav-cta::after { display: none; }

.menu-btn {
    order: -1; width: 44px; height: 44px; margin-left: -10px; margin-right: -12px;
    display: grid; place-items: center; border-radius: var(--pill);
}
.menu-btn span { position: relative; width: 22px; height: 12px; display: block; }
.menu-btn span::before, .menu-btn span::after {
    content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--dark);
    transition: transform 260ms var(--ease-out), top 260ms var(--ease-out);
}
.menu-btn span::before { top: 0; }
.menu-btn span::after { top: 10.5px; }
.menu-btn[aria-expanded="true"] span::before { top: 5.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { top: 5.25px; transform: rotate(-45deg); }

/* ============ MENÚ LATERAL ============ */
.scrim {
    position: fixed; inset: 0; z-index: 340;
    background: rgba(74, 63, 63, 0.32);
    opacity: 0; visibility: hidden;
    transition: opacity 300ms ease, visibility 0s linear 300ms;
}
.scrim.open { opacity: 1; visibility: visible; transition: opacity 300ms ease, visibility 0s; }
.drawer {
    position: fixed; z-index: 350; top: 0; bottom: 0; left: 0;
    width: min(86vw, 360px);
    background: var(--cream);
    display: flex; flex-direction: column;
    padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(-100%); visibility: hidden;
    transition: transform 420ms var(--ease-drawer), visibility 0s linear 420ms;
    box-shadow: 12px 0 40px rgba(74, 63, 63, 0.12);
}
.drawer.open { transform: none; visibility: visible; transition: transform 420ms var(--ease-drawer), visibility 0s; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer-close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--pill); font-size: 22px; color: var(--dark); margin-right: -10px; }
.drawer-label {
    font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--soft); margin: 18px 0 6px;
}
.drawer-links a {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 50px; padding: 0 4px;
    font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--text);
    text-decoration: none; border-bottom: 1px solid var(--line);
}
.drawer-links a i { font-size: 16px; color: var(--rose); }
.drawer-links a[aria-current="page"] { color: var(--rose-strong); font-style: italic; }
.drawer-links.small a { font-family: var(--sans); font-size: 16px; font-weight: 400; min-height: 46px; }
.drawer .btn { margin-top: 24px; }
.drawer-social { display: flex; gap: 10px; margin-top: auto; padding-top: 24px; }

.social a {
    width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: var(--pill); font-size: 20px; text-decoration: none;
    color: var(--soft); box-shadow: inset 0 0 0 1px var(--line);
    transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.social a:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
    .social a:hover { background: var(--rose-strong); color: #fff; box-shadow: none; }
}

/* ============ ESTRUCTURA ============ */
main { padding-top: var(--header-h); }
.section { padding: 64px 0; }
.section + .section.tint, .tint { background: var(--light); }
.sand { background: var(--sand); }
.section-head { margin-bottom: 32px; }
.section-foot { margin-top: 28px; }

.page-hero { padding: 48px 0 40px; background: var(--light); }
.page-hero .lead { margin-top: 18px; }

.card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }

/* ============ INICIO ============ */
.home-hero {
    position: relative; overflow: hidden;
    padding: 40px 0 56px;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(212, 220, 213, 0.55) 0%, transparent 60%),
        radial-gradient(90% 70% at 0% 100%, rgba(239, 228, 219, 0.9) 0%, transparent 70%),
        var(--cream);
}
.home-hero-grid { display: grid; gap: 32px; align-items: center; }
.home-hero .title { font-size: clamp(42px, 11.5vw, 76px); line-height: 1.02; }
.home-hero .lead { font-size: 17px; }
.home-hero-media {
    order: -1;
    width: min(62vw, 260px); aspect-ratio: 1;
    border-radius: 50%; overflow: hidden;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.6), 0 20px 50px rgba(123, 102, 102, 0.16);
}
.home-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 400; color: var(--soft);
    padding: 6px 12px; border-radius: var(--pill); background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 0 1px var(--line);
}
.pill i { color: var(--rose); font-size: 15px; }

.tiles { display: grid; gap: 12px; }
.tile {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 20px; background: #fff; border-radius: var(--r);
    text-decoration: none; box-shadow: var(--shadow);
    transition: transform 200ms var(--ease-out);
}
.tile:active { transform: scale(0.985); }
.tile-icon {
    flex: none; width: 48px; height: 48px; border-radius: 14px;
    display: grid; place-items: center; font-size: 24px;
    background: var(--sand); color: var(--rose-strong);
}
.tile:nth-child(3n+2) .tile-icon { background: var(--sage); color: #5E6F62; }
.tile:nth-child(3n) .tile-icon { background: var(--light); }
.tile h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--dark); line-height: 1.2; margin-bottom: 4px; }
.tile p { font-size: 15px; color: var(--soft); line-height: 1.55; }

.team-row {
    display: grid; grid-auto-flow: column; grid-auto-columns: 68%;
    gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
    margin: 0 calc(var(--pad) * -1); padding: 4px var(--pad) 16px;
    scrollbar-width: none;
}
.team-row::-webkit-scrollbar { display: none; }
.team-mini { scroll-snap-align: start; text-decoration: none; }
.team-mini figure { aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--muted); }
.team-mini img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-mini p { font-size: 13px; color: var(--rose-strong); margin-top: 12px; font-weight: 400; }
.team-mini h3 { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--dark); line-height: 1.2; }

.news-grid { display: grid; gap: 14px; }
.news-feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-body { padding: 20px; }
.news-cat { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rose-strong); margin-bottom: 8px; }
.news-body h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.2; color: var(--dark); margin-bottom: 8px; }
.news-small .news-body h3 { font-size: 21px; }
.news-body p { font-size: 15px; color: var(--soft); }

.cta-band { background: var(--dark); color: var(--cream); border-radius: var(--r); padding: 36px 24px; }
.cta-band .title { color: var(--cream); }
.cta-band .title em { color: var(--sand); }
.cta-band p { color: rgba(253, 249, 241, 0.78); margin-top: 12px; max-width: 52ch; }
.cta-band .btn-ghost { color: var(--cream); box-shadow: inset 0 0 0 1px rgba(253, 249, 241, 0.45); }

/* ============ EQUIPO ============ */
.team-grid { display: grid; gap: 20px; }
.member-photo { aspect-ratio: 4 / 5; background: var(--muted); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.member-info { padding: 20px; }
.member-role { font-size: 13px; color: var(--rose-strong); font-weight: 400; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--rose-strong); padding: 2px 8px; border-radius: var(--pill); }
.member-info h2 { font-family: var(--serif); font-size: 25px; font-weight: 500; color: var(--dark); line-height: 1.2; margin: 6px 0 8px; }
.member-where { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--soft); }
.member-where i { color: var(--rose); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-size: 12.5px; padding: 4px 10px; border-radius: var(--pill); background: var(--sand); color: var(--text); font-weight: 400; }

.more { margin-top: 16px; border-top: 1px solid var(--line); }
.more summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    min-height: 48px; font-size: 15px; font-weight: 400; color: var(--rose-strong);
}
.more summary::-webkit-details-marker { display: none; }
.more summary i { transition: transform 240ms var(--ease-out); }
.more[open] summary i { transform: rotate(180deg); }
.checklist li { display: flex; gap: 10px; font-size: 15px; color: var(--soft); padding: 6px 0; line-height: 1.5; }
.checklist li::before {
    content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%;
    background: var(--rose); margin-top: 9px;
}
.more .checklist { padding-bottom: 6px; animation: fadeUp 280ms var(--ease-out); }

/* ============ SERVICIOS ============ */
.serv-grid { display: grid; gap: 20px; }
.serv-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.serv-body { padding: 22px 20px 24px; }
.serv-body h2 { font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--dark); line-height: 1.15; margin-bottom: 8px; }
.serv-body > p { font-size: 15.5px; color: var(--soft); }
.serv-body .checklist { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

.feature-band {
    display: grid; gap: 20px; align-items: center;
    margin-top: 20px; padding: 28px 22px; border-radius: var(--r);
    background: var(--sage);
}
.feature-band h2 { font-family: var(--serif); font-size: 30px; font-weight: 400; color: #3F4B42; line-height: 1.15; display: flex; align-items: center; gap: 10px; }
.feature-band p { color: #4E5B51; margin-top: 8px; max-width: 60ch; }

/* ============ FORMACIÓN ============ */
.tabs {
    display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
    margin: 0 calc(var(--pad) * -1) 24px; padding: 2px var(--pad);
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    flex: none; scroll-snap-align: start;
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 0 18px; border-radius: var(--pill);
    font-size: 15px; font-weight: 400; color: var(--soft);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.tab:active { transform: scale(0.97); }
.tab[aria-selected="true"] { background: var(--rose-strong); color: #fff; box-shadow: none; }
.tab-panel { animation: fadeUp 300ms var(--ease-out); }
.info-grid { display: grid; gap: 16px; }
.info-card { padding: 24px 20px; }
.info-card h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--dark); line-height: 1.2; margin-bottom: 10px; }
.info-card > p { font-size: 15.5px; color: var(--soft); }
.info-card .checklist { margin-top: 12px; }
.info-card .tags { margin-top: 16px; }
.info-card .link-arrow { margin-top: 16px; }
.note {
    display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px;
    background: var(--light); border-radius: var(--r-sm);
    font-size: 14.5px; color: var(--soft);
}
.note i { color: var(--rose-strong); font-size: 18px; flex: none; margin-top: 2px; }

/* ============ NOVEDADES ============ */
.blog { display: grid; gap: 32px; }
.posts { display: grid; gap: 16px; }
.post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sand); }
.post .news-body h2 { font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.2; color: var(--dark); margin-bottom: 8px; }
.post-date { font-size: 13px; color: var(--soft); margin-top: 12px; }
.side-box { padding: 22px 20px; }
.side-box h2 { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--dark); margin-bottom: 8px; }
.topic { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.topic:first-of-type { border-top: 0; }
.topic i { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sand); color: var(--rose-strong); font-size: 20px; }
.topic h3 { font-size: 15.5px; font-weight: 500; color: var(--text); }
.topic p { font-size: 14px; color: var(--soft); line-height: 1.45; }
.ig-box {
    display: flex; align-items: center; gap: 14px; margin-top: 16px;
    padding: 18px 20px; border-radius: var(--r); background: var(--dark); color: var(--cream);
    text-decoration: none; transition: transform 160ms var(--ease-out);
}
.ig-box:active { transform: scale(0.98); }
.ig-box i { font-size: 30px; }
.ig-box strong { display: block; font-weight: 500; }
.ig-box span { font-size: 14px; color: rgba(253, 249, 241, 0.75); }

/* ============ SEDES ============ */
.sedes { display: grid; gap: 20px; }
.sede { scroll-margin-top: calc(var(--header-h) + 16px); }
.sede-photo { position: relative; }
.sede-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--muted); }
.sede-body { padding: 22px 20px 24px; }
.sede-body h2 { font-family: var(--serif); font-size: 32px; font-weight: 400; color: var(--dark); line-height: 1.1; }
.sede-sub { font-size: 14px; color: var(--soft); margin-top: 4px; }
.rows { margin-top: 18px; }
.row { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.row i { flex: none; font-size: 20px; color: var(--rose-strong); margin-top: 2px; }
.row dt { font-size: 13px; color: var(--soft); }
.row dd { font-size: 16px; font-weight: 400; color: var(--text); }
.row a { color: var(--rose-strong); text-decoration: none; }
.sede .btns { margin-top: 18px; }
.rent { margin-top: 18px; padding: 18px; border-radius: var(--r-sm); background: var(--light); }
.rent h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--dark); margin-bottom: 6px; }
.rent p { font-size: 15px; color: var(--soft); }
.rent .link-arrow { margin-top: 10px; }

/* ============ CONTACTO ============ */
.contact-grid { display: grid; gap: 28px; grid-template-areas: "quick" "form" "info"; }
.contact-quick { grid-area: quick; display: grid; gap: 10px; }
.contact-form { grid-area: form; }
.contact-info { grid-area: info; }
.quick-btn {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px; border-radius: var(--r); text-decoration: none;
    transition: transform 160ms var(--ease-out);
}
.quick-btn:active { transform: scale(0.98); }
.quick-btn i { font-size: 28px; flex: none; }
.quick-btn strong { display: block; font-weight: 500; font-size: 16px; }
.quick-btn span { font-size: 14px; opacity: 0.85; }
.quick-btn.wa { background: var(--wa); color: #fff; }
.quick-btn.mail { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.quick-btn.mail i { color: var(--rose-strong); }

.form-card { padding: 24px 20px; }
.form-card h2 { font-family: var(--serif); font-size: 30px; font-weight: 400; color: var(--dark); line-height: 1.15; margin-bottom: 18px; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.field label span { font-weight: 300; color: var(--soft); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 52px; padding: 0 16px;
    font: inherit; font-size: 16px; font-weight: 400; color: var(--text);
    background: var(--cream); border: 1px solid rgba(123, 102, 102, 0.3); border-radius: var(--r-sm);
    -webkit-appearance: none; appearance: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { min-height: 130px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%239A6463' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.field input::placeholder, .field textarea::placeholder { color: #93847F; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--rose-strong); box-shadow: 0 0 0 3px rgba(154, 100, 99, 0.15);
}
.hp { position: absolute; left: -9999px; }
.form-msg { display: flex; gap: 10px; padding: 14px 16px; border-radius: var(--r-sm); font-size: 15px; }
.form-msg i { font-size: 20px; flex: none; }
.form-msg.ok { background: var(--sage); color: #34423A; }
.form-msg.err { background: #F5DEDC; color: #7A3B3B; }
.form-msg a { color: inherit; }

.contact-info h2 { font-family: var(--serif); font-size: 28px; font-weight: 400; color: var(--dark); margin-bottom: 4px; }
.community {
    margin-top: 24px; padding: 22px 20px; border-radius: var(--r);
    background: var(--sand);
}
.community h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--dark); margin-bottom: 6px; }
.community p { font-size: 15px; color: var(--soft); margin-bottom: 16px; }
.community-row { display: flex; align-items: center; gap: 14px; }
.community-qr { display: none; width: 96px; height: 96px; border-radius: 10px; background: #fff; padding: 4px; }
.socials-row { display: flex; gap: 10px; margin-top: 12px; }

/* ============ SOBRE NOSOTROS ============ */
.quote-lead { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--dark); margin-top: 18px; line-height: 1.35; }
.story { max-width: 680px; margin: 0 auto; }
.story p { font-size: 17px; line-height: 1.85; margin-bottom: 20px; color: var(--text); }
.story p.first { font-family: var(--serif); font-size: 26px; line-height: 1.4; color: var(--dark); }
.story p.beat {
    font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.35;
    color: var(--rose-strong); margin: 32px 0;
}
.story p.close { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--rose-strong); margin-top: 28px; }
.story figure { margin: 36px 0; }
.story figure img { width: 100%; border-radius: var(--r); object-fit: cover; }
.story .wide img { max-height: 460px; }
.photo-pair { display: grid; gap: 12px; margin: 36px 0; }
.photo-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
figcaption { text-align: center; font-size: 14px; color: var(--soft); margin-top: 10px; }

.gallery { display: grid; gap: 12px; margin-top: 28px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }

.split { display: grid; gap: 28px; align-items: center; }
.split img { width: 100%; border-radius: var(--r); box-shadow: var(--shadow); }
.split .prose p { color: var(--soft); margin-top: 14px; font-size: 16px; }
.split .prose p.accent { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--dark); line-height: 1.4; }

.do-grid { display: grid; gap: 12px; }
.do-item { padding: 22px 20px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
.do-item i { font-size: 28px; color: var(--rose-strong); }
.do-item h3 { font-family: var(--serif); font-size: 23px; font-weight: 500; color: var(--dark); margin: 10px 0 6px; line-height: 1.2; }
.do-item p { font-size: 15px; color: var(--soft); }

.manifesto { background: var(--dark); color: var(--cream); text-align: center; }
.manifesto p { font-family: var(--serif); font-size: 23px; font-weight: 300; line-height: 1.55; margin-bottom: 18px; color: rgba(253, 249, 241, 0.92); }
.manifesto p.last { font-style: italic; font-size: 30px; color: #fff; margin-top: 28px; margin-bottom: 0; }

/* ============ FOOTER ============ */
.footer { background: var(--text); color: rgba(253, 249, 241, 0.7); padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; gap: 28px; }
.footer .logo b { color: var(--cream); }
.footer .logo small { color: rgba(253, 249, 241, 0.6); }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.footer-nav a { font-size: 15px; text-decoration: none; padding: 6px 0; color: rgba(253, 249, 241, 0.82); }
.footer-nav a:hover { color: #fff; }
.footer .social a { color: rgba(253, 249, 241, 0.8); box-shadow: inset 0 0 0 1px rgba(253, 249, 241, 0.2); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(253, 249, 241, 0.12); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.footer-bottom a { color: inherit; }

/* ============ WHATSAPP FLOTANTE ============ */
.wa-float {
    position: fixed; z-index: 250;
    right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
    width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--wa); color: #fff; font-size: 30px; text-decoration: none;
    box-shadow: 0 8px 24px rgba(31, 170, 89, 0.35);
    transition: transform 160ms var(--ease-out);
}
.wa-float:active { transform: scale(0.94); }

/* ============ APARICIONES ============ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ============================================
   TABLET
   ============================================ */
@media (min-width: 640px) {
    :root { --pad: 32px; }
    .tiles { grid-template-columns: 1fr 1fr; }
    .team-row { grid-auto-columns: 40%; }
    .news-grid { grid-template-columns: 1fr 1fr; }
    .news-feature { grid-column: 1 / -1; }
    .team-grid, .serv-grid, .info-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr 1fr; }
    .photo-pair, .gallery { grid-template-columns: 1fr 1fr; }
    .gallery .g-wide { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
    .do-grid { grid-template-columns: 1fr 1fr; }
    .community-qr { display: block; }
    .footer-nav { grid-template-columns: repeat(4, auto); justify-content: start; }
    .cta-band { padding: 48px 40px; }
}

/* ============================================
   ESCRITORIO
   ============================================ */
@media (min-width: 1100px) {
    :root { --header-h: 76px; }
    .nav { display: flex; }
    .menu-btn { display: none; }
    .wa-float { right: 28px; bottom: 28px; }
}

@media (min-width: 900px) {
    .section { padding: 96px 0; }
    .page-hero { padding: 72px 0 56px; }
    .section-head { margin-bottom: 44px; }

    .home-hero { padding: 72px 0 96px; }
    .home-hero-grid { grid-template-columns: 1.25fr 1fr; gap: 64px; }
    .home-hero-media { order: 0; width: 100%; max-width: 420px; justify-self: end; }
    .tiles { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .tile { flex-direction: column; padding: 28px 24px; }
    .team-row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; }
    .news-grid { grid-template-columns: 2fr 1fr 1fr; }
    .news-feature { grid-column: auto; }

    .team-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .serv-grid { gap: 24px; }
    .feature-band { grid-template-columns: 1fr auto; padding: 40px; }
    .info-grid { gap: 20px; }
    .info-card { padding: 32px; }

    .blog { grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: start; }
    .post { display: grid; grid-template-columns: 240px 1fr; }
    .post img { height: 100%; aspect-ratio: auto; }
    .sidebar { position: sticky; top: calc(var(--header-h) + 24px); }

    .sedes { grid-template-columns: 1fr 1fr; gap: 24px; }

    .contact-grid {
        grid-template-columns: 1fr 1.25fr; gap: 40px 56px;
        grid-template-areas: "quick form" "info form";
        align-items: start;
    }
    .form-card { padding: 36px; }

    .split { grid-template-columns: 1fr 1fr; gap: 56px; }
    .split.flip .split-media { order: 2; }
    .gallery { grid-template-columns: repeat(3, 1fr); }
    .gallery .g-wide { grid-column: span 2; aspect-ratio: auto; height: 100%; }
    .do-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .manifesto p { font-size: 26px; }

    .footer-grid { grid-template-columns: 1fr auto auto; gap: 48px; align-items: start; }
}

/* ============ MOVIMIENTO REDUCIDO ============ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { transform: none; transition: opacity 300ms ease; }
    .drawer { transition: visibility 0s, opacity 200ms ease; transform: none; opacity: 0; }
    .drawer.open { opacity: 1; }
    .tab-panel, .more .checklist { animation: none; }
    .btn:active, .tile:active, .tab:active, .quick-btn:active, .ig-box:active, .wa-float:active, .social a:active { transform: none; }
}