/* ============ RESET ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* ============ TOPBAR & HEADER UNIFICADOS ============ */
.top-bar,
.main-header {
    background: #000000;
    color: #ffffff;
    width: 100%;
}

/* ===== TOPBAR ===== */
.top-bar {
    padding: 6px 20px;
    font-size: 14px;
    display: flex;
    justify-content: center;
}

.topbar-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}

/* ===== HEADER ===== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.container-header {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo img {
    width: clamp(110px, 14vw, 200px);
    height: auto;
}

/* Navbar Escritorio */
.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: color .3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: #25d366;
}


/* Botón Hamburguesa (Oculto en escritorio) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 26px;
    color: #ffffff;
    cursor: pointer;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {

    /* Ocultamos la topbar en móvil */
    .top-bar {
        display: none;
    }

    /* Logo centrado y menú escondido */
    .navbar ul {
        display: none;
    }

    .container-header {
        justify-content: center;
    }

    /* Aparece el menú hamburguesa */
    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
    }
}

/* HERO SLIDER */
.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    max-height: 700px;
    overflow: hidden;
}

/* Imágenes */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    /* Se adapta a diferentes pantallas */
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Oscurecer un poco el fondo para que el texto se lea bien */
.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

/* Texto centrado */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 5;
    width: 90%;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 15px;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    margin-bottom: 20px;
}

/* Botón WhatsApp */
.btn-wpp {
    display: inline-block;
    padding: 12px 25px;
    background-color: #25d366;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    color: #000;
    transition: background .3s;
}

.btn-wpp:hover {
    background-color: #19a04e;
}

/* Flechas */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    font-size: 2.2rem;
    color: #fff;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

.arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slider {
        height: 80vh;
    }

    .arrow {
        font-size: 1.8rem;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 90vh;
    }

    .arrow {
        display: none;
        /* Opcional: ocultar flechas en pantallas muy chicas */
    }
}

/* SECCIÓN MARCAS */
.brands-section {
    background: #ffffff;
    padding: 70px 20px;
    text-align: center;
    border-top: 2px solid #111;
}

.brands-title {
    color: #000000;
    font-size: 2.3rem;
    margin-bottom: 45px;
    opacity: 0;
    animation: fadeUp 1s ease forwards;
}

/* GRID responsive */
.brands-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.brands-list span {
    font-size: 1.2rem;
    color: #000000;
    border: 1px solid #000000;
    padding: 10px 20px;
    border-radius: 6px;
    display: block;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    transition: 0.3s;
    text-transform: uppercase;
}

/* Animación escalonada */
.brands-list span:nth-child(1) {
    animation-delay: .2s;
}

.brands-list span:nth-child(2) {
    animation-delay: .35s;
}

.brands-list span:nth-child(3) {
    animation-delay: .50s;
}

.brands-list span:nth-child(4) {
    animation-delay: .65s;
}

.brands-list span:nth-child(5) {
    animation-delay: .80s;
}

.brands-list span:nth-child(6) {
    animation-delay: .95s;
}

.brands-list span:nth-child(7) {
    animation-delay: 1.1s;
}

.brands-list span:nth-child(8) {
    animation-delay: 1.25s;
}

.brands-list span:nth-child(9) {
    animation-delay: 1.4s;
}

.brands-list span:nth-child(10) {
    animation-delay: 1.55s;
}

/* Hover */
.brands-list span:hover {
    background: #000000;
    color: #ffffff;
    border-color: #ffffff;
}

/* Animaciones */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 📌 Laptop / Tablets grandes */
@media (max-width: 1024px) {
    .brands-list {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
}

/* 📌 Tablets medianas */
@media (max-width: 768px) {
    .brands-title {
        font-size: 1.9rem;
    }

    .brands-list span {
        font-size: 1.1rem;
        padding: 9px 18px;
    }
}

/* 📌 Celulares */
@media (max-width: 480px) {
    .brands-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .brands-title {
        font-size: 1.7rem;
        margin-bottom: 30px;
    }

    .brands-list span {
        font-size: 0.95rem;
        padding: 7px 14px;
    }
}

/* ================== PRODUCTOS DESTACADOS ================== */
.productos-section {
    background: #fff;
    color: #000;
    padding: 80px 20px;
}

.productos-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeUp 1s ease forwards;
}

/* Grid general */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cada producto */
.producto-item {
    background: transparent;
    border: 2px solid #000;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.9s ease forwards;
}

/* Imágenes */
.producto-item img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* Texto */
.producto-item p {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #000;
}

/* Animación */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================== RESPONSIVE COMPLETO ================== */
@media (max-width: 1200px) {
    .productos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .productos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .producto-item img {
        height: 100px;
    }
}

@media (max-width: 600px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .producto-item img {
        height: 90px;
    }
}

@media (max-width: 400px) {
    .productos-grid {
        grid-template-columns: 1fr;
    }

    .producto-item img {
        height: 85px;
    }
}


/* CTA Section */
.cta-section {
    padding: 60px 20px;
    background: #fff;
    text-align: center;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
}

.cta-section h2 {
    font-size: clamp(1.4rem, 3vw, 2.5rem);
    margin-bottom: 10px;
}

.cta-section p {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    margin-bottom: 20px;
}

.cta-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    border: 2px solid #000;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

.cta-btn:hover {
    background: #000;
    color: #fff;
}

