/*
Theme Name: Medilevel
Theme URI: https://medilevel.web-de-pruebas.com
Author: Medilevel Dev
Description: Tema corporativo a medida para Medilevel S.A. — Distribuidor de material médico-quirúrgico
Version: 1.0.0
Text Domain: medilevel
*/

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-primary: #0D9488;
    --color-primary-dark: #0F766E;
    --color-primary-light: #CCFBF1;
    --color-secondary: #1E293B;
    --color-accent: #F59E0B;
    --color-text: #334155;
    --color-text-light: #64748B;
    --color-heading: #0F172A;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8FAFC;
    --color-bg-dark: #0F172A;
    --color-border: #E2E8F0;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --transition: 0.2s ease;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

/* Hide blinking caret/insertion point on non-editable elements */
* { caret-color: transparent; }
input, textarea, [contenteditable="true"], [contenteditable=""] { caret-color: auto; }

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* ========== UTILITIES ========== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--color-bg-dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__label {
    text-transform: uppercase;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}
.section__title { margin-bottom: 1rem; }
.section__desc { color: var(--color-text-light); max-width: 640px; margin-bottom: 2.5rem; }
.section__header { text-align: center; }
.section__header .section__desc { margin-left: auto; margin-right: auto; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
}
.btn--primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn--primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--white { background: #fff; color: var(--color-secondary); border-color: #fff; }
.btn--white:hover { background: var(--color-bg-alt); }

.grid { display: grid; gap: 2rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .section { padding: 3rem 0; }
}

/* ========== CARDS ========== */
.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--color-primary);
}
.card__icon svg { width: 24px; height: 24px; }
.card__title { font-size: 1.125rem; margin-bottom: 0.5rem; }
.card__text { color: var(--color-text-light); font-size: 0.9375rem; }

/* ========== HEADER ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}
.header__topbar {
    background: var(--color-bg-dark);
    color: #94A3B8;
    font-size: 0.8125rem;
    padding: 0.25rem 0;
}
.header__topbar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}
.header__topbar a { color: #94A3B8; transition: color 0.2s; }
.header__topbar a:hover { color: #fff; }
.header__topbar-item { display: flex; align-items: center; gap: 0.375rem; }
.header__topbar-item svg { width: 14px; height: 14px; }

@media (max-width: 720px) {
    .header__topbar { padding: 0; }
    .header__topbar .container {
        justify-content: space-around;
        gap: 0;
        padding: 0;
    }
    .header__topbar-item {
        flex-direction: column;
        gap: 0.15rem;
        padding: 0.5rem 0.5rem;
        flex: 1;
        justify-content: center;
        font-size: 0.7rem;
        text-align: center;
        border-right: 1px solid rgba(255,255,255,0.08);
        color: #cbd5e1 !important;
    }
    .header__topbar-item:last-child { border-right: none; }
    .header__topbar-item svg { width: 18px; height: 18px; color: var(--color-primary, #10b981); }
    .header__topbar-item:active { background: rgba(255,255,255,0.04); }
}
@media (max-width: 420px) {
    .header__topbar-item { font-size: 0; gap: 0; padding: 0.625rem 0.25rem; }
    .header__topbar-item svg { width: 20px; height: 20px; }
}

.header__main {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    gap: 1rem;
}
.header__logo { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.header__logo img, .header__logo .header__logo-img { height: 70px; width: auto; max-width: 400px; object-fit: contain; }
.header__logo a { display: flex; align-items: center; }
.header__logo-text {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-heading);
}
.header__logo-text span { color: var(--color-primary); }

.header__nav { display: flex; align-items: center; flex-shrink: 0; margin-left: auto; }
.header__nav ul { display: flex; flex-direction: row; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.header__nav li { list-style: none; flex-shrink: 0; }
.header__nav a {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius);
    transition: all var(--transition);
    display: block;
    white-space: nowrap;
}
.header__nav a:hover,
.header__nav .current-menu-item a,
.header__nav a.current { color: var(--color-primary); background: var(--color-primary-light); }
.header__cta {
    margin-left: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 0;
    box-shadow: 0 4px 12px -2px rgba(13, 148, 136, 0.45);
    animation: ctaPulse 2.8s ease-in-out infinite;
}
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 4px 12px -2px rgba(13, 148, 136, 0.45); }
    50%      { box-shadow: 0 6px 18px -2px rgba(13, 148, 136, 0.7); }
}
.header__cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,0.55) 50%, rgba(255,255,255,0) 70%, transparent 100%);
    transform: skewX(-20deg);
    pointer-events: none;
    z-index: 1;
}
.header__cta > * { position: relative; z-index: 2; }
.header__cta:hover {
    box-shadow: 0 6px 20px -2px rgba(13, 148, 136, 0.6);
    transform: translateY(-1px);
}
.header__cta:hover::before {
    animation: ctaShineFast 0.7s ease-out;
}
@keyframes ctaShineFast {
    0%   { left: -120%; }
    100% { left: 130%; }
}

.header__mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-heading);
    padding: 0.5rem;
}
.header__mobile-toggle svg { width: 24px; height: 24px; }

@media (max-width: 1024px) {
    .header__nav { display: none; }
    .header__cta { display: none; }
    .header__mobile-toggle { display: none; }
}

/* ========== MOBILE BOTTOM NAV ========== */
.mobile-bottom-nav { display: none; }
@media (max-width: 1024px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9997;
        background: #fff;
        border-top: 1px solid var(--color-border, #e5e7eb);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
        padding: 0.5rem 0.25rem calc(0.5rem + env(safe-area-inset-bottom, 0));
        justify-content: space-around;
        align-items: stretch;
    }
    .mobile-bottom-nav__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        padding: 0.5rem 0.25rem;
        color: var(--color-text-muted, #64748b);
        text-decoration: none;
        font-size: 0.7rem;
        font-weight: 500;
        border-radius: 10px;
        transition: color 0.15s, background 0.15s;
        min-width: 0;
    }
    .mobile-bottom-nav__item:hover,
    .mobile-bottom-nav__item:active { color: var(--color-primary, #10b981); background: var(--color-primary-light, #ecfdf5); }
    .mobile-bottom-nav__item.is-active { color: var(--color-primary, #10b981); }
    .mobile-bottom-nav__item.is-active .mobile-bottom-nav__icon { transform: translateY(-1px); }
    .mobile-bottom-nav__icon { display: flex; align-items: center; justify-content: center; transition: transform 0.15s; }
    .mobile-bottom-nav__icon svg { width: 22px; height: 22px; }
    .mobile-bottom-nav__label {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    /* Prevent content being hidden behind nav */
    body { padding-bottom: 72px; }
    .cookie-toggle { bottom: calc(72px + 1.75rem); }
    .cookie-banner { bottom: calc(72px + 0.75rem); }
}
@media (max-width: 420px) {
    .mobile-bottom-nav__label { font-size: 0.625rem; }
    .mobile-bottom-nav__item { padding: 0.5rem 0.15rem; }
}

/* ========== FOOTER PREMIUM ========== */
.site-footer {
    background: var(--color-bg-dark);
    background-image: radial-gradient(ellipse at top right, rgba(13, 148, 136, 0.08) 0%, transparent 60%);
    color: #94A3B8;
    padding: 4rem 0 0;
    margin-top: 4rem;
    position: relative;
}

/* CTA STRIP arriba del footer */
.footer__cta-strip {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, rgba(13, 148, 136, 0.05) 100%);
    border: 1px solid rgba(13, 148, 136, 0.3);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}
.footer__cta-strip-text h3 { color: #fff; font-size: 1.375rem; margin: 0 0 0.375rem 0; }
.footer__cta-strip-text p { color: rgba(255,255,255,0.7); font-size: 0.9375rem; margin: 0; }
.footer__cta-strip-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer__cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.0625rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer__cta-phone:hover { color: #5EEAD4; }
.footer__cta-phone svg { color: var(--color-primary); }
@media (max-width: 768px) {
    .footer__cta-strip { padding: 1.5rem; flex-direction: column; align-items: flex-start; text-align: left; }
}

/* MAIN GRID — 4 columnas */
.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
/* BRAND COLUMN */
.footer__logo { display: inline-block; margin-bottom: 1.25rem; }
.footer__logo img { height: 80px; width: auto; max-width: 220px; background: #fff; border-radius: 8px; padding: 0.5rem 0.75rem; }
.footer__logo-text { font-size: 1.5rem; font-weight: 700; color: #fff; }
.footer__logo-text span { color: var(--color-primary); }
.footer__tagline {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.65);
    margin-bottom: 1.5rem;
    max-width: 320px;
}
.footer__contact { list-style: none; padding: 0; margin: 0 0 1.5rem 0; }
.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
}
.footer__contact-icon {
    width: 28px;
    height: 28px;
    background: rgba(13, 148, 136, 0.15);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}
.footer__contact a { color: rgba(255,255,255,0.85); transition: color 0.2s ease; }
.footer__contact a:hover { color: #5EEAD4; }

/* SOCIAL */
.footer__social { display: flex; gap: 0.5rem; }
.footer__social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    transition: all 0.2s ease;
}
.footer__social a:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* HEADINGS Y LINKS COLUMNAS */
.footer__heading {
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.25rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem;
}
.footer__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--color-primary);
}
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: 0.625rem; }
.footer__links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    line-height: 1.4;
}
.footer__links a::before {
    content: '›';
    color: var(--color-primary);
    font-weight: 700;
    opacity: 0;
    margin-right: -0.25rem;
    transition: all 0.2s ease;
}
.footer__links a:hover { color: #fff; padding-left: 0.25rem; }
.footer__links a:hover::before { opacity: 1; margin-right: 0; }

/* BADGES STRIP */
.footer__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    justify-content: center;
}
.footer__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    padding: 0.5rem 1.125rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    transition: all 0.2s ease;
}
.footer__badge:hover { border-color: var(--color-primary); background: rgba(13, 148, 136, 0.1); }
.footer__badge svg { color: var(--color-primary); }

/* BOTTOM BAR */
.footer__bottom {
    padding: 1.5rem 0;
    padding-right: 80px;
    font-size: 0.8125rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
    gap: 1rem;
}
.footer__bottom-meta { display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.footer__bottom-meta a { color: rgba(255,255,255,0.6); transition: color 0.2s ease; }
.footer__bottom-meta a:hover { color: #fff; }
.footer__becas-card {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(16,185,129,0.12) 0%, rgba(14,165,233,0.08) 100%);
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.footer__becas-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -30%;
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(16,185,129,0.25) 0%, transparent 70%);
    pointer-events: none;
}
.footer__becas-card-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary, #10b981);
    margin-bottom: 0.5rem;
}
.footer__becas-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.4rem;
}
.footer__becas-card-text {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    margin: 0 0 0.9rem;
}
.footer__becas-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--color-primary, #10b981);
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.footer__becas-card-btn:hover {
    background: var(--color-primary-dark, #059669);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16,185,129,0.35);
}
.footer__becas-card-btn svg { width: 14px; height: 14px; }
.footer__sep { color: rgba(255,255,255,0.3); }

@media (max-width: 1024px) {
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
    .footer__grid { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
    .footer__bottom { flex-direction: column; text-align: center; padding-right: 0; }
    .footer__badges { padding: 1.5rem 0; }
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, #E0F2FE 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.hero .container { display: flex; align-items: center; gap: 4rem; }
.hero__content { flex: 1; }
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}
.hero__title { font-size: 3rem; line-height: 1.1; margin-bottom: 1.5rem; }
.hero__title span { color: var(--color-primary); }
.hero__text { font-size: 1.125rem; color: var(--color-text-light); margin-bottom: 2rem; max-width: 540px; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__image { flex: 1; position: relative; }
.hero__image img { border-radius: 12px; box-shadow: var(--shadow-lg); width: 100%; }
.hero__image-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-primary);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-md);
}
.hero__image-badge-number { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1; }
.hero__image-badge-text { display: block; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.125rem; }
.hero__stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}
.hero__stat-number { font-size: 2rem; font-weight: 800; color: var(--color-heading); }
.hero__stat-label { font-size: 0.8125rem; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.05em; }

