:root {
    --navy: #101832;
    --navy-2: #17203f;
    --green: #49b845;
    --green-dark: #3da23a;
    --paper: #f4f6f2;
    --text: #17203f;
    --muted: #5b6278;
    --cardboard: #c8a77d;
    --line: #e3e6df;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--paper);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
    font-size: 15px;
}

.btn-primary {
    background: var(--green);
    color: white;
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.btn-dark {
    background: var(--navy-2);
    color: white;
}

.btn-dark:hover {
    background: #24305e;
    transform: translateY(-1px);
}

.btn-download {
    background: var(--navy-2);
    color: white;
    padding: 14px 22px;
    box-shadow: 0 6px 20px rgba(16, 24, 50, .18);
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

.btn-download:hover {
    background: #1e2d5a;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(16, 24, 50, .3);
}

.btn-download .dl-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .15);
    flex-shrink: 0;
    transition: transform .3s ease;
}

.btn-download:hover .dl-icon {
    transform: translateY(3px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .35);
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--navy-2);
}

.hero {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: white;
    height: 100dvh;
    display: flex;
    flex-direction: column;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    pointer-events: none;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 24, 50, .92), rgba(16, 24, 50, .72) 50%, rgba(16, 24, 50, .45));
    z-index: 1;
}

.pattern::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0, rgba(255, 255, 255, .05) 2px, transparent 2px, transparent 18px);
    pointer-events: none;
}

nav {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: white;
    color: var(--green);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
    overflow: hidden;
    padding: 6px;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-logo {
    height: 32px;
    width: auto;
    display: block;
}

.brand-sub {
    margin-top: 5px;
    font-size: 11px;
    color: rgba(255, 255, 255, .6);
    letter-spacing: .22em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    font-weight: 700;
}

.hero-grid {
    position: relative;
    z-index: 2;
    flex: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 64px;
    padding: 20px 0 100px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .1);
    border-radius: 999px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, .82);
    backdrop-filter: blur(8px);
    font-weight: 700;
    font-size: 14px;
}

.hero h1 {
    margin: 28px 0 0;
    font-size: clamp(44px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -.055em;
    max-width: 850px;
}

.hero p {
    max-width: 660px;
    margin-top: 26px;
    color: rgba(255, 255, 255, .75);
    line-height: 1.75;
    font-size: 19px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.visual-card {
    position: relative;
}

.factory-visual {
    aspect-ratio: 4/3;
    border-radius: 34px;
    padding: 12px;
    background: rgba(255, 255, 255, .14);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .35);
    backdrop-filter: blur(10px);
}

.factory-inner {
    height: 100%;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
}

.factory-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.factory-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(16, 24, 50, .65));
}

.problem-card {
    position: absolute;
    left: 28px;
    bottom: -48px;
    width: min(390px, calc(100% - 56px));
    background: white;
    color: var(--text);
    padding: 24px;
    border-radius: 28px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .25);
}

.problem-card small {
    color: var(--green);
    font-weight: 950;
}

.problem-card p {
    margin: 10px 0 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.55;
    font-weight: 800;
}

section {
    padding: 86px 0;
}

.section-kicker {
    color: var(--green);
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .25em;
    font-size: 13px;
}

h2 {
    margin: 12px 0 0;
    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.story-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 70px;
    align-items: start;
}

.lead {
    font-size: 19px;
    line-height: 1.8;
    color: #4a5168;
    margin: 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 52px;
}

.card {
    background: white;
    border-radius: 28px;
    border: 1px solid rgba(0, 0, 0, .03);
    box-shadow: 0 10px 30px rgba(16, 24, 50, .06);
    overflow: hidden;
}

.card-pad {
    padding: 28px;
}

.icon {
    width: 48px;
    height: 48px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: #edf8eb;
    color: var(--green);
    font-size: 20px;
    margin-bottom: 18px;
    font-weight: 950;
}

.card h3 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -.025em;
}

.card p {
    color: var(--muted);
    line-height: 1.65;
    font-size: 14.5px;
    margin-bottom: 0;
}

.image-band {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 22px;
    align-items: stretch;
}

.image-tile {
    min-height: 360px;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 24px 55px rgba(16, 24, 50, .12);
    background: var(--navy);
}

.image-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-tile .caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    color: white;
    background: rgba(16, 24, 50, .76);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 22px;
    padding: 18px;
    backdrop-filter: blur(8px);
    font-weight: 800;
}

.white {
    background: white;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
}

.products-grid {
    margin-top: 52px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: white;
    box-shadow: 0 10px 24px rgba(16, 24, 50, .05);
    transition: .2s ease;
    padding: 16px 16px 0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(16, 24, 50, .12);
}

.product-img {
    height: 200px;
    background: #eee;
    overflow: hidden;
    border-radius: 18px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-body {
    padding: 26px;
}

.product-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -.035em;
}

