/* Aginco Mutual — rediseño editorial 2026 */
:root {
    --azul: #00448f;
    --verde: #a7c951;
    --verde-ink: #6d8a28;
    --cream: #f3efe4;
    --cream-2: #e9e2d2;
    --paper: #faf7f0;
    --ink: #12110e;
    --ink-soft: #3a382f;
    --night: #071226;
    --night-2: #0c1c38;
    --line: rgba(18, 17, 14, 0.12);
    --line-light: rgba(243, 239, 228, 0.16);
    --header-h: 88px;
    --radius: 20px;
    --radius-sm: 14px;
    --contenido: 1180px;
    --display: "Fraunces", "Times New Roman", serif;
    --ui: "Manrope", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--ui);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    overflow-x: hidden;
}

body.nav-abierto { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); text-decoration: none; }
ul { list-style: none; }

.wrap {
    width: min(var(--contenido), calc(100% - 40px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -56px;
    z-index: 200;
    background: var(--night);
    color: var(--cream);
    padding: 10px 14px;
}
.skip-link:focus { top: 12px; }

:focus-visible {
    outline: 2px solid var(--verde);
    outline-offset: 3px;
}

.page-transition {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    background: var(--night);
    transform: translateY(0);
    pointer-events: none;
}
.page-transition-brand {
    display: grid;
    justify-items: center;
    gap: 14px;
    color: var(--cream);
    opacity: 1;
    transform: translateY(0) scale(1);
}
.page-transition-icon {
    position: relative;
    display: block;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.05), 0 18px 50px rgba(0, 0, 0, 0.28);
}
.page-transition-icon::after {
    content: "";
    position: absolute;
    inset: -11px;
    border: 1px solid color-mix(in srgb, var(--verde) 55%, transparent);
    border-radius: 50%;
    animation: transition-ring 1.4s ease-in-out infinite;
}
.page-transition-icon img {
    position: absolute;
    top: 0;
    left: 0;
    height: 96px;
    width: auto;
    max-width: none;
}
.page-transition-name {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
}
body.page-in .page-transition {
    transform: translateY(-100%);
    transition: transform 0.55s cubic-bezier(.76, 0, .24, 1);
}
body.page-in .page-transition-brand {
    opacity: 0;
    transform: translateY(-16px) scale(0.94);
    transition: opacity 0.25s ease, transform 0.4s cubic-bezier(.22, 1, .36, 1);
}
body.page-out .page-transition {
    transform: translateY(0);
    transition: transform 0.38s cubic-bezier(.76, 0, .24, 1);
}
body.page-out .page-transition-brand {
    animation: transition-brand-in 0.42s cubic-bezier(.22, 1, .36, 1) 0.12s both;
}
@keyframes transition-brand-in {
    from { opacity: 0; transform: translateY(18px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes transition-ring {
    0%, 100% { transform: scale(0.96); opacity: 0.35; }
    50% { transform: scale(1.06); opacity: 0.8; }
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: auto;
    padding: 14px 0 0;
    background: transparent;
    pointer-events: none;
}
.header-shell {
    pointer-events: auto;
    width: min(1420px, calc(100% - 24px));
    background: color-mix(in srgb, var(--paper) 78%, transparent);
    backdrop-filter: blur(22px) saturate(1.18);
    -webkit-backdrop-filter: blur(22px) saturate(1.18);
    border: 1px solid color-mix(in srgb, var(--cream) 32%, transparent);
    border-radius: 999px;
    box-shadow:
        0 2px 4px rgba(7, 18, 38, 0.04),
        0 16px 40px rgba(7, 18, 38, 0.12);
    padding: 0 8px 0 16px;
}
.header-bar {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.brand img {
    height: 40px;
    width: auto;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
    flex-wrap: nowrap;
}
.nav-drawer-label { display: none; }
.main-nav > a {
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    white-space: nowrap;
    padding: 6px 8px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}
.main-nav > a:hover {
    color: var(--ink);
    background: color-mix(in srgb, var(--cream-2) 85%, transparent);
}
.main-nav > a.activo,
.main-nav > a[aria-current="page"] {
    color: var(--azul);
    background: color-mix(in srgb, var(--azul) 10%, var(--cream));
}
.nav-cta {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    padding-left: 6px;
    border-left: 1px solid var(--line);
    flex-shrink: 0;
}
.btn-farmacia,
.btn-contacto,
.btn,
.btn-solid,
.btn-ghost,
.formulario button,
.btn-enviar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    cursor: pointer;
    font-family: var(--ui);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    border-radius: 999px;
}
.btn-farmacia,
.btn-contacto {
    white-space: nowrap;
    flex-shrink: 0;
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.74rem;
}
.btn-farmacia {
    background: var(--verde);
    color: var(--ink);
}
.btn-contacto,
.btn-solid,
.formulario button,
.btn-enviar {
    background: var(--azul);
    color: #fff;
}
.btn-ghost {
    background: transparent;
    color: var(--cream);
    border: 1px solid color-mix(in srgb, var(--cream) 45%, transparent);
}
.btn-farmacia:hover,
.btn-contacto:hover,
.btn-solid:hover,
.formulario button:hover,
.btn-enviar:hover { filter: brightness(1.08); }

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 60;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    position: absolute;
    left: 11px;
    transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
}
.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-abierto .nav-toggle-bars { background: transparent; }
.nav-abierto .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-abierto .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 18, 38, 0.45);
    z-index: 40;
}

/* Type */
.kicker,
.slide-kicker,
.banda-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--azul);
    margin-bottom: 12px;
}
.kicker-light { color: var(--verde); }
h1, h2, .titulo, .hero-word {
    font-family: var(--display);
    font-weight: 650;
    letter-spacing: -0.04em;
    line-height: 0.95;
}
.titulo {
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
    margin-bottom: 0.6em;
}
.lead { color: var(--ink-soft); max-width: 42rem; }
.centro { text-align: center; }
.centro .lead { margin-inline: auto; }
.destacado { color: var(--azul); }