@media (max-width: 1024px) {
    .hero .container { flex-direction: column; text-align: center; }
    .hero__text { margin-left: auto; margin-right: auto; }
    .hero__actions { justify-content: center; }
    .hero__stats { justify-content: center; }
    .hero__title { font-size: 2.25rem; }
}

/* ========== ABOUT SECTION ========== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about__image { position: relative; }
.about__image-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about__image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__year-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: var(--color-primary);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.about__year-number { font-size: 2rem; font-weight: 800; line-height: 1; }
.about__text { color: var(--color-text); line-height: 1.7; margin-bottom: 2rem; }
.about__features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about__feature {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--color-heading);
    font-weight: 500;
    font-size: 0.9375rem;
}
.about__feature svg { color: var(--color-primary); flex-shrink: 0; }
@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about__features { grid-template-columns: 1fr; }
}

/* ========== PRODUCT CARDS ========== */
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-card__image {
    height: 260px;
    background: linear-gradient(135deg, #E0F2FE 0%, var(--color-bg-alt) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin: 0.75rem 0.75rem 0;
    border-radius: 14px;
}
.product-card__image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
    border-radius: 10px;
}
.product-card:hover .product-card__image img { transform: scale(1.04); }
.product-card__cat {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    box-shadow: 0 4px 10px -2px rgba(13, 148, 136, 0.5);
    backdrop-filter: blur(4px);
}
.product-card__body { padding: 1.5rem; }
.product-card__title { font-size: 1.125rem; margin-bottom: 0.5rem; }
.product-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    margin-top: 0.75rem;
}
.product-card__link:hover { gap: 0.625rem; }

/* ========== CONTACT LAYOUT ========== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 768px) {
    .contact-layout { grid-template-columns: 1fr; }
}

/* ========== SECTION NOTE ========== */
.section__note {
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.8125rem;
    font-style: italic;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}
.section__note a { color: var(--color-primary); font-weight: 500; }

/* ========== BLOG PLACEHOLDER ========== */
.blog-card__placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.375rem 1rem;
    border-radius: 100px;
}

/* ========== CTA BANNER ========== */
.cta-banner { background: var(--color-primary); color: #fff; padding: 3rem 0; }
.cta-banner .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-banner h2 { color: #fff; font-size: 1.5rem; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-top: 0.25rem; }
.cta-banner__actions { display: flex; gap: 1rem; flex-shrink: 0; }
@media (max-width: 768px) {
    .cta-banner .container { flex-direction: column; text-align: center; }
}

/* ========== BRANDS / PROVEEDORES GRID ========== */
.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
.brands-grid .brand-item { width: calc(25% - 1.2rem); }
.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    transition: all var(--transition);
    text-align: center;
    min-height: 120px;
}
.brand-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--color-primary-light); }
.brand-item img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}
.brand-item:hover img { filter: grayscale(0%); opacity: 1; }
.brand-item__name { font-size: 0.8125rem; font-weight: 600; color: var(--color-text-light); }

@media (max-width: 1024px) { .brands-grid .brand-item { width: calc(33.333% - 1.2rem); } }
@media (max-width: 768px) { .brands-grid .brand-item { width: calc(50% - 1rem); } }

/* ========== CLIENTS GRID ========== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.client-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    transition: all var(--transition);
    min-height: 100px;
}
.client-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.client-item img {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}
.client-item:hover img { filter: grayscale(0%); opacity: 1; }

@media (max-width: 1024px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }

/* ========== LOGOS GRID (legacy) ========== */
.logos-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}
.logos-grid img {
    height: 40px;
    width: auto;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all var(--transition);
}
.logos-grid img:hover { opacity: 1; filter: grayscale(0%); }

/* ========== CONTACT FORM ========== */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form .full-width { grid-column: 1 / -1; }
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    transition: border-color var(--transition);
    background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form label { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; display: block; color: var(--color-heading); }
