/* ============================================
   SIELIX LANDING PAGE - ESTILOS GLOBALES
   Diseño Profesional | Enfoque Conversión
   ============================================ */

/* VARIABLES Y COLORES */
:root {
    /* Paleta de colores */
    --primary: #003366;           /* Azul Marino Oscuro - Confianza */
    --secondary: #00C8C8;         /* Turquesa Brillante - Innovación */
    --accent: #FF6600;            /* Naranja Caliente - Acción */
    --white: #FFFFFF;
    --light-bg: #f8f9fa;
    --dark-text: #1a1a1a;
    --light-text: #666666;
    --border: #e0e0e0;
    
    /* Espaciado */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    
    /* Transiciones */
    --transition: all 0.3s ease-out;
}

/* RESET Y ESTILOS GLOBALES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* TIPOGRAFÍA */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: 1.5rem;
    color: var(--primary);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--light-text);
    line-height: 1.8;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

strong {
    color: var(--primary);
    font-weight: 700;
}

/* BOTONES */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, #FF8533 100%);
    color: white;
    padding: var(--spacing-md) var(--spacing-2xl);
    border: none;
    border-radius: var(--radius-lg);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

/* ESPACIADO Y SECCIONES */
section {
    padding: var(--spacing-3xl) 0;
}

section:nth-child(even) {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    text-align: center;
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-3xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   SECCIÓN 1: HERO
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #004d99 100%);
    color: white;
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 50%, rgba(0, 200, 200, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    color: white;
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    margin-bottom: var(--spacing-md);
    line-height: 1.15;
}

.hero-subtitle {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
}

.hero-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    margin-bottom: var(--spacing-2xl);
    line-height: 1.8;
}

.hero-description strong {
    color: var(--secondary);
}

.hero .cta-button {
    margin-bottom: var(--spacing-lg);
    width: 100%;
    max-width: 350px;
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: 1.15rem;
}

.cta-subtext {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 0;
}

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

.hero-illustration {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

/* ============================================
   SECCIÓN 2: PAIN POINTS
   ============================================ */
.pain-points {
    padding: var(--spacing-3xl) 0;
    background-color: var(--light-bg);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.pain-card {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 4px solid var(--secondary);
    text-align: center;
}

.pain-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pain-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.pain-card h3 {
    margin-bottom: var(--spacing-md);
    font-size: 1.3rem;
}

.pain-card p {
    margin-bottom: 0;
    color: var(--light-text);
}

/* ============================================
   SECCIÓN 3: PILARES DE SOLUCIÓN
   ============================================ */
.pillars {
    padding: var(--spacing-3xl) 0;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.pillar-card {
    background: linear-gradient(135deg, rgba(0, 200, 200, 0.05) 0%, rgba(0, 51, 102, 0.05) 100%);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    border: 2px solid var(--secondary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary) 0%, transparent 100%);
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.pillar-icon {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    min-height: 80px;
    align-items: center;
}

.pillar-card h3 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary);
}

.pillar-intro {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
}

.pillar-text {
    color: var(--light-text);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.pillar-benefit {
    color: var(--light-text);
    background: rgba(0, 200, 200, 0.08);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: 0;
    border-left: 3px solid var(--secondary);
}

.pillar-benefit strong {
    color: var(--primary);
}

/* ============================================
   SECCIÓN 4: TESTIMONIOS
   ============================================ */
.testimonials {
    padding: var(--spacing-3xl) 0;
    background-color: var(--light-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-3xl);
}

.testimonial-card {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border-top: 3px solid var(--secondary);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--light-text);
    font-style: italic;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
    line-height: 1.8;
}

.testimonial-author {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0;
}

.clients-section {
    text-align: center;
    padding: var(--spacing-2xl);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.clients-section h3 {
    margin-bottom: var(--spacing-xl);
}

.clients-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
}

.client-logo {
    padding: var(--spacing-lg);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--light-text);
    font-weight: 600;
    background: var(--light-bg);
    transition: var(--transition);
}

.client-logo:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

/* ============================================
   SECCIÓN 5: FORMULARIO Y CTA FINAL
   ============================================ */
.cta-final {
    padding: var(--spacing-3xl) 0;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    background: var(--light-bg);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-2xl);
    border: 2px solid var(--secondary);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 200, 200, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group select {
    cursor: pointer;
    color: var(--dark-text);
}

.form-group select option {
    color: var(--dark-text);
    background: white;
    padding: var(--spacing-md);
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
}

.form-group.checkbox input[type="checkbox"] {
    width: auto;
    min-width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--secondary);
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: 400;
    color: var(--light-text);
    cursor: pointer;
}

.form-group.checkbox a {
    color: var(--secondary);
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: var(--spacing-sm);
    min-height: 20px;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
    background: #fff5f5;
}

.contact-form button {
    width: 100%;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: 1.1rem;
}

.form-footer {
    text-align: center;
    color: var(--light-text);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.form-success {
    background: linear-gradient(135deg, rgba(0, 200, 200, 0.1) 0%, rgba(0, 51, 102, 0.1) 100%);
    border: 2px solid var(--secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-3xl) var(--spacing-2xl);
    text-align: center;
}

.success-content h3 {
    color: var(--secondary);
    margin-bottom: var(--spacing-md);
}

.success-content p {
    color: var(--light-text);
    margin-bottom: var(--spacing-md);
}

.success-email {
    font-weight: 600;
    color: var(--primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-section h4 {
    color: var(--secondary);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-sm);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-bottom p {
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .hero-visual {
        order: -1;
        margin-bottom: var(--spacing-xl);
    }

    .hero-illustration {
        max-width: 300px;
    }

    .hero .cta-button {
        width: 100%;
    }

    section {
        padding: var(--spacing-2xl) 0;
    }

    .pain-grid,
    .pillars-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .contact-form {
        padding: var(--spacing-lg);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }

    .footer-section ul li::after {
        content: ' • ';
        margin: 0 var(--spacing-sm);
    }

    .footer-section ul li:last-child::after {
        content: '';
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.95rem;
    }

    section {
        padding: var(--spacing-xl) 0;
    }

    .cta-button {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .pillar-card,
    .pain-card,
    .testimonial-card {
        padding: var(--spacing-lg);
    }

    .contact-form {
        padding: var(--spacing-md);
        border-radius: var(--radius-md);
    }
}

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

.pillar-card,
.pain-card,
.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Stagger animation for cards */
.pain-grid .pain-card:nth-child(1) { animation-delay: 0.1s; }
.pain-grid .pain-card:nth-child(2) { animation-delay: 0.2s; }
.pain-grid .pain-card:nth-child(3) { animation-delay: 0.3s; }
.pain-grid .pain-card:nth-child(4) { animation-delay: 0.4s; }
.pain-grid .pain-card:nth-child(5) { animation-delay: 0.5s; }
.pain-grid .pain-card:nth-child(6) { animation-delay: 0.6s; }

.pillars-grid .pillar-card:nth-child(1) { animation-delay: 0.1s; }
.pillars-grid .pillar-card:nth-child(2) { animation-delay: 0.2s; }
.pillars-grid .pillar-card:nth-child(3) { animation-delay: 0.3s; }

/* ============================================
   UTILIDADES
   ============================================ */
.link {
    color: var(--secondary);
    text-decoration: underline;
}

.link:hover {
    color: var(--accent);
}

/* Print styles */
@media print {
    .contact-form,
    .cta-button {
        display: none;
    }
}
