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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f4f6fb;
    color: #222;
    padding-top: 70px;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: -150px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: #1d7fd8;
    border-radius: 50%;
    opacity: 0.06;
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: #38b6ff;
    border-radius: 50%;
    opacity: 0.06;
    z-index: 0;
    pointer-events: none;
}

/* ===== NAVBAR ===== */
header {
    background: #0b2c6b;
    color: white;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 9999;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 0.75;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.logo img {
    height: 40px;
}

.logo span {
    font-weight: 600;
    font-size: 18px;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== HERO BANNER CON ZOOM AL SCROLL ===== */
.hero-banner {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hero-banner-inner {
    width: 100%;
    overflow: hidden;
}

#heroBannerImg {
    width: 100%;
    height: auto;
    display: block;
    transform-origin: center top;
    will-change: transform;
}

/* ===== SECCIÓN TYPING ===== */
.hero {
    min-height: 110px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #0b2c6b;
    padding: 40px;
    opacity: 0;
    transform: translateY(40px);
    animation: heroFade 1s ease forwards;
}

@keyframes heroFade {
    to { opacity: 1; transform: translateY(0); }
}

.typing {
    font-size: clamp(30px, 6vw, 60px);
    font-weight: 700;
    color: #0b2c6b;
    text-align: center;
}

.cursor {
    display: inline-block;
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

/* ===== SECTION-PRO ===== */
.section-pro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0b2c6b;
    color: white;
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
}

.section-pro::after {
    content: "";
    position: absolute;
    right: -150px;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background: #1da1d2;
    border-radius: 50%;
    z-index: 1;
}

.pro-content {
    z-index: 2;
    max-width: 500px;
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.pro-content h4 {
    font-size: 28px;
    opacity: 0.8;
}

.pro-content h2 {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.1;
    margin: 10px 0;
}

.pro-content p {
    margin-top: 15px;
    opacity: 0.9;
}

.pro-image {
    position: relative;
    z-index: 2;
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.pro-image img {
    width: 400px;
    transition: transform 0.6s ease;
}

.section-pro.visible .pro-content {
    transform: translateX(0);
    opacity: 1;
}

.section-pro.visible .pro-image {
    transform: translateX(0);
    opacity: 1;
}

.section-pro.visible .pro-image img {
    transform: scale(1.05);
}

/* ===== STATS ===== */
.stats {
    background: linear-gradient(135deg, #06142e, #0b2c6b);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.stats h2 {
    font-size: clamp(30px, 5vw, 50px);
    margin-bottom: 10px;
}

.stats > p {
    color: #bfc9d9;
    margin-bottom: 50px;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.stat {
    max-width: 220px;
}

.stat p {
    color: #bfc9d9;
    margin-top: 15px;
}

.circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    font-size: 30px;
    font-weight: bold;
    color: #00e0ff;
    position: relative;
    background: conic-gradient(
        #ff2d8d 0deg,
        #ff2d8d calc(var(--percent, 0) * 1deg),
        #1b2435 calc(var(--percent, 0) * 1deg)
    );
}

.circle::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    background: #06142e;
    border-radius: 50%;
}

.circle span {
    position: relative;
    z-index: 2;
}

/* ===== CONTAINER (Marcas y Productos) ===== */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 60px 40px;
    text-align: center;
    color: #0b2c6b;
    position: relative;
    z-index: 1;
}

.container h2 {
    font-size: clamp(24px, 5vw, 36px);
    color: #0b2c6b;
    text-shadow: 0 2px 10px rgba(13, 71, 161, 0.15);
    opacity: 0;
    transform: translateY(20px);
    animation: titleFade 0.8s ease forwards;
}

@keyframes titleFade {
    to { opacity: 1; transform: translateY(0); }
}

.container h2::after {
    content: "";
    width: 60px;
    height: 3px;
    background: #f7167b;
    display: block;
    margin: 10px auto 30px;
    border-radius: 2px;
}

/* ===== MARCAS ===== */
.brands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 0 auto;
}

.brand-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.brand-card button {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #1a237e;
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* ===== PRODUCTOS ===== */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 0 auto;
}

.product {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding-bottom: 20px;
    transition: 0.3s;
}

.product img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
}

.product h3 {
    margin: 15px 10px 10px;
    font-size: 14px;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product button {
    background: #0b2c6b;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}

/* ===== TESTIMONIOS ===== */
.testimonios {
    background: linear-gradient(135deg, #06142e, #0b2c6b);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.testimonios h2 {
    font-size: clamp(30px, 5vw, 50px);
    margin-bottom: 60px;
}

.testimonios-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.card-testimonio {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    max-width: 320px;
    text-align: left;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(40px);
}

.card-testimonio.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.card-testimonio::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #f7167b;
    border-radius: 20px 0 0 20px;
}

.card-testimonio:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-testimonio p {
    color: #d0d8e6;
    margin-bottom: 25px;
}

.cliente {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #00e0ff;
    color: #06142e;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cliente h4 {
    margin: 0;
}

.cliente span {
    color: #00e0ff;
    font-size: 14px;
}

/* ===== QUIENES SOMOS ===== */
.about {
    background: #0c224b;
    color: white;
    padding: 80px 40px;
    text-align: center;
    border-radius: 0 0 60% 60% / 0 0 10% 10%;
}

.about h2 {
    margin-bottom: 20px;
}

.about p {
    max-width: 900px;
    margin: auto;
    line-height: 1.8;
    text-align: justify;
}

/* ===== CONTACTO ===== */
.contact {
    background: white;
    text-align: center;
    padding: 60px 20px;
}

.contact h2 {
    margin-bottom: 15px;
    color: #0b2c6b;
}

.contact p {
    margin-bottom: 20px;
    color: #444;
}

/* ===== FOOTER ===== */
footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 13px;
}

/* ===== BOTONES ===== */
.mi-boton {
    background: #f7167b;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
}

.mi-boton:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.otro-boton {
    display: inline-block;
    margin: 8px 0;
    text-decoration: none;
    color: #0b2c6b;
    font-weight: 500;
    transition: 0.3s;
}

.otro-boton:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    header {
        padding: 0 20px;
    }

    /* Ocultar nav normal en móvil */
    nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        background: #0b2c6b;
        padding: 10px 0;
        border-radius: 0 0 0 12px;
    }

    nav.open {
        display: flex;
    }

    nav a {
        margin: 0;
        padding: 12px 24px;
        width: 100%;
        font-size: 14px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    nav a:last-child {
        border-bottom: none;
    }

    /* Botón hamburguesa */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        padding: 6px;
        background: none;
        border: none;
    }

    .menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s;
    }

    .menu-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        padding: 30px 20px;
    }

    .container {
        padding: 40px 15px;
    }

    .section-pro {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }

    .pro-content h2 {
        font-size: 36px;
    }

    .pro-image img {
        width: 250px;
        margin-top: 30px;
    }

    .section-pro::after {
        width: 350px;
        height: 350px;
        right: -100px;
    }
}

/* Ocultar hamburguesa en escritorio */
.menu-toggle {
    display: none;
}