/* Home hero */
.hero-home {
    position: relative;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    background: var(--night);
    color: var(--cream);
}
.hero-home::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 140px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 18, 38, 0.42), transparent);
}
.hero-home-copy {
    padding: calc(var(--header-h) + clamp(16px, 4vh, 40px)) clamp(24px, 5vw, 72px) clamp(40px, 8vh, 96px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-home .kicker { color: var(--verde); }
.hero-word {
    display: block;
    font-size: clamp(4rem, 3rem + 8vw, 7.2rem);
    color: var(--cream);
    font-style: italic;
}
.hero-rotator {
    position: relative;
    min-height: 3.4em;
    margin: 22px 0 32px;
    font-size: clamp(1.15rem, 1rem + 0.8vw, 1.55rem);
    color: color-mix(in srgb, var(--cream) 78%, transparent);
    max-width: 22ch;
}
.hero-line {
    position: absolute;
    inset: 0 auto auto 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-line.activo {
    opacity: 1;
    transform: none;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-home-media {
    border-radius: 0;
    position: relative;
    overflow: hidden;
}
.hero-home-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 420px;
    border-radius: 0;
    filter: saturate(0.86) contrast(1.05);
}
.hero-home-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--night) 0%, transparent 28%),
        linear-gradient(180deg, transparent 70%, rgba(7, 18, 38, 0.45));
}
.hero-home-media figcaption {
    position: absolute;
    left: 24px;
    bottom: 22px;
    z-index: 1;
    font-family: var(--display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--cream);
}

.phrase-rail {
    overflow: hidden;
    background: var(--verde);
    color: var(--ink);
    border-block: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}
.phrase-track {
    display: flex;
    gap: 48px;
    width: max-content;
    padding: 14px 0;
    animation: rail 36s linear infinite;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
}
.phrase-track span { white-space: nowrap; }
.phrase-track span::after {
    content: " · ";
    margin-left: 48px;
    color: var(--azul);
}

