/* =========================================================
   PROMAAC · Climatización industrial
   Sistema de diseño — "ingeniería de clima"
   ========================================================= */

:root {
    /* Color */
    --ink:        #0a1611;   /* verde-carbón, base oscura   */
    --ink-2:      #0f2019;   /* superficie oscura elevada   */
    --ink-line:   #1d3a2e;   /* líneas sobre oscuro         */
    --brand:      #23b55d;   /* verde PROMAAC, refinado     */
    --brand-deep: #0f7a41;
    --ice:        #86e7d6;   /* acento "aire frío"          */
    --paper:      #f5f8f6;   /* sección clara, fría         */
    --paper-2:    #ffffff;
    --soft:       #eef3f0;
    --slate:      #33443d;   /* texto sobre claro           */
    --slate-2:    #5d6f68;   /* texto secundario claro      */
    --mist:       #a9bdb4;   /* texto secundario oscuro     */
    --mist-2:     #cddbd3;

    /* Tipografía */
    --display: "Space Grotesk", system-ui, sans-serif;
    --body:    "Inter", system-ui, sans-serif;
    --mono:    "Space Mono", ui-monospace, monospace;

    /* Medidas */
    --shell: 1160px;
    --radius: 18px;
    --radius-sm: 12px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--body);
    color: var(--slate);
    background: var(--paper-2);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: 24px;
}

/* ---------- Etiquetas técnicas ---------- */
.eyebrow {
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ice);
    margin: 0 0 18px;
}
.eyebrow--dark { color: var(--brand-deep); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
    padding: 20px 0;
}
.nav.is-scrolled {
    background: rgba(10, 22, 17, .82);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--ink-line);
    padding: 12px 0;
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: #fff;
    padding: 9px 14px;
    border-radius: 12px;
    line-height: 0;
    box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .6);
}
.brand__logo {
    height: 26px;
    width: auto;
    display: block;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav__links a {
    text-decoration: none;
    color: var(--mist-2);
    font-size: .93rem;
    font-weight: 500;
    transition: color .2s var(--ease);
}
.nav__links a:hover,
.nav__links a:focus-visible { color: #fff; }

.nav__cta {
    border: 1px solid var(--ink-line);
    padding: 9px 18px;
    border-radius: 999px;
    color: #fff !important;
}
.nav__cta:hover { background: var(--brand); border-color: var(--brand); }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--ink-line);
    border-radius: 10px;
    cursor: pointer;
}
.nav__toggle span {
    width: 18px;
    height: 2px;
    background: #fff;
    transition: transform .25s var(--ease), opacity .2s var(--ease);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    background: radial-gradient(120% 90% at 80% -10%, #123726 0%, var(--ink) 55%);
    color: #fff;
    overflow: hidden;
    padding: 190px 0 120px;
}
.airflow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: .5;
}
.airflow path {
    fill: none;
    stroke: var(--brand);
    stroke-width: 1.4;
    stroke-linecap: round;
}
.airflow__set path { stroke: var(--brand); opacity: .55; }
.airflow__set--2 path { stroke: var(--ice); opacity: .35; }

.airflow__set    { animation: drift 26s linear infinite; }
.airflow__set--2 { animation: drift 34s linear infinite reverse; }
@keyframes drift {
    from { transform: translateX(0); }
    to   { transform: translateX(-280px); }
}

.hero__inner { position: relative; z-index: 1; max-width: 780px; }

.hero__title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(2.4rem, 6vw, 4.3rem);
    line-height: 1.02;
    letter-spacing: -.02em;
    margin: 0 0 26px;
}
.hero__title-accent {
    color: var(--ice);
}
.hero__lead {
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
    color: var(--mist-2);
    max-width: 620px;
    margin: 0 0 36px;
}
.hero__lead strong { color: #fff; font-weight: 600; }

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 52px;
}

/* Lectura tipo instrumento */
.readout {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 34px;
    padding: 22px 0 0;
    margin: 0;
    border-top: 1px solid var(--ink-line);
}
.readout li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .95rem;
    color: var(--mist-2);
}
.readout__k {
    font-family: var(--mono);
    font-size: .78rem;
    color: var(--ice);
    border: 1px solid var(--ink-line);
    border-radius: 6px;
    padding: 3px 7px;
}

/* =========================================================
   BOTONES
   ========================================================= */
.btn {
    --_c: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--body);
    font-weight: 600;
    font-size: .98rem;
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .18s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--primary {
    background: var(--brand);
    color: #04170d;
    box-shadow: 0 10px 30px -12px var(--brand);
}
.btn--primary:hover { background: #2ac96a; transform: translateY(-2px); }
.btn--ghost {
    background: transparent;
    color: #fff;
    border-color: var(--ink-line);
}
.btn--ghost:hover { border-color: var(--ice); color: var(--ice); }
.btn--block { width: 100%; }

/* =========================================================
   SECCIONES GENÉRICAS
   ========================================================= */
.section { padding: 96px 0; }
.section--dark { background: var(--ink); color: #fff; }
.section--soft { background: var(--soft); }

.section__head { max-width: 640px; margin-bottom: 48px; }
.section__title {
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--ink);
    margin: 0;
}
.section__title--light { color: #fff; }

/* Marco de imagen: textura de marca mientras no hay foto */
.card__media,
.spec__media,
.client__logo {
    background-color: var(--ink-2);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}
.card__media::after,
.spec__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(135deg, rgba(134, 231, 214, .10) 0 2px, transparent 2px 14px);
    opacity: 1;
    transition: opacity .3s var(--ease);
}
.card__media.has-img::after,
.spec__media.has-img::after { opacity: 0; }

/* =========================================================
   SERVICIOS (cards)
   ========================================================= */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.card {
    background: var(--paper-2);
    border: 1px solid var(--soft);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px -30px rgba(10, 22, 17, .5);
    border-color: #d8e3dd;
}
.card__media { aspect-ratio: 16 / 10; }
.card__body { padding: 24px 24px 28px; }
.card__body p { margin: 0; color: var(--slate-2); font-size: .96rem; }

.tag {
    display: inline-block;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--ink);
    margin-bottom: 10px;
}

