@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - HSL Format */
    --background: 240 10% 3.9%;
    --foreground: 210 40% 98%;
    --card: 240 10% 7%;
    --primary: 252 83% 57%;
    --primary-glow: 252 83% 67%;
    --secondary: 192 91% 36%;
    --secondary-glow: 192 91% 46%;
    --accent: 316 73% 52%;
    --muted: 240 9% 13%;
    --muted-foreground: 240 5% 64.9%;
    --border: 240 6% 20%;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--accent)) 50%, hsl(var(--secondary)) 100%);
    --gradient-card: linear-gradient(145deg, hsl(var(--card)) 0%, hsl(240 10% 9%) 100%);
    --gradient-text: linear-gradient(90deg, hsl(var(--primary-glow)), hsl(316 73% 62%), hsl(var(--secondary-glow)));

    /* Shadows */
    --shadow-glow-primary: 0 0 40px hsl(var(--primary) / 0.3);
    --shadow-glow-secondary: 0 0 40px hsl(var(--secondary) / 0.3);
    --shadow-elegant: 0 20px 60px -10px hsl(var(--background) / 0.8);
    --shadow-card: 0 8px 32px hsl(var(--background) / 0.4);

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(145deg, hsl(var(--background)) 0%, hsl(240, 34%, 20%) 100%);
    color: hsl(var(--foreground));
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.1rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* ===== LAYOUT COMPONENTS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(145deg, hsl(var(--card) / 0.8), hsl(240 10% 9% / 0.8));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid hsl(var(--border) / 0.2);
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    position: relative;
    transition: var(--transition-smooth);
}

nav a:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--primary) / 0.1);
    transform: translateY(-2px);
}

nav a:last-child {
    background: var(--gradient-hero);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-glow-primary);
}

nav a:last-child:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-glow-primary), 0 10px 30px hsl(var(--primary) / 0.4);
}

/* ===== MAIN CONTENT ===== */
main {
    margin-top: 5rem;
}

section {
    padding: 5rem 0;
}

/* ===== HERO SECTION ===== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 8rem;
    height: 8rem;
    background: hsl(var(--primary) / 0.1);
    border-radius: 50%;
    filter: blur(60px);
    animation: float 3s ease-in-out infinite;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 10rem;
    height: 10rem;
    background: hsl(var(--secondary) / 0.1);
    border-radius: 50%;
    filter: blur(60px);
    animation: float 3s ease-in-out infinite reverse;
}

#hero .container {
    text-align: center;
    position: relative;
    z-index: 10;
}

#hero h2 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 2rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

#hero p {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    max-width: 600px;
    margin: 0 auto 3rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-hero);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow-primary);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, hsl(var(--foreground) / 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-glow-primary), 0 15px 40px hsl(var(--primary) / 0.4);
}

.cta-button:hover::before {
    transform: translateX(100%);
}

/* ===== BENEFITS SECTION ===== */
#beneficios {
    background: hsl(var(--muted) / 0.3);
    position: relative;
}

#beneficios .container {
    position: relative;
    z-index: 10;
}

#beneficios h2 {
    text-align: center;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
}

#beneficios ul {
    list-style: none;
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

#beneficios li {
    background: var(--gradient-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid hsl(var(--border) / 0.5);
    backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

#beneficios li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-hero);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#beneficios li:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card), var(--shadow-glow-primary);
}

#beneficios li:hover::before {
    transform: scaleX(1);
}

#beneficios strong {
    color: hsl(var(--primary-glow));
    font-weight: 700;
}

/* ===== FAQ SECTION ===== */
#faq {
    padding: 6rem 0;
}

#faq h2 {
    text-align: center;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 3rem;
}

details {
    background: var(--gradient-card);
    margin-bottom: 1rem;
    border-radius: 1rem;
    border: 1px solid hsl(var(--border) / 0.5);
    overflow: hidden;
    transition: var(--transition-smooth);
}

details:hover {
    border-color: hsl(var(--primary) / 0.3);
    box-shadow: var(--shadow-card);
}

summary {
    padding: 1.5rem 2rem;
    cursor: pointer;
    font-weight: 600;
    color: hsl(var(--foreground));
    transition: var(--transition-smooth);
    position: relative;
}

summary::marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: hsl(var(--primary));
    transition: var(--transition-smooth);
}

details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

summary:hover {
    color: hsl(var(--primary-glow));
    background: hsl(var(--primary) / 0.05);
}

details p {
    padding: 0 2rem 1.5rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
}

/* ===== CONTACT SECTION ===== */
#contacto {
    background: hsl(var(--muted) / 0.2);
    text-align: center;
}

#contacto h2 {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#contacto p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: hsl(var(--muted-foreground));
}

#contacto a {
    color: hsl(var(--primary-glow));
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

#contacto a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-hero);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#contacto a:hover::after {
    transform: scaleX(1);
}

/* ===== FOOTER ===== */
footer {
    background: hsl(var(--card));
    border-top: 1px solid hsl(var(--border) / 0.5);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    color: hsl(var(--muted-foreground));
    font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    nav a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    #hero h2 {
        font-size: 2.5rem;
    }
    
    #hero p {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    #beneficios li {
        padding: 1.5rem;
    }
    
    summary {
        padding: 1rem 1.5rem;
    }
    
    details p {
        padding: 0 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.25rem;
    }
    
    #hero h2 {
        font-size: 2rem;
    }
    
    #hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    nav ul {
        gap: 0.5rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    header {
        position: static;
    }
    
    main {
        margin-top: 0;
    }
    
    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
}

footer .container {
    display: inline-flex;
    align-items: center;
    gap: 1rem; /* Espacio entre texto y enlace */
    padding: 1rem 2rem;
}

/* Opcional: si quieres asegurar que no se vea raro en móvil */
@media (max-width: 500px) {
    footer .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Ya tienes este estilo o lo puedes complementar */
.privacy {
    color: hsl(var(--primary-glow));
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
}

.privacy:hover {
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--secondary-glow));
    transform: translateY(-1px);
    box-shadow: 0 2px 8px hsl(var(--primary) / 0.3);
}

.logo-box {
    content: '';
    display: inline-block;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-hero);
    border-radius: 0.5rem;
    margin-right: 0.75rem;
    vertical-align: middle;
    animation: float 3s ease-in-out infinite;
}

.logo-box img {
    width: 100%;
    height: 97.5%;
    object-fit: cover; /* O usa contain si quieres que el logo no se recorte */
    border-radius: 0.5rem;
}