.contact-form .form-group { display: flex; flex-direction: column; }
@media (max-width: 768px) {
    .contact-form { grid-template-columns: 1fr; }
}

/* ========== CONTACT INFO ========== */
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info__item { display: flex; gap: 1rem; }
.contact-info__icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}
.contact-info__icon svg { width: 20px; height: 20px; }
.contact-info__label { font-weight: 600; color: var(--color-heading); margin-bottom: 0.125rem; }
.contact-info__text { font-size: 0.9375rem; color: var(--color-text-light); }

/* ========== CERTIFICATIONS (new style) ========== */
.cert-grid { gap: 1.75rem; }
.cert-card {
    text-align: center;
    padding: 2.75rem 1.75rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
    border-color: var(--color-border);
}
.cert-card__badge {
    width: 72px;
    height: 72px;
    background: #1E293B;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}
.cert-card:hover .cert-card__badge { transform: scale(1.08); }
.cert-card__badge svg { width: 28px; height: 28px; }
.cert-card__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-heading);
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.01em;
}
.cert-card__text {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin: 0;
}

/* Legacy cert-card__icon still usable */
.cert-card__icon { margin: 0 auto 1rem; }

/* ========== BLOG CARDS ========== */
.blog-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.blog-card__image-link {
    display: block;
    overflow: hidden;
    position: relative;
}
.blog-card__image {
    height: 200px;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 0.875rem;
    overflow: hidden;
}
.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.blog-card__image-link:hover .blog-card__image img { transform: scale(1.05); }
.blog-card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card__date { font-size: 0.8125rem; color: var(--color-text-light); margin-bottom: 0.5rem; }
.blog-card__title { font-size: 1.125rem; margin-bottom: 0.5rem; line-height: 1.3; }
.blog-card__title a { color: var(--color-heading); }
.blog-card__title a:hover { color: var(--color-primary); }
.blog-card__excerpt { font-size: 0.9375rem; color: var(--color-text-light); margin-bottom: 1rem; flex: 1; }
.blog-card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    margin-top: auto;
    align-self: flex-start;
}
.blog-card__more:hover { gap: 0.625rem; }

/* ========== PAGE TEMPLATES ========== */
.page-hero {
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, #E0F2FE 100%);
    padding: 4rem 0;
    text-align: center;
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { color: var(--color-text-light); font-size: 1.125rem; max-width: 640px; margin: 0 auto; }

.page-content { padding: 4rem 0; }
.page-content .container { max-width: 900px; }
.page-content p { margin-bottom: 1rem; }
.page-content ul, .page-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.page-content li { margin-bottom: 0.5rem; }

/* ========== SINGLE POST ========== */
.single-header { padding: 4rem 0 2rem; text-align: center; }
.single-header .container { max-width: 1200px; }
.single-meta { color: var(--color-text-light); font-size: 0.9375rem; margin-top: 1rem; }
.single-content { padding: 0 0 4rem; }
.single-content .container { max-width: 1200px; }
.single-content p { margin-bottom: 1.5rem; line-height: 1.8; font-size: 1.0625rem; }
.single-content h2 { margin-top: 3rem; margin-bottom: 1.25rem; font-size: 1.625rem; }
.single-content h3 { margin-top: 2.25rem; margin-bottom: 0.875rem; font-size: 1.25rem; }
.single-content ul, .single-content ol { margin-bottom: 1.5rem; padding-left: 1.75rem; font-size: 1.0625rem; line-height: 1.8; }
.single-content li { margin-bottom: 0.625rem; }
.single-content img { border-radius: var(--radius); margin: 2rem 0; width: 100%; }
.single-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--color-bg-alt);
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* ========== CONTACT PAGE ========== */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 6rem;
    align-items: start;
}
.contact-page__info { padding-top: 0.5rem; }
.contact-page__info .section__title { margin-bottom: 1rem; }
.contact-info__text a { color: var(--color-text); }
.contact-info__text a:hover { color: var(--color-primary); }

/* Form wrapper card premium */
.contact-form-wrap {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px -15px rgba(15, 23, 42, 0.12), 0 8px 20px -8px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}
.contact-form-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, #14B8A6 100%);
}
.contact-form-wrap__header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}
.contact-form-wrap__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-form-wrap__title {
    font-size: 1.25rem;
    color: var(--color-heading);
    margin: 0 0 0.25rem 0;
}
.contact-form-wrap__subtitle {
    color: var(--color-text-light);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}
.contact-form-wrap__footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--color-text-light);
}
.contact-form-wrap__footer svg { color: var(--color-primary); flex-shrink: 0; }
.contact-form-wrap__footer a { color: var(--color-primary); font-weight: 500; }

/* Tarjeta destacada en columna info */
.contact-feature-card {
    margin-top: 2.5rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.1);
}
.contact-feature-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.contact-feature-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.contact-feature-card__badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--color-primary);
    color: #fff;
    padding: 0.625rem 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px -2px rgba(13, 148, 136, 0.4);
    text-align: center;
}
.contact-feature-card__badge-num { display: block; font-size: 1.375rem; font-weight: 800; line-height: 1; }
.contact-feature-card__badge-text { display: block; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.125rem; }
.contact-feature-card__body { padding: 1.5rem; }
.contact-feature-card__title { font-size: 1.125rem; margin: 0 0 0.5rem 0; color: var(--color-heading); }
.contact-feature-card__text { font-size: 0.9375rem; color: var(--color-text-light); margin-bottom: 1rem; line-height: 1.6; }
.contact-feature-card__list { list-style: none; padding: 0; margin: 0; }
.contact-feature-card__list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text);
    padding: 0.375rem 0;
}
.contact-feature-card__list svg { color: var(--color-primary); flex-shrink: 0; }

@media (max-width: 1024px) {
    .contact-page-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
    .contact-form-wrap { padding: 1.75rem 1.25rem; }
    .contact-form-wrap__header { flex-direction: column; align-items: flex-start; }
}

/* ========== CF7 STYLING (premium) ========== */
.wpcf7 form { margin: 0; }
.wpcf7 .cf7-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.wpcf7 .cf7-col { display: flex; flex-direction: column; }
.wpcf7 .cf7-col--full { grid-column: 1 / -1; }
.wpcf7 label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
    display: block;
    text-transform: none;
    letter-spacing: 0.01em;
}
.wpcf7 .required { color: #DC2626; margin-left: 0.125rem; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    background: #fff;
    color: var(--color-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.wpcf7 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' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder { color: #94A3B8; }
.wpcf7 input:hover,
.wpcf7 select:hover,
.wpcf7 textarea:hover { border-color: #CBD5E1; }
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
    background: #fff;
}
.wpcf7 textarea { min-height: 140px; resize: vertical; line-height: 1.5; }

/* Checkbox de aceptacion */
.wpcf7-acceptance { margin: 0.5rem 0 1rem; }
.wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 400;
    display: inline;
}
.wpcf7-acceptance .wpcf7-list-item-label a { color: var(--color-primary); font-weight: 500; }
.wpcf7-acceptance input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
    cursor: pointer;
    vertical-align: middle;
}

/* Boton submit premium */
.wpcf7 input[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #14B8A6 100%);
    color: #fff;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
    letter-spacing: 0.01em;
    box-shadow: 0 4px 12px -2px rgba(13, 148, 136, 0.4);
}
.wpcf7 input[type="submit"]:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(13, 148, 136, 0.5);
}
.wpcf7 input[type="submit"]:active { transform: translateY(0); }
.wpcf7 .wpcf7-spinner { display: inline-block; vertical-align: middle; margin-left: 0.5rem; }
.wpcf7-response-output {
    margin: 1rem 0 0 !important;
    padding: 0.875rem 1.25rem !important;
    border-radius: var(--radius);
    border: 1px solid !important;
    font-size: 0.9375rem;
}
.wpcf7-mail-sent-ok { background: #ECFDF5; border-color: #10B981 !important; color: #065F46; }
.wpcf7-mail-sent-ng,
.wpcf7-validation-errors,
.wpcf7-spam-blocked { background: #FEF2F2; border-color: #DC2626 !important; color: #991B1B; }
.wpcf7-not-valid-tip { color: #DC2626; font-size: 0.8125rem; margin-top: 0.25rem; }

@media (max-width: 768px) {
    .wpcf7 .cf7-row { grid-template-columns: 1fr; }
}

/* ========== CONTACT MAP ========== */
.contact-map-section {
    background: var(--color-bg-alt);
    padding: 0;
}
.contact-map-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.contact-map-wrap iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.3s ease;
}
.contact-map-wrap:hover iframe { filter: grayscale(0%) contrast(1); }
.contact-map-cta {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: var(--shadow-md);
    z-index: 1;
    transition: all 0.2s ease;
}
.contact-map-cta:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-2px); }

