/* AI Protocol Generator - Landing Page */
/* MIAP Digital 2025 - Diseño Premium */

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

:root {
    /* Colores MIAP */
    --primary: #7C3AED;
    --primary-dark: #5B21B6;
    --secondary: #FF6B00;
    --secondary-dark: #C75100;
    --highlight: #D4AF37;
    --accent: #FFD700;
    --success: #10b981;
    --danger: #ef4444;
    
    /* Neutrales */
    --neutral-100: #F8F9FA;
    --neutral-200: #E9ECEF;
    --neutral-900: #212529;
    
    /* Gradientes */
    --gradient-main: linear-gradient(135deg, #7C3AED 0%, #FF6B00 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

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

body {
    font-family: 'Inter', Arial, sans-serif;
    color: var(--neutral-900);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: var(--gradient-main);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 107, 0, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0.95;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-subtitle strong {
    color: var(--accent);
    font-weight: 700;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--neutral-900);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
}

.btn-huge {
    padding: 1.5rem 4rem;
    font-size: 1.4rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

/* ============================================================================
   PROBLEMA SECTION
   ============================================================================ */

.problema {
    padding: 6rem 0;
    background: linear-gradient(180deg, #fff 0%, var(--neutral-100) 100%);
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--neutral-900);
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: var(--neutral-900);
    opacity: 0.8;
}

.highlight {
    color: var(--secondary);
}

.success-text {
    color: var(--success);
}

.problema-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.dolor-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dolor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--danger);
}

.dolor-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-align: center;
}

.dolor-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--neutral-900);
}

.dolor-description {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.dolor-description strong {
    color: var(--danger);
    display: block;
    margin-bottom: 0.5rem;
}

.dolor-quote {
    background: var(--neutral-100);
    padding: 1.25rem;
    border-left: 4px solid var(--danger);
    border-radius: 0.5rem;
    font-style: italic;
    color: var(--neutral-900);
    font-size: 0.95rem;
}

/* ============================================================================
   SOLUCIÓN SECTION
   ============================================================================ */

.solucion {
    padding: 6rem 0;
    background: var(--gradient-main);
    color: white;
    text-align: center;
}

.solucion-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.solucion .section-title,
.solucion .section-subtitle {
    color: white;
}

.solucion-visual {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.antes,
.despues {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.antes h3 {
    color: var(--danger);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.despues h3 {
    color: var(--success);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.antes-list,
.despues-list {
    list-style: none;
    text-align: left;
}

.antes-list li,
.despues-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

.antes-list li::before {
    content: '❌';
    position: absolute;
    left: 0;
}

.despues-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
}

.disaster {
    background: var(--gradient-danger);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 900;
    margin-top: 1rem;
}

.success {
    background: var(--gradient-success);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 900;
    margin-top: 1rem;
}

.arrow {
    font-size: 3rem;
    font-weight: 900;
}

/* ============================================================================
   CÓMO FUNCIONA SECTION
   ============================================================================ */

.como-funciona {
    padding: 6rem 0;
    background: white;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-main);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.step h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--neutral-900);
}

.step p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--neutral-900);
    opacity: 0.8;
}

.step-time {
    margin-top: 1rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* ============================================================================
   QUÉ INCLUYE SECTION
   ============================================================================ */

.que-incluye {
    padding: 6rem 0;
    background: var(--neutral-100);
}

.incluye-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.incluye-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.incluye-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.incluye-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.incluye-card h3 {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.incluye-card p {
    line-height: 1.8;
    color: var(--neutral-900);
    opacity: 0.8;
}

/* ============================================================================
   TESTIMONIOS SECTION
   ============================================================================ */

.testimonios {
    padding: 6rem 0;
    background: white;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonio {
    background: var(--neutral-100);
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
}

.testimonio-dolor {
    display: inline-block;
    background: var(--gradient-danger);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.testimonio-solucion {
    display: inline-block;
    background: var(--gradient-success);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.testimonio-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonio-autor {
    font-weight: 600;
    color: var(--primary);
}

/* ============================================================================
   CTA FINAL SECTION
   ============================================================================ */

.cta-final {
    padding: 8rem 0;
    background: var(--gradient-main);
    color: white;
    text-align: center;
}

.cta-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cta-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.cta-garantia {
    margin-top: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ============================================================================
   GENERATOR SECTION
   ============================================================================ */

.generator-section {
    padding: 4rem 0;
    background: var(--neutral-100);
}

.generator-container {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer {
    background: var(--neutral-900);
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.footer strong {
    color: var(--accent);
}

.footer-note {
    margin-top: 1rem;
    opacity: 0.7;
    font-size: 0.9rem;
    font-style: italic;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 768px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .solucion-visual {
        grid-template-columns: 1fr;
    }
    
    .arrow {
        transform: rotate(90deg);
    }
    
    .problema-grid,
    .incluye-grid,
    .testimonios-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}
