/* =========================================================
   MAXPOWER SAC — Landing page
   Paleta: azul profundo (fuerza/tecnología), naranja (energía),
   gris oscuro (profesionalismo)
   ========================================================= */

:root {
    --navy-950: #050F24;
    --navy-900: #0A1F44;
    --navy-800: #0F2C5C;
    --navy-700: #163B78;
    --orange-500: #FF6B1A;
    --orange-600: #E85A0C;
    --gray-900: #1F242C;
    --gray-700: #3A414C;
    --gray-500: #5E6775;
    --gray-200: #E3E7EE;
    --gray-100: #F3F5F9;
    --white: #FFFFFF;

    --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(10, 31, 68, .06), 0 2px 8px rgba(10, 31, 68, .05);
    --shadow-md: 0 12px 32px rgba(10, 31, 68, .12);
    --container: 1200px;
    --nav-h: 76px;
}

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

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

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; color: var(--navy-900); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.accent { color: var(--orange-500); }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .95rem 1.6rem;
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .98rem;
    border: 2px solid transparent;
    transition: background-color .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
    cursor: pointer;
    white-space: nowrap;
}
.btn i { font-size: .85em; transition: transform .25s; }
.btn:hover i { transform: translateX(3px); }

.btn--primary {
    background: var(--orange-500);
    color: var(--white);
    box-shadow: 0 8px 22px rgba(255, 107, 26, .3);
}
.btn--primary:hover { background: var(--orange-600); transform: translateY(-2px); }

.btn--ghost {
    color: var(--white);
    border-color: rgba(255, 255, 255, .35);
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

.btn--sm { padding: .6rem 1.2rem; font-size: .9rem; box-shadow: none; }

/* ---------- Etiquetas y títulos de sección ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--orange-500);
    margin-bottom: 1rem;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}
.eyebrow--light { color: #FF9A5C; }

.section { padding: 110px 0; }
.section--muted { background: var(--gray-100); }

.section__head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section__head .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }

.section__title {
    font-size: clamp(1.9rem, 3.4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 1.1rem;
}
.section__lead { font-size: 1.1rem; color: var(--gray-500); }

/* ---------- Navegación ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition: background-color .3s, box-shadow .3s, height .3s;
}
.nav.is-scrolled {
    background: rgba(10, 31, 68, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 24px rgba(5, 15, 36, .25);
}

.nav__inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand__icon { height: 40px; width: auto; }
.brand__name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: .08em;
    color: var(--white);
}

.nav__menu { display: flex; align-items: center; gap: 2rem; }
.nav__link {
    color: rgba(255, 255, 255, .82);
    font-weight: 500;
    font-size: .95rem;
    position: relative;
    transition: color .2s;
}
.nav__link::after {
    content: "";
    position: absolute;
    left: 0; bottom: -6px;
    width: 100%; height: 2px;
    background: var(--orange-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s;
}
.nav__link:hover, .nav__link.is-active { color: var(--white); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav__toggle {
    display: none;
    width: 44px; height: 44px;
    background: none; border: 0;
    flex-direction: column; justify-content: center; gap: 5px;
    padding: 10px; cursor: pointer;
}
.nav__toggle span {
    display: block; height: 2px; width: 100%;
    background: var(--white); 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); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: clamp(640px, 100vh, 920px);
    padding: calc(var(--nav-h) + 56px) 0 96px;
    display: flex;
    align-items: center;
    color: var(--white);
    background: var(--navy-950);
    overflow: hidden;
}
.hero__bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 55% 70% at 80% 45%, rgba(22, 59, 120, .7), transparent 70%),
        linear-gradient(100deg, rgba(5, 15, 36, .98) 35%, rgba(10, 31, 68, .9)),
        url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=2000&q=70&auto=format&fit=crop') center / cover no-repeat;
}
.hero__bg::after {
    /* retícula técnica sutil */
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black 30%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent);
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 72px;
}