.arrow {
    color: var(--green);
    font-size: 24px;
}

.video-section {
    background: #0f1730;
    color: white;
    padding: 90px 0;
}

.video-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 44px;
    align-items: center;
}

.video-frame {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    min-height: 430px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .35);
    background: #111;
}

.video-frame img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
    opacity: .72;
}

.play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.play span {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    font-size: 42px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

.video-section .lead {
    color: rgba(255, 255, 255, .76);
    margin-top: 20px;
}

.video-note {
    margin-top: 26px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .08);
    border-radius: 24px;
    padding: 18px;
    color: rgba(255, 255, 255, .78);
    line-height: 1.65;
}

.capacity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: stretch;
}

.dark-panel {
    background: var(--navy-2);
    color: white;
    padding: 48px;
    border-radius: 34px;
    box-shadow: 0 25px 55px rgba(16, 24, 50, .18);
}

.dark-panel .lead {
    color: rgba(255, 255, 255, .74);
    margin-top: 22px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 34px;
}

.trust-item {
    background: rgba(255, 255, 255, .1);
    border-radius: 18px;
    padding: 18px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 12px;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.industry {
    background: white;
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(16, 24, 50, .06);
}

.industry strong {
    display: block;
    font-size: 25px;
    letter-spacing: -.03em;
}

.industry p {
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.gallery {
    background: #eef1ea;
    padding-bottom: 86px;
}

.carousel-wrapper {
    margin-top: 48px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}

.carousel-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: carousel-scroll 32s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-item {
    width: 300px;
    height: 220px;
    border-radius: 22px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 10px 28px rgba(16, 24, 50, .1);
    background: white;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.carousel-item:hover img {
    transform: scale(1.06);
}

@keyframes carousel-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.cta {
    position: relative;
    overflow: hidden;
    background: var(--green);
    color: white;
}

.cta-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr .75fr;
    gap: 56px;
    align-items: center;
}

.cta .lead {
    color: rgba(255, 255, 255, .86);
    margin-top: 22px;
    max-width: 680px;
}

.form-card {
    background: white;
    border-radius: 32px;
    padding: 30px;
    box-shadow: 0 25px 60px rgba(16, 24, 50, .22);
}

input,
textarea {
    width: 100%;
    display: block;
    border: 1px solid #dfe4dc;
    background: #f7f8f5;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 14px;
    font: inherit;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

input:focus,
textarea:focus {
    border-color: var(--green);
    background: white;
}

input.field-error,
textarea.field-error {
    border-color: #e03d3d;
    background: #fff5f5;
}

textarea {
    min-height: 112px;
    resize: vertical;
}

.form-error-msg {
    margin-top: 10px;
    color: #e03d3d;
    font-size: 13px;
    font-weight: 700;
    display: none;
}

.form-error-msg.visible {
    display: block;
}

footer {
    background: var(--navy);
    color: white;
    padding: 48px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr .8fr;
    gap: 30px;
    align-items: start;
}

.footer-logo {
    height: 36px;
    width: auto;
    display: block;
}

.footer-text {
    color: rgba(255, 255, 255, .64);
    line-height: 1.7;
}

.footer-contact p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, .72);
}

.whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 20;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 28px rgba(73, 184, 69, .55);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
    animation: wa-enter .55s cubic-bezier(.34, 1.56, .64, 1) .4s both;
}

.whatsapp::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--green);
    animation: wa-pulse 2.5s ease-out 1.5s infinite;
}

.whatsapp::after {
    content: "Cotizar por WhatsApp";
    position: absolute;
    right: calc(100% + 16px);
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: var(--navy);
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    box-shadow: 0 8px 24px rgba(16, 24, 50, .25);
}

.whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 14px 40px rgba(73, 184, 69, .7);
}

.whatsapp:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@keyframes wa-pulse {
    0%   { transform: scale(1);    opacity: .7; }
    70%  { transform: scale(1.65); opacity: 0;  }
    100% { transform: scale(1.65); opacity: 0;  }
}

@keyframes wa-enter {
    from { transform: translateY(28px) scale(.8); opacity: 0; }
    to   { transform: translateY(0)    scale(1);  opacity: 1; }
}

@media (max-width: 980px) {
    .nav-links {
        display: none;
    }

    .hero-grid,
    .story-grid,
    .capacity-grid,
    .cta-grid,
    .image-band,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .process-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: auto;
        min-height: 100dvh;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 28px, 1200px);
    }

    .process-grid,
    .products-grid,
    .industry-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

    nav .btn {
        display: none;
    }

    section {
        padding: 64px 0;
    }

    .dark-panel {
        padding: 30px;
    }

    .problem-card {
        position: static;
        margin: -20px auto 0;
        width: calc(100% - 24px);
    }
}
