/* Estilos globales */
:root {
    --color-primary: #D500F9;    /* Fucsia */
    --color-accent: #C6FF00;     /* Lima */
    --color-background: #1A1A1A; /* Antracita */
    --color-text: #F1F1F1;       /* Gris claro */
    --color-decor: #00E5FF;      /* Turquesa */
    --padding-section: 4rem 2rem;
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
    font-size: 16px;
}

section[id] {
    scroll-margin-top: 40px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--color-text);
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.btn {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-align: center;
}

.btn:hover {
    background: var(--color-accent);
    color: var(--color-background);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    opacity: 1;
    transform: translateY(0);
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: var(--color-primary);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Aplicar animación a todos los elementos importantes sin necesidad de JS */
.section-title,
.benefit-card,
.service-card, 
.testimonial-card,
.about-text,
.contact-info {
    animation: fadeIn 0.8s ease forwards;
}

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(26, 26, 26, 0.95);
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(213, 0, 249, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo svg {
    height: 40px;
    transition: var(--transition);
}

.logo svg:hover {
    transform: scale(1.05);
}

.desktop-nav {
    display: flex;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
}

.desktop-nav li {
    margin: 0 1rem;
}

.mobile-nav-toggle {
    display: none;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.hero:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.7) 0%, rgba(213, 0, 249, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    animation: fadeIn 1s ease forwards;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    animation: fadeIn 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-btn {
    animation: fadeIn 1s ease 0.4s forwards;
    opacity: 0;
}

/* About Section */
.about {
    padding: var(--padding-section);
    background: linear-gradient(to right, var(--color-background), rgba(26, 26, 26, 0.9));
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.about-text:nth-child(1) {
    animation-delay: 0.1s;
}

.about-text:nth-child(2) {
    animation-delay: 0.3s;
}

/* Benefits Section */
.benefits {
    padding: var(--padding-section);
    background-color: rgba(0, 229, 255, 0.05);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: rgba(26, 26, 26, 0.8);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--color-primary);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border-left: 4px solid var(--color-accent);
}

/* Agregamos delays a cada tarjeta para crear un efecto escalonado */
.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }
.benefit-card:nth-child(4) { animation-delay: 0.4s; }
.benefit-card:nth-child(5) { animation-delay: 0.5s; }
.benefit-card:nth-child(6) { animation-delay: 0.6s; }

.benefit-icon {
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Services Section */
.services {
    padding: var(--padding-section);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(213, 0, 249, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Agregamos delays a cada tarjeta de servicio */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.3s; }
.service-card:nth-child(3) { animation-delay: 0.5s; }

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 2rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

/* Testimonials Section */
.testimonials {
    padding: var(--padding-section);
    background-color: rgba(198, 255, 0, 0.05);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: rgba(26, 26, 26, 0.8);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    position: relative;
}

/* Agregamos delays a cada testimonio */
.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.3s; }
.testimonial-card:nth-child(3) { animation-delay: 0.5s; }

.testimonial-card:before {
    content: "";
    font-size: 5rem;
    position: absolute;
    top: -20px;
    left: 20px;
    color: var(--color-primary);
    opacity: 0.2;
}

.testimonial-text {
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h4 {
    color: var(--color-accent);
}

/* Contact Form */
.contact-form {
    padding: var(--padding-section);
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(0, 229, 255, 0.1) 100%);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(26, 26, 26, 0.8);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(213, 0, 249, 0.1);
    animation: fadeIn 0.8s ease forwards;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(241, 241, 241, 0.1);
    border-radius: var(--border-radius);
    background: rgba(26, 26, 26, 0.8);
    color: var(--color-text);
    font-family: 'Poppins', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 5px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* FAQ Section */
.faq {
    padding: var(--padding-section);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease forwards;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(241, 241, 241, 0.1);
    padding-bottom: 1.5rem;
}

.faq-question {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--color-accent);
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: var(--padding-section);
    background-color: rgba(0, 229, 255, 0.05);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-info {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

/* Agregamos delays a cada bloque de contacto */
.contact-grid > div:nth-child(1) .contact-info { animation-delay: 0.1s; }
.contact-grid > div:nth-child(2) .contact-info { animation-delay: 0.2s; }
.contact-grid > div:nth-child(3) .contact-info { animation-delay: 0.3s; }
.contact-grid > div:nth-child(4) .contact-info { animation-delay: 0.4s; }

.contact-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-right: 1rem;
}

/* Footer */
footer {
    background: rgba(26, 26, 26, 0.95);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(213, 0, 249, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(241, 241, 241, 0.1);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 350px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    border: 1px solid rgba(213, 0, 249, 0.3);
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

.cookie-content {
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    justify-content: space-between;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px; /* Hidden by default */
    width: 250px;
    height: 100vh;
    background: rgba(26, 26, 26, 0.97);
    z-index: 200;
    padding: 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.mobile-nav-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 300;
    background: transparent;
    border: none;
    cursor: pointer;
    display: none;
}

.mobile-nav-checkbox {
    display: none;
}

.mobile-nav-checkbox:checked ~ .mobile-nav {
    right: 0;
}

.mobile-nav-icon {
    width: 30px;
    height: 3px;
    background-color: var(--color-text);
    position: relative;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.mobile-nav-icon:before,
.mobile-nav-icon:after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

.mobile-nav-icon:before {
    top: -8px;
}

.mobile-nav-icon:after {
    top: 8px;
}

.mobile-nav-checkbox:checked ~ .mobile-nav-toggle .mobile-nav-icon {
    background-color: transparent;
}

.mobile-nav-checkbox:checked ~ .mobile-nav-toggle .mobile-nav-icon:before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-nav-checkbox:checked ~ .mobile-nav-toggle .mobile-nav-icon:after {
    transform: rotate(-45deg);
    top: 0;
}

.mobile-nav-close {
    display: block;
    text-align: right;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.mobile-nav-menu {
    list-style: none;
}

.mobile-nav-menu li {
    margin-bottom: 1.5rem;
}

.mobile-nav-menu a {
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(241, 241, 241, 0.1);
}

/* Media Queries - Adaptaciones para diferentes tamaños de pantalla */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .benefits-grid,
    .services-grid,
    .testimonial-grid,
    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .form-container {
        padding: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    :root {
        --padding-section: 3rem 1.5rem;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-title:after {
        width: 60px;
        height: 4px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero {
        height: 90vh;
        background-attachment: scroll;
    }
    
    .benefit-card, 
    .service-card, 
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .benefit-icon {
        font-size: 2rem;
    }
    
    .service-img {
        height: 180px;
    }
    
    .form-container {
        padding: 2rem;
    }
    
    .contact-info {
        flex-direction: column;
    }
    
    .contact-icon {
        margin-bottom: 0.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-buttons a,
    .cookie-buttons button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 13px;
    }
    
    :root {
        --padding-section: 2.5rem 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .about-text h3,
    .service-title {
        font-size: 1.3rem;
    }
    
    .benefits-grid,
    .services-grid,
    .testimonial-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .faq-question {
        font-size: 1.1rem;
    }
    
    .cookie-popup {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: calc(100% - 20px);
    }
    
    .testimonial-author {
        flex-direction: column;
    }
    
    .testimonial-avatar {
        margin-bottom: 0.5rem;
    }
    
    .testimonial-info {
        text-align: center;
    }
}

@media (max-width: 380px) {
    html {
        font-size: 12px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .benefit-card, 
    .service-card, 
    .testimonial-card {
        padding: 1.2rem;
    }
    
    .form-container {
        padding: 1.2rem;
    }
    
    .mobile-nav {
        width: 100%;
        right: -100%;
    }
}

/* Optimizaciones de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .section-title,
    .benefit-card,
    .service-card, 
    .testimonial-card,
    .about-text,
    .contact-info,
    .form-container,
    .faq-container,
    .hero-title,
    .hero-subtitle,
    .hero-btn {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .benefit-card:hover,
    .service-card:hover {
        transform: none !important;
    }
    
    .service-card:hover .service-img img {
        transform: none !important;
    }
}

/* Adaptaciones para alta densidad de píxeles */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero {
        background-attachment: scroll;
    }
}

/* Alerts - Form Error Messages */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    border-left: 5px solid;
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.1);
    color: #ff6b81;
    border-color: #ff6b81;
}

.alert-error p {
    margin-bottom: 0.5rem;
}

.alert-error p:last-child {
    margin-bottom: 0;
}

/* Form validation styles */
.form-control:invalid {
    border-color: rgba(220, 53, 69, 0.5);
}

.form-control:valid {
    border-color: rgba(40, 167, 69, 0.5);
} 