/* ==========================================================================
   CDM / COMEDIMA - style.css
   Estilos base: variables, reset, layout, tipografia y componentes
   Paleta inspirada en logotipo TCP: Amarillo / Negro / Blanco + grises
   ========================================================================== */

/* ============================ VARIABLES CSS ============================ */
:root {
    /* Colores principales */
    --yellow: #f5b800;
    --yellow-dark: #d99e00;
    --yellow-light: #ffd23f;
    --black: #0a0a0a;
    --black-soft: #161616;
    --white: #ffffff;

    /* Neutrales / grises */
    --gray-50: #f7f7f8;
    --gray-100: #ececef;
    --gray-200: #d9d9de;
    --gray-300: #b8b8c0;
    --gray-400: #8e8e98;
    --gray-500: #6b6b76;
    --gray-600: #4a4a52;
    --gray-700: #33333a;
    --gray-800: #1f1f24;
    --gray-900: #121216;

    /* Detalles metalicos */
    --metal-light: #c9ccd1;
    --metal: #9aa0a8;
    --metal-dark: #5d636b;

    /* Tokens semanticos (light mode) */
    --bg: var(--white);
    --bg-alt: var(--gray-50);
    --bg-elev: var(--white);
    --text: var(--gray-800);
    --text-muted: var(--gray-500);
    --heading: var(--black);
    --border: var(--gray-200);
    --border-strong: var(--gray-300);
    --shadow-sm: 0 1px 2px rgba(10, 10, 10, .06), 0 1px 3px rgba(10, 10, 10, .04);
    --shadow-md: 0 4px 12px rgba(10, 10, 10, .08), 0 2px 6px rgba(10, 10, 10, .05);
    --shadow-lg: 0 18px 40px rgba(10, 10, 10, .12), 0 6px 16px rgba(10, 10, 10, .08);
    --shadow-yellow: 0 10px 30px rgba(245, 184, 0, .35);
    --glass-bg: rgba(255, 255, 255, .08);
    --glass-border: rgba(255, 255, 255, .18);

    /* Tipografia */
    --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-head: 'Oswald', 'Inter', sans-serif;

    /* Espaciado (sistema 8px) */
    --space-1: .25rem;   /* 4 */
    --space-2: .5rem;    /* 8 */
    --space-3: .75rem;   /* 12 */
    --space-4: 1rem;     /* 16 */
    --space-5: 1.5rem;   /* 24 */
    --space-6: 2rem;     /* 32 */
    --space-7: 3rem;     /* 48 */
    --space-8: 4rem;     /* 64 */
    --space-9: 6rem;     /* 96 */

    /* Radios */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 999px;

    /* Transiciones */
    --ease: cubic-bezier(.4, 0, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --t-fast: .2s;
    --t: .35s;
    --t-slow: .6s;

    /* Layout */
    --container: 1280px;
    --container-wide: 1600px;
    --nav-h: 76px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background var(--t) var(--ease), color var(--t) var(--ease);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-fast) var(--ease);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

/* Accesibilidad: foco visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Clase utilitaria para ocultar visualmente (screen reader) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================ LAYOUT ============================ */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-5);
}

.section {
    padding-block: var(--space-9);
    position: relative;
}

/* ============================ TIPOGRAFIA ============================ */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--heading);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -.01em;
}

.section__head {
    max-width: 960px;
    margin: 0 auto var(--space-7);
    text-align: center;
}

.section__eyebrow {
    display: block;
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--yellow-dark);
    margin-bottom: var(--space-3);
}

.section__title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    text-transform: uppercase;
}

.section__lead {
    margin-top: var(--space-4);
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Subrayado animado (la animacion vive en animations.css) */
.title-underline {
    position: relative;
    display: inline-block;
}
.title-underline::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 0;
    height: 4px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--yellow), var(--yellow-dark));
    border-radius: var(--radius-full);
}

/* ============================ BOTONES ============================ */
.btn {
    --btn-bg: var(--yellow);
    --btn-fg: var(--black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: .85rem 1.6rem;
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform var(--t) var(--ease-out),
                box-shadow var(--t) var(--ease),
                background var(--t) var(--ease),
                color var(--t) var(--ease),
                border-color var(--t) var(--ease);
}
.btn svg {
    width: 18px;
    height: 18px;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-yellow);
}
.btn:active {
    transform: translateY(-1px);
}

