/* =======================================================
   OPTIMIZACIÓN DE ESCALA PARA MONITORES GRANDES (24"+)
   ======================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;800&display=swap');

html {
    scroll-behavior: smooth;
}

@media (min-width: 1536px) {
    html { font-size: 17px; }
}

@media (min-width: 1920px) {
    html { font-size: 19px; } /* Ajuste perfecto para pantallas de 25" */
}

:root {
    --primary-color: #3633F9; /* Azul Oficial */
    --blue-light: #6b69ff;
    --bg-dark: #070B19;
    --bg-surface: #05070E;
    
    --text-main: #ffffff;    
    --text-muted: #94a3b8;
    
    --border-color: rgba(255, 255, 255, 0.1); 
    --input-bg: rgba(255, 255, 255, 0.03);    
    --input-bg-readonly: rgba(255, 255, 255, 0.01);
    --focus-ring: rgba(54, 51, 249, 0.25); /* Resplandor de Input Azul */
    
    --red-alert: #ff4a6b; 
    --whatsapp-green: #25d366;
    --whatsapp-hover: #1ebd5c;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-surface);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   CANVAS Y MALLA DE FONDO
========================================== */
#tech-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.bg-grid {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(54, 51, 249, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(54, 51, 249, 0.05) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* =========================================
   EFECTOS CRISTAL (GLASSMORPHISM)
========================================== */
.glass {
    background: rgba(5, 7, 14, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.glass-blue {
    background: linear-gradient(135deg, rgba(54, 51, 249, 0.08) 0%, rgba(7, 11, 25, 0.8) 100%);
    backdrop-filter: blur(10px);
}

/* ==========================================
   FORMULARIO Y TARJETAS
========================================== */
.form-section {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 0 30px rgba(54, 51, 249, 0.05);
    position: relative;
}

.hover-dynamic {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hover-dynamic:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(54, 51, 249, 0.12);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.required-note {
    font-size: 12px;
    color: var(--red-alert);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Grillas y Espaciados */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 25px;
}
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

/* ==========================================
   INPUTS ESTANDARIZADOS
========================================== */
.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.input-group label span {
    color: var(--red-alert);
}

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

input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="date"], select, textarea {
    width: 100%;
    padding: 16px 24px; 
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--input-bg);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s ease;
}

textarea {
    border-radius: 16px;
    resize: vertical;
    min-height: 120px;
    /* 16px de espacio arriba/abajo y 24px a los lados (izquierda/derecha) */
    padding: 16px 24px !important; 
    font-family: inherit;
    line-height: 1.6;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--focus-ring);
    background-color: rgba(54, 51, 249, 0.05);
}

input::placeholder, textarea::placeholder {
    color: #475569;
}

.input-readonly {
    background-color: var(--input-bg-readonly);
    color: var(--text-muted);
    pointer-events: none;
}

/* Select con flecha Azul */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b69ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 40px;
    cursor: pointer;
}

select option {
    background-color: var(--bg-surface);
    color: var(--text-main);
}

select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

::-webkit-calendar-picker-indicator {
    filter: invert(1) hue-rotate(180deg) brightness(1.5);
    cursor: pointer;
}

/* ==========================================
   CHECKBOX & RADIOS
========================================== */
.radio-group {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 10px 0;
}
.radio-title { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.radio-options { display: flex; gap: 30px; }
.radio-label {
    display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer;
}
input[type="radio"], input[type="checkbox"] {
    accent-color: var(--primary-color); /* Activación en Azul */
    cursor: pointer;
}

/* Políticas */
.definitions p { font-size: 13px; margin-bottom: 8px; color: var(--text-muted); }
.highlight-red { color: var(--red-alert); font-weight: 700; }

.legal-wrapper {
    display: flex; align-items: flex-start; gap: 20px;
    padding: 20px; border-radius: 12px; border: 1px solid var(--border-color);
}
.checkbox-label { flex: 1; display: flex; align-items: flex-start; gap: 12px; }
.checkbox-label input[type="checkbox"] { margin-top: 3px; width: 18px; height: 18px; }
.chk-text { font-size: 14px; line-height: 1.6; }

.legal-bullets { flex: 1; }
.legal-bullets ul { list-style-type: none; }
.legal-bullets li {
    position: relative; font-size: 11px; font-weight: 500;
    color: var(--text-muted); margin-bottom: 8px; padding-left: 14px;
}
.legal-bullets li::before {
    content: "•"; color: var(--primary-color); position: absolute; left: 0; top: 0; font-size: 14px;
}

/* ==========================================
   BOTÓN ENVIAR (AZUL ELÉCTRICO)
========================================== */
.submit-container { text-align: center; margin-top: 40px; }
.btn-submit {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 16px 50px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(54, 51, 249, 0.4);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 100%;
    max-width: 400px;
}
.btn-submit:hover {
    background: #2420f8;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(54, 51, 249, 0.6);
}

/* =========================================
   SELECCIÓN DE TEXTO PERSONALIZADA
   ========================================= */
::selection {
    background-color: rgba(0, 218, 192, 0.767); /* Fondo cian translúcido */
    color: #ffffff; /* Texto blanco puro */
}

/* ==========================================
   SCROLLBAR & RESPONSIVE
========================================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: #1a365d; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

@media (max-width: 860px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .legal-wrapper { flex-direction: column; gap: 20px; }
}
@media (max-width: 580px) {
    .grid-3 { grid-template-columns: 1fr; gap: 16px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .form-section { padding: 20px; }
}

/* ==========================================
   SCROLLBAR & WHATSAPP
========================================== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: #1a365d; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

.whatsapp-float {
    position: fixed; 
    bottom: 24px; 
    right: 24px; 
    width: 60px; 
    height: 60px;
    background-color: var(--whatsapp-green); 
    color: white; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3); 
    z-index: 9999 !important; /* Fuerza a estar por encima de todo */
    transition: all 0.3s ease; 
    opacity: 1 !important; /* Siempre visible desde el segundo cero */
    transform: translateY(0) !important; 
    pointer-events: auto !important; 
}

.whatsapp-float:hover { 
    background-color: var(--whatsapp-hover); 
    transform: scale(1.1) translateY(0) !important; 
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.6); 
}

.whatsapp-icon { 
    width: 32px; 
    height: 32px; 
    transition: transform 0.3s ease; 
}

.whatsapp-float:hover .whatsapp-icon { 
    transform: rotate(12deg); 
}

/* =========================================
   ESTILOS DEL FOOTER UNIFICADO (Redes y Tiendas)
   ========================================= */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

.store-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.store-badge:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #3633F9; /* Brillo azul institucional */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(54, 51, 249, 0.2);
}

/* =========================================
   ANIMACIÓN DEL PRELOADER (BARRA DE CARGA)
   ========================================= */
@keyframes loadingBar {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}