/* ========== ABOUT PAGE — ESTILO HYDRANT ========== */
/* Container narrow para storytelling */
.ah-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.ah-container--narrow { max-width: 760px; }

/* HERO HYDRANT-STYLE */
.ah-hero { padding: 6rem 0 0; background: var(--color-bg); }
.ah-hero__inner { max-width: 900px; margin: 0 auto; text-align: center; padding-bottom: 4rem; }
.ah-hero__eyebrow {
    font-size: 0.875rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.ah-hero__title {
    font-size: 4rem;
    line-height: 1.05;
    color: var(--color-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.75rem;
}
.ah-hero__title span { color: var(--color-primary); font-style: italic; }
.ah-hero__lead {
    font-size: 1.25rem;
    color: var(--color-text-light);
    line-height: 1.5;
    max-width: 720px;
    margin: 0 auto;
    font-weight: 400;
}
.ah-hero__image {
    width: 100%;
    height: 60vh;
    max-height: 600px;
    overflow: hidden;
}
.ah-hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: center 65%; display: block; }
@media (max-width: 768px) {
    .ah-hero { padding: 3rem 0 0; }
    .ah-hero__title { font-size: 2.25rem; }
    .ah-hero__lead { font-size: 1rem; }
    .ah-hero__image { height: 40vh; }
}

/* CHAPTER blocks (storytelling) */
.ah-chapter { padding: 7rem 0; background: var(--color-bg); }
.ah-chapter--alt { background: var(--color-bg-alt); }
.ah-chapter__label {
    font-size: 0.8125rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
    margin-bottom: 1.25rem;
}
.ah-chapter__heading {
    font-size: 2.75rem;
    line-height: 1.15;
    color: var(--color-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}
.ah-chapter__body p { font-size: 1.0625rem; color: var(--color-text); line-height: 1.7; margin-bottom: 1.25rem; }
.ah-lead {
    font-size: 1.25rem !important;
    color: var(--color-heading) !important;
    line-height: 1.55 !important;
    font-weight: 500 !important;
    margin-bottom: 1.5rem !important;
}
@media (max-width: 768px) {
    .ah-chapter { padding: 4rem 0; }
    .ah-chapter__heading { font-size: 1.75rem; }
    .ah-lead { font-size: 1.0625rem !important; }
}

/* STATEMENT / QUOTE BIG */
.ah-statement {
    padding: 6rem 0;
    background: var(--color-bg-dark);
    color: #fff;
    text-align: center;
}
.ah-statement__mark {
    width: 64px;
    height: 64px;
    background: rgba(13, 148, 136, 0.2);
    color: #5EEAD4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}
.ah-statement__quote {
    font-size: 2.25rem;
    line-height: 1.3;
    font-weight: 600;
    color: #fff;
    margin: 0 auto 1.5rem;
    max-width: 850px;
    letter-spacing: -0.01em;
    font-style: italic;
}
.ah-statement__author {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}
@media (max-width: 768px) {
    .ah-statement { padding: 4rem 0; }
    .ah-statement__quote { font-size: 1.375rem; }
}

/* STORY: imagen 50/50 con texto */
.ah-story { padding: 0; background: var(--color-bg); }
.ah-story__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 600px; }
.ah-story__visual {
    position: relative;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #e0f2fe 0%, #ecfdf5 50%, #f0fdfa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0,0,0,0.04);
    isolation: isolate;
}
.ah-story__visual::before {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 20% 30%, rgba(16,185,129,0.18) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(14,165,233,0.15) 0%, transparent 45%);
    z-index: -1;
    animation: ahStoryFloat 12s ease-in-out infinite;
}
.ah-story__visual::after {
    content: '';
    position: absolute;
    bottom: 8%;
    left: 10%;
    right: 10%;
    height: 14px;
    background: radial-gradient(ellipse at center, rgba(15,23,42,0.18) 0%, transparent 70%);
    filter: blur(6px);
    z-index: -1;
}
@keyframes ahStoryFloat {
    0%,100% { transform: translate(0, 0); }
    50%     { transform: translate(-10px, 8px); }
}
.ah-story__visual img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 16px;
    filter: drop-shadow(0 25px 35px rgba(15,23,42,0.22)) drop-shadow(0 8px 12px rgba(15,23,42,0.15));
    transition: transform 0.5s ease;
}
.ah-story__visual:hover img { transform: translateY(-4px) scale(1.02); }
.ah-story__text { padding: 5rem 4rem 5rem 5rem; max-width: 600px; }
.ah-story__text p { font-size: 1.0625rem; color: var(--color-text); line-height: 1.7; margin-bottom: 1.25rem; }
.ah-story__text p:last-child { font-style: italic; color: var(--color-primary); font-weight: 500; }
@media (max-width: 1024px) {
    .ah-story__grid { grid-template-columns: 1fr; }
    .ah-story__visual { min-height: 350px; }
    .ah-story__text { padding: 3rem 1.5rem; max-width: 100%; }
}

/* BIG NUMBERS */
.ah-numbers { padding: 7rem 0; background: var(--color-bg-alt); }
.ah-numbers__intro { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
.ah-numbers__intro .ah-chapter__label { display: block; }
.ah-numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.ah-number { text-align: center; padding: 2rem 1rem; border-top: 2px solid var(--color-primary); position: relative; }
.ah-number__value {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--color-heading);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}
.ah-number__label {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.5;
    font-weight: 500;
}
@media (max-width: 768px) {
    .ah-numbers { padding: 4rem 0; }
    .ah-numbers__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .ah-number__value { font-size: 3rem; }
}

/* PILLARS (4 columnas con numero) */
.ah-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 4rem;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.ah-pillar {
    padding: 2.5rem 1.75rem;
    border-right: 1px solid var(--color-border);
    transition: background 0.2s ease;
}
.ah-pillar:last-child { border-right: none; }
.ah-pillar:hover { background: rgba(13, 148, 136, 0.04); }
.ah-pillar__num {
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    display: block;
}
.ah-pillar h3 {
    font-size: 1.25rem;
    color: var(--color-heading);
    margin: 0 0 0.875rem 0;
    font-weight: 700;
}
.ah-pillar p { font-size: 0.9375rem; color: var(--color-text-light); line-height: 1.6; margin: 0; }
@media (max-width: 1024px) {
    .ah-pillars { grid-template-columns: 1fr 1fr; }
    .ah-pillar:nth-child(2) { border-right: none; }
    .ah-pillar:nth-child(1), .ah-pillar:nth-child(2) { border-bottom: 1px solid var(--color-border); }
}
@media (max-width: 600px) {
    .ah-pillars { grid-template-columns: 1fr; }
    .ah-pillar { border-right: none; border-bottom: 1px solid var(--color-border); }
    .ah-pillar:last-child { border-bottom: none; }
}