/* Variante primaria */
.btn--primary {
    background: var(--yellow);
    color: var(--black);
}
.btn--primary:hover {
    background: var(--yellow-dark);
}

/* Variante outline */
.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, .6);
}
.btn--outline:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

/* Tamano grande */
.btn--lg {
    padding: 1.05rem 2.4rem;
    font-size: 1rem;
}

/* Bloque ancho */
.btn--block {
    width: 100%;
}

/* WhatsApp */
.btn--whatsapp {
    background: #25d366;
    color: var(--white);
}
.btn--whatsapp:hover {
    background: #1da851;
    box-shadow: 0 10px 30px rgba(37, 211, 102, .35);
}

/* Llamar */
.btn--call {
    background: var(--black);
    color: var(--white);
}
.btn--call:hover {
    background: var(--gray-800);
    box-shadow: var(--shadow-lg);
}

/* ============================ PRELOADER ============================ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader__inner {
    text-align: center;
}
.preloader__logo {
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--yellow);
    margin-bottom: var(--space-5);
}
.preloader__bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, .15);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto var(--space-3);
}
.preloader__bar span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--yellow), var(--yellow-dark));
    border-radius: var(--radius-full);
}
.preloader__text {
    color: var(--gray-400);
    font-size: .85rem;
    letter-spacing: .15em;
    text-transform: uppercase;
}

/* ============================ HEADER / NAV ============================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 1000;
    transition: background var(--t) var(--ease),
                box-shadow var(--t) var(--ease),
                backdrop-filter var(--t) var(--ease);
}
/* Transparente al inicio */
.header.is-transparent {
    background: transparent;
}
/* Solido al hacer scroll */
.header.is-solid {
    background: var(--bg);
    box-shadow: var(--shadow-md);
    backdrop-filter: saturate(180%) blur(12px);
}

.nav {
    max-width: var(--container-wide);
    height: 100%;
    margin-inline: auto;
    padding-inline: var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

/* Logotipo */
.nav__logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-family: var(--font-head);
    font-weight: 700;
    z-index: 1002;
}
.nav__logo-mark {
    font-size: 1.6rem;
    color: var(--yellow);
    letter-spacing: .02em;
}
.nav__logo-text {
    font-size: 1rem;
    letter-spacing: .12em;
    color: var(--white);
    transition: color var(--t) var(--ease);
}
.header.is-solid .nav__logo-text {
    color: var(--black);
}

/* Menu */
.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}
.nav__link {
    font-family: var(--font-head);
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--white);
    position: relative;
    padding-block: 6px;
    transition: color var(--t-fast) var(--ease);
}
.header.is-solid .nav__link {
    color: var(--gray-700);
}
.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--yellow);
    transition: width var(--t) var(--ease-out);
}
.nav__link:hover,
.nav__link.is-active {
    color: var(--yellow);
}
.nav__link:hover::after,
.nav__link.is-active::after {
    width: 100%;
}

/* Toggle movil */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    z-index: 1002;
}
.nav__toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--white);
    transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.header.is-solid .nav__toggle span {
    background: var(--black);
}
.nav__toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav__toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.nav__toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Selector de idioma */
.nav__lang {
    position: relative;
}
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, .1);
    color: var(--white);
    font-size: .8rem;
    font-weight: 600;
    transition: background var(--t-fast) var(--ease);
}
.header.is-solid .lang-toggle {
    background: var(--gray-100);
    color: var(--gray-700);
}
.lang-toggle:hover {
    background: rgba(245, 184, 0, .2);
}
.lang-toggle__flag {
    font-size: 1rem;
}
.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--bg-elev);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
    z-index: 1003;
}
.lang-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-menu__btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    color: var(--text);
    transition: background var(--t-fast) var(--ease), color var(--t-fast);
}
.lang-menu__btn:hover {
    background: var(--gray-100);
    color: var(--yellow-dark);
}

