/* =======================================================================
   MSP SOLDADURAS · style.css
   Paleta industrial LUMINOSA · Turquesa premium + grafito + blanco
   Diseño claro, moderno, B2B · Responsive 320px → escritorio
   ======================================================================= */

/* ----------------------------------------------------------------------
   1. VARIABLES Y RESET
   ---------------------------------------------------------------------- */
:root {
    /* Marca */
    --turq:        #0ea39b;   /* turquesa principal */
    --turq-dark:   #0c7d77;   /* turquesa oscuro (texto sobre claro) */
    --turq-hover:  #0e4a43;   /* VERDE OSCURO elegante para hover de botones */
    --turq-light:  #e6f4f2;   /* turquesa muy claro (fondos suaves) */

    /* Neutros (poco negro: grafito en lugar de negro puro) */
    --ink:         #14272e;   /* grafito azulado (texto/titulares) */
    --ink-soft:    #243c44;
    --slate:       #5c6b72;   /* texto secundario */
    --line:        #e6ecee;   /* bordes / divisores */

    /* Fondos luminosos (blanco roto · sin blanco puro agresivo) */
    --bg:          #f6f8f9;   /* blanco roto (cuerpo / Sobre Nosotros) */
    --bg-alt:      #eef3f4;   /* gris muy claro (Servicios) */
    --bg-soft:     #eef5f5;
    --surface:     #fcfdfe;   /* tarjetas / acordeón (casi blanco, no puro) */
    --white:       #ffffff;

    /* WhatsApp (solo para sus botones, no para hover genérico) */
    --wa:          #25d366;
    --wa-dark:     #1da851;

    /* Sombras modernas y suaves */
    --sh-sm: 0 4px 16px rgba(20, 39, 46, .06);
    --sh-md: 0 14px 40px rgba(20, 39, 46, .09);
    --sh-lg: 0 24px 60px rgba(20, 39, 46, .14);
    --sh-turq: 0 12px 30px rgba(14, 163, 155, .30);

    /* Tipografía y formas */
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --display: 'Space Grotesk', 'Inter', sans-serif;
    --radius: 18px;
    --radius-sm: 12px;
    --container: 1200px;
    --ease: cubic-bezier(.16, .84, .44, 1);
}

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

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

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* Utilidades */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.text-turq { color: var(--turq); }

