/* =========================================================
   AKL | Especialistas en Mantenimiento Industrial
   ========================================================= */

:root {
    --brand: #0093dd;
    --brand-dark: #0072ad;
    --brand-soft: #e6f4fc;
    --ink: #0b1726;
    --ink-2: #13243a;
    --text: #3d4b5c;
    --muted: #6b7a8c;
    --line: #e3e8ef;
    --bg: #ffffff;
    --bg-tint: #f4f7fb;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 10px 30px -12px rgba(11, 23, 38, .18);
    --shadow-lg: 0 30px 60px -20px rgba(11, 23, 38, .35);
    --header-h: 76px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-head: "Montserrat", var(--font);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
figure { margin: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    padding: .95em 1.8em;
    font: 600 .95rem/1 var(--font);
    letter-spacing: .02em;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 147, 221, .8); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.logo:hover { color: #fff; }
.logo__mark {
    display: grid; place-items: center;
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), #00b3ff);
    font: 800 1.05rem/1 var(--font-head);
    letter-spacing: .04em;
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(0, 147, 221, .9);
}
.logo__text { font: 600 .72rem/1.3 var(--font); text-transform: uppercase; letter-spacing: .08em; opacity: .9; }

/* ---------- Header ---------- */
.header {
    position: fixed; inset: 0 0 auto; z-index: 100;
    height: var(--header-h);
    display: flex; align-items: center;
    transition: background .35s, box-shadow .35s, height .35s;
}
.header.is-scrolled {
    background: rgba(11, 23, 38, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, .25);
    --header-h: 66px;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
    position: relative;
    padding: .55em 1em;
    font-weight: 500; font-size: .93rem;
    color: rgba(255, 255, 255, .85);
    border-radius: 999px;
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link::after {
    content: ""; position: absolute; left: 1em; right: 1em; bottom: .25em;
    height: 2px; background: var(--brand);
    transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link--cta { background: var(--brand); color: #fff; margin-left: 8px; padding: .6em 1.3em; }
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--brand-dark); color: #fff; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: var(--ink); color: #fff; }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide {
    display: flex; align-items: center;
    background-size: cover; background-position: center;
    opacity: 0; visibility: hidden;
    transform: scale(1.08);
    transition: opacity 1.2s var(--ease), transform 7s linear, visibility 0s 1.2s;
}
.hero__slide::before {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(100deg, rgba(11, 23, 38, .92) 0%, rgba(11, 23, 38, .65) 45%, rgba(11, 23, 38, .25) 100%),
        linear-gradient(0deg, rgba(11, 23, 38, .6), transparent 40%);
}
.hero__slide.is-active { opacity: 1; visibility: visible; transform: scale(1); transition: opacity 1.2s var(--ease), transform 7s linear, visibility 0s; }

.hero__content { position: relative; z-index: 1; padding-top: var(--header-h); }
.hero__content > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.is-active .hero__content > * { opacity: 1; transform: none; }
.is-active .hero__content > :nth-child(2) { transition-delay: .15s; }
.is-active .hero__content > :nth-child(3) { transition-delay: .3s; }
.is-active .hero__content > :nth-child(4) { transition-delay: .45s; }

.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font: 600 .8rem/1 var(--font); letter-spacing: .3em; text-transform: uppercase;
    color: #7fd3ff; margin-bottom: 18px;
}
.hero__eyebrow::before { content: ""; width: 40px; height: 2px; background: var(--brand); }
.hero__title { color: #fff; font-size: clamp(3.5rem, 11vw, 8rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .1em; }
.hero__title--md { font-size: clamp(2.2rem, 5.5vw, 4.2rem); max-width: 14ch; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.35rem); color: rgba(255, 255, 255, .85); max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__arrow {
    position: absolute; top: 50%; z-index: 2;
    width: 52px; height: 52px; margin-top: -26px;
    display: grid; place-items: center;
    border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .08); color: #fff;
    backdrop-filter: blur(6px);
    cursor: pointer; transition: background .25s, border-color .25s;
}
.hero__arrow:hover { background: var(--brand); border-color: var(--brand); }
.hero__arrow--prev { left: 24px; }
.hero__arrow--next { right: 24px; }

.hero__dots { position: absolute; z-index: 2; left: 50%; bottom: 40px; transform: translateX(-50%); display: flex; gap: 10px; }
.hero__dots button {
    width: 34px; height: 4px; padding: 0; border: 0; border-radius: 4px;
    background: rgba(255, 255, 255, .35); cursor: pointer; transition: background .3s, width .3s;
}
.hero__dots button.is-active { background: var(--brand); width: 56px; }

.hero__scroll {
    position: absolute; z-index: 2; right: 40px; bottom: 30px;
    color: #fff; font-size: 1.4rem; animation: bob 2s infinite;
}
@keyframes bob { 50% { transform: translateY(8px); } }

/* ---------- Secciones ---------- */
.section { padding: 110px 0; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--ink); color: rgba(255, 255, 255, .78); position: relative; overflow: hidden; }
.section--dark::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(600px 400px at 90% 0%, rgba(0, 147, 221, .25), transparent 70%),
        radial-gradient(500px 400px at 0% 100%, rgba(0, 147, 221, .15), transparent 70%);
}
.section--dark .container { position: relative; }
.section--dark .section__title { color: #fff; }

.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__head--left { text-align: left; margin-left: 0; margin-bottom: 32px; }
.section__title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.01em; }
.eyebrow {
    display: inline-block; margin-bottom: 12px;
    font: 600 .78rem/1 var(--font); letter-spacing: .22em; text-transform: uppercase;
    color: var(--brand);
}
.lead { font-size: 1.1rem; color: var(--text); }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; margin-bottom: 90px; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about__media::before {
    content: ""; position: absolute; inset: 28px -28px -28px 28px; z-index: -1;
    border-radius: var(--radius-lg);
    background: repeating-linear-gradient(45deg, var(--brand-soft) 0 10px, transparent 10px 20px);
}
.about__badge {
    position: absolute; left: -24px; bottom: 36px;
    display: flex; align-items: center; gap: 14px;
    padding: 18px 22px; border-radius: var(--radius);
    background: var(--brand); color: #fff;
    font: 600 .9rem/1.3 var(--font);
    box-shadow: var(--shadow-lg);
}
.about__badge i { font-size: 1.8rem; }