/* MANIFESTO BIG */
.ah-manifesto {
    padding: 8rem 0;
    background: var(--color-bg);
    text-align: center;
}
.ah-manifesto__label {
    font-size: 0.8125rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.ah-manifesto__heading {
    font-size: 4rem;
    line-height: 1.1;
    color: var(--color-heading);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.ah-manifesto__heading span {
    color: var(--color-primary);
    font-style: italic;
}
.ah-manifesto__text {
    font-size: 1.25rem;
    color: var(--color-text-light);
    line-height: 1.5;
    max-width: 720px;
    margin: 0 auto;
    font-weight: 400;
}
@media (max-width: 768px) {
    .ah-manifesto { padding: 5rem 0; }
    .ah-manifesto__heading { font-size: 2.25rem; }
    .ah-manifesto__text { font-size: 1.0625rem; }
}

/* DOCUMENTOS ETICA */
.ah-docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 4rem; border-top: 1px solid var(--color-border); }
.ah-doc {
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--color-border);
    transition: background 0.2s ease;
}
.ah-doc:last-child { border-right: none; }
.ah-doc:hover { background: rgba(13, 148, 136, 0.04); color: inherit; }
.ah-doc__icon {
    width: 56px;
    height: 56px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.ah-doc h3 { font-size: 1.125rem; margin: 0 0 0.5rem 0; color: var(--color-heading); font-weight: 700; }
.ah-doc p { font-size: 0.9375rem; color: var(--color-text-light); line-height: 1.6; margin: 0 0 1.5rem 0; flex: 1; }
.ah-doc__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: gap 0.2s ease;
}
.ah-doc:hover .ah-doc__link { gap: 0.625rem; }
@media (max-width: 1024px) {
    .ah-docs { grid-template-columns: 1fr; }
    .ah-doc { border-right: none; border-bottom: 1px solid var(--color-border); }
    .ah-doc:last-child { border-bottom: none; }
}

/* FINAL CTA estilo Hydrant "It's your turn" */
.ah-final {
    padding: 8rem 0;
    background: var(--color-bg-dark);
    color: #fff;
    text-align: center;
}
.ah-final__inner { max-width: 700px; margin: 0 auto; }
.ah-final__label {
    font-size: 0.875rem;
    color: #5EEAD4;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.ah-final__heading {
    font-size: 5rem;
    line-height: 1;
    color: #fff;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}
.ah-final__text {
    font-size: 1.1875rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
    margin-bottom: 2.5rem;
}
.ah-final__actions { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.ah-final__btn {
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    border-radius: 100px !important;
    background: linear-gradient(135deg, var(--color-primary) 0%, #14B8A6 100%) !important;
    border: none !important;
    box-shadow: 0 8px 24px -6px rgba(13, 148, 136, 0.6);
}
.ah-final__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -6px rgba(13, 148, 136, 0.7); }
.ah-final__link {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(255,255,255,0.3);
    transition: text-decoration-color 0.2s ease;
}
.ah-final__link:hover { color: #fff; text-decoration-color: #fff; }
@media (max-width: 768px) {
    .ah-final { padding: 5rem 0; }
    .ah-final__heading { font-size: 3rem; }
}

/* OLD ABOUT V2 STYLES (kept for compatibility) */

/* HERO premium con imagen de fondo */
.about-hero {
    position: relative;
    padding: 7rem 0 5rem;
    color: #fff;
    background-color: var(--color-bg-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.about-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent 0%, var(--color-bg) 100%);
    pointer-events: none;
}
.about-hero .container { position: relative; z-index: 2; max-width: 900px; }
.about-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
}
.about-hero__breadcrumb a { color: rgba(255,255,255,0.8); }
.about-hero__breadcrumb a:hover { color: #fff; }
.about-hero__breadcrumb svg { opacity: 0.5; }
.about-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 1.125rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}
.about-hero__title {
    font-size: 3rem;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 800;
}
.about-hero__title span { color: #5EEAD4; }
.about-hero__lead {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.85);
    max-width: 700px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}
.about-hero__stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.about-hero__stats > div { display: flex; flex-direction: column; }
.about-hero__stats strong {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.about-hero__stats span {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}
@media (max-width: 768px) {
    .about-hero { padding: 4rem 0 3rem; }
    .about-hero__title { font-size: 2rem; }
    .about-hero__stats { gap: 1.5rem; }
    .about-hero__stats strong { font-size: 1.75rem; }
}

/* INTRO con imagen lateral + badge fundacion */
.about-intro {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}
.about-intro__text h2 { margin-bottom: 1.25rem; font-size: 2rem; line-height: 1.2; }
.about-intro__lead {
    font-size: 1.125rem;
    color: var(--color-heading);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-weight: 500;
}
.about-intro__text p { color: var(--color-text); line-height: 1.7; margin-bottom: 1rem; }
.about-intro__features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}
.about-intro__features div {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-heading);
    font-weight: 600;
    font-size: 0.9375rem;
}
.about-intro__features svg { color: var(--color-primary); }

.about-intro__visual { position: relative; }
.about-intro__image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -15px rgba(15, 23, 42, 0.25);
    aspect-ratio: 4 / 5;
}
.about-intro__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-intro__year {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #14B8A6 100%);
    color: #fff;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 15px 30px -10px rgba(13, 148, 136, 0.5);
    text-align: center;
}
.about-intro__year-num { display: block; font-size: 2.25rem; font-weight: 800; line-height: 1; }
.about-intro__year-text { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.5rem; opacity: 0.9; }

@media (max-width: 1024px) {
    .about-intro { grid-template-columns: 1fr; gap: 3rem; }
    .about-intro__visual { max-width: 480px; margin: 0 auto; }
}

/* TIMELINE V2 — alternancia con dot central y conector */
.timeline-v2 {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}
.timeline-v2::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, transparent 0%, var(--color-border) 8%, var(--color-border) 92%, transparent 100%);
    transform: translateX(-50%);
}
.timeline-v2__row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    align-items: center;
    margin-bottom: 2.5rem;
    min-height: 120px;
}
.timeline-v2__row:last-child { margin-bottom: 0; }
.timeline-v2__row--left .timeline-v2__card { grid-column: 1; text-align: right; padding-right: 2rem; }
.timeline-v2__row--right .timeline-v2__card { grid-column: 3; text-align: left; padding-left: 2rem; }
.timeline-v2__row--left .timeline-v2__icon { margin-left: auto; }
.timeline-v2__row--right .timeline-v2__icon { margin-right: auto; }
.timeline-v2__dot {
    grid-column: 2;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--color-primary), 0 8px 16px -4px rgba(13, 148, 136, 0.5);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.timeline-v2__row.is-current .timeline-v2__dot {
    background: #fff;
    box-shadow: 0 0 0 3px var(--color-primary), 0 0 0 8px var(--color-primary-light), 0 8px 16px -4px rgba(13, 148, 136, 0.4);
    animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 3px var(--color-primary), 0 0 0 8px var(--color-primary-light); }
    50% { box-shadow: 0 0 0 3px var(--color-primary), 0 0 0 14px rgba(204, 251, 241, 0.4); }
}
.timeline-v2__card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.08);
    position: relative;
}
.timeline-v2__card:hover { transform: translateY(-3px); box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.15); border-color: var(--color-primary-light); }
.timeline-v2__icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.timeline-v2__year {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}
.timeline-v2__title { font-size: 1.125rem; margin: 0 0 0.5rem 0; color: var(--color-heading); }
.timeline-v2__desc { font-size: 0.9375rem; color: var(--color-text-light); margin: 0; line-height: 1.6; }

@media (max-width: 768px) {
    .timeline-v2::before { left: 1.5rem; }
    .timeline-v2__row { grid-template-columns: 3rem 1fr; gap: 1rem; }
    .timeline-v2__dot { grid-column: 1; }
    .timeline-v2__row--left .timeline-v2__card,
    .timeline-v2__row--right .timeline-v2__card { grid-column: 2; text-align: left; padding: 1.25rem; }
    .timeline-v2__row--left .timeline-v2__icon,
    .timeline-v2__row--right .timeline-v2__icon { margin: 0 0 1rem 0; }
}