.hero__title {
    color: var(--white);
    font-size: clamp(2.3rem, 4.6vw, 3.7rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.08;
    margin-bottom: 1.5rem;
}
.hero__lead {
    font-size: clamp(1.05rem, 1.4vw, 1.18rem);
    color: rgba(255, 255, 255, .78);
    max-width: 560px;
    margin-bottom: 2.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__checks {
    display: flex; flex-wrap: wrap;
    gap: .6rem 1.6rem;
    margin-top: 2.4rem;
    font-size: .93rem;
    color: rgba(255, 255, 255, .75);
}
.hero__checks li { display: flex; align-items: center; gap: .5rem; }
.hero__checks i {
    width: 20px; height: 20px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255, 107, 26, .18);
    color: var(--orange-500);
    font-size: .62rem;
}

.hero__visual { position: relative; }
.hero__photo {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}
.hero__photo::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(5, 15, 36, .45), transparent 45%);
}
.hero__photo img {
    width: 100%;
    aspect-ratio: 4 / 4.6;
    object-fit: cover;
    object-position: center 30%;
}
.hero__visual::before {
    /* marco de acento detrás de la foto */
    content: "";
    position: absolute;
    inset: 28px -28px -28px 28px;
    border: 2px solid rgba(255, 107, 26, .55);
    border-radius: var(--radius-lg);
}
.hero__card {
    position: absolute;
    left: -36px; bottom: 36px;
    display: flex; align-items: center; gap: .9rem;
    padding: 1rem 1.3rem;
    background: var(--white);
    color: var(--navy-900);
    border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}
.hero__card strong { display: block; font-family: var(--font-head); font-size: .98rem; line-height: 1.3; }
.hero__card span { font-size: .85rem; color: var(--gray-500); }

/* ---------- Franja de sectores ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--gray-200); }
.trust__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; padding: 30px 24px; flex-wrap: wrap;
}
.trust__label { font-size: .9rem; font-weight: 600; color: var(--gray-500); }
.trust__list { display: flex; flex-wrap: wrap; gap: .75rem 2.2rem; }
.trust__list li {
    display: flex; align-items: center; gap: .55rem;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--gray-700);
}
.trust__list i { color: var(--navy-700); font-size: 1.05rem; }

/* ---------- Nosotros ---------- */
.about {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 80px;
    align-items: center;
}
.about__media { position: relative; }
.about__media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: 80% center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.about__media::before {
    content: "";
    position: absolute;
    inset: -18px auto auto -18px;
    width: 45%; height: 45%;
    border: 2px solid var(--orange-500);
    border-radius: var(--radius-lg);
    z-index: -1;
}
.about__badge {
    position: absolute;
    left: -28px; bottom: 32px;
    display: flex; align-items: center; gap: 1rem;
    background: var(--navy-900);
    color: var(--white);
    padding: 1.1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}
.about__badge i { font-size: 1.6rem; color: var(--orange-500); }
.about__badge strong { display: block; font-family: var(--font-head); }
.about__badge span { font-size: .88rem; color: rgba(255, 255, 255, .7); }

.about__content .section__lead { margin-bottom: 1rem; color: var(--gray-700); }
.about__text { color: var(--gray-500); margin-bottom: 2.2rem; }

.pillars { display: grid; gap: 1.6rem; }
.pillars li { display: flex; gap: 1.1rem; align-items: flex-start; }
.pillars__icon {
    flex: none;
    width: 50px; height: 50px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(255, 107, 26, .1);
    color: var(--orange-500);
    font-size: 1.2rem;
}
.pillars h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.pillars p { color: var(--gray-500); font-size: .97rem; }

/* ---------- Soluciones ---------- */
.solutions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.solution {
    position: relative;
    background: var(--white);
    padding: 2.2rem 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s, border-color .3s;
    overflow: hidden;
}
.solution::after {
    content: "";
    position: absolute; left: 0; top: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--navy-700), var(--orange-500));
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s;
}
.solution:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.solution:hover::after { transform: scaleX(1); }

.solution__icon {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--navy-900);
    color: var(--white);
    font-size: 1.35rem;
    margin-bottom: 1.4rem;
    transition: background-color .3s;
}
.solution:hover .solution__icon { background: var(--orange-500); }
.solution h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.solution p { color: var(--gray-500); font-size: .97rem; }

/* ---------- Industrias ---------- */
.industries {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 20px;
}
.industry--wide { grid-column: span 2; }

.industry {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--white);
    isolation: isolate;
}
.industry img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform .6s ease;
}
.industry::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(5, 15, 36, .92) 10%, rgba(10, 31, 68, .35) 65%, rgba(10, 31, 68, .15));
    z-index: -1;
    transition: background-color .4s;
}
.industry:hover img { transform: scale(1.06); }

.industry__body {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 1.8rem;
}
.industry__body i {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--orange-500);
    margin-bottom: .9rem;
}
.industry h3 { color: var(--white); font-size: 1.35rem; margin-bottom: .35rem; }
.industry p { color: rgba(255, 255, 255, .8); font-size: .95rem; max-width: 440px; }

/* ---------- Frase de marca ---------- */
.quote { padding: 20px 0 110px; }
.quote__inner {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}
.quote__mark { font-size: 2.2rem; color: var(--orange-500); margin-bottom: 1.4rem; }
.quote blockquote {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.015em;
    color: var(--navy-900);
}
.quote figcaption {
    display: inline-flex; align-items: center; gap: .6rem;
    margin-top: 1.8rem;
    font-weight: 600;
    color: var(--gray-500);
}