.somos {
    padding: clamp(72px, 10vw, 128px) 0;
}
.somos-caja {
    width: min(820px, calc(100% - 40px));
    margin-inline: auto;
}
.somos-caja h2 {
    font-size: clamp(3rem, 2rem + 5vw, 5.6rem);
    margin-bottom: 24px;
}

.seccion { padding: clamp(64px, 8vw, 110px) 0; }
.seccion.gris,
.seccion.cream { background: var(--cream-2); }
.seccion.night {
    background: var(--night);
    color: var(--cream);
}
.seccion.night .titulo { color: var(--cream); }
.seccion.verde {
    background: var(--verde);
    color: var(--ink);
    padding: clamp(48px, 6vw, 80px) 0;
}
.seccion-head { margin-bottom: 36px; max-width: 28ch; }
.seccion-head.light .titulo { color: var(--cream); }

/* Bento */
.bento {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 280px 220px 240px;
    gap: 14px;
}
.bento-card {
    position: relative;
    overflow: hidden;
    background: var(--night);
    min-height: 200px;
    border-radius: var(--radius);
}
.bento-lg { grid-row: 1 / 3; }
.bento-wide { grid-column: 1 / -1; }
.bento-card a { display: block; height: 100%; color: inherit; }
.bento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    transition: transform 0.6s ease;
    filter: saturate(0.9);
}
.bento-card:hover img { transform: scale(1.04); }
.bento-card .card-body {
    position: absolute;
    inset: auto 0 0 0;
    padding: 22px 24px 24px;
    background: linear-gradient(180deg, transparent, rgba(7, 18, 38, 0.88));
    color: var(--cream);
}
.bento-card h3 {
    font-family: var(--display);
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
    letter-spacing: -0.03em;
}
.bento-card p { color: color-mix(in srgb, var(--cream) 78%, transparent); }

/* Editorial services */
.lista-editorial { display: grid; gap: 8px; }
.lista-editorial li {
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-light);
    overflow: hidden;
}
.lista-editorial a {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 22px 18px;
    color: var(--cream);
}
.lista-editorial .idx {
    font-family: var(--display);
    font-style: italic;
    color: var(--verde);
    font-size: 1.4rem;
}
.lista-editorial strong {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
    font-weight: 650;
    letter-spacing: -0.03em;
}
.lista-editorial em {
    font-style: normal;
    color: color-mix(in srgb, var(--cream) 62%, transparent);
    font-size: 0.95rem;
}
.lista-editorial a:hover .lista-arrow { transform: translateX(6px); color: var(--verde); }
.lista-arrow { transition: transform 0.25s ease; font-size: 1.3rem; }

/* Page hero */
.page-hero {
    position: relative;
    background: var(--night);
    color: var(--cream);
    padding: calc(var(--header-h) + clamp(28px, 5vw, 56px)) 0 clamp(48px, 8vw, 96px);
}
.page-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: end;
}
.page-hero h1 {
    font-size: clamp(3.2rem, 2rem + 5vw, 6.2rem);
    font-style: italic;
    color: var(--cream);
    margin-bottom: 18px;
}
.page-hero .lead {
    color: color-mix(in srgb, var(--cream) 78%, transparent);
    font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem);
}
.page-hero-media {
    overflow: hidden;
    min-height: 280px;
    border-radius: var(--radius);
}
.page-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 280px;
    border-radius: var(--radius);
    filter: saturate(0.85);
}

.page-intro { max-width: 46rem; }
.page-intro.centro { margin-inline: auto; }

/* Cards / grids */
.tarjeta {
    background: var(--paper);
    padding: 28px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.tarjeta h3 {
    font-family: var(--display);
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}
.grid-2, .grid-3, .grid-4 {
    display: grid;
    gap: 16px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sucursales-grid { align-items: stretch; }
.sucursales-grid .tarjeta { overflow-wrap: anywhere; min-width: 0; }

.check { margin-top: 12px; }
.check li {
    padding: 8px 0 8px 22px;
    position: relative;
    border-bottom: 1px solid var(--line);
}
.check li::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--verde);
    position: absolute;
    left: 0;
    top: 15px;
}

.img-frame {
    border-radius: var(--radius);
    overflow: hidden;
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 280px;
    filter: saturate(0.9);
}