/* Toggle tema */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, .1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: background var(--t-fast) var(--ease);
}
.header.is-solid .theme-toggle {
    background: var(--gray-100);
    color: var(--gray-700);
}
.theme-toggle:hover {
    background: rgba(245, 184, 0, .2);
}
.theme-toggle__icon {
    position: absolute;
    transition: transform var(--t) var(--ease-out), opacity var(--t) var(--ease);
}
.theme-toggle__icon--moon {
    opacity: 0;
    transform: rotate(90deg) scale(.5);
}
/* Estado dark (lo define darkmode.css con [data-theme=dark]) */

/* ============================ HERO ============================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--nav-h);
}

/* Slider de fondo */
.hero__slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.12);
    transition: opacity 1.4s var(--ease), transform 6s var(--ease-out);
}
.hero__slide--active {
    opacity: 1;
    transform: scale(1);
}

/* Overlay oscuro */
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(110deg, rgba(10, 10, 10, .92) 0%, rgba(10, 10, 10, .7) 45%, rgba(10, 10, 10, .35) 100%);
}

/* Contenido */
.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-wide);
    margin-inline: auto;
    padding-inline: var(--space-5);
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: var(--space-7);
    align-items: center;
}

/* Texto */
.hero__badge {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--yellow);
    padding: 8px 16px;
    border: 1px solid rgba(245, 184, 0, .4);
    border-radius: var(--radius-full);
    background: rgba(245, 184, 0, .08);
    margin-bottom: var(--space-5);
}
.hero__title {
    font-family: var(--font-head);
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -.01em;
    margin-bottom: var(--space-5);
}
.hero__title-line {
    display: block;
}
.hero__title-line--accent {
    color: var(--yellow);
}
.hero__subtitle {
    color: var(--gray-200);
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    max-width: 540px;
    margin-bottom: var(--space-4);
}
.hero__support {
    color: var(--gray-400);
    font-size: .95rem;
    max-width: 520px;
    margin-bottom: var(--space-6);
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

/* Dots del slider */
.hero__dots {
    display: flex;
    gap: 10px;
}
.hero__dots button {
    width: 36px;
    height: 4px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, .3);
    transition: background var(--t) var(--ease), width var(--t) var(--ease);
}
.hero__dots button.is-active {
    background: var(--yellow);
    width: 56px;
}

/* Indicador scroll */
.hero__scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 26px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    padding-top: 8px;
}
.hero__scroll span {
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: var(--radius-full);
}

/* ============================ GLASSMORPHISM CARD ============================ */
.glass {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    position: relative;
    overflow: hidden;
}
.glass__shine {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
    transform: rotate(20deg);
    pointer-events: none;
}

.hero__card {
    padding: var(--space-6);
    color: var(--white);
    max-width: 440px;
    margin-left: auto;
    width: 100%;
}
.glass__title {
    color: var(--white);
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: var(--space-2);
}
.glass__subtitle {
    color: var(--gray-300);
    text-align: center;
    font-size: .85rem;
    margin-bottom: var(--space-5);
}

/* Formulario de login */
.login-form .field,
.contact-form .field {
    position: relative;
    margin-bottom: var(--space-5);
}
.field label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--gray-300);
    margin-bottom: 8px;
    transition: color var(--t-fast) var(--ease);
}
.field input,
.field textarea {
    width: 100%;
    padding: .8rem 1rem;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--radius);
    color: var(--white);
    transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.field input::placeholder,
.field textarea::placeholder {
    color: rgba(255, 255, 255, .4);
}
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--yellow);
    background: rgba(245, 184, 0, .06);
}
.field input:focus + .field__line,
.field textarea:focus + .field__line {
    transform: scaleX(1);
}
.field__line {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    border-radius: var(--radius-full);
    transition: transform var(--t) var(--ease-out);
    pointer-events: none;
}

.login-form__forgot {
    display: block;
    text-align: center;
    margin-top: var(--space-3);
    color: var(--gray-300);
    font-size: .85rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.login-form__forgot:hover {
    color: var(--yellow);
}

.glass__divider {
    text-align: center;
    margin: var(--space-5) 0;
    position: relative;
    color: var(--gray-400);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.glass__divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, .12);
}
.glass__divider span {
    position: relative;
    background: var(--glass-bg);
    padding-inline: 12px;
}

.glass__promo {
    text-align: center;
    margin-bottom: var(--space-5);
}
.glass__promo img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: var(--space-3);
    filter: brightness(.9);
}
.glass__promo p {
    color: var(--gray-300);
    font-size: .85rem;
}