/* MVV V2 — cards con numero y acento distintivo */
.mvv-grid-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.mvv-card-v2 {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.mvv-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    transition: height 0.3s ease;
}
.mvv-card-v2--mision::before { background: linear-gradient(90deg, var(--color-primary) 0%, #14B8A6 100%); }
.mvv-card-v2--vision::before { background: linear-gradient(90deg, #14B8A6 0%, #06B6D4 100%); }
.mvv-card-v2--valores::before { background: linear-gradient(90deg, #06B6D4 0%, var(--color-primary) 100%); }
.mvv-card-v2:hover { transform: translateY(-6px); box-shadow: 0 25px 50px -15px rgba(15, 23, 42, 0.18); }
.mvv-card-v2:hover::before { height: 8px; }
.mvv-card-v2__number {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-bg-alt);
    line-height: 1;
    z-index: 0;
}
.mvv-card-v2__icon {
    width: 64px;
    height: 64px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}
.mvv-card-v2 h3 { font-size: 1.5rem; margin: 0 0 1rem 0; color: var(--color-heading); position: relative; z-index: 1; }
.mvv-card-v2 p { color: var(--color-text-light); font-size: 0.9375rem; line-height: 1.7; margin: 0; position: relative; z-index: 1; }
.mvv-card-v2__list { list-style: none; padding: 0; margin: 0; position: relative; z-index: 1; }
.mvv-card-v2__list li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0;
    color: var(--color-text);
    font-size: 0.9375rem;
    border-bottom: 1px dashed var(--color-border);
}
.mvv-card-v2__list li:last-child { border-bottom: none; }
.mvv-card-v2__list svg { color: var(--color-primary); flex-shrink: 0; }
@media (max-width: 1024px) {
    .mvv-grid-v2 { grid-template-columns: 1fr; }
}

/* PHILOSOPHY V2 */
.philosophy-grid-v2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 5rem; align-items: center; }
.philosophy-v2__content h2 { margin-bottom: 1.5rem; font-size: 2rem; line-height: 1.2; }
.philosophy-v2__lead { font-size: 1.0625rem; color: var(--color-heading); line-height: 1.6; margin-bottom: 1rem; font-weight: 500; }
.philosophy-v2__content p { color: var(--color-text); line-height: 1.7; margin-bottom: 1rem; }
.philosophy-v2__highlights { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.philosophy-v2__highlight {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    transition: all 0.2s ease;
}
.philosophy-v2__highlight:hover { border-color: var(--color-primary); transform: translateX(4px); }
.philosophy-v2__highlight-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.philosophy-v2__highlight strong { display: block; color: var(--color-heading); font-size: 1rem; margin-bottom: 0.25rem; }
.philosophy-v2__highlight span { font-size: 0.875rem; color: var(--color-text-light); }

.philosophy-v2__visual { position: relative; }
.philosophy-v2__image-main {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -15px rgba(15, 23, 42, 0.25);
    aspect-ratio: 4 / 3;
}
.philosophy-v2__image-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.philosophy-v2__floating {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--color-border);
}
.philosophy-v2__floating-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.philosophy-v2__floating strong { display: block; font-size: 0.9375rem; color: var(--color-heading); margin-bottom: 0.125rem; }
.philosophy-v2__floating span { font-size: 0.75rem; color: var(--color-text-light); }
@media (max-width: 1024px) {
    .philosophy-grid-v2 { grid-template-columns: 1fr; gap: 3rem; }
    .philosophy-v2__floating { right: 1rem; bottom: -1rem; }
}

/* ETHICS V2 */
.ethics-grid-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.ethics-card-v2 {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.ethics-card-v2::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(13,148,136,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ethics-card-v2:hover { border-color: var(--color-primary); transform: translateY(-4px); box-shadow: 0 20px 40px -10px rgba(13, 148, 136, 0.2); color: inherit; }
.ethics-card-v2:hover::after { opacity: 1; }
.ethics-card-v2 > * { position: relative; z-index: 1; }
.ethics-card-v2__icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.ethics-card-v2__tag {
    display: inline-block;
    background: var(--color-bg-alt);
    color: var(--color-text-light);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}
.ethics-card-v2 h3 { font-size: 1.25rem; margin: 0 0 0.625rem 0; color: var(--color-heading); }
.ethics-card-v2 p { color: var(--color-text-light); font-size: 0.9375rem; margin-bottom: 1.5rem; flex: 1; line-height: 1.6; }
.ethics-card-v2__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: gap 0.2s ease;
}
.ethics-card-v2:hover .ethics-card-v2__link { gap: 0.625rem; }
@media (max-width: 1024px) { .ethics-grid-v2 { grid-template-columns: 1fr; } }

/* CTA FINAL */
.about-cta {
    padding: 5rem 0;
    background: var(--color-bg-dark);
    background-image: radial-gradient(ellipse at top, rgba(13, 148, 136, 0.2) 0%, transparent 70%);
    color: #fff;
    text-align: center;
}
.about-cta__inner { max-width: 700px; margin: 0 auto; }
.about-cta__icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #14B8A6 100%);
    color: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 15px 30px -5px rgba(13, 148, 136, 0.5);
}
.about-cta h2 { color: #fff; font-size: 2rem; margin-bottom: 1rem; }
.about-cta p { color: rgba(255,255,255,0.8); font-size: 1.0625rem; margin-bottom: 2rem; }
.about-cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.about-cta .btn--outline { color: #fff; border-color: rgba(255,255,255,0.3); }
.about-cta .btn--outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* Timeline */
.timeline { max-width: 800px; margin: 0 auto; position: relative; }
.timeline::before {
    content: '';
    position: absolute;
    left: 5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}
.timeline__item {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    align-items: start;
}
.timeline__item:last-child { margin-bottom: 0; }
.timeline__year {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--color-primary);
    text-align: right;
    padding-right: 1rem;
    padding-top: 0.25rem;
    position: relative;
}
.timeline__year::after {
    content: '';
    position: absolute;
    right: -0.625rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background: var(--color-primary);
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--color-primary);
    z-index: 1;
}
.timeline__item--current .timeline__year::after { background: #fff; box-shadow: 0 0 0 2px var(--color-primary), 0 0 0 6px var(--color-primary-light); }
.timeline__content {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}
.timeline__content:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.timeline__content h3 { font-size: 1.0625rem; margin: 0 0 0.5rem 0; color: var(--color-heading); }
.timeline__content p { font-size: 0.9375rem; color: var(--color-text-light); margin: 0; line-height: 1.6; }

@media (max-width: 768px) {
    .timeline::before { left: 1rem; }
    .timeline__item { grid-template-columns: 1fr; gap: 1rem; padding-left: 2.5rem; }
    .timeline__year { text-align: left; padding-right: 0; padding-left: 0; position: absolute; left: -1.5rem; top: 0.25rem; width: auto; }
    .timeline__year::after { display: none; }
}

/* MVV (Mision Vision Valores) */
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.mvv-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.mvv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-primary);
}
.mvv-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15); }
.mvv-card__icon {
    width: 64px;
    height: 64px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.mvv-card h3 { font-size: 1.375rem; margin: 0 0 0.75rem 0; color: var(--color-heading); }
.mvv-card p { color: var(--color-text-light); font-size: 0.9375rem; line-height: 1.7; margin: 0; }
.mvv-card__list { list-style: none; padding: 0; margin: 0; }
.mvv-card__list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    color: var(--color-text);
    font-size: 0.9375rem;
    position: relative;
    border-bottom: 1px dashed var(--color-border);
}
.mvv-card__list li:last-child { border-bottom: none; }
.mvv-card__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
}
@media (max-width: 1024px) {
    .mvv-grid { grid-template-columns: 1fr; }
}