/* Tabs */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 16px;
}
.tabs button {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-family: var(--ui);
    font-weight: 700;
    cursor: pointer;
    color: var(--ink);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.tabs button.activo {
    background: var(--azul);
    color: #fff;
    border-color: var(--azul);
}
.tab-panel { display: none; }
.tab-panel.activo {
    display: block;
    animation: tab-in 0.45s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes tab-in {
    from { opacity: 0; transform: translateY(12px); filter: blur(3px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Accordion */
.accordion { margin-top: 28px; display: grid; gap: 8px; }
.accordion button {
    width: 100%;
    min-height: 56px;
    text-align: left;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--display);
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    cursor: pointer;
    padding: 14px 36px 14px 18px;
    position: relative;
    transition: border-color 0.2s ease;
}
.accordion button:hover { border-color: color-mix(in srgb, var(--azul) 25%, transparent); }
.accordion button::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--azul);
}
.accordion button[aria-expanded="true"]::after { content: "–"; }
.accordion .panel {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 18px;
    background: var(--paper);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    transform: translateY(-6px);
    transition:
        max-height 0.48s cubic-bezier(.22, 1, .36, 1),
        opacity 0.3s ease,
        transform 0.4s cubic-bezier(.22, 1, .36, 1),
        padding 0.4s ease,
        border-color 0.4s ease;
}
.accordion .panel.abierto {
    opacity: 1;
    padding: 16px 18px 20px;
    border-color: var(--line);
    transform: translateY(0);
}

/* Forms */
.form-shell {
    border-radius: var(--radius);
    background: var(--paper);
    padding: 28px 24px;
    border: 1px solid var(--line);
    margin-top: 22px;
}
.formulario,
.form-legal { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.formulario input,
.formulario textarea,
.formulario select,
.campo,
.captcha-fila input {
    width: 100%;
    min-height: 48px;
    border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
    border-radius: var(--radius-sm);
    background: var(--cream);
    font: inherit;
    padding: 12px 14px;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.formulario input:focus,
.formulario textarea:focus,
.formulario select:focus,
.campo:focus,
.captcha-fila input:focus {
    outline: none;
    border-color: var(--azul);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--azul) 12%, transparent);
}
.formulario textarea { min-height: 120px; resize: vertical; }
.fila { display: grid; gap: 12px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.cols-calle { grid-template-columns: 2fr 1fr 1fr 1fr; }
.captcha-fila {
    display: flex;
    align-items: center;
    gap: 10px;
}
.captcha-fila input { max-width: 90px; }
.check-linea {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}
.form-acciones {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.adjunto {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 700;
    cursor: pointer;
}
.aviso {
    background: color-mix(in srgb, var(--verde) 28%, var(--paper));
    padding: 10px 12px;
    margin-top: 12px;
    border-radius: var(--radius-sm);
}
.aviso.error { background: #f3d5d0; }

.promo {
    font-family: var(--display);
    font-size: clamp(2.4rem, 2rem + 2vw, 3.6rem);
    letter-spacing: -0.04em;
    color: var(--azul);
    line-height: 0.9;
    margin-bottom: 8px;
}
.marquee {
    overflow: hidden;
    margin-top: 22px;
    border-block: 1px solid var(--line);
    padding: 12px 0;
}
.marquee span {
    display: inline-block;
    white-space: nowrap;
    animation: rail 28s linear infinite;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.stores {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 22px;
}
.stores img { height: 44px; width: auto; }

/* Footer */
.site-footer {
    background: var(--night);
    color: color-mix(in srgb, var(--cream) 78%, transparent);
    font-size: 0.92rem;
    line-height: 1.55;
}
.footer-inner {
    padding: 56px 0 40px;
    display: grid;
    gap: 40px;
}
.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px 56px;
    align-items: start;
}
.footer-logo {
    display: block;
}
.footer-logo img {
    height: 52px;
    width: auto;
}
.footer-address {
    margin-top: 20px;
    font-style: normal;
}
.footer-address strong {
    display: block;
    color: var(--cream);
    font-weight: 600;
    margin-bottom: 6px;
}
.footer-heading {
    font-family: var(--ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--verde);
    margin-bottom: 16px;
}
.site-footer a {
    color: color-mix(in srgb, var(--cream) 88%, transparent);
    transition: color 0.2s ease;
}
.site-footer a:hover { color: var(--cream); }
.footer-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
}
.footer-sucursales {
    padding: 32px 28px 28px;
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--azul) 18%, var(--night-2)), var(--night-2));
    border: 1px solid color-mix(in srgb, var(--verde) 32%, transparent);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}
.footer-sucursales-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.footer-sucursales-intro .footer-heading { margin-bottom: 8px; }
.footer-sucursales-title {
    font-family: var(--ui);
    font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--cream);
    line-height: 1.15;
}
.footer-sucursales-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--verde) !important;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--verde) 45%, transparent);
    background: color-mix(in srgb, var(--verde) 12%, transparent);
}
.footer-sucursales-link:hover {
    background: color-mix(in srgb, var(--verde) 22%, transparent) !important;
}
.footer-sucursales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.footer-sucursal {
    padding: 18px 18px 16px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--cream) 7%, var(--night));
    border: 1px solid color-mix(in srgb, var(--verde) 22%, transparent);
    border-left: 4px solid var(--verde);
    min-width: 0;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.footer-sucursal:hover {
    border-color: color-mix(in srgb, var(--verde) 45%, transparent);
    transform: translateY(-2px);
}
.footer-sucursal-nombre {
    display: block;
    color: var(--cream);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
    margin-bottom: 6px;
}
.footer-sucursal-dir,
.footer-sucursal-hora {
    display: block;
    font-size: 0.82rem;
    color: color-mix(in srgb, var(--cream) 62%, transparent);
    overflow-wrap: anywhere;
}
.footer-sucursal-hora { margin-top: 6px; }
.footer-sucursal-tel {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--verde) !important;
}
.footer-sucursal-tel:hover { color: var(--verde) !important; }
.footer-bottom {
    border-top: 1px solid var(--line-light);
    background: color-mix(in srgb, var(--night-2) 60%, var(--night));
}
.footer-bottom-inner {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    flex-wrap: wrap;
}
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 0.82rem;
}
.footer-badges {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}
.footer-badge {
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.footer-badge img {
    height: auto;
    max-height: 44px;
    width: auto;
    display: block;
    border-radius: var(--radius-sm);
}
.footer-copy {
    width: 100%;
    font-size: 0.78rem;
    color: color-mix(in srgb, var(--cream) 50%, transparent);
    margin-top: 4px;
}

.mt-s { margin-top: 10px; }
.mt-m { margin-top: 20px; }
.mt-l { margin-top: 32px; }

.reveal {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    filter: blur(5px);
    transition:
        opacity 0.72s cubic-bezier(.22, 1, .36, 1),
        transform 0.72s cubic-bezier(.22, 1, .36, 1),
        filter 0.72s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
.reveal.reveal-scale { transform: translate3d(0, 22px, 0) scale(0.975); }
.reveal.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

@keyframes rail {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 1100px) {
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(420px, 100%);
        height: 100dvh;
        background: var(--cream);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 24px 32px;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.32s ease;
        z-index: 45;
        overflow: auto;
    }
    .main-nav.abierto { transform: none; }
    .nav-drawer-label {
        display: block;
        font-size: 0.72rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--azul);
        margin-bottom: 8px;
    }
    .header-shell {
        border-radius: 999px;
        padding: 0 8px 0 12px;
        width: min(var(--contenido), calc(100% - 24px));
    }
    .main-nav > a {
        min-height: 44px;
        display: flex;
        align-items: center;
        font-size: 1.05rem;
        border-radius: var(--radius-sm);
        color: var(--ink-soft);
    }
    .main-nav > a:hover,
    .main-nav > a.activo,
    .main-nav > a[aria-current="page"] {
        color: var(--azul);
        background: color-mix(in srgb, var(--azul) 10%, var(--cream));
    }
    .nav-cta {
        flex-direction: column;
        margin: 20px 0 0;
        align-items: stretch;
    }
    .hero-home,
    .page-hero-grid,
    .bento,
    .grid-2,
    .grid-3,
    .grid-4,
    .footer-main,
    .footer-nav ul,
    .cols-2,
    .cols-3,
    .cols-calle {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .bento-lg, .bento-wide { grid-column: auto; grid-row: auto; }
    .bento { grid-template-rows: none; }
    .bento-card { min-height: 240px; }
    .hero-home-media { min-height: 42vh; }
    .form-acciones { flex-direction: column; align-items: stretch; }
}


/* Sucursales página contacto */
.sucursales-page-head {
    max-width: 42rem;
    margin-bottom: 32px;
}
.sucursales-grid .tarjeta {
    border-left: 4px solid var(--verde);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.sucursales-grid .tarjeta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(7, 18, 38, 0.1);
    border-color: color-mix(in srgb, var(--verde) 35%, var(--line));
}
.sucursales-grid .tarjeta h3 {
    font-family: var(--ui);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--azul);
    letter-spacing: -0.02em;
}