.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
.checks i {
    flex: none; width: 24px; height: 24px; display: grid; place-items: center;
    border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: .7rem;
}

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
    position: relative; padding: 38px 32px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card::after {
    content: ""; position: absolute; left: 32px; right: 32px; top: -1px; height: 3px;
    background: var(--brand); border-radius: 0 0 3px 3px;
    transform: scaleX(0); transition: transform .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card__icon {
    width: 58px; height: 58px; margin-bottom: 22px;
    display: grid; place-items: center; border-radius: 16px;
    background: var(--brand-soft); color: var(--brand); font-size: 1.4rem;
}
.card h3 { font-size: 1.3rem; }
.card p { margin: 0; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 22px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #fff; font-weight: 500; line-height: 1.4;
    transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.service:hover { background: rgba(0, 147, 221, .14); border-color: rgba(0, 147, 221, .5); transform: translateY(-3px); }
.service i {
    flex: none; width: 46px; height: 46px; display: grid; place-items: center;
    border-radius: 12px; background: rgba(0, 147, 221, .18); color: #4cc3ff; font-size: 1.1rem;
}
.banner { margin-top: 56px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.banner img { width: 100%; height: 380px; object-fit: cover; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 16px; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-tint); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery__item::after {
    content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 1.6rem; color: #fff;
    background: linear-gradient(0deg, rgba(0, 114, 173, .85), rgba(0, 147, 221, .55));
    opacity: 0; transition: opacity .35s;
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item:hover::after { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 80px;
    background: rgba(5, 12, 20, .94);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.lightbox figure { max-width: 1200px; text-align: center; }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox figcaption { margin-top: 14px; color: #fff; }
.lightbox figcaption h3 { color: #fff; font-size: 1.1rem; margin: 0; }
.lightbox figcaption p { margin: 0; color: rgba(255, 255, 255, .7); font-size: .9rem; }
.lightbox__close, .lightbox__nav {
    position: absolute; display: grid; place-items: center;
    width: 50px; height: 50px; border-radius: 50%; border: 0;
    background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.2rem; cursor: pointer;
    transition: background .25s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--brand); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* ---------- Clientes ---------- */
.clients { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.clients__list {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.clients__list li {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    font-size: .9rem; font-weight: 500; color: var(--ink); line-height: 1.35;
    transition: border-color .25s, box-shadow .25s;
}
.clients__list li::before {
    content: "\f1ad"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    flex: none; width: 34px; height: 34px; display: grid; place-items: center;
    border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: .85rem;
}
.clients__list li:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.clients__media { position: sticky; top: calc(var(--header-h) + 30px); }
.clients__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: stretch; }
.form { padding: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: block; margin-bottom: 18px; }
.field span { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
    width: 100%; padding: 14px 16px;
    font: inherit; color: var(--ink);
    background: var(--bg-tint); border: 1px solid transparent; border-radius: 10px;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus {
    outline: none; background: #fff; border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(0, 147, 221, .12);
}
.field.has-error input, .field.has-error textarea { border-color: #e04848; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__status { margin-top: 18px; }
.form__status:empty { display: none; }
.form__status .msg { padding: 16px 18px; border-radius: 12px; font-size: .95rem; }
.form__status .msg p { margin: 0; }
.form__status .msg--ok { background: #e8f8ef; color: #17643a; border: 1px solid #b6e6c9; }
.form__status .msg--ok h4 { margin: 0 0 4px; font: 700 1.05rem/1.3 var(--font-head); color: #17643a; }
.form__status .msg--error { background: #fdecec; color: #9b2323; border: 1px solid #f5c2c2; }

.contact__info {
    padding: 40px; border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--ink-2), var(--ink)); color: rgba(255, 255, 255, .82);
    position: relative; overflow: hidden;
}
.contact__info::after {
    content: ""; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -90px;
    border-radius: 50%; background: radial-gradient(circle, rgba(0, 147, 221, .45), transparent 70%);
}
.contact__info h3 { color: #fff; font-size: 1.5rem; margin-bottom: 28px; }
.contact__info ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 26px; position: relative; z-index: 1; }
.contact__info li { display: flex; gap: 16px; line-height: 1.6; }
.contact__info li > i {
    flex: none; width: 46px; height: 46px; display: grid; place-items: center;
    border-radius: 12px; background: rgba(0, 147, 221, .2); color: #4cc3ff;
}
.contact__info a { color: #fff; }
.contact__info a:hover { color: #7fd3ff; }

/* ---------- Mapa ---------- */
.map { line-height: 0; }
.map iframe { width: 100%; height: 420px; border: 0; filter: grayscale(.4) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .6); font-size: .9rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 36px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
    width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); color: #fff;
    transition: background .25s, border-color .25s, transform .25s;
}
.footer__social a:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-3px); color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 22px; padding-bottom: 26px; text-align: center; }
.footer__bottom p { margin: 0; }
.footer__bottom a { color: #7fd3ff; }

/* ---------- Animaciones al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about { gap: 50px; }
    .gallery { grid-template-columns: repeat(3, 1fr); }
    .gallery__item--wide { grid-column: span 1; }
    .services { grid-template-columns: repeat(2, 1fr); }
    .clients { grid-template-columns: 1fr; }
    .clients__media { position: static; }
    .clients__media img { aspect-ratio: 16 / 7; }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 46px; height: 46px; padding: 0 11px;
        border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px;
        background: rgba(255, 255, 255, .06); cursor: pointer; z-index: 2;
    }
    .nav-toggle span { height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav {
        position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw);
        flex-direction: column; align-items: stretch; gap: 4px;
        padding: calc(var(--header-h) + 20px) 24px 24px;
        background: var(--ink); box-shadow: var(--shadow-lg);
        transform: translateX(100%); transition: transform .4s var(--ease);
    }
    .nav.is-open { transform: none; }
    .nav__link { padding: .9em 1em; font-size: 1rem; border-radius: 10px; }
    .nav__link::after { display: none; }
    .nav__link.is-active { background: rgba(255, 255, 255, .06); }
    .nav__link--cta { margin: 12px 0 0; text-align: center; }

    .about { grid-template-columns: 1fr; }
    .about__media { max-width: 520px; margin: 0 auto; width: 100%; }
    .about__media img { aspect-ratio: 4 / 3; }
    .pillars { grid-template-columns: 1fr; }
    .contact { grid-template-columns: 1fr; }
    .hero__arrow { display: none; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .section { padding: 80px 0; }
    .logo__text { display: none; }
    .about__badge { left: 12px; bottom: 12px; }
    .about__media::before { inset: 16px -12px -16px 16px; }
    .checks, .clients__list, .form__row { grid-template-columns: 1fr; }
    .form__row { gap: 0; }
    .services { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 10px; }
    .gallery__item:first-child { grid-column: span 2; }
    .banner img { height: 220px; }
    .form, .contact__info { padding: 28px 22px; }
    .footer__inner { flex-direction: column; text-align: center; }
    .lightbox { padding: 70px 12px; }
    .lightbox__nav { top: auto; bottom: 20px; }
    .lightbox__nav--prev { left: calc(50% - 60px); }
    .lightbox__nav--next { right: calc(50% - 60px); }
    .hero__scroll { display: none; }
}
