/* legales-styles.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}



/* Hero Section */
.hero-legal {
    height: 350px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.9), rgba(42, 82, 122, 0.9)),
                url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRb97XnuIyIl_Qi6CotTPvqgBDa7z3p3_VHvw&s') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Legal Navigation */
.legal-nav {
    padding: 3rem 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.legal-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.legal-nav-item {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.legal-nav-item:hover {
    background: white;
    border-color: #e63946;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.15);
}

.legal-nav-item svg {
    width: 40px;
    height: 40px;
    color: #e63946;
}

.legal-nav-item span {
    font-weight: 600;
    text-align: center;
    font-size: 0.95rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.label {
    color: #e63946;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.date {
    color: #666;
    font-size: 0.95rem;
    font-style: italic;
}

/* Legal Section */
.legal-section {
    padding: 5rem 0;
}

.gray-bg {
    background: #f9fafb;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.legal-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid #e63946;
}

.legal-card h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.legal-card p {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-card ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.legal-card li {
    color: #555;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.legal-card strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Normativas Grid */
.normativas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.normativa-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.normativa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border-color: #e63946;
}

.normativa-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.normativa-icon svg {
    width: 35px;
    height: 35px;
    color: #e63946;
}

.normativa-card h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.normativa-tema {
    color: #e63946;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.normativa-descripcion {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-normativa {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f80d21;
    color: white;
    padding: 0.9rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    justify-content: center;
}

.btn-normativa:hover {
    background: #d62828;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.btn-normativa svg {
    width: 18px;
    height: 18px;
}

.normativa-footer {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.normativa-footer p {
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.normativa-footer strong {
    color: #856404;
}

/* Legal Contact */
.legal-contact {
    padding: 4rem 0;
    background: linear-gradient(135deg, #e63946 0%, #d62828 100%);
}

.contact-box {
    text-align: center;
    color: white;
}

.contact-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-box p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.contact-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-contact,
.btn-email {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-contact {
    background: white;
    color: #e63946;
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-email {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-email:hover {
    background: white;
    color: #e63946;
}


/* Botones Flotantes */
.soporte-float {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    transition: all 0.3s;
    z-index: 1000;
    animation: bounce 2s ease-in-out infinite;
    text-decoration: none;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.soporte-float:hover {
    background: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%);
    transform: scale(1.1);
    animation: none;
}

.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }

    .logo img {
        height: 40px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .cta-desktop {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        gap: 0;
        z-index: 100;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
    }

    .cta-button-mobile {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 99;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .legal-nav-grid {
        grid-template-columns: 1fr;
    }

    .normativas-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 1rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-buttons {
        flex-direction: column;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn-contact,
    .btn-email {
        width: 100%;
    }

    .soporte-float {
        bottom: 90px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-section:first-child {
        grid-column: 1 / -1;
        text-align: center;
    }
}