/* =========================================
   1. VARIABLES Y CONFIGURACIÓN GLOBAL
========================================= */
:root {
    --primary: #0f172a;      /* Azul marino oscuro corporativo */
    --accent: #2563eb;       /* Azul brillante para llamadas a la acción */
    --accent-hover: #1d4ed8;
    --success: #10b981;      /* Verde para conversiones/pagos */
    --bg-light: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    --max-width: 1150px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif, system-ui, -apple-system;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* =========================================
   2. BOTONES GENERALES
========================================= */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* =========================================
   3. CABECERA Y NAVEGACIÓN
========================================= */
.site-header {
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.logo span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.2s;
}

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

.btn-nav {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

/* =========================================
   4. SECCIÓN HERO (INICIO)
========================================= */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--white);
    padding: 7rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    background-color: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.hero h2 {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.15rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero .btn-secondary {
    color: var(--white);
    border-color: var(--white);
}

.hero .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* =========================================
   5. TÍTULOS Y GRILLAS GLOBALES
========================================= */
.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem auto;
}

.section-title h3 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-title p {
    color: var(--text-muted);
}

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

.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.card h4 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* =========================================
   6. PRECIOS Y PAQUETES
========================================= */
.pricing-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border: 2px solid var(--accent);
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.pricing-card h4 { font-size: 1.5rem; color: var(--primary); }
.price { font-size: 3rem; font-weight: 700; color: var(--primary); margin: 1rem 0; }
.price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }

.features-list {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 1rem;
    color: var(--text-main);
    display: flex;
    gap: 0.5rem;
}

.features-list i {
    color: var(--success);
    margin-top: 0.2rem;
}

.btn-pay {
    background-color: var(--success);
    color: var(--white);
    width: 100%;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.btn-pay:hover {
    background-color: #059669;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
}

/* =========================================
   7. CARRUSEL DE SERVICIOS
========================================= */
.carousel-wrapper { position: relative; max-width: 100%; margin: 0 auto; }
.carousel-container { 
    display: flex; 
    gap: 2rem; 
    overflow-x: auto; 
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth; 
    scrollbar-width: none; 
    padding: 1rem 0.25rem; 
}
.carousel-container::-webkit-scrollbar { display: none; }

.carousel-slide { 
    flex: 0 0 320px; 
    scroll-snap-align: start; 
    background: var(--white); 
    border-radius: 12px; 
    border: 1px solid #e2e8f0; 
    overflow: hidden; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); 
    display: flex; 
    flex-direction: column; 
    transition: transform 0.2s; 
}

.carousel-slide:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08); 
}

.carousel-img { width: 100%; height: 200px; object-fit: cover; }
.carousel-content { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.carousel-content h4 { font-size: 1.2rem; color: var(--primary); margin-bottom: 0.75rem; }
.carousel-content p { color: var(--text-muted); font-size: 0.95rem; }

.carousel-controls { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; }
.carousel-btn { 
    background-color: var(--white); 
    border: 1px solid #cbd5e1; 
    color: var(--primary); 
    width: 45px; 
    height: 45px; 
    border-radius: 50%; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.2s; 
}
.carousel-btn:hover { 
    background-color: var(--accent); 
    color: var(--white); 
    border-color: var(--accent); 
}

/* =========================================
   8. BLOG Y RECURSOS
========================================= */
.blog-card { 
    background: var(--white); 
    border-radius: 12px; 
    border: 1px solid #e2e8f0; 
    overflow: hidden; 
    transition: transform 0.2s; 
    display: flex; 
    flex-direction: column; 
}
.blog-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
}
.blog-img { width: 100%; height: 220px; object-fit: cover; border-bottom: 1px solid #e2e8f0; }
.blog-content { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.blog-category { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 700; margin-bottom: 0.5rem; }
.blog-content h4 { font-size: 1.3rem; color: var(--primary); margin-bottom: 1rem; line-height: 1.4; }
.blog-content p { color: var(--text-muted); margin-bottom: 1.5rem; flex-grow: 1; font-size: 0.95rem; }
.blog-link { color: var(--accent); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: color 0.2s; }
.blog-link:hover { color: var(--accent-hover); }

/* =========================================
   9. NEWSLETTER
========================================= */
.newsletter-section { background-color: var(--primary); color: var(--white); padding: 5rem 0; }
.newsletter-wrapper { max-width: 700px; margin: 0 auto; }
.newsletter-wrapper h3 { font-size: 2rem; margin-bottom: 1rem; color: var(--white); }
.newsletter-wrapper p { color: #94a3b8; margin-bottom: 2rem; font-size: 1.1rem; }
.newsletter-form { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.newsletter-input { flex-grow: 1; padding: 1rem 1.5rem; border-radius: 6px; border: none; font-size: 1rem; font-family: inherit; }
.newsletter-input:focus { outline: 3px solid rgba(37, 99, 235, 0.5); }
.newsletter-btn { background-color: var(--accent); border-color: var(--accent); color: var(--white); white-space: nowrap; }
.newsletter-btn:hover { background-color: var(--accent-hover); border-color: var(--accent-hover); }
.newsletter-disclaimer { font-size: 0.8rem; color: #64748b; }

/* =========================================
   10. PÁGINA DE CONTACTO (Formulario)
========================================= */
/* Nota: Los estilos en línea del HTML de contacto anularán estos, pero es buena práctica tenerlos aquí por si decides limpiarlos del HTML */
.contact-section { padding: 4rem 0 6rem 0; }
.contact-header { text-align: center; margin-bottom: 4rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info, .contact-form { background: var(--white); padding: 3rem; border-radius: 12px; border: 1px solid #e2e8f0; }
.contact-info { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.contact-form { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; color: var(--primary); margin-bottom: 0.5rem; font-size: 0.95rem; }
.form-group input, .form-group textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid #cbd5e1; border-radius: 6px; font-family: inherit; font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }

/* =========================================
   11. FOOTER (Pie de página consolidado)
========================================= */
.site-footer {
    background-color: var(--bg-light);
    border-top: 1px solid #e2e8f0;
    padding-top: 4rem;
    color: var(--text-main);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo h2 {
    color: var(--primary);
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}

.social-links a:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

.footer-col h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--accent);
    margin-top: 0.2rem;
}

.footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    background-color: var(--primary);
    color: #94a3b8;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--white);
}

/* =========================================
   12. BOTÓN FLOTANTE WHATSAPP
========================================= */
.btn-whatsapp { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    background-color: #25d366; 
    color: white; 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 35px; 
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4); 
    z-index: 1000; 
    text-decoration: none; 
    transition: transform 0.2s ease; 
}

.btn-whatsapp:hover { 
    transform: scale(1.1); 
    color: white; 
}

/* =========================================
   13. RESPONSIVO (MÓVILES Y TABLETS)
========================================= */
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; /* Aquí puedes agregar menú hamburguesa después */ }
    
    .hero h2 { font-size: 2.2rem; }
    
    .pricing-card.popular { transform: scale(1); }
    
    .newsletter-form { flex-direction: column; }
    
    .carousel-slide { flex: 0 0 280px; }
    
    .contact-info, .contact-form { padding: 2rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    
    .footer-bottom-flex { flex-direction: column; text-align: center; }
    
    .btn-whatsapp { width: 50px; height: 50px; font-size: 30px; bottom: 20px; right: 20px; }
}