@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ========== VARIABLES ========== */
:root {
    --white: #FFFFFF;
    --black: #000000;
    --blue-primary: #034C8C;
    --blue-dark: #071D39;
    --red-dark: #74001F;
    --red-primary: #E30613;
    --red-accent: #EB3D2A;
}

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

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: var(--black);
    overflow-x: hidden;
}

/* ========== NAVEGACIÓN ========== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo img {
    width: 180px;
    height: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--blue-dark);
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-links a:hover {
    background: var(--red-primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.4);
}

.nav-links a.active {
    background: var(--blue-primary);
    color: var(--white);
    padding: 0.5rem 0.8rem;
}

/* Mobile Menu Toggle */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--blue-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animación cuando el toggle está activo */
.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========== HERO ========== */
.hero-brands {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 50%, var(--red-primary) 100%);
    padding: 120px 2rem 80px;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
}

.anniversary-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--red-primary), var(--red-accent));
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== INTRO SECTION ========== */
.intro-section {
    padding: 60px 0 40px;
    background: var(--white);
    text-align: center;
}

.intro-section p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* ========== SECTION TITLE ========== */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.section-title .primary {
    color: var(--blue-dark);
}

.section-title .accent {
    color: var(--red-primary);
}

/* ========== BRANDS SECTION ========== */
.brands-section {
    padding: 60px 0 80px;
    background: #f8fafb;
}

/* ========== BRANDS GRID ========== */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.brand-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-primary), var(--red-primary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.brand-card:hover::before {
    transform: scaleX(1);
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.brand-logo {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.brand-logo img {
    max-width: 90%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(20%);
}

.brand-card:hover .brand-logo img {
    transform: scale(1.08);
    filter: grayscale(0%);
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--blue-dark);
    text-align: center;
    margin-top: auto;
}

/* ========== DESTACADO - TORO ========== */
.brand-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, #f8fafb 0%, #ffffff 100%);
    border: 2px solid var(--red-primary);
    min-height: 240px;
}

.brand-card.featured .brand-logo {
    height: 140px;
}

.brand-card.featured .brand-name {
    font-size: 1.3rem;
    color: var(--red-primary);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--red-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ========== STATS SECTION ========== */
.stats-section {
    padding: 60px 0;
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: #f8fafb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: var(--blue-primary);
    transform: translateY(-5px);
}

.stat-card:hover .stat-number,
.stat-card:hover .stat-label {
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--red-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.stat-label {
    font-size: 1rem;
    color: var(--blue-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

/* ========== CTA SECTION ========== */
.cta-section {
    padding: 80px 2rem;
    background: linear-gradient(135deg, #f8fafb 0%, #e8eef2 100%);
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 5px;
    background: linear-gradient(90deg, var(--blue-primary), var(--red-primary));
    border-radius: 3px;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--blue-dark);
    position: relative;
    padding-bottom: 1.5rem;
}

.cta-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--red-primary);
    border-radius: 2px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
}

.cta-btn {
    display: inline-block;
    background: var(--red-primary);
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: var(--red-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(227, 6, 19, 0.3);
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #128c7e;
    transform: scale(1.1);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--blue-dark);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--red-primary);
    border-radius: 2px;
}

.footer-section p, 
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
    margin-bottom: 0.8rem;
    font-size: 14px;
    display: block;
}

.footer-section a:hover {
    color: var(--red-primary);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    display: block;
    padding: 0.2rem 0;
}

.footer-logo {
    width: 200px;
    height: auto;
    margin-bottom: 1rem;
    display: block;
}

.footer-anniversary {
    width: 80px;
    height: auto;
    display: block;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-primary);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0;
}

.footer-social a:hover {
    background: var(--white);
    color: var(--red-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.3);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--red-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(227, 6, 19, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--red-dark);
    transform: translateY(-5px);
}

/* ========== RESPONSIVE ========== */

/* Tablets y Mobile Menu */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 25px rgba(0,0,0,0.15);
        border-radius: 15px;
        text-align: center;
        gap: 0.5rem;
        align-items: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: auto;
    }

    .nav-links a {
        display: inline-block;
        width: auto;
        padding: 0.8rem 1.5rem;
    }

    .mobile-menu {
        display: flex;
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .brand-card.featured {
        grid-column: span 3;
    }

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

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

/* Tablets medianas */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Móviles grandes */
@media (max-width: 768px) {
    /* Navegación */
    .nav-container {
        padding: 1rem;
    }

    .logo img {
        width: 150px;
    }

    .mobile-menu span {
        width: 22px;
        height: 2.5px;
    }

    .nav-links a {
        padding: 0.7rem 1.2rem;
    }
    
    /* Hero */
    .hero-brands {
        padding: 100px 1rem 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Secciones */
    .section-title {
        font-size: 2rem;
    }
    
    .intro-section,
    .brands-section,
    .stats-section,
    .cta-section {
        padding: 60px 0;
    }
    
    /* Brands Grid */
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .brand-card {
        padding: 2rem 1rem;
        min-height: 180px;
    }

    .brand-card.featured {
        grid-column: span 2;
        min-height: 220px;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
    
    /* CTA */
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 1rem 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section:first-child {
        text-align: center;
    }

    .footer-logo {
        width: 200px;
        margin: 0 auto 1rem;
    }

    .footer-anniversary {
        width: 80px;
        margin: 0 auto 1rem;
    }

    .footer-social {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-section ul {
        text-align: center;
    }

    .footer-section p {
        text-align: center;
    }
    
    /* Botones flotantes */
    .whatsapp-float,
    .back-to-top {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
    }
    
    .whatsapp-float {
        left: 20px;
    }
    
    .back-to-top {
        right: 20px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .logo img {
        width: 130px;
    }

    .nav-container {
        padding: 0.8rem 1rem;
    }

    .nav-links {
        width: 95%;
        padding: 1.5rem;
    }

    .nav-links a {
        padding: 0.6rem 1rem;
    }

    .mobile-menu span {
        width: 20px;
    }

    /* Hero */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    .anniversary-badge {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    /* Secciones */
    .section-title {
        font-size: 1.8rem;
    }

    .intro-section p {
        font-size: 1rem;
    }
    
    /* Brands Grid */
    .brands-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .brand-card {
        padding: 1.5rem 1rem;
        min-height: 160px;
    }

    .brand-card.featured {
        grid-column: span 1;
        min-height: 200px;
    }

    .brand-logo {
        height: 100px;
    }

    .brand-card.featured .brand-logo {
        height: 120px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-card.featured .brand-name {
        font-size: 1.2rem;
    }

    .featured-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
        top: 10px;
        right: 10px;
    }

    /* Stats */
    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* CTA */
    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 0.95rem;
    }

    .cta-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 1rem 1.5rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-logo {
        width: 180px;
    }

    .footer-anniversary {
        width: 70px;
    }

    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .footer-section p, 
    .footer-section a {
        font-size: 0.9rem;
    }

    .footer-social {
        justify-content: center;
        align-items: center;
    }
    
    .container {
        padding: 0 1rem;
    }
}