/* Filosofia */
.philosophy-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
.philosophy__image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
}
.philosophy__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.philosophy__content h2 { margin-bottom: 1.25rem; }
.philosophy__content p { color: var(--color-text); line-height: 1.7; margin-bottom: 1rem; }
.philosophy__highlights { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.philosophy__highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}
.philosophy__highlight svg { color: var(--color-primary); flex-shrink: 0; margin-top: 0.125rem; }
.philosophy__highlight strong { display: block; color: var(--color-heading); font-size: 0.9375rem; margin-bottom: 0.125rem; }
.philosophy__highlight span { font-size: 0.8125rem; color: var(--color-text-light); }
@media (max-width: 1024px) {
    .philosophy-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Ethics cards */
.ethics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.ethics-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}
.ethics-card:hover { border-color: var(--color-primary); transform: translateY(-3px); box-shadow: 0 15px 30px -10px rgba(13, 148, 136, 0.2); color: inherit; }
.ethics-card__icon {
    width: 56px;
    height: 56px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.ethics-card h3 { font-size: 1.125rem; margin: 0 0 0.5rem 0; color: var(--color-heading); }
.ethics-card p { color: var(--color-text-light); font-size: 0.9375rem; margin-bottom: 1.25rem; flex: 1; line-height: 1.6; }
.ethics-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9375rem;
}
.ethics-card:hover .ethics-card__link { gap: 0.625rem; }
@media (max-width: 1024px) {
    .ethics-grid { grid-template-columns: 1fr; }
}

/* ========== PRODUCTS PAGE ========== */
/* Titulo destacado de la seccion Areas de suministro */
#catalogo .section__header { margin-bottom: 3.5rem; }
#catalogo .section__label { font-size: 0.9375rem; letter-spacing: 0.2em; margin-bottom: 1rem; }
#catalogo .section__title {
    font-size: 3.75rem;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}
#catalogo .section__desc { font-size: 1.125rem; max-width: 720px; line-height: 1.55; }
@media (max-width: 768px) {
    #catalogo .section__title { font-size: 2.25rem; }
    #catalogo .section__desc { font-size: 1rem; }
}

.products-hero__info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}
.products-hero__info-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--color-text-light);
    font-weight: 500;
}
.products-hero__info-item svg { color: var(--color-primary); flex-shrink: 0; }

/* Grid de 15 familias */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.product-family {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    scroll-margin-top: 120px;
}
.product-family:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
    border-color: var(--color-primary);
}
.product-family__icon {
    width: 56px;
    height: 56px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}
.product-family:hover .product-family__icon {
    background: var(--color-primary);
    color: #fff;
    transform: rotate(-5deg);
}
.product-family__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-heading);
    margin: 0 0 0.75rem 0;
    line-height: 1.25;
}
.product-family__desc {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    flex: 1;
}
.product-family__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    transition: gap 0.2s ease;
}
.product-family__link:hover { gap: 0.625rem; }

@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .products-grid { grid-template-columns: 1fr; } }

/* Proceso 3 pasos */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}
.process-grid::before {
    content: '';
    position: absolute;
    top: 3rem;
    left: 12%;
    right: 12%;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--color-border) 0px, var(--color-border) 8px, transparent 8px, transparent 16px);
    z-index: 0;
}
.process-step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}
.process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
    border-color: var(--color-primary);
}
.process-step__num {
    position: absolute;
    top: -1rem;
    right: 1.5rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 800;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    letter-spacing: 0.1em;
}
.process-step__icon {
    width: 64px;
    height: 64px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}
.process-step h3 {
    font-size: 1.125rem;
    color: var(--color-heading);
    margin: 0 0 0.625rem 0;
}
.process-step p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}
@media (max-width: 1024px) {
    .process-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .process-grid::before { display: none; }
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25), 0 8px 16px -4px rgba(15, 23, 42, 0.1);
    padding: 1.25rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-banner.is-visible { opacity: 1; transform: translateY(0); }
.cookie-banner__content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.cookie-banner__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cookie-banner__text { flex: 1; min-width: 0; }
.cookie-banner__text strong { display: block; color: var(--color-heading); font-size: 0.9375rem; margin-bottom: 0.25rem; }
.cookie-banner__text p { font-size: 0.8125rem; color: var(--color-text-light); line-height: 1.5; margin: 0; }
.cookie-banner__text a { color: var(--color-primary); font-weight: 500; }
.cookie-banner__actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cookie-banner__btn { padding: 0.5rem 1.25rem !important; font-size: 0.875rem !important; }

