/* =========================================
   VARIABLES Y RESET
   ========================================= */
:root {
    --bg-primary: #1A202C;
    --bg-secondary: #2D3748;
    --accent-cyan: #15E0E0;
    --accent-hover: #0FB5B5;
    --text-main: #F7FAFC;
    --text-muted: #A0AEC0;
    --whatsapp: #25D366; /* Color oficial WhatsApp */
    --whatsapp-hover: #1EBE5D;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   ESTILOS GENERALES
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 10px; }
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 50px; font-size: 1.1rem; }
.highlight { color: var(--accent-cyan); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; line-height: 1.2; }
a { text-decoration: none; transition: all 0.3s ease; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 2px; }

/* Botones Base */
.btn-primary {
    background-color: var(--accent-cyan);
    color: var(--bg-primary);
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-family: var(--font-body);
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn-primary:hover:not(:disabled) { background-color: var(--accent-hover); transform: translateY(-2px); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    border: 2px solid var(--bg-secondary);
    display: inline-block;
}
.btn-secondary:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

.btn-outline {
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan) !important;
    padding: 8px 20px;
    border-radius: 4px;
    text-align: center;
}
.btn-outline:hover { background-color: var(--accent-cyan); color: var(--bg-primary) !important; }

/* =========================================
   Navegación / Hero
   ========================================= */
.lang-toggle { background: transparent; color: var(--text-muted); border: 1px solid var(--text-muted); padding: 4px 10px; border-radius: 4px; cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; transition: all 0.3s ease; }
.lang-toggle:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); }

.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; background-color: rgba(26, 32, 44, 0.95); backdrop-filter: blur(10px); position: fixed; width: 100%; top: 0; z-index: 1000; border-bottom: 1px solid var(--bg-secondary); }
.logo-container { display: flex; align-items: center; }
.logo-img { height: 75px; width: auto; object-fit: contain; transition: transform 0.3s ease; }
.logo-img:hover { transform: scale(1.05); }
.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links li a { color: var(--text-main); font-weight: 500; font-size: 0.95rem; }
.nav-links li a:hover { color: var(--accent-cyan); }
.hamburger { display: none; cursor: pointer; background: transparent; border: none; padding: 5px; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease; background-color: var(--text-main); }

.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 5%; margin-top: 60px; }
.hero-content { max-width: 800px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* =========================================
   ECOSISTEMA (BENTO GRID + LINKS)
   ========================================= */
.ecosistema-section { padding: 100px 0; background-color: var(--bg-primary); }
.bento-grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 40px; }
.card { background-color: var(--bg-secondary); border-radius: 16px; overflow: hidden; text-align: left; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5); border-color: var(--accent-cyan); }
.card-image-placeholder { width: 100%; height: 200px; background-color: #1a202c; border-bottom: 1px solid rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.9rem; transition: all 0.3s ease; }
.card:hover .card-image-placeholder { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.card-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }

.demo-link { display: inline-block; margin-top: auto; padding-top: 15px; color: var(--accent-cyan); font-weight: 600; font-size: 0.9rem; }
.demo-link:hover { color: var(--text-main); }

.badge-container { display: flex; gap: 8px; margin-bottom: 15px; flex-wrap: wrap; }
.badge { font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-verified { background-color: rgba(21, 224, 224, 0.1); color: var(--accent-cyan); border: 1px solid rgba(21, 224, 224, 0.2); }
.badge-active { background-color: rgba(72, 187, 120, 0.1); color: #48BB78; border: 1px solid rgba(72, 187, 120, 0.2); }
.badge-tech { background-color: rgba(255, 255, 255, 0.05); color: var(--text-muted); border: 1px solid rgba(255, 255, 255, 0.1); }
.card h3 { font-size: 1.4rem; margin-bottom: 12px; color: var(--text-main); }
.card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 10px; }

@media (min-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(3, 1fr); }
    .bento-wide { grid-column: span 2; }
    .bento-wide .card-image-placeholder { height: 280px; }
}

/* =========================================
   SERVICIOS
   ========================================= */
.servicios-section { padding: 100px 0; background-color: var(--bg-secondary); }
.servicios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 50px; }
.servicio-item { padding: 30px; border-left: 3px solid var(--accent-cyan); background-color: rgba(26, 32, 44, 0.5); border-radius: 0 12px 12px 0; }
.servicio-numero { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; color: rgba(255, 255, 255, 0.1); margin-bottom: -15px; }
.servicio-item h3 { font-size: 1.3rem; margin-bottom: 15px; }
.servicio-item p { color: var(--text-muted); font-size: 0.95rem; }