/* ---------- Metodología ---------- */
.section--dark {
    background:
        radial-gradient(ellipse 50% 80% at 100% 0%, rgba(22, 59, 120, .6), transparent 60%),
        var(--navy-900);
    color: var(--white);
}
.section--dark .section__title { color: var(--white); }
.section--dark .section__lead { color: rgba(255, 255, 255, .7); }

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}
.step {
    position: relative;
    padding: 2rem 1.6rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: background-color .3s, border-color .3s;
}
.step:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 107, 26, .5); }
.step__num {
    display: block;
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--orange-500);
    margin-bottom: 1.2rem;
}
.step h3 { color: var(--white); font-size: 1.2rem; margin-bottom: .5rem; }
.step p { color: rgba(255, 255, 255, .7); font-size: .95rem; }

/* ---------- Contacto ---------- */
.cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 64px;
    border-radius: var(--radius-lg);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}
.cta::after {
    content: "";
    position: absolute;
    right: -120px; top: -120px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 26, .15), transparent 70%);
    pointer-events: none;
}

.contact { display: grid; gap: 14px; position: relative; z-index: 1; }
.contact__item {
    display: flex; align-items: center; gap: 1.1rem;
    background: var(--white);
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    font-weight: 600;
    color: var(--navy-900);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    word-break: break-word;
}
.contact__item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); border-color: var(--orange-500); }
.contact__item small {
    display: block;
    font-size: .78rem;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.contact__icon {
    flex: none;
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--navy-900);
    color: var(--white);
    font-size: 1.15rem;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--navy-950);
    color: rgba(255, 255, 255, .7);
    padding-top: 72px;
    font-size: .95rem;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.3fr;
    gap: 48px;
    padding-bottom: 48px;
}
.footer__brand p { margin-top: 1.1rem; max-width: 340px; }
.footer h4 {
    color: var(--white);
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}
.footer ul { display: grid; gap: .7rem; }
.footer a { transition: color .2s; }
.footer ul a:hover { color: var(--orange-500); }
.footer ul i { width: 18px; margin-right: .5rem; color: var(--orange-500); }
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 24px; padding-bottom: 24px;
    font-size: .85rem;
    color: rgba(255, 255, 255, .5);
}

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
    position: fixed;
    right: 22px; bottom: 22px;
    z-index: 90;
    width: 58px; height: 58px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    font-size: 1.8rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
    transition: transform .25s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Animación de aparición ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .solutions { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .about { gap: 56px; }
    .about__badge { left: 16px; }
}

@media (max-width: 900px) {
    .nav__toggle { display: flex; }
    .nav__menu {
        position: fixed;
        top: var(--nav-h); left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 28px;
        background: var(--navy-900);
        box-shadow: 0 16px 30px rgba(5, 15, 36, .35);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s, transform .25s, visibility .25s;
    }
    .nav__menu.is-open { opacity: 1; transform: none; visibility: visible; }
    .nav__menu .nav__link { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .nav__menu .nav__link::after { display: none; }
    .nav__menu .btn { margin-top: 18px; justify-content: center; }
    .nav.menu-open { background: var(--navy-900); }

    .hero { padding-bottom: 72px; }
    .hero__grid { grid-template-columns: 1fr; gap: 56px; }
    .hero__visual { max-width: 520px; margin-right: 28px; }
    .hero__photo img { aspect-ratio: 4 / 3; }
    .hero__card { left: 16px; bottom: 16px; }

    .about { grid-template-columns: 1fr; }
    .about__media img { aspect-ratio: 16 / 11; }

    .industries { grid-template-columns: 1fr 1fr; grid-auto-rows: 260px; }
    .industry--wide { grid-column: span 2; }

    .cta { grid-template-columns: 1fr; padding: 44px 32px; gap: 36px; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: span 2; }
}

@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .section { padding: 80px 0; }
    .section__head { margin-bottom: 44px; }

    .solutions, .steps { grid-template-columns: 1fr; }
    .industries { grid-template-columns: 1fr; }
    .industry--wide { grid-column: auto; }

    .about__media::before { display: none; }
    .about__badge { left: 12px; bottom: 12px; padding: .9rem 1.1rem; }

    .trust__inner { padding: 24px 16px; }
    .trust__list { gap: .6rem 1.4rem; }

    .cta { padding: 36px 20px; }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__brand { grid-column: auto; }

    .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
    .hero__visual::before { inset: 16px -16px -16px 16px; }
    .hero__visual { margin-right: 16px; }
    .hero__card { padding: .8rem 1rem; }
    .quote { padding-bottom: 80px; }
}