/* Footer */
.footer {
    background: #fff;
    padding: 50px 20px 20px;
    text-align: center;
    border-top: 2px solid #000;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: clamp(1rem, 2.3vw, 1.3rem);
    margin-bottom: 15px;
}

.footer-col p,
.footer-col ul li {
    font-size: clamp(0.85rem, 1.8vw, 1rem);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li a {
    color: #000;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    opacity: 0.6;
}

.footer-bottom {
    border-top: 1px solid #000;
    padding-top: 12px;
    font-size: clamp(0.75rem, 1.6vw, 0.9rem);
}

/* Responsive — Para TODAS las pantallas */

/* Tablets */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }
}

/* Móviles medianos */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Móviles chicos */
@media (max-width: 480px) {
    .cta-section {
        padding: 45px 15px;
    }

    .cta-btn {
        width: 100%;
        padding: 14px;
    }

    .footer {
        padding: 40px 10px 15px;
    }

    .footer-content {
        gap: 15px;
    }
}

/* Pantallas muy grandes (TV, monitores ultra-wide) */
@media (min-width: 1600px) {
    .cta-section {
        padding: 90px 20px;
    }

    .footer-content {
        max-width: 1400px;
        margin: auto;
    }
}

/* CTA */
.cta-section {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 60px 20px;
}

.cta-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 26px;
    background: #e60000;
    color: #fff;
    font-size: 20px;
    border-radius: 6px;
    transition: .3s;
}

.cta-btn:hover {
    background: #b30000;
}


/* ================= FOOTER ================= */
.footer {
    background: #000;
    color: #fff;
    padding-top: 60px;
    font-family: Arial, sans-serif;
}

/* Grid general centrado */
.footer-content {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: start;
    justify-items: center;
    text-align: center;
    padding-bottom: 50px;
}

/* === Columna 1: Logo + Nav === */
.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo img {
    width: clamp(130px, 15vw, 200px);
    margin-bottom: 20px;
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.footer-nav a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
}

/* Estado activo + hover */
.footer-nav a:hover,
.footer-nav a.active {
    color: #00b7ff;
    text-decoration: underline;
}

/* === Columna 2: Mapa === */
.footer-map h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.footer-map iframe {
    border-radius: 12px;
    width: 100%;
    max-width: 350px;
    height: 250px;
}

.footer-map-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    border: 1px solid #fff;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: .3s;
}

.footer-map-btn:hover {
    background: #fff;
    color: #000;
}

/* === Columna 3: Contacto === */
.footer-contact-box {
    background: #111;
    padding: 25px;
    border-radius: 14px;
    width: 90%;
    max-width: 320px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-contact-box h4 {
    color: #00b7ff;
    margin-bottom: 14px;
}

.footer-contact-box p {
    margin: 6px 0;
}

/* Botón WhatsApp */
.footer-wpp {
    background: #25d366;
    color: #000;
    padding: 12px 20px;
    font-weight: bold;
    border-radius: 10px;
    margin-top: 14px;
    text-decoration: none;
    transition: 0.3s;
}

.footer-wpp:hover {
    background: #1fa855;
}

/* Copyright */
.footer-bottom {
    background: #080808;
    text-align: center;
    padding: 16px 0;
    font-size: 14px;
}


/* ================== RESPONSIVE ================== */

/* Laptops 1300px hacia abajo */
@media (max-width: 1300px) {
    .footer-content {
        max-width: 1100px;
    }
}

/* Laptops pequeñas */
@media (max-width: 1100px) {
    .footer-content {
        gap: 30px;
    }
}

/* Tablets horizontales */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-map iframe {
        height: 230px;
    }
}

/* Tablets verticales */
@media (max-width: 820px) {
    .footer-content {
        gap: 25px;
    }
}

/* Celulares grandes */
@media (max-width: 700px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column,
    .footer-contact-box,
    .footer-map {
        width: 100%;
        max-width: 400px;
        margin: auto;
    }
}

/* Celulares medianos */
@media (max-width: 600px) {
    .footer-map iframe {
        height: 210px;
    }

    .footer-logo img {
        width: 150px;
    }

    .footer-nav a {
        font-size: 0.95rem;
    }
}

/* Celulares chicos */
@media (max-width: 480px) {
    .footer-map iframe {
        height: 200px;
    }

    .footer-contact-box {
        padding: 18px;
    }
}

/* MINIS (Galaxy Mini, iPhone 5, etc.) */
@media (max-width: 380px) {
    .footer-contact-box p {
        font-size: 0.85rem;
    }

    .footer-nav a {
        font-size: 0.85rem;
    }
}

/* MUY MUY pequeños */
@media (max-width: 330px) {
    .footer-logo img {
        width: 120px;
    }

    .footer-contact-box {
        padding: 15px;
    }
}

/* Botón Hamburguesa */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 30px;
    color: #ffffff;
    cursor: pointer;
    z-index: 1002;
}

/* Estado activo del botón */
.menu-toggle.active {
    transform: rotate(90deg);
}

/* Overlay del menú móvil */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000000e8;
    padding-top: 100px;
    text-align: center;
    flex-direction: column;
    gap: 20px;
    z-index: 1001;
}

.mobile-menu a {
    font-size: 22px;
    color: #fff;
    text-decoration: none;
    padding: 10px;
}

.mobile-menu a:hover {
    color: #25d366;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {

    .navbar { display: none; }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
    }

    /* Activar menú cuando está abierto */
    .mobile-menu.active {
        display: flex;
    }
}