/* Hero a pantalla completa, header encima */
.hero-home {
    gap: 0;
    padding-right: 0;
}
.hero-home-media {
    margin: 0;
    align-self: stretch;
    min-height: 0;
    max-height: none;
    height: 100%;
    border-radius: 0;
}
.hero-home-media img {
    min-height: 360px;
    border-radius: 0;
}

/* Formularios extra */
.tarjeta.form-shell {
    padding: 28px 26px;
}
.adjunto {
    padding: 10px 16px;
    border: 1px dashed color-mix(in srgb, var(--ink) 18%, transparent);
    border-radius: var(--radius-sm);
    background: var(--cream);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.adjunto:hover {
    border-color: var(--azul);
    background: color-mix(in srgb, var(--azul) 6%, var(--cream));
}
.adjunto input[type="file"] {
    max-width: 100%;
    font-size: 0.85rem;
}
.check-linea {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--cream);
}

/* Header refinado */
.btn-farmacia,
.btn-contacto {
    box-shadow: 0 4px 14px rgba(7, 18, 38, 0.08);
}
.footer-nav a {
    display: inline-block;
    padding: 4px 0;
}
.footer-nav a:hover {
    color: var(--verde) !important;
}

@media (max-width: 1240px) {
    .main-nav > a {
        font-size: 0.72rem;
        padding: 6px 6px;
    }
    .btn-farmacia,
    .btn-contacto {
        font-size: 0.7rem;
        padding: 0 10px;
        min-height: 36px;
    }
}