.glass__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.glass__actions .btn {
    font-size: .85rem;
    padding: .75rem 1rem;
}

/* ============================ CARRUSEL DE MARCAS ============================ */
.brands {
    background: var(--black);
    padding-block: var(--space-6);
    overflow: hidden;
    border-block: 1px solid rgba(255, 255, 255, .06);
}
.brands__track {
    display: flex;
    gap: var(--space-8);
    width: max-content;
    will-change: transform;
}
.brand-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .05em;
    color: var(--gray-500);
    white-space: nowrap;
    transition: color var(--t) var(--ease), transform var(--t) var(--ease);
    cursor: default;
    user-select: none;
}
.brand-item:hover {
    color: var(--yellow);
    transform: scale(1.08);
}
.brand-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--metal);
    flex-shrink: 0;
}

/* ============================ WHAT WE DO ============================ */
.what-we-do {
    background: var(--bg);
}
.what-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}
.what-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    transition: transform var(--t) var(--ease-out),
                box-shadow var(--t) var(--ease),
                border-color var(--t) var(--ease);
}
.what-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--yellow);
}
.what-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
    color: var(--yellow-dark);
    transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.what-card__icon svg {
    width: 30px;
    height: 30px;
}
.what-card:hover .what-card__icon {
    background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
    color: var(--black);
}
.what-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
}
.what-card p {
    color: var(--text-muted);
    font-size: .95rem;
}

/* ============================ ABOUT ============================ */
.about {
    background: var(--bg-alt);
}
.about__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
}
.about__col-title {
    text-align: center;
    font-size: 1.6rem;
    text-transform: uppercase;
    margin-bottom: var(--space-5);
    color: var(--yellow-dark);
}
.about__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}
.mini-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    transition: transform var(--t) var(--ease-out),
                box-shadow var(--t) var(--ease),
                border-color var(--t) var(--ease);
}
.mini-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--yellow);
}
.mini-card__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 0 4px rgba(245, 184, 0, .2);
    flex-shrink: 0;
}
.mini-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading);
}

/* ============================ WHY ============================ */
.why {
    background: var(--bg);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}
.why-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    position: relative;
    overflow: hidden;
    transition: transform var(--t) var(--ease-out),
                box-shadow var(--t) var(--ease),
                border-color var(--t) var(--ease);
}
.why-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--yellow), var(--yellow-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t) var(--ease-out);
}
.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--yellow);
}
.why-card:hover::before {
    transform: scaleX(1);
}
.why-card__num {
    font-family: var(--font-head);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gray-200);
    line-height: 1;
    margin-bottom: var(--space-3);
    transition: color var(--t) var(--ease);
}
.why-card:hover .why-card__num {
    color: var(--yellow);
}
.why-card h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-2);
}
.why-card p {
    color: var(--text-muted);
    font-size: .92rem;
}

/* ============================ STATS ============================ */
.stats {
    position: relative;
    padding-block: var(--space-8);
    overflow: hidden;
}
.stats__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(10, 10, 10, .82), rgba(10, 10, 10, .9)),
                url("https://images.pexels.com/photos/28752154/pexels-photo-28752154.jpeg?auto=compress&cs=tinysrgb&w=1920") center / cover fixed;
}
.stats__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-5);
    text-align: center;
}
.stat {
    padding: var(--space-5);
}
.stat__num {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 700;
    color: var(--yellow);
    line-height: 1;
    margin-bottom: var(--space-2);
}
.stat__label {
    color: var(--gray-200);
    font-size: .9rem;
    letter-spacing: .04em;
}

/* ============================ CTA ============================ */
.cta {
    position: relative;
    padding-block: var(--space-9);
    overflow: hidden;
    text-align: center;
}
.cta__bg {
    position: absolute;
    inset: 0;
    background: url("https://images.pexels.com/photos/34229738/pexels-photo-34229738.jpeg?auto=compress&cs=tinysrgb&w=1920") center / cover;
}
.cta__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(10, 10, 10, .88), rgba(10, 10, 10, .7));
}
.cta__content {
    position: relative;
    z-index: 1;
}
.cta__title {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3.2rem);
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}
.cta__text {
    color: var(--gray-200);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto var(--space-6);
}