.cookie-toggle {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 9998;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--color-primary, #10b981);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.cookie-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}

@media (max-width: 768px) {
    .cookie-banner { bottom: 0.75rem; left: 0.75rem; right: 0.75rem; padding: 1rem; }
    .cookie-banner__content { flex-direction: column; align-items: flex-start; gap: 1rem; text-align: left; }
    .cookie-banner__actions { width: 100%; justify-content: stretch; }
    .cookie-banner__btn { flex: 1; }
    .cookie-toggle { right: 0.875rem; bottom: calc(72px + 1.75rem); width: 44px; height: 44px; }
}

.contact-info__address { font-style: normal; display: flex; flex-direction: column; gap: 0.25rem; }

/* Hide default Complianz "Gestionar consentimiento" button (we have our own floating button) */
button.cmplz-manage-consent:not(.cookie-toggle) { display: none !important; }

/* Hide TCF-specific vendor management elements (we don't use TCF) */
.cmplz-manage-vendors.tcf,
.cmplz-manage-options.tcf { display: none !important; }

/* Hide empty template placeholders if not replaced */
.cmplz-breadcrumb-title-wrapper a[href="#"]:empty,
.cmplz-breadcrumb-title-wrapper a[data-relative_url=""]:empty { display: none !important; }

/* ========== COMPLIANZ COOKIE BANNER ANIMATIONS ========== */
.cmplz-cookiebanner {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
    pointer-events: none;
}
.cmplz-cookiebanner.cmplz-show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    animation: cmplzBannerIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cmplz-cookiebanner.cmplz-dismissed {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    pointer-events: none;
    animation: cmplzBannerOut 0.3s cubic-bezier(0.4, 0, 1, 1);
}
@keyframes cmplzBannerIn {
    0%   { opacity: 0; transform: translateY(40px) scale(0.94); }
    60%  { opacity: 1; transform: translateY(-4px) scale(1.01); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cmplzBannerOut {
    0%   { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(20px) scale(0.95); }
}

/* Manage consent panel (preferences) */
#cmplz-manage-consent-container {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.cmplz-manage-consent-container.cmplz-show { animation: cmplzPanelIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes cmplzPanelIn {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Floating manage-consent button subtle pulse */
button.cmplz-manage-consent.cookie-toggle {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
button.cmplz-manage-consent.cookie-toggle:hover {
    transform: translateY(-3px) scale(1.08) rotate(-5deg);
}
button.cmplz-manage-consent.cookie-toggle:active {
    transform: translateY(-1px) scale(0.96);
}

/* Backdrop blur effect when banner is visible (soft cookiewall) */
body.cmplz-banner-active::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9990;
    animation: cmplzFadeIn 0.3s ease forwards;
}
@keyframes cmplzFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ========== BECAS LOGIN ========== */
.becas-login { padding: 5rem 1.5rem; display: flex; justify-content: center; min-height: 60vh; align-items: center; background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 50%, #f0f9ff 100%); }
.becas-login__card {
    background: #fff;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 16px;
    padding: 3rem;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
}
.becas-login__card h2 { margin: 0 0 0.5rem; font-size: 1.75rem; color: var(--color-heading, #0f172a); }
.becas-login__card > p { color: var(--color-text-muted, #64748b); margin-bottom: 2rem; line-height: 1.6; }
.becas-login__error {
    background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
    padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1.25rem; font-size: 0.9rem;
}
.becas-login__form { display: flex; flex-direction: column; gap: 1.25rem; }
.becas-login__form label { display: flex; flex-direction: column; gap: 0.4rem; font-weight: 600; font-size: 0.875rem; color: var(--color-heading, #0f172a); }
.becas-login__form input {
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--color-border, #e5e7eb);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
}
.becas-login__form input:focus { outline: none; border-color: var(--color-primary, #10b981); box-shadow: 0 0 0 4px rgba(16,185,129,0.12); background: #fff; }
.becas-login__form button { margin-top: 0.75rem; padding: 0.875rem; font-size: 1rem; }
.becas-login__note { margin-top: 1.75rem; font-size: 0.85rem; color: var(--color-text-muted, #64748b); text-align: center; line-height: 1.5; }
.becas-login__note a { color: var(--color-primary, #10b981); font-weight: 500; }

/* ========== BECAS PAGE (autenticado) ========== */
.becas-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #fff;
    padding: 7rem 1.5rem 3.5rem;
    text-align: center;
}
.becas-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
    color: #fff;
}
.becas-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.75);
    max-width: 560px;
    margin: 0 auto;
}
.becas-intro, .becas-requisitos, .becas-form {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}
.becas-intro { padding-top: 3.5rem; }
.becas-intro h2, .becas-requisitos h2, .becas-form h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-heading, #0f172a);
    margin: 0 0 1rem;
    position: relative;
    padding-bottom: 0.75rem;
}
.becas-intro h2::after, .becas-requisitos h2::after, .becas-form h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 48px; height: 3px;
    background: var(--color-primary, #10b981);
    border-radius: 2px;
}
.becas-intro p, .becas-form > p {
    color: var(--color-text-muted, #64748b);
    line-height: 1.7;
    font-size: 1.0625rem;
}
.becas-requisitos ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}
.becas-requisitos li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 3px solid var(--color-primary, #10b981);
    font-size: 0.975rem;
    line-height: 1.5;
    color: var(--color-text, #334155);
}
.becas-requisitos li::before {
    content: '';
    display: none;
}
.becas-form { padding-bottom: 5rem; }
.becas-form .wpcf7 {
    background: #fff;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    margin-top: 1.5rem;
}
.becas-form .wpcf7 label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-heading, #0f172a);
    margin-bottom: 1rem;
}
.becas-form .wpcf7 input[type="text"],
.becas-form .wpcf7 input[type="email"],
.becas-form .wpcf7 input[type="tel"],
.becas-form .wpcf7 select,
.becas-form .wpcf7 textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--color-border, #e5e7eb);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.becas-form .wpcf7 input:focus,
.becas-form .wpcf7 select:focus,
.becas-form .wpcf7 textarea:focus {
    outline: none;
    border-color: var(--color-primary, #10b981);
    box-shadow: 0 0 0 4px rgba(16,185,129,0.12);
    background: #fff;
}
.becas-form .wpcf7 textarea { min-height: 56px; resize: vertical; padding-top: 0.6rem; padding-bottom: 0.6rem; line-height: 1.4; }
.becas-form .wpcf7 select { cursor: pointer; }
.becas-form .wpcf7 .wpcf7-file {
    padding: 0.75rem 1rem;
    background: #f1f5f9;
    border: 1.5px dashed #cbd5e1;
    border-radius: 10px;
    cursor: pointer;
}
.becas-form .wpcf7 .wpcf7-acceptance label {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--color-text-muted, #64748b);
    margin-top: 0.5rem;
}
.becas-form .wpcf7 .wpcf7-acceptance a { color: var(--color-primary, #10b981); font-weight: 500; }
.becas-form .wpcf7 input[type="submit"] {
    width: 100%;
    padding: 0.9rem;
    margin-top: 1rem;
    background: var(--color-primary, #10b981);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.becas-form .wpcf7 input[type="submit"]:hover {
    background: var(--color-primary-dark, #059669);
    transform: translateY(-1px);
}
.becas-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 640px) {
    .becas-form-row { grid-template-columns: 1fr; }
    .becas-form .wpcf7 { padding: 1.5rem; }
    .becas-hero { padding: 3rem 1.25rem 2.5rem; }
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
}
.pagination a, .pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
}
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ========== ANCHO COMPLETO EN TODO EL SITIO (layout); texto largo legible ========== */
.container,
.ah-container {
    max-width: 100%;
}

/* ===== HEADER COMPACTO: menú a altura completa, sin huecos (añadido) ===== */
.header__nav    { align-self: stretch; align-items: stretch; }
.header__nav ul { align-items: stretch; }
.header__nav li { display: flex; align-items: stretch; }
.header__nav a  { display: flex; align-items: center; }

/* ========== TODOS LOS CONTENEDORES INTERNOS A ANCHO COMPLETO ========== */
.page-content .container,
.single-content .container,
.single-header .container,
.about-hero .container,
.ah-container--narrow,
.ah-hero__inner,
.ah-hero__lead,
.ah-statement__quote,
.ah-manifesto__heading,
.ah-manifesto__text,
.ah-story__text,
.ah-numbers__intro,
.ah-final__inner,
.about-hero__lead,
.about-cta__inner,
.timeline,
.timeline-v2,
.section__desc,
#catalogo .section__desc,
.hero__text,
.page-hero p,
.becas-subtitle,
.becas-intro,
.becas-requisitos,
.becas-form {
    max-width: 100%;
}

/* ========== NUEVO LAYOUT PÁGINA CONTACTO (añadido) ========== */
.contact-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.contact-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
    margin-top: 2.5rem;
}
.contact-bottom-grid .contact-map-wrap {
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    min-height: 500px;
    height: 100%;
}
.contact-bottom-grid .contact-map-wrap iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: block;
    border: 0;
}
@media (max-width: 1024px) {
    .contact-top-grid,
    .contact-bottom-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-bottom-grid .contact-map-wrap,
    .contact-bottom-grid .contact-map-wrap iframe {
        min-height: 360px;
    }
}

/* ========== AJUSTES CABECERA Y BOTÓN COOKIES (añadidos) ========== */
.header__logo img {
    margin-top: 3px;
    margin-bottom: 3px;
}
.header__nav a {
    margin-top: 3px;
    margin-bottom: 3px;
}
.header__cta {
    margin-top: 3px;
    margin-bottom: 3px;
}
@media (max-width: 1024px) {
    .header__main { justify-content: center; }
    .header__logo img { height: 64px; }
    .cookie-toggle { bottom: calc(72px + 4px); }
}

/* ========== AJUSTES PÁGINA CONTACTO (añadidos) ========== */
.contact-top-grid .contact-feature-card {
    margin-top: 0;
}
section.section:has(.contact-top-grid) {
    padding-bottom: 1.5rem;
}
section.section--alt:has(.contact-bottom-grid) {
    padding-top: 1.5rem;
}
.contact-bottom-grid {
    margin-top: 0;
}

/* ========== LOGOS DE CERTIFICACIONES (añadidos) ========== */
.cert-card__badge--logo {
    background: #fff;
    border: 1px solid var(--color-border);
    padding: 0;
    overflow: hidden;
}
.cert-card__badge--logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Zoom solo a los logos ISO (el PNG tiene transparente alrededor) */
.cert-card__badge--logo img[alt^="ISO"] {
    transform: scale(1.55);
}

/* ========== 30px de aire lateral en todo el sitio (añadido) ========== */
.container,
.ah-container {
    padding-left: 30px;
    padding-right: 30px;
}

/* Sobre Nosotros: la imagen hero respeta los 30px laterales globales */
.ah-hero__image {
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
}

/* Cabecera con fondo blanco puro (sin opacidad ni blur) */
.site-header {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* .ah-chapter ("Catálogo curado") igualado al hero superior: 900px, centrado, compacto */
.ah-chapter {
    padding: 3rem 0;
}
.ah-chapter .ah-container--narrow {
    text-align: center;
}

/* Iconos PNG en el proceso 1-2-3 (sustituyen los SVG inline) */
.process-step__icon--logo {
    padding: 0;
    overflow: hidden;
}
.process-step__icon--logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: scale(1.7);
}

/* Ocultar el botón flotante AUTO de CookieYes (el azul) — usamos el verde custom del footer */
.cky-btn-revisit-wrapper {
    display: none !important;
}

/* Móvil: stats del hero en 2 columnas (en vez de 4 en línea que cortan el texto) */
@media (max-width: 768px) {
    .hero__stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 1rem;
        text-align: center;
    }
    .hero__stat-number { font-size: 1.75rem; }
    .hero__stat-label  { font-size: 0.75rem; line-height: 1.3; }

    /* Estabilizar el menú inferior en iOS Safari (evita que "salte" con la barra del navegador) */
    .mobile-bottom-nav {
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        will-change: transform;
    }
}