/* Eyebrow */
.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--display);
    font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--turq-dark);
    margin-bottom: 16px;
}
.eyebrow--light { color: #6ee7df; }

/* ----------------------------------------------------------------------
   2. BOTONES
   ---------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--display); font-weight: 600; font-size: .96rem;
    padding: 13px 24px; border: none; border-radius: 50px; cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s;
    white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* Primario: turquesa → hover VERDE OSCURO elegante (no WhatsApp) */
.btn--primary { background: var(--turq); color: #fff; box-shadow: var(--sh-turq); }
.btn--primary:hover { background: var(--turq-hover); color: #fff; transform: translateY(-3px); box-shadow: 0 16px 34px rgba(14,74,67,.34); }

/* WhatsApp (mantiene su verde oficial reconocible) */
.btn--whatsapp { background: var(--wa); color: #06351c; box-shadow: 0 12px 28px rgba(37,211,102,.30); }
.btn--whatsapp:hover { background: var(--wa-dark); color: #04250f; transform: translateY(-3px); box-shadow: 0 16px 34px rgba(37,211,102,.40); }
.btn--whatsapp svg { width: 20px; height: 20px; }
.btn--whatsapp:hover svg { transform: none; }

/* Botón de WhatsApp del HERO · caja casi transparente sin bordes, icono y texto
   en el verde oficial de WhatsApp */
.hero__actions .btn--whatsapp { background: rgba(255,255,255,.05); border: none; box-shadow: none; color: var(--wa); }
.hero__actions .btn--whatsapp:hover { background: rgba(37,211,102,.14); transform: translateY(-3px); }

.btn--lg    { padding: 16px 30px; font-size: 1rem; }
.btn--block { width: 100%; }
/* Icono de carta: solo se usa en la versión compacta del hero en móvil */
.btn__ic-mail { display: none; }
/* Botón de Instagram del hero: solo aparece en móvil (no en escritorio) */
.hero__ig-btn { display: none; }

/* ----------------------------------------------------------------------
   3. HEADER / NAVEGACIÓN
   ---------------------------------------------------------------------- */
/* Header oscuro translúcido · MISMA LÍNEA visual que footer y formulario */
.header {
    position: fixed; inset: 0 0 auto 0; z-index: 120;
    transition: background .35s, box-shadow .35s, padding .35s, border-color .35s;
    padding: 14px 0;
    background: rgba(20, 39, 46, .55); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Logo blanco limpio (sin caja, sin fondo, sin borde, sin padding) */
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 30px; width: auto; display: block; transition: transform .3s var(--ease); }
.brand:hover .brand__logo { transform: scale(1.05); }

/* Al hacer scroll: grafito translúcido (mismo tono que el footer) */
.header--scrolled {
    background: rgba(13, 26, 31, .85); backdrop-filter: blur(16px);
    box-shadow: 0 6px 24px rgba(0,0,0,.26); padding: 9px 0;
    border-bottom-color: rgba(255,255,255,.08);
}

.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
    font-weight: 600; font-size: .95rem; color: rgba(255,255,255,.9);
    padding: 9px 15px; border-radius: 50px; transition: color .25s, background .25s;
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,.14); }

.header__cta { padding: 10px 20px; font-size: .9rem; }
.nav__actions { display: none; }

/* Hamburguesa (líneas blancas siempre) */
.burger { display: none; flex-direction: column; gap: 5px; width: 46px; height: 46px;
    background: rgba(255,255,255,.12); border: none;
    border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.burger span { width: 22px; height: 2.5px; background: #fff; border-radius: 2px; transition: .3s var(--ease); }
.burger--open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger--open span:nth-child(2) { opacity: 0; }
.burger--open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Backdrop del menú móvil */
.nav-backdrop {
    position: fixed; inset: 0; z-index: 105;
    background: rgba(20,39,46,.5); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity .42s var(--ease), visibility .42s;
}
.nav-backdrop--on { opacity: 1; visibility: visible; }

/* ----------------------------------------------------------------------
   4. HERO
   ---------------------------------------------------------------------- */
/* Hero compacto tipo banner · texto con aire y mejor jerarquía */
.hero { position: relative; min-height: 80vh; display: flex; align-items: center;
    color: #fff; overflow: hidden; padding: 120px 0 72px; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Overlay equilibrado → la imagen destaca y el texto se lee con claridad */
.hero__veil {
    position: absolute; inset: 0;
    background:
        linear-gradient(100deg, rgba(16,36,43,.8) 0%, rgba(16,36,43,.46) 54%, rgba(14,92,84,.2) 100%),
        radial-gradient(circle at 84% 22%, rgba(14,163,155,.22), transparent 60%);
}
/* Línea fina degradada que separa el hero de la siguiente sección
   (mismo estilo que la del footer) */
.hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 1;
    background: linear-gradient(90deg, var(--turq), transparent 60%);
}
/* Más ancho → el texto respira y no queda comprimido */
.hero__inner { position: relative; max-width: 900px; }
.hero__title {
    font-family: var(--display); font-weight: 700; line-height: 1.06;
    font-size: clamp(2.3rem, 6.2vw, 4.6rem); letter-spacing: -.028em; margin-bottom: 26px;
    text-shadow: 0 2px 26px rgba(0,0,0,.28);
}
/* "a medida" baja a su propia línea, equilibrada y sin partirse */
.hero__title-accent { display: block; white-space: nowrap; }
.hero__subtitle { font-size: clamp(1.04rem, 1.5vw, 1.2rem); font-weight: 400;
    color: rgba(255,255,255,.86); max-width: 560px; line-height: 1.65; margin-bottom: 36px;
    text-shadow: 0 1px 12px rgba(0,0,0,.26); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ----------------------------------------------------------------------
   6. SECCIONES (genéricas)
   ---------------------------------------------------------------------- */
.section { padding: clamp(60px, 8vw, 112px) 0; }
.section__head { max-width: 720px; margin-bottom: 50px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title {
    font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.1;
    font-size: clamp(1.8rem, 4vw, 2.9rem); color: var(--ink);
}
.section__lead { color: var(--slate); font-size: 1.06rem; margin-top: 16px; }

/* ----------------------------------------------------------------------
   7. SERVICIOS
   ---------------------------------------------------------------------- */
.services { background: var(--bg-alt); }

/* ----- SERVICIOS -----
   ESCRITORIO / TABLET: bloques abiertos permanentemente (sin acordeón, sin números).
   MÓVIL (≤767px): se convierte en acordeón desplegable (ver media query).        */
.accordion { display: flex; flex-direction: column; gap: 0; }
.acc-item {
    background: transparent; border: none; box-shadow: none; border-radius: 0;
    padding: 56px 0; border-top: 1px solid var(--line);
}
.acc-item:first-child { padding-top: 6px; border-top: none; }
.acc-item:last-child  { padding-bottom: 0; }

/* Wrapper semántico H3 del encabezado de servicio (sin estilos por defecto) */
.acc-h { margin: 0; font: inherit; }

/* Encabezado del servicio (escritorio): línea de acento + título grande + etiqueta */
.acc-head {
    width: 100%; display: block; padding: 0; margin-bottom: 22px;
    background: none; border: none; cursor: default; text-align: left; font-family: var(--font);
}
.acc-head::before {
    content: ""; display: block; width: 46px; height: 4px; border-radius: 4px;
    background: var(--turq); margin-bottom: 18px;
}
.acc-info { display: block; min-width: 0; }
.acc-title { font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.acc-sub { display: block; margin-top: 8px; font-size: .8rem; color: var(--turq-dark);
    text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.acc-chevron { display: none; }                 /* sin chevron en escritorio */

.acc-panel { display: block; }                   /* siempre visible */
.acc-panel__inner { padding: 0; }
.acc-desc, .acc-panel__inner > .card__text { color: var(--slate); font-size: 1.06rem; line-height: 1.6; margin: 0 0 26px; max-width: 760px; }

/* Galería de cada servicio (escritorio: 4 por fila) */
.svc-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Reparaciones: enlace + botón (texto/enlaces sin modificar) */
.card__text { color: var(--slate); font-size: .95rem; }
.card__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.card__cta .btn--whatsapp { padding: 11px 18px; font-size: .9rem; }
.card__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--turq-dark); font-family: var(--display); }
.card__link svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.card__link:hover svg { transform: translateX(5px); }

/* ----------------------------------------------------------------------
   8. MINIATURAS (.gphoto) + LIGHTBOX · usadas en las galerías de servicio
   ---------------------------------------------------------------------- */
.gphoto {
    position: relative; border: none; padding: 0; cursor: pointer; overflow: hidden;
    border-radius: var(--radius-sm); box-shadow: var(--sh-sm); background: var(--bg-alt);
    aspect-ratio: 1 / 1;                 /* miniaturas uniformes y compactas */
}
.gphoto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gphoto:hover img { transform: scale(1.08); }
/* Etiqueta SIEMPRE visible (sin depender de hover en móvil) */
.gphoto__tag {
    position: absolute; left: 8px; bottom: 8px; right: 8px; z-index: 2;
    color: #fff; font-family: var(--display); font-size: .68rem; font-weight: 600;
    letter-spacing: .02em; text-transform: uppercase; line-height: 1.2;
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.gphoto::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(20,39,46,.72), transparent 58%); transition: opacity .35s; }
.gphoto:hover::after { opacity: .8; }

.lightbox {
    position: fixed; inset: 0; z-index: 1000; display: none;
    align-items: center; justify-content: center; padding: 28px;
    background: rgba(14,24,28,.92); backdrop-filter: blur(6px);
}
.lightbox--on { display: flex; animation: fade .3s ease; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: var(--sh-lg); }
.lightbox__close {
    position: absolute; top: 20px; right: 28px; font-size: 2.6rem; line-height: 1;
    color: #fff; background: none; border: none; cursor: pointer; transition: transform .25s, color .25s;
}
.lightbox__close:hover { transform: rotate(90deg); color: var(--turq); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ----------------------------------------------------------------------
   9. SOBRE NOSOTROS
   ---------------------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.about__media { position: relative; }
.about__img { border-radius: var(--radius); box-shadow: var(--sh-md); }
.about__img--main { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.about__img--mini {
    position: absolute; right: -24px; bottom: -30px; width: 46%;
    aspect-ratio: 1/1; object-fit: cover; border: 6px solid var(--white);
}

.about__text { color: var(--slate); font-size: 1.04rem; margin-bottom: 16px; }
.about__text strong { color: var(--ink); }
.about__list { margin: 28px 0 32px; display: flex; flex-direction: column; gap: 18px; }
.about__list li { display: flex; gap: 15px; }
.check {
    flex: none; width: 38px; height: 38px; border-radius: 11px;
    background: var(--turq-light); color: var(--turq-dark);
    display: grid; place-items: center;
}
.check svg { width: 19px; height: 19px; }
.about__list h4 { font-family: var(--display); font-size: 1.04rem; margin-bottom: 2px; }
.about__list p { color: var(--slate); font-size: .92rem; }

/* ----------------------------------------------------------------------
   9b. ZONA DE SERVICIO (SEO local)
   ---------------------------------------------------------------------- */
.zona { background: var(--bg); }
.zona__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1140px; margin: 0 auto; }
.zona-card {
    background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--turq);
    border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--sh-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.zona-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.zona-card__title { font-family: var(--display); font-size: 1.16rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.zona-card p { color: var(--slate); font-size: .96rem; line-height: 1.55; }
.zona__towns { text-align: center; max-width: 780px; margin: 34px auto 0; color: var(--slate); font-size: .98rem; line-height: 1.65; }
.zona__towns strong { color: var(--ink); font-weight: 600; }

/* ----------------------------------------------------------------------
   9c. BANDA CTA (conversión / SEM)
   ---------------------------------------------------------------------- */
.cta-band { background: linear-gradient(120deg, var(--turq) 0%, var(--turq-hover) 100%); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 42px 24px; }
.cta-band__title { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.01em; }
.cta-band__txt p { color: rgba(255,255,255,.92); margin-top: 8px; max-width: 580px; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band__call { background: #fff; color: var(--turq-hover); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.cta-band__call:hover { background: #06251f; color: #fff; transform: translateY(-3px); }
.cta-band__call svg { width: 19px; height: 19px; }
.cta-band__quote { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.cta-band__quote:hover { background: rgba(255,255,255,.26); transform: translateY(-3px); }

/* ----------------------------------------------------------------------
   9d. FAQ (long-tail local + rich results)
   ---------------------------------------------------------------------- */
.faq { background: var(--bg-alt); }
.faq__list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--sh-sm); }
.faq__item summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    gap: 14px; padding: 18px 20px; font-family: var(--display); font-weight: 600; font-size: 1.04rem;
    color: var(--ink); transition: background .25s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { background: var(--turq-light); }
.faq__chevron { flex: none; width: 22px; height: 22px; color: var(--turq-dark); transition: transform .35s var(--ease); }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__item > p { padding: 0 20px 20px; color: var(--slate); font-size: .98rem; line-height: 1.65; }
.faq__item > p a { color: var(--turq-dark); font-weight: 600; }

/* ----------------------------------------------------------------------
   10. CONTACTO + FORMULARIO · OSCURO TRANSLÚCIDO (glassmorphism)
   ---------------------------------------------------------------------- */
.contact { background: linear-gradient(160deg, #16292f 0%, #0e1c21 100%); color: #fff; position: relative; overflow: hidden; }
.contact::before {
    content: ""; position: absolute; top: -160px; right: -120px; width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(14,163,155,.28), transparent 70%); pointer-events: none;
}
.contact::after {
    content: ""; position: absolute; bottom: -180px; left: -140px; width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(14,163,155,.14), transparent 70%); pointer-events: none;
}
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }

.contact__title { font-family: var(--display); font-weight: 700; letter-spacing: -.02em;
    font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.12; color: #fff; }
.contact__lead { color: rgba(255,255,255,.74); font-size: 1.08rem; margin: 16px 0 32px; }
.contact__list { display: flex; flex-direction: column; gap: 16px; }
.contact__list li { display: flex; align-items: center; gap: 15px; }
.contact__ic {
    flex: none; width: 48px; height: 48px; border-radius: 14px;
    background: rgba(14,163,155,.16); color: #6ee7df;
    display: grid; place-items: center; border: 1px solid rgba(110,231,223,.28);
    backdrop-filter: blur(6px);
}
.contact__ic svg { width: 21px; height: 21px; }
.contact__k { font-size: .8rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .08em; }
.contact__v { display: block; font-weight: 600; font-size: 1.02rem; color: #fff; transition: color .25s; }
.contact__v + .contact__v { margin-top: 3px; }
a.contact__v:hover { color: #6ee7df; }

/* Bloque de UBICACIÓN moderno · clicable (glass turquesa sobre fondo oscuro) */
.loc-block {
    display: flex; align-items: center; gap: 16px; margin-bottom: 26px;
    background: rgba(14,163,155,.12); border: 1px solid rgba(110,231,223,.3);
    border-radius: 16px; padding: 18px 20px; backdrop-filter: blur(8px);
    transition: transform .3s var(--ease), background .3s, box-shadow .3s, border-color .3s;
}
.loc-block:hover { transform: translateY(-3px); background: rgba(14,163,155,.2);
    border-color: rgba(110,231,223,.55); box-shadow: 0 16px 32px rgba(14,163,155,.22); }
.loc-block__ic {
    flex: none; width: 50px; height: 50px; border-radius: 14px;
    background: var(--turq); color: #fff; display: grid; place-items: center;
    box-shadow: var(--sh-turq);
}
.loc-block__ic svg { width: 26px; height: 26px; }
.loc-block__txt { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.loc-block__txt strong { color: #fff; font-family: var(--display); font-size: 1.06rem; }
.loc-block__txt span { color: rgba(255,255,255,.7); font-size: .9rem; }
.loc-block__arrow { width: 19px; height: 19px; margin-left: auto; color: #6ee7df; transition: transform .3s var(--ease); }
.loc-block:hover .loc-block__arrow { transform: translate(3px, -3px); }

/* Tarjeta del formulario · glassmorphism */
.form-card {
    background: rgba(255,255,255,.06); color: #fff; border-radius: 24px; padding: 36px;
    box-shadow: 0 24px 60px rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.form-card__title { font-family: var(--display); font-size: 1.45rem; font-weight: 600; color: #fff; }
.form-card__sub { color: rgba(255,255,255,.62); font-size: .94rem; margin: 6px 0 24px; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label { font-size: .86rem; font-weight: 600; margin-bottom: 7px; color: rgba(255,255,255,.85); }
.field label span { color: #6ee7df; }
.field label small { color: rgba(255,255,255,.5); font-weight: 400; }
.field input, .field select, .field textarea {
    font-family: var(--font); font-size: .96rem; color: #fff;
    padding: 12px 15px; border: 1.5px solid rgba(255,255,255,.16); border-radius: var(--radius-sm);
    background: rgba(255,255,255,.07); transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.45); }
.field select option { color: #14272e; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--turq); background: rgba(255,255,255,.12);
    box-shadow: 0 0 0 4px rgba(14,163,155,.22);
}
.field textarea { resize: vertical; min-height: 116px; }
.form__note { font-size: .8rem; color: rgba(255,255,255,.55); text-align: center; margin-top: 12px; }

/* Honeypot anti-spam · oculto para humanos (no usar display:none por accesibilidad) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Campo con error de validación */
.field--error input, .field--error select, .field--error textarea {
    border-color: #f87171; background: rgba(248,113,113,.08);
}
.field--error input:focus, .field--error textarea:focus {
    box-shadow: 0 0 0 4px rgba(248,113,113,.18);
}

/* Mensaje de estado (éxito / error / info) */
.form-status {
    margin-top: 16px; padding: 13px 16px; border-radius: var(--radius-sm);
    font-size: .92rem; line-height: 1.45; text-align: center; border: 1px solid transparent;
}
.form-status--ok    { background: rgba(16,185,129,.14); border-color: rgba(16,185,129,.45); color: #6ee7b7; }
.form-status--error { background: rgba(248,113,113,.14); border-color: rgba(248,113,113,.45); color: #fca5a5; }
.form-status--info  { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2);  color: rgba(255,255,255,.85); }

/* Botón de envío · estado de carga */
#formSubmit { position: relative; }
#formSubmit .btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: btnspin .7s linear infinite; }
#formSubmit.btn--loading { pointer-events: none; opacity: .85; }
#formSubmit.btn--loading .btn__label { font-size: 0; }
#formSubmit.btn--loading .btn__label::after { content: 'Enviando…'; font-size: 1rem; }
#formSubmit.btn--loading .btn__arrow { display: none; }
#formSubmit.btn--loading .btn__spinner { display: inline-block; }
@keyframes btnspin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------------
   11. FOOTER · OSCURO TRANSLÚCIDO (se integra con Contacto)
   ---------------------------------------------------------------------- */
.footer {
    background: linear-gradient(180deg, rgba(13,26,31,.96) 0%, rgba(9,18,22,.98) 100%);
    color: rgba(255,255,255,.7); position: relative; backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,.08);
}
.footer::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--turq), transparent 60%);
}
.footer__inner {
    display: grid; grid-template-columns: 1.8fr 1fr 1.5fr; gap: 54px;
    padding: 56px 24px 40px;
}
.footer__logo { height: 36px; width: auto; display: block; }
.footer__about { margin-top: 18px; font-size: .93rem; max-width: 360px; line-height: 1.7; }

/* Redes simplificadas: solo iconos (glass) */
.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social-link {
    width: 46px; height: 46px; border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff;
    backdrop-filter: blur(6px);
    transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.footer__social-link svg { width: 21px; height: 21px; }
.footer__social-link:hover {
    transform: translateY(-3px); color: #fff; border-color: transparent;
    background: linear-gradient(135deg, #f9407c, #c13584);   /* Instagram */
    box-shadow: 0 12px 24px rgba(193,53,132,.35);
}
.footer__social-link--wa:hover { background: var(--wa); box-shadow: 0 12px 24px rgba(37,211,102,.35); }

.footer h4 { font-family: var(--display); color: #fff; font-size: 1.02rem; margin-bottom: 16px; }
.footer__nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a { font-size: .94rem; transition: color .25s, padding-left .25s; }
.footer__nav a:hover { color: #6ee7df; padding-left: 5px; }

.footer__address { font-style: normal; }
.footer__data { display: flex; flex-direction: column; gap: 16px; }
.footer__data li { display: flex; gap: 12px; align-items: flex-start; }
.footer__data svg { width: 19px; height: 19px; color: var(--turq); flex: none; margin-top: 3px; }
.footer__data a { font-size: .93rem; line-height: 1.55; transition: color .25s; }
.footer__data-stack { display: flex; flex-direction: column; gap: 2px; }
.footer__data a:hover { color: #6ee7df; }

.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom-inner {
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 20px 24px; font-size: .86rem; color: rgba(255,255,255,.5);
}

/* ----------------------------------------------------------------------
   12. WHATSAPP FLOTANTE
   ---------------------------------------------------------------------- */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 95;
    width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
    display: grid; place-items: center; box-shadow: 0 12px 28px rgba(37,211,102,.5);
    transition: transform .3s var(--ease), box-shadow .3s; animation: waPulse 2.8s infinite;
}
.wa-float svg { width: 31px; height: 31px; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 16px 36px rgba(37,211,102,.6); }
@keyframes waPulse {
    0%   { box-shadow: 0 12px 28px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.45); }
    70%  { box-shadow: 0 12px 28px rgba(37,211,102,.5), 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 12px 28px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,0); }
}

/* ----------------------------------------------------------------------
   13. ANIMACIONES (reveal)
   ---------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ----------------------------------------------------------------------
   14. RESPONSIVE · TABLET (≤1024px)
   ---------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .svc-gallery { grid-template-columns: repeat(4, 1fr); }   /* tablet: 4 por fila */
    .zona__grid { grid-template-columns: repeat(2, 1fr); }    /* tablet: 2 capacidades por fila */
    .about__grid { gap: 46px; }
    .footer__inner { grid-template-columns: 1.4fr 1fr; gap: 40px; }
    .footer__brand { grid-column: 1 / -1; }
}

/* ----------------------------------------------------------------------
   15. RESPONSIVE · MENÚ MÓVIL + TABLET (≤900px)
   ---------------------------------------------------------------------- */
@media (max-width: 900px) {
    .header__cta { display: none; }
    .burger { display: flex; }

    /* Drawer oscuro translúcido (misma línea que header/footer) */
    .nav {
        position: fixed; top: 0; right: 0; height: 100dvh; width: min(330px, 86vw);
        background: linear-gradient(180deg, #16292f 0%, #0e1c21 100%);
        box-shadow: -22px 0 60px rgba(0,0,0,.4); border-left: 1px solid rgba(255,255,255,.08);
        transform: translateX(100%); transition: transform .42s var(--ease);
        padding: 92px 24px 28px; display: flex; flex-direction: column; gap: 6px;
        overflow-y: auto; z-index: 110;
    }
    .nav--open { transform: translateX(0); }
    .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav__link { color: rgba(255,255,255,.9); font-size: 1.06rem; padding: 14px 16px; border-radius: 12px; }
    .nav__link:hover { background: rgba(255,255,255,.08); color: #6ee7df; }
    .nav__actions { display: flex; flex-direction: column; gap: 11px; margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }

    .contact__grid { grid-template-columns: 1fr; gap: 36px; }
    .about__grid { grid-template-columns: 1fr; gap: 40px; }
    .about__media { max-width: 440px; margin-inline: auto; }
}

/* ----------------------------------------------------------------------
   15b. SERVICIOS COMO ACORDEÓN · SOLO MÓVIL (≤767px)
   ---------------------------------------------------------------------- */
@media (max-width: 767px) {
    .accordion { gap: 14px; }
    .acc-item, .acc-item:first-child, .acc-item:last-child {
        background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
        overflow: hidden; box-shadow: var(--sh-sm); padding: 0; border-top: 1px solid var(--line);
        transition: box-shadow .3s var(--ease), border-color .3s;
    }
    .acc-item.is-open { box-shadow: var(--sh-md); border-color: transparent; }
    /* Cabecera táctil con chevron (sin la línea de acento del escritorio) */
    .acc-head {
        display: flex; align-items: center; gap: 12px; padding: 15px 16px; margin-bottom: 0;
        cursor: pointer; transition: background .25s;
    }
    .acc-head::before { display: none; }
    .acc-head:hover { background: var(--turq-light); }
    .acc-info { flex: 1; display: flex; flex-direction: column; }
    .acc-title { font-size: 1.05rem; }
    .acc-sub { margin-top: 3px; font-size: .72rem; letter-spacing: .08em; }
    .acc-chevron { display: block; flex: none; width: 22px; height: 22px; color: var(--turq-dark); transition: transform .4s var(--ease); }
    .acc-item.is-open .acc-chevron { transform: rotate(180deg); }
    .acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s var(--ease); }
    .acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
    .acc-panel__inner { overflow: hidden; padding: 0 16px; }
    .acc-item.is-open .acc-panel__inner { padding-bottom: 16px; }
    .acc-desc, .acc-panel__inner > .card__text { font-size: .9rem; line-height: 1.5; margin-bottom: 12px; }
    .svc-gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* ----------------------------------------------------------------------
   16. RESPONSIVE · MÓVIL (≤600px) · tipografías y alturas reducidas
   ---------------------------------------------------------------------- */
@media (max-width: 600px) {
    .container { padding-inline: 16px; }

    /* Alturas más compactas */
    .section { padding: 44px 0; }

    /* Escala general más compacta y premium */
    .eyebrow { font-size: .72rem; letter-spacing: .12em; margin-bottom: 11px; }
    .section__title { font-size: clamp(1.5rem, 6.5vw, 1.85rem); }
    .section__lead { font-size: .92rem; margin-top: 11px; }
    .card__text, .acc-desc { font-size: .9rem; }
    .btn { font-size: .92rem; padding: 12px 20px; }
    .btn--lg { padding: 14px 22px; font-size: .95rem; }

    /* Hero · título centrado y algo más grande, texto en una sola frase */
    .hero { padding: 94px 0 36px; min-height: auto; }
    .hero__title { font-size: clamp(2.2rem, 9.2vw, 2.9rem); margin-bottom: 14px; text-align: center; }
    .hero__sub-extra { display: none; }                 /* solo una frase en móvil */
    .hero__subtitle { font-size: .9rem; line-height: 1.5; margin: 0 auto 20px; max-width: 90%; text-align: center; }
    /* Botones compactos solo-icono, en fila y centrados → ocupan menos altura */
    .hero__actions { flex-direction: row; align-items: center; justify-content: center; gap: 14px; margin-bottom: 4px; }
    .hero__actions .btn__text, .hero__actions .btn__ic-arrow { display: none; }
    .hero__actions .btn__ic-mail { display: block; }
    .hero__ig-btn { display: inline-flex; }

    /* Icono dentro de una caja translúcida (glass) · padding ajustado */
    .hero__actions .btn {
        width: auto; min-width: 0; padding: 11px; box-shadow: none; transform: none;
        background: rgba(255,255,255,.03); border: none;
        border-radius: 14px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    }
    .hero__actions .btn svg { width: 24px; height: 24px; }
    .hero__actions .btn--primary  { color: #6ee7df; }   /* Presupuesto · turquesa de marca */
    .hero__actions .btn--whatsapp { color: #25d366; }   /* WhatsApp · verde oficial */

    .section__head { margin-bottom: 26px; }

    .form-card { padding: 22px 16px; }
    .form-card__title { font-size: 1.3rem; }
    .form__row { grid-template-columns: 1fr; gap: 0; }

    .contact__lead { font-size: 1rem; }
    .contact__list li { gap: 12px; }
    .contact__ic { width: 44px; height: 44px; }
    .contact__v { font-size: .98rem; }

    .footer__inner { grid-template-columns: 1fr; gap: 28px; padding: 42px 16px 32px; }
    .footer__bottom-inner { justify-content: center; text-align: center; }

    /* Sobre Nosotros · MÁS COMPACTO en móvil (imagen menor, mini superpuesta) */
    .about__media { max-width: 340px; }
    .about__img--main { aspect-ratio: 16 / 11; }
    .about__img--mini { position: absolute; right: 6px; bottom: -18px; width: 40%; margin-top: 0; border: 5px solid var(--bg); }
    .about__text { font-size: .95rem; margin-bottom: 12px; }
    /* Texto secundario de "Sobre nosotros" oculto en móvil → solo lo esencial */
    .about__more { display: none; }
    .about__list { margin: 20px 0 24px; gap: 13px; }
    .about__list h4 { font-size: .98rem; }
    .about__list p { font-size: .88rem; }

    .card__cta { flex-direction: column; align-items: stretch; }
    .card__cta .btn--whatsapp { justify-content: center; }
    .card__cta .card__link { justify-content: center; }

    .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
    .wa-float svg { width: 28px; height: 28px; }

    /* Capacidades industriales · cuadrícula compacta de tiles (no lista vertical) */
    .zona__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .zona-card { padding: 15px 14px; border-radius: var(--radius-sm); }
    .zona-card__title { font-size: .92rem; line-height: 1.3; margin-bottom: 0; }
    .zona-card p { display: none; }
    .zona__towns { margin-top: 22px; font-size: .9rem; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; padding: 34px 16px; gap: 20px; }
    .cta-band__actions { width: 100%; flex-direction: column; }
    .cta-band__actions .btn { width: 100%; }
    .faq__item summary { font-size: .96rem; padding: 15px 16px; }
}

/* ----------------------------------------------------------------------
   17. RESPONSIVE · MÓVIL PEQUEÑO (≤360px)
   ---------------------------------------------------------------------- */
@media (max-width: 360px) {
    .container { padding-inline: 14px; }
    .brand__logo { height: 28px; }
    .hero__title { font-size: 2.15rem; }
    .svc-gallery { gap: 7px; }
    .gphoto__tag { font-size: .6rem; }
    .section__title { font-size: 1.55rem; }
    .zona-card__title { font-size: .88rem; }
}

/* Reduce animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------------------
   18. CHECKBOX DE CONSENTIMIENTO (formulario) + PÁGINAS LEGALES
   ---------------------------------------------------------------------- */
.field--check { flex-direction: row; align-items: flex-start; gap: 10px; margin-top: 2px; }
.field--check input { width: 18px; height: 18px; margin-top: 2px; flex: none; padding: 0; border: 0; background: transparent; border-radius: 0; accent-color: var(--turq); cursor: pointer; }
.field--check label { margin-bottom: 0; font-weight: 400; font-size: .84rem; line-height: 1.45; color: rgba(255,255,255,.75); cursor: pointer; }
.field--check a { color: #6ee7df; font-weight: 600; }
.field--check.field--error input { outline: 2px solid #f87171; outline-offset: 2px; }

.footer__bottom-inner a { color: inherit; transition: color .25s; }
.footer__bottom-inner a:hover { color: #6ee7df; }

/* Páginas legales (aviso-legal.html · privacidad.html) */
.legal-header { background: linear-gradient(180deg, #16292f 0%, #0e1c21 100%); padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.legal-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-back { color: #6ee7df; font-family: var(--display); font-weight: 600; font-size: .92rem; }
.legal-back:hover { color: #fff; }
.legal { background: var(--bg); padding: 56px 0 80px; }
.legal__inner { max-width: 820px; }
.legal h1 { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; color: var(--ink); margin-bottom: 6px; }
.legal__updated { color: var(--slate); font-size: .9rem; margin-bottom: 30px; }
.legal h2 { font-family: var(--display); font-size: 1.22rem; color: var(--ink); margin: 30px 0 10px; }
.legal p { color: var(--ink-soft); font-size: 1rem; line-height: 1.7; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin: 0 0 16px; }
.legal li { list-style: disc; color: var(--ink-soft); font-size: 1rem; line-height: 1.7; margin-bottom: 6px; }
.legal a { color: var(--turq-dark); font-weight: 600; }
.legal strong { color: var(--ink); }
.legal__data { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--turq); border-radius: var(--radius-sm); padding: 18px 22px; margin: 18px 0 24px; }
.legal__data p { margin-bottom: 6px; }
