/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-accent: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.cta-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Sección Héroe */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.highlight {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.cta-primary {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.cta-primary:hover {
    background: #d97706;
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.cta-primary.large {
    padding: 20px 40px;
    font-size: 1.2rem;
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

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

/* Videos Tutoriales Section */
.videos-tutoriales {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    text-align: center;
}

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

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

.video-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-item .video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.video-item .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* Video Demo Section */
.video-demo {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.video-demo-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.video-demo .section-title {
    margin-bottom: 1rem;
}

.video-demo .section-subtitle {
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
    width: 100%;
    height: 506px; /* 16:9 aspect ratio for 900px width */
    border: none;
    display: block;
    background: #000;
}

/* Visual del héroe */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #1f2937;
    border-radius: 30px;
    padding: 20px;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.chat-interface {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bot-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

.status {
    font-size: 0.8rem;
    opacity: 0.8;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot-message {
    background: var(--bg-accent);
    color: var(--text-primary);
    align-self: flex-start;
}

.user-message {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
}

/* Secciones generales */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
}

/* Sección Problema */
.problema {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.problemas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.problema-item {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.problema-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 2rem;
}

.problema-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.problema-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Sección Solución */
.solucion {
    padding: 100px 0;
    background: white;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.beneficio-item {
    background: var(--bg-secondary);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.beneficio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.beneficio-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 2rem;
}

.beneficio-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.beneficio-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Sección Cómo Funciona */
.como-funciona {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.pasos-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.paso-item {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    min-height: 280px;
}

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

.paso-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: var(--shadow-md);
    margin: 0 auto 20px auto;
}

.paso-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--text-primary);
}

.paso-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.paso-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Sección Testimonios */
.testimonios {
    padding: 100px 0;
    background: white;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.testimonio-item {
    background: var(--bg-secondary);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.testimonio-content {
    margin-bottom: 30px;
}

.testimonio-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
    position: relative;
}


.testimonio-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.author-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.author-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Sección Características */
.caracteristicas {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.caracteristicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.caracteristica-item {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.caracteristica-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.caracteristica-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.caracteristica-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Sección FAQ */
.faq {
    padding: 100px 0;
    background: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-secondary);
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.faq-question {
    padding: 24px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-accent);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 30px 24px;
    max-height: 200px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* CTA Final */
.cta-final {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: 10px;
}

.footer-section p i {
    margin-right: 10px;
    color: var(--accent-color);
}

/* Estilos para Grupo La Red */
.grupo-lared-text {
    font-size: 0.9rem;
    color: #9ca3af;
    margin: 15px 0 10px 0;
}

.grupo-lared-text-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.grupo-lared-text-link:hover {
    color: white;
}

.grupo-lared-link {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.grupo-lared-link:hover {
    opacity: 0.8;
}

.grupo-lared-logo {
    height: 30px;
    width: auto;
}

/* Estilos para redes sociales */
.social-links {
    margin-top: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    color: white;
}

.social-link i {
    font-size: 1.1rem;
    color: var(--accent-color);
}

/* Contact Info Unificado */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.contact-link:hover {
    color: white;
}

.contact-link i {
    font-size: 1.1rem;
    width: 16px;
    text-align: center;
}

/* WhatsApp específico */
.contact-link.whatsapp-link i {
    color: #25D366;
}

.contact-link.whatsapp-link:hover {
    color: #25D366;
}

/* Instagram específico */
.contact-link.social-link i {
    color: #E4405F;
}

.contact-link.social-link:hover {
    color: #E4405F;
}

/* Email específico */
.contact-link:not(.whatsapp-link):not(.social-link) i {
    color: var(--accent-color);
}

.contact-link:not(.whatsapp-link):not(.social-link):hover {
    color: var(--accent-color);
}

/* Internal Links */
.internal-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.internal-link:hover {
    color: white;
    border-bottom-color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .videos-tutoriales {
        padding: 60px 0;
    }
    
    .videos-tutoriales .section-subtitle {
        margin-bottom: 2rem;
        font-size: 1rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .video-demo {
        padding: 60px 0;
    }
    
    .video-demo .section-subtitle {
        margin-bottom: 2rem;
        font-size: 1rem;
    }
    
    .video-container {
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .video-container iframe {
        height: 200px;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .problemas-grid,
    .beneficios-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .pasos-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .caracteristicas-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonios-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cta-primary,
    .cta-secondary {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .problemas-grid,
    .beneficios-grid,
    .pasos-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .problema-item,
    .beneficio-item,
    .paso-item,
    .testimonio-item,
    .caracteristica-item {
        padding: 30px 20px;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-answer {
        padding: 0 20px 20px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Focus states para accesibilidad */
button:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Hover effects mejorados */
.problema-item,
.beneficio-item,
.paso-item,
.testimonio-item,
.caracteristica-item {
    position: relative;
    overflow: hidden;
}

.problema-item::before,
.beneficio-item::before,
.paso-item::before,
.testimonio-item::before,
.caracteristica-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.problema-item:hover::before,
.beneficio-item:hover::before,
.paso-item:hover::before,
.testimonio-item:hover::before,
.caracteristica-item:hover::before {
    left: 100%;
}