/* ============================ CONTACT FORM ============================ */
.contact {
    background: var(--bg-alt);
}
.contact__wrap {
    max-width: 820px;
    margin: 0 auto;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-7);
    box-shadow: var(--shadow-md);
}
/* En el formulario de contacto los inputs usan tema claro (no glass) */
.contact-form .field label {
    color: var(--text-muted);
}
.contact-form .field input,
.contact-form .field textarea {
    background: var(--bg);
    border: 1px solid var(--border-strong);
    color: var(--text);
}
.contact-form .field input::placeholder,
.contact-form .field textarea::placeholder {
    color: var(--gray-400);
}
.contact-form .field input:focus,
.contact-form .field textarea:focus {
    background: var(--bg);
    border-color: var(--yellow);
}
.contact-form .field.is-invalid input,
.contact-form .field.is-invalid textarea {
    border-color: #e53935;
}
.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}
.field__error {
    display: block;
    color: #e53935;
    font-size: .8rem;
    margin-top: 6px;
    min-height: 1em;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.field.is-invalid .field__error {
    opacity: 1;
    transform: translateY(0);
}
.contact-form__status {
    text-align: center;
    margin-top: var(--space-4);
    font-weight: 600;
    min-height: 1.5em;
}
.contact-form__status.is-success {
    color: #2e7d32;
}
.contact-form__status.is-error {
    color: #e53935;
}

/* Efecto ripple en botones */
.ripple {
    position: relative;
    overflow: hidden;
}
.ripple__wave {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, .5);
    animation: ripple .6s var(--ease-out);
    pointer-events: none;
}
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================ FOOTER ============================ */
.footer {
    background: var(--black);
    color: var(--gray-300);
    padding-top: var(--space-8);
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: var(--space-6);
    padding-bottom: var(--space-7);
}
.footer__col h4 {
    color: var(--white);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: var(--space-4);
}
.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer__col a {
    color: var(--gray-400);
    font-size: .92rem;
    transition: color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
}
.footer__col a:hover {
    color: var(--yellow);
    padding-left: 6px;
}
.footer__col--brand p {
    margin: var(--space-4) 0;
    font-size: .92rem;
    line-height: 1.7;
    max-width: 360px;
}
.footer__logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-family: var(--font-head);
    font-weight: 700;
}
.footer__logo-mark {
    font-size: 1.8rem;
    color: var(--yellow);
}
.footer__logo-text {
    font-size: 1.1rem;
    letter-spacing: .12em;
    color: var(--white);
}
.footer__social {
    display: flex;
    gap: 12px;
}
.footer__social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    font-size: 1.1rem;
    transition: background var(--t-fast) var(--ease), color var(--t-fast), transform var(--t-fast);
}
.footer__social a:hover {
    background: var(--yellow);
    color: var(--black);
    transform: translateY(-3px);
}
.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .9rem;
    line-height: 1.5;
    margin-bottom: 12px;
}
.footer__contact svg {
    width: 18px;
    height: 18px;
    color: var(--yellow);
    flex-shrink: 0;
    margin-top: 2px;
}
.footer__map {
    width: 100%;
    height: 280px;
    border-block: 1px solid rgba(255, 255, 255, .08);
}
.footer__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(.6) contrast(1.1);
}
.footer__bar {
    padding-block: var(--space-4);
    text-align: center;
    font-size: .85rem;
    color: var(--gray-500);
    border-top: 1px solid rgba(255, 255, 255, .06);
}

/* ============================ BACK TO TOP ============================ */
.back-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--yellow);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-yellow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity var(--t) var(--ease), transform var(--t) var(--ease-out), visibility var(--t);
    z-index: 900;
}
.back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-top:hover {
    transform: translateY(-4px);
}
.back-top svg {
    width: 22px;
    height: 22px;
}

/* ============================ SCROLLBAR ============================ */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-alt);
}
::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--yellow-dark);
}

/* Reduce motion: respetar preferencia del usuario */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   Ajuste COMEDIMA — Título "Sobre nosotros" en una sola línea
   El nombre legal es largo; en escritorio/tablet (>=768px) se
   fuerza una sola línea. En móvil se permite el salto natural.
   ============================================================ */
@media (min-width: 768px) {
    .about #aboutTitle {
        white-space: nowrap;
    }
}
