/* Navbar moderno fijo */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-800);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-red);
}

/* Hero section moderno */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-red) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Compensar el navbar fijo */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="grad" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,255,255,0);stop-opacity:1" /></radialGradient></defs><circle cx="200" cy="300" r="300" fill="url(%23grad)"/><circle cx="800" cy="700" r="200" fill="url(%23grad)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    transform: perspective(1000px) rotateY(-15deg);
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.hero-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.hero-card.featured {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-card.coming-soon {
    opacity: 0.7;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px dashed rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.hero-card.coming-soon:hover {
    transform: none;
    box-shadow: none;
}

.hero-card i {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.2rem auto;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.hero-card:hover i {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.hero-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    line-height: 1.2;
    min-height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-card h3.text-small {
    font-size: 0.95rem;
    line-height: 1.1;
}

.hero-card h3.text-medium {
    font-size: 1.1rem;
    line-height: 1.2;
}

.hero-card h3.text-large {
    font-size: 1.3rem;
    line-height: 1.3;
}

.hero-card .subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.3rem;
    font-weight: 400;
}

.hero-card.coming-soon .subtitle {
    color: #FFD700;
    font-weight: 500;
}

/* Sección de productos con diseño moderno */
.products {
    padding: 8rem 0;
    background: var(--gray-100);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
}

/* Footer moderno con dos columnas */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 3rem 0 2rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 2rem;
}

/* Columna 1: Enlaces legales */
.footer-legal {
    text-align: left;
}

.footer-legal h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Columna 2: Información de la empresa (centrado) */
.footer-company {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-text {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-legal {
        text-align: center;
    }
    
    .footer-legal h4 {
        margin-bottom: 1rem;
    }
    
    .footer-links {
        gap: 0.8rem;
    }
    
    .footer-links a {
        padding: 0.6rem 0.8rem;
        justify-content: center;
    }
    
    .footer-links a:hover {
        transform: none;
    }
}

/* Custom Solutions Section */
.custom-solutions {
    background: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    padding: 6rem 0;
    color: var(--white);
    text-align: center;
}

.custom-solutions-content {
    max-width: 800px;
    margin: 0 auto;
}

.custom-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.custom-solutions h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.custom-solutions p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.custom-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.custom-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.custom-feature i {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-feature span {
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-custom-solution {
    background: var(--white);
    color: var(--primary-red);
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    font-family: inherit;
}

.btn-custom-solution:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.btn-custom-solution i {
    margin-right: 0.8rem;
}

/* Responsive Custom Solutions */
@media (max-width: 768px) {
    .custom-solutions {
        padding: 4rem 0;
    }
    
    .custom-solutions h2 {
        font-size: 2rem;
    }
    
    .custom-solutions p {
        font-size: 1rem;
    }
    
    .custom-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .btn-custom-solution {
        padding: 1.2rem 2rem;
        font-size: 1rem;
    }
    
    /* Hero cards responsive */
    .hero-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        transform: none;
    }
    
    .hero-card {
        padding: 1.5rem 1rem;
    }
    
    .hero-card i {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .hero-card h3 {
        font-size: 1rem;
        min-height: 2.2rem;
    }
    
    .hero-card h3.text-small {
        font-size: 0.9rem;
    }
    
    .hero-card h3.text-medium {
        font-size: 1rem;
    }
    
    .hero-card h3.text-large {
        font-size: 1.1rem;
    }
    
    .hero-card .subtitle {
        font-size: 0.8rem;
    }
}