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

:root {
    --navy: #1A2E52;
    --navy-light: #243D6B;
    --orange: #E8650A;
    --orange-light: #F47C28;
    --cream: #F5F4F0;
    --gray-muted: #7A7A7A;
    --gray-border: #E0DDD6;
    --text: #1A1A1A;
    --white: #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    font-size: 16px;
    line-height: 1.6;
}

nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--cream);
    backdrop-filter: blur(8px);
    padding: 3% 5%;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.3px;
}

.logo {
    width: 100px;
}

.nav-logo span { color: var(--orange); }

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    color: var(--navy);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.2px;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--orange-light); }

.nav-cta {
    background: var(--orange);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500 !important;
    transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--orange-light) !important; }

.hero {
    min-height: 100vh;
    background: var(--navy);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 5% 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; right: -5%;
    width: 52%;
    height: 100%;
    background: var(--navy-light);
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.6;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 38%;
    height: 4px;
    background: var(--orange);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.hero h1 em {
    font-style: normal;
    color: var(--orange);
}

.hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.68);
    font-weight: 300;
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 44px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.2px;
    transition: background 0.2s, transform 0.15s;
    display: inline-block;
}

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

.btn-outline {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 15px;
    border: 1.5px solid rgba(255,255,255,0.25);
    transition: border-color 0.2s, color 0.2s;
    display: inline-block;
}

.btn-outline:hover { border-color: rgba(255,255,255,0.6); color: var(--white); }

.hero-stats {
    position: absolute;
    bottom: 48px;
    right: 5%;
    z-index: 2;
    display: flex;
    gap: 40px;
}

.stat {
    text-align: right;
}

.stat-num {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -1px;
}

.stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
}

section { padding: 96px 5%; }

.section-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 14px;
    display: block;
}

.section-title {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--gray-muted);
    max-width: 520px;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 56px;
}

#nosotros { background: var(--cream); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-visual {
    background: var(--navy);
    border-radius: 4px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 24px,
      rgba(255,255,255,0.03) 24px,
      rgba(255,255,255,0.03) 25px
    );
}

.about-icon-wrap {
    width: 100px;
    height: 100px;
    background: rgba(232, 101, 10, 0.15);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.box-svg { width: 56px; height: 56px; fill: var(--orange); }

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 8px;
}

.value-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 4px;
    padding: 20px;
}

.value-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.value-card p {
    font-size: 13px;
    color: var(--gray-muted);
    line-height: 1.55;
}

.value-accent {
    width: 28px;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
    margin-bottom: 12px;
}

#productos { background: var(--white); }

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

.product-card {
    border: 1px solid var(--gray-border);
    border-radius: 4px;
    padding: 32px 28px;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.product-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.product-card:hover {
    border-color: var(--navy);
    box-shadow: 0 8px 32px rgba(26,46,82,0.08);
}

.product-card:hover::after { transform: scaleX(1); }

.product-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--orange);
    display: block;
    margin-bottom: 16px;
}

.product-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

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

#ventajas { background: var(--navy); }

#ventajas .section-title { color: var(--white); }
#ventajas .section-subtitle { color: rgba(255,255,255,0.55); }

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
}

.ventaja-item {
    background: var(--navy);
    padding: 36px 28px;
    transition: background 0.2s;
}

.ventaja-item:hover { background: var(--navy-light); }

.ventaja-icon {
    width: 44px;
    height: 44px;
    background: rgba(232, 101, 10, 0.12);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.ventaja-icon svg { width: 22px; height: 22px; stroke: var(--orange); fill: none; stroke-width: 1.8; }

.ventaja-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.ventaja-item p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

#contacto { background: var(--cream); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}

.contact-info p {
    font-size: 15px;
    color: var(--gray-muted);
    line-height: 1.7;
    margin-bottom: 36px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item-icon {
    width: 40px;
    height: 40px;
    background: var(--navy);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg { width: 18px; height: 18px; stroke: var(--white); fill: none; stroke-width: 1.8; }

.contact-item-text strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 3px;
}

.contact-item-text span {
    font-size: 14px;
    color: var(--gray-muted);
}

.contact-form {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 4px;
    padding: 40px 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--navy);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--gray-border);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s;
    outline: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--navy);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-submit {
    width: 100%;
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 14px 24px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.2px;
}

.form-submit:hover { background: var(--navy-light); }

footer {
    background: #0F1B30;
    padding: 40px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}

.footer-logo span { color: var(--orange); }

.footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.8); }

@media (max-width: 900px) {
    .about-grid,
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-visual { display: none; }
    .products-grid { grid-template-columns: 1fr 1fr; }
    .ventajas-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }

    nav {
        justify-content: center;
        align-items: center;
        padding-top: 7%;
        height: 9%;
    }

    /* Hero: flujo normal, sin absolute en stats */
    .hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 6% 56px;
        min-height: auto;
    }

    .hero::before {
        display: none;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-stats {
        position: static;
        margin-top: 40px;
        justify-content: flex-start;
        gap: 28px;
        flex-wrap: wrap;
        width: 100%;
        padding-bottom: 8px;
    }

    .stat {
        text-align: left;
    }

    .stat-num {
        font-size: 26px;
    }
}

@media (max-width: 600px) {
    .products-grid { grid-template-columns: 1fr; }
    .ventajas-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    section { padding: 64px 6%; }
    .contact-form { padding: 28px 20px; }

    .hero {
        padding: 88px 6% 48px;
    }

    .hero h1 {
        font-size: 32px;
        letter-spacing: -0.5px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-num {
        font-size: 24px;
    }

    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .footer-links {
        justify-content: center;
    }
}