@media (max-width: 980px) {
    .hero-home {
        padding-right: 0;
    }
    .hero-home-media {
        margin: 0;
        max-height: none;
        border-radius: 0;
    }
    .hero-home-media img {
        border-radius: 0;
        min-height: 42vh;
    }
    .footer-sucursales {
        padding: 24px 18px 20px;
    }
    .footer-sucursales-link {
        width: 100%;
        text-align: center;
    }
}


/* Movimiento y microinteracciones 2026 */
.site-header {
    transition: padding 0.35s cubic-bezier(.22, 1, .36, 1);
}
.header-shell {
    transition:
        background 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}
.site-header.is-scrolled {
    padding-top: 8px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}
.site-header.is-scrolled .header-shell {
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    border-color: color-mix(in srgb, var(--ink) 8%, transparent);
    box-shadow: 0 14px 38px rgba(7, 18, 38, 0.13);
}

.brand img {
    transition: transform 0.45s cubic-bezier(.22, 1, .36, 1);
}
.brand:hover img { transform: scale(1.035); }

.btn,
.btn-farmacia,
.btn-contacto,
.btn-enviar,
.formulario button {
    transition:
        transform 0.25s cubic-bezier(.22, 1, .36, 1),
        box-shadow 0.25s ease,
        filter 0.25s ease;
}
.btn:hover,
.btn-farmacia:hover,
.btn-contacto:hover,
.btn-enviar:hover,
.formulario button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(7, 18, 38, 0.16);
}
.btn:active,
.btn-farmacia:active,
.btn-contacto:active,
.btn-enviar:active,
.formulario button:active { transform: translateY(0) scale(0.98); }

