/* =========================================
   1. VARIABLES "BENTO DARK"
   ========================================= */
   :root {
    /* Paleta Base */
    --bg-page: #000000;         /* Negro puro */
    --bg-card: #121212;         /* Gris muy oscuro (Casi negro) */
    --bg-card-hover: #1c1c1c;   /* Un poco más claro al hover */
    
    /* Acentos */
    --accent: #FFFFFF;          /* Blanco puro para máximo contraste */
    --accent-dim: #A1A1AA;      /* Gris plata para textos secundarios */
    --primary-color: #3b82f6;   /* Azul "Inter" (sutil, profesional) */
    
    /* Bordes y Estructura */
    --border-light: 1px solid rgba(255,255,255,0.08);
    --radius-lg: 24px;          /* Curvas estilo Apple */
    --radius-sm: 12px;
    
    /* Tipografía */
    --font-main: 'Inter', sans-serif;
}

/* =========================================
   2. RESET
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-page);
    color: var(--accent);
    line-height: 1.5;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   3. COMPONENTES BENTO (LA CLAVE)
   ========================================= */
.bento-box {
    /* Fondo base (será sobreescrito por el bloque de contraste al final) */
    background: var(--bg-card);
    border: var(--border-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bento-box:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

/* =========================================
   4. NAVBAR FLOTANTE
   ========================================= */
.navbar-floating {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(12px);
    padding: 10px 25px;
    border-radius: 50px;
    border: var(--border-light);
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 1000;
    width: 90%;
    max-width: 500px;
    justify-content: space-between;
}

.logo { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { font-size: 0.9rem; color: var(--accent-dim); }
.nav-links a:hover { color: white; }

.btn-nav {
    background: white;
    color: black;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* =========================================
   5. HERO GRID
   ========================================= */
.hero-section {
    padding-top: 140px;
    padding-bottom: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 columnas (Texto ancho | Stats) */
    grid-template-rows: auto auto;
    gap: 20px;
}

.hero-text {
    grid-row: span 2; /* El texto ocupa todo el alto */
    justify-content: center;
    padding: 50px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.highlight {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--accent-dim);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-actions { display: flex; gap: 20px; align-items: center; }

/* Botón base (será mejorado al final) */
.btn-primary {
    background: white;
    color: black;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { background: #e5e5e5; }

.btn-text { color: var(--accent); font-weight: 500; }
.btn-text:hover { opacity: 0.8; padding-left: 5px; }

/* Cajitas de Stats */
.hero-stat-1, .hero-stat-2 {
    align-items: center;
    justify-content: center;
    text-align: center;
}
.icon-stat { font-size: 2rem; color: var(--primary-color); margin-bottom: 10px; }
.hero-stat-1 h3, .hero-stat-2 h3 { font-size: 2rem; font-weight: 700; }
.hero-stat-1 p, .hero-stat-2 p { color: var(--accent-dim); font-size: 0.9rem; }

/* =========================================
   6. PLANES (GRID ASIMÉTRICA)
   ========================================= */
.section-padding { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; letter-spacing: -1px; }
.section-header p { color: var(--accent-dim); }

.bento-grid-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Plan básico ocupa 1 columna */
.plan-basic { grid-column: span 1; }

/* Plan Pro ocupa 2 columnas (Destacado) */
.plan-pro { 
    grid-column: span 2; 
    background: #171717;
    border: 1px solid rgba(255,255,255,0.15);
}

.badge-outline, .badge-fill {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    width: fit-content;
}
.badge-outline { border: 1px solid var(--accent-dim); color: var(--accent-dim); }
.badge-fill { background: white; color: black; }

.price { font-size: 2.5rem; font-weight: 700; margin: 10px 0; }
.period { font-size: 1rem; color: var(--accent-dim); font-weight: 400; }
.desc { color: var(--accent-dim); margin-bottom: 20px; }

.check-list li { margin-bottom: 10px; color: #d4d4d8; font-size: 0.95rem; }
.check-list li::before { content: "✓"; margin-right: 8px; color: var(--primary-color); }

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0 30px 0;
}
.mini-feature { 
    background: rgba(255,255,255,0.05); 
    padding: 10px; 
    border-radius: 8px; 
    font-size: 0.9rem;
    display: flex; align-items: center; gap: 8px;
}

.btn-outline {
    display: block; text-align: center; padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px; margin-top: auto;
}
.btn-outline:hover { border-color: white; }

.full-width { width: 100%; text-align: center; }

/* Ajuste visual para el Plan Tienda */
.plan-basic:last-child { border-color: rgba(59, 130, 246, 0.3); }

/* =========================================
   7. STEPS & PORTAFOLIO
   ========================================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.step-num { font-size: 3rem; font-weight: 800; color: #333; margin-bottom: 10px; }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project-card { padding: 0; position: relative; height: 300px; }
.project-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: 0.5s; opacity: 0.7;
}
.project-card:hover img { transform: scale(1.05); opacity: 0.4; }

.project-info {
    position: absolute; bottom: 20px; left: 20px;
    z-index: 2;
}
.project-info h3 { font-size: 1.5rem; }
.project-info span { font-size: 0.9rem; color: var(--accent-dim); }

.p-large { grid-column: span 2; }

/* =========================================
   8. CONTACTO Y FOOTER
   ========================================= */
.contact-box { align-items: center; text-align: center; }
.contact-content { max-width: 600px; width: 100%; }

.contact-form { margin-top: 30px; display: flex; flex-direction: column; gap: 15px; }
.form-row { display: flex; gap: 15px; }

input, textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid transparent;
    border-radius: 8px;
    color: white;
    font-family: inherit;
}
input:focus, textarea:focus { 
    outline: none; 
    border-color: var(--primary-color); 
    background: black;
}

.footer-content {
    padding: 40px 0;
    border-top: var(--border-light);
    display: flex; justify-content: space-between;
    color: var(--accent-dim);
    font-size: 0.9rem;
}
.socials a { margin-left: 20px; font-size: 1.2rem; }

/* Estilos para el enlace de Legales */
.footer-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.legal-link {
    font-size: 0.85rem;
    color: var(--accent-dim);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-dim);
    transition: 0.3s;
}

.legal-link:hover {
    color: white;
    border-bottom-color: white;
}

/* =========================================
   9. INTERRUPTOR DE PRECIOS (TOGGLE)
   ========================================= */
.pricing-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.toggle-label {
    font-size: 1rem;
    color: var(--accent-dim);
    transition: 0.3s;
    font-weight: 500;
}
.toggle-label.active {
    color: white;
    font-weight: 700;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333;
    transition: .4s;
}
.slider:before {
    position: absolute; content: "";
    height: 26px; width: 26px;
    left: 4px; bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(26px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* =========================================
   10. MEJORA DE CONTRASTE Y JERARQUÍA
   (Estilos finales para dar el toque Premium)
   ========================================= */

/* Separación dramática */
.section-padding { padding: 120px 0; }

/* Títulos con impacto */
.section-header h2 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 0 40px rgba(255,255,255,0.1); 
}

.section-header p {
    font-size: 1.25rem;
    font-weight: 300;
    color: #a1a1aa;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tarjetas con más profundidad */
.bento-box {
    background: #0f0f0f; 
    border: 1px solid rgba(255,255,255,0.12); 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.bento-box:hover {
    border-color: var(--primary-color);
    background: #141414;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(59, 130, 246, 0.25);
}

/* Precios claros y brillantes */
.price {
    font-size: 3rem;
    letter-spacing: -1.5px;
    color: white;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Botones con fuerza */
.btn-primary {
    background: white;
    color: black;
    font-weight: 800;
    border: 2px solid white;
    box-shadow: 0 0 15px rgba(255,255,255,0.2);
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-primary:hover {
    background: transparent;
    color: white;
    box-shadow: 0 0 30px rgba(255,255,255,0.1);
}

/* =========================================
   11. RESPONSIVE (MOBILE) FINAL
   ========================================= */
@media (max-width: 768px) {
    .navbar-floating { width: 95%; padding: 10px 20px; }
    .nav-links { display: none; }
    
    .hero-grid { grid-template-columns: 1fr; }
    .hero-text { padding: 30px; }
    .hero-text h1 { font-size: 2.5rem; }
    
    .bento-grid-plans { grid-template-columns: 1fr; }
    .plan-pro { grid-column: span 1; }
    
    .portfolio-grid { grid-template-columns: 1fr; }
    .p-large { grid-column: span 1; }
    
    .form-row { flex-direction: column; }

    /* Ajuste de los títulos gigantes en móvil */
    .section-header h2 { font-size: 2.5rem; }
    .section-padding { padding: 80px 0; }
    
    /* Ajuste footer móvil */
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-left {
        flex-direction: column;
        gap: 10px;
    }
}
/* =========================================
   SECCIÓN NUEVA: RESULTADOS
   ========================================= */
   .results-grid {
    display: grid;
    /* Crea columnas automáticas de mínimo 220px */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.result-card {
    text-align: center;
    padding: 40px 20px;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

/* Efecto hover sutil */
.result-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    /* Sombra suave al emoji para que resalte en oscuro */
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

.result-card h3 {
    font-size: 1.25rem;
    color: white;
    font-weight: 700;
    margin-bottom: 8px;
}

.result-card p {
    font-size: 0.95rem;
    color: var(--accent-dim);
    line-height: 1.4;
}

/* Texto pequeño de aclaración */
.disclaimer {
    text-align: center;
    color: #444; /* Gris oscuro para que no distraiga */
    margin-top: 40px;
    font-size: 0.85rem;
    font-style: italic;
}
/* =========================================
   SECCIÓN TESTIMONIOS
   ========================================= */
   .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.testimonial-card {
    justify-content: space-between; /* Empuja el autor hacia abajo */
    height: 100%; /* Para que todas midan lo mismo */
}

.stars {
    color: var(--primary-color); /* Azul corporativo */
    font-size: 1.1rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.quote {
    font-size: 1.05rem;
    font-style: italic;
    color: #e4e4e7; /* Blanco grisáceo */
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Bloque del Autor */
.author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255,255,255,0.1); /* Línea separadora sutil */
    padding-top: 20px;
}

/* Círculo con iniciales */
.avatar {
    width: 45px;
    height: 45px;
    background: rgba(59, 130, 246, 0.2); /* Azul transparente */
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.info h4 {
    font-size: 1rem;
    color: white;
    font-weight: 600;
    margin-bottom: 2px;
}

.info span {
    font-size: 0.85rem;
    color: var(--accent-dim);
}
/* =========================================
   MINI SECCIÓN: CONFIANZA (TRUST BAR)
   ========================================= */
   .trust-bar {
    text-align: center;
    background: #0a0a0a; /* Fondo bien oscuro para diferenciar */
    border: 1px solid rgba(255,255,255,0.08);
    padding: 40px;
}

.trust-bar h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 30px;
}

.trust-icons {
    display: flex;
    justify-content: space-around; /* Distribuye el espacio equitativamente */
    flex-wrap: wrap; /* Permite que bajen en pantallas chicas */
    gap: 30px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 120px; /* Ancho mínimo para que no se aprieten */
}

.trust-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.trust-item span {
    color: var(--accent-dim);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Ajuste Mobile */
@media (max-width: 768px) {
    .trust-icons {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en celular */
        gap: 20px;
    }
    /* El último ítem ocupa el ancho completo para que quede centrado */
    .trust-item:last-child {
        grid-column: span 2;
    }
}