/* =========================================================
   ESPECIALIDADES (lista técnica)
   ========================================================= */
.spec {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.spec__item {
    display: flex;
    gap: 22px;
    align-items: center;
    background: var(--ink-2);
    border: 1px solid var(--ink-line);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.spec__item:hover { border-color: var(--brand); transform: translateY(-4px); }
.spec__media {
    flex: 0 0 128px;
    height: 128px;
    border-radius: var(--radius-sm);
}
.spec__text h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0 0 8px;
    color: #fff;
}
.spec__text p { margin: 0; color: var(--mist); font-size: .93rem; }

/* =========================================================
   MISIÓN
   ========================================================= */
.mission { background: var(--paper); }
.mission__inner { max-width: 860px; text-align: center; margin-inline: auto; }
.mission__quote {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(1.4rem, 3.2vw, 2.2rem);
    line-height: 1.35;
    letter-spacing: -.01em;
    color: var(--ink);
    margin: 0;
    position: relative;
    padding-top: 8px;
}
.mission__quote em { color: var(--brand-deep); font-style: normal; }

/* =========================================================
   CLIENTES
   ========================================================= */
.clients {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 0;
    margin: 0;
}
.client {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}
.client__logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--paper-2);
    border: 1px solid #dde7e1;
    box-shadow: 0 12px 30px -22px rgba(10, 22, 17, .6);
}
.client span {
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--slate-2);
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact__inner {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
}
.contact__lead { color: var(--mist-2); margin: 0 0 30px; }

.contact__facts {
    display: flex;
    justify-content: center;
    gap: 56px;
    margin: 0 0 32px;
}
.contact__facts dt {
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ice);
    margin-bottom: 6px;
}
.contact__facts dd {
    margin: 0;
    font-family: var(--display);
    font-size: 1.15rem;
    color: #fff;
}
.contact__facts a { text-decoration: none; }
.contact__facts a:hover { color: var(--brand); }

/* Formulario */
.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    background: var(--ink-2);
    border: 1px solid var(--ink-line);
    border-radius: var(--radius);
    padding: 30px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mist);
}
.field input,
.field textarea {
    font-family: var(--body);
    font-size: .96rem;
    color: #fff;
    background: var(--ink);
    border: 1px solid var(--ink-line);
    border-radius: var(--radius-sm);
    padding: 13px 15px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
    resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: #5f746b; }
.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(35, 181, 93, .18);
}
.form__note {
    font-size: .85rem;
    color: var(--ice);
    margin: 12px 0 0;
    min-height: 1em;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: #05100b; color: var(--mist); padding: 40px 0; }
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}
.brand--sm { padding: 7px 12px; }
.brand--sm .brand__logo { height: 20px; }
.footer__social { display: flex; gap: 22px; }
.footer__social a {
    text-decoration: none;
    color: var(--mist);
    font-size: .9rem;
    transition: color .2s var(--ease);
}
.footer__social a:hover { color: var(--brand); }
.footer__legal {
    font-family: var(--mono);
    font-size: .74rem;
    letter-spacing: .08em;
    color: #4c5f57;
    margin: 0;
}

/* =========================================================
   WHATSAPP FLOTANTE
   ========================================================= */
.wa {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand);
    display: grid;
    place-items: center;
    box-shadow: 0 12px 30px -8px rgba(35, 181, 93, .7);
    transition: transform .2s var(--ease);
}
.wa:hover { transform: scale(1.07); }
.wa svg { width: 30px; fill: #04170d; }

/* =========================================================
   ACCESIBILIDAD
   ========================================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--ice);
    outline-offset: 3px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .cards { grid-template-columns: 1fr; }
    .spec { grid-template-columns: 1fr; }
    .clients { grid-template-columns: repeat(2, 1fr); }
    .contact__inner { grid-template-columns: 1fr; gap: 36px; }

    .nav__toggle { display: flex; }
    .nav__links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        background: rgba(10, 22, 17, .96);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--ink-line);
        padding: 16px 24px 24px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height .3s var(--ease), opacity .25s var(--ease);
    }
    .nav.is-open .nav__links {
        max-height: 340px;
        opacity: 1;
        pointer-events: auto;
    }
    .nav__links a { padding: 10px 0; width: 100%; }
    .nav__cta { padding: 10px 18px; }
    .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
    .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
    .hero { padding: 150px 0 90px; }
    .section { padding: 72px 0; }
    .clients { grid-template-columns: 1fr; }
    .contact__facts { flex-direction: column; gap: 20px; }
    .form { grid-template-columns: 1fr; padding: 22px; }
    .spec__item { flex-direction: column; align-items: flex-start; }
    .spec__media { width: 100%; flex-basis: auto; height: 160px; }
}

/* =========================================================
   MOVIMIENTO REDUCIDO
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .airflow__set,
    .airflow__set--2 { animation: none; }
    * { transition-duration: .01ms !important; }
}