/* =========================================
   PLANES / PRECIOS (NUEVO)
   ========================================= */
.planes-section { padding: 100px 0; background-color: var(--bg-primary); }
.planes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; align-items: center; margin-top: 40px; }

.plan-card {
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}
.plan-card:hover { border-color: var(--accent-cyan); }
.plan-card.destacado {
    border: 2px solid var(--accent-cyan);
    transform: scale(1.05);
    background-color: #212936;
    box-shadow: 0 10px 40px rgba(21, 224, 224, 0.1);
}
.plan-badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background-color: var(--accent-cyan); color: var(--bg-primary);
    font-size: 0.8rem; font-weight: 800; padding: 6px 15px; border-radius: 50px; text-transform: uppercase;
}
.plan-card h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--text-main); }
.plan-precio { font-size: 2.5rem; font-family: var(--font-heading); font-weight: 800; color: var(--text-main); margin-bottom: 25px; }
.plan-precio span { font-size: 1rem; color: var(--text-muted); font-weight: 400; font-family: var(--font-body); display: block; }
.plan-features { list-style: none; margin-bottom: 30px; text-align: left; }
.plan-features li { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 15px; padding-left: 25px; position: relative; }
.plan-features li::before { content: '✓'; color: var(--accent-cyan); position: absolute; left: 0; font-weight: bold; }
.plan-btn { width: 100%; display: block; }

/* =========================================
   FAQ (PREGUNTAS FRECUENTES) (NUEVO)
   ========================================= */
.faq-section { padding: 100px 0 50px; background-color: var(--bg-secondary); }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.faq-item {
    background-color: rgba(26, 32, 44, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 5px 20px;
    transition: all 0.3s ease;
}
.faq-item[open] { border-color: var(--accent-cyan); background-color: rgba(26, 32, 44, 0.9); }
.faq-item summary {
    padding: 15px 0; font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem;
    cursor: pointer; list-style: none; position: relative; color: var(--text-main);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    color: var(--accent-cyan); font-size: 1.5rem; transition: transform 0.3s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--text-muted); font-size: 0.95rem; padding-bottom: 20px; line-height: 1.6; }

/* =========================================
   FOOTER
   ========================================= */
.footer { background-color: #12161f; padding: 60px 0 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-logo { height: 50px; margin-bottom: 15px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }
.footer-contact { flex: 1; min-width: 300px; max-width: 500px; }
.footer-contact h3 { margin-bottom: 20px; font-size: 1.2rem; }

.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 15px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.1); background-color: rgba(26, 32, 44, 0.8); color: var(--text-main); font-family: var(--font-body); font-size: 0.95rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent-cyan); box-shadow: 0 0 0 2px rgba(21, 224, 224, 0.2); }

.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 15px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-muted); font-size: 0.85rem; width: 100%; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-legal a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; transition: color 0.3s ease; }
.footer-legal a:hover { color: var(--accent-cyan); }

/* =========================================
   BOTÓN WHATSAPP (NUEVO)
   ========================================= */
.floating-wa {
    position: fixed; bottom: 30px; right: 30px;
    background-color: var(--whatsapp); color: white;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999; transition: transform 0.3s ease, background-color 0.3s ease;
}
.floating-wa:hover { transform: scale(1.1) translateY(-2px); background-color: var(--whatsapp-hover); color: white;}

/* ANIMACIONES */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; will-change: opacity, transform; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .fade-in { transition: none; opacity: 1; transform: none; } .card:hover, .btn-primary:hover:not(:disabled) { transform: none; } }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links { position: fixed; left: -100%; top: 80px; flex-direction: column; background-color: var(--bg-primary); width: 100%; text-align: center; transition: 0.3s ease-in-out; box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5); padding: 20px 0; }
    .nav-links.active { left: 0; }
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .plan-card.destacado { transform: none; } /* Evita desborde en móvil */
    .footer-content { flex-direction: column; text-align: center; }
    .footer-contact { width: 100%; }
    .floating-wa { bottom: 20px; right: 20px; width: 50px; height: 50px; }
    .floating-wa svg { width: 24px; height: 24px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
    .plan-card.destacado { transform: none; }
}
@media (min-width: 1024px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}