.motion-ready .hero-home-copy .kicker,
.motion-ready .hero-home-copy h1,
.motion-ready .hero-home-copy .hero-rotator,
.motion-ready .hero-home-copy .hero-actions {
    animation: hero-rise 0.85s cubic-bezier(.22, 1, .36, 1) both;
}
.motion-ready .hero-home-copy h1 { animation-delay: 80ms; }
.motion-ready .hero-home-copy .hero-rotator { animation-delay: 160ms; }
.motion-ready .hero-home-copy .hero-actions { animation-delay: 240ms; }
.motion-ready .hero-home-media {
    animation: hero-media-in 1s cubic-bezier(.22, 1, .36, 1) 100ms both;
}
.motion-ready .page-hero-copy {
    animation: hero-rise 0.85s cubic-bezier(.22, 1, .36, 1) both;
}
.motion-ready .page-hero-media {
    animation: hero-media-in 0.95s cubic-bezier(.22, 1, .36, 1) 100ms both;
}

.motion-card { isolation: isolate; }
.motion-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(260px circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(255,255,255,.16), transparent 62%);
    transition: opacity 0.35s ease;
}
.motion-card:hover::before { opacity: 1; }
.tarjeta,
.footer-sucursal {
    position: relative;
    transition:
        transform 0.3s cubic-bezier(.22, 1, .36, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}
.tarjeta:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(7, 18, 38, 0.1); }
.bento-card { transition: transform 0.35s cubic-bezier(.22, 1, .36, 1), box-shadow 0.35s ease; }
.bento-card:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(7, 18, 38, 0.2); }

.footer-sucursales-link,
.footer-nav a,
.footer-legal a {
    transition: color 0.22s ease, transform 0.22s ease, background 0.22s ease;
}
.footer-sucursales-link:hover { transform: translateY(-2px); }
.footer-nav a:hover,
.footer-legal a:hover { transform: translateX(3px); }

@keyframes hero-rise {
    from { opacity: 0; transform: translate3d(0, 30px, 0); filter: blur(6px); }
    to { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
}
@keyframes hero-media-in {
    from { opacity: 0; transform: translate3d(24px, 0, 0) scale(0.975); filter: blur(8px); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}


/* Fotografía viva y sucursales estilo Apple */
.hero-home-media,
.page-hero-media {
    box-shadow: 0 24px 70px rgba(7, 18, 38, 0.2);
}
.hero-home-media img,
.page-hero-media img {
    transform: scale(1.025);
    animation: photo-float 14s ease-in-out infinite alternate;
    will-change: transform;
}
.hero-home-media:hover img,
.page-hero-media:hover img {
    animation-play-state: paused;
    transform: scale(1.075) translate3d(-0.4%, -0.3%, 0);
    transition: transform 1.2s cubic-bezier(.22, 1, .36, 1);
}
@keyframes photo-float {
    0% { transform: scale(1.025) translate3d(-0.5%, 0, 0); }
    50% { transform: scale(1.06) translate3d(0.35%, -0.45%, 0); }
    100% { transform: scale(1.085) translate3d(-0.2%, 0.35%, 0); }
}

.sucursales-grid {
    gap: 18px;
}
.sucursales-grid .tarjeta {
    padding: 26px;
    border: 1px solid rgba(18, 17, 14, 0.075);
    border-left-width: 1px;
    border-radius: 26px;
    background: color-mix(in srgb, #fff 78%, var(--paper));
    box-shadow:
        0 1px 2px rgba(7, 18, 38, 0.025),
        0 12px 32px rgba(7, 18, 38, 0.055),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px) saturate(1.12);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
}
.sucursales-grid .tarjeta:hover {
    transform: translateY(-5px) scale(1.008);
    border-color: rgba(18, 17, 14, 0.1);
    box-shadow:
        0 2px 4px rgba(7, 18, 38, 0.035),
        0 22px 48px rgba(7, 18, 38, 0.09),
        inset 0 1px 0 #fff;
}
.sucursales-grid .tarjeta h3 {
    color: var(--ink);
    font-size: 1.12rem;
    letter-spacing: -0.035em;
    margin-bottom: 12px;
}
.sucursales-grid .tarjeta p {
    color: color-mix(in srgb, var(--ink-soft) 78%, transparent);
    font-size: 0.9rem;
}
.sucursales-grid .tarjeta a {
    color: var(--azul);
    font-weight: 650;
}

.footer-sucursales {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 30px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(22px) saturate(1.08);
    -webkit-backdrop-filter: blur(22px) saturate(1.08);
}
.footer-sucursales-link {
    color: var(--cream) !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.footer-sucursales-link:hover {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12) !important;
}
.footer-sucursales-grid {
    gap: 14px;
}
.footer-sucursal {
    padding: 21px 20px 19px;
    border: 1px solid rgba(255, 255, 255, 0.095);
    border-left-width: 1px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
}
.footer-sucursal:hover {
    transform: translateY(-4px) scale(1.008);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.footer-sucursal-nombre {
    font-size: 1.02rem;
    letter-spacing: -0.025em;
    margin-bottom: 9px;
}
.footer-sucursal-dir,
.footer-sucursal-hora {
    color: rgba(243, 239, 228, 0.62);
    line-height: 1.5;
}
.footer-sucursal-tel,
.footer-sucursal-tel:hover {
    color: #a8ceff !important;
}


/* Carga de archivos y controles de seguridad */
.campo-trampa {
    position: fixed !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
.turnstile-wrap {
    min-height: 65px;
    margin: 6px 0;
    display: flex;
    align-items: center;
}
.drop-zone {
    position: relative;
    flex: 1 1 520px;
    min-height: 132px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1.5px dashed color-mix(in srgb, var(--azul) 28%, transparent);
    border-radius: 22px;
    background: color-mix(in srgb, var(--azul) 3%, var(--paper));
    cursor: pointer;
    overflow: hidden;
    transition: border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.drop-zone:hover,
.drop-zone.is-dragging {
    border-color: var(--azul);
    background: color-mix(in srgb, var(--azul) 7%, var(--paper));
    box-shadow: 0 12px 32px rgba(0, 68, 143, 0.09);
    transform: translateY(-2px);
}
.drop-zone.is-dragging { transform: scale(1.01); }
.drop-zone-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: var(--azul);
    font-size: 1.5rem;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(0, 68, 143, 0.2);
}
.drop-zone-copy { display: grid; gap: 3px; min-width: 0; }
.drop-zone-copy strong { color: var(--ink); font-size: .98rem; }
.drop-zone-copy small { color: var(--ink-soft); font-weight: 500; }
.drop-zone-name {
    margin-top: 6px;
    color: var(--azul);
    font-size: .82rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.drop-zone.has-file {
    border-style: solid;
    border-color: color-mix(in srgb, var(--verde) 70%, var(--line));
    background: color-mix(in srgb, var(--verde) 10%, var(--paper));
}
.drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
@media (max-width: 640px) {
    .drop-zone { align-items: flex-start; padding: 18px; }
    .drop-zone-icon { flex-basis: 42px; width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .page-transition,
    .page-transition-brand,
    .page-transition-icon::after,
    .reveal,
    .hero-line,
    .bento-card img,
    .lista-arrow,
    .main-nav,
    .site-header,
    .header-shell,
    .brand img,
    .motion-card::before,
    .btn,
    .btn-farmacia,
    .btn-contacto,
    .btn-enviar,
    .formulario button,
    .hero-home-copy *,
    .hero-home-media,
    .page-hero-copy,
    .page-hero-media,
    .hero-home-media img,
    .page-hero-media img,
    .tab-panel.activo,
    .accordion .panel { transition: none !important; animation: none !important; }
    .phrase-track, .marquee span { animation: none; }
    .reveal { opacity: 1; transform: none; filter: none; }
    .hero-home-media img,
    .page-hero-media img { transform: none !important; }
}
