/* 
 * style.css - cartadigitalonline.es 
 * Estilos globales y personalizados para la aplicación
 */

/* --- Glassmorphism & Effects --- */
.glass { 
    background: rgba(255, 255, 255, 0.7); 
    backdrop-filter: blur(12px); 
    border: 1px solid rgba(0,0,0,0.05); 
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.dark .glass { 
    background: rgba(17, 25, 34, 0.7); 
    border-color: rgba(255,255,255,0.05); 
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.text-gradient { 
    background: linear-gradient(135deg, #00A3E4, #1B4D6E); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
}

/* --- Hero Backgrounds --- */
.hero-bg { 
    background: radial-gradient(circle at 80% 20%, rgba(0, 163, 228, 0.05) 0%, transparent 50%); 
    transition: background 0.3s ease;
}

.dark .hero-bg { 
    background: radial-gradient(circle at 80% 20%, rgba(0, 163, 228, 0.15) 0%, transparent 50%); 
}

/* --- Animations --- */
.float-anim { 
    animation: float 6s ease-in-out infinite; 
}

@keyframes float { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-20px); } 
}

/* --- Custom Scrollbar --- */
.custom-scrollbar::-webkit-scrollbar { 
    width: 8px; 
}

.custom-scrollbar::-webkit-scrollbar-track { 
    background: #0A0E14; 
}

.custom-scrollbar::-webkit-scrollbar-thumb { 
    background: #1f2937; 
    border-radius: 10px; 
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover { 
    background: #374151; 
}

/* --- Modals --- */
.modal-overlay { 
    background: rgba(0,0,0,0.85); 
    backdrop-filter: blur(10px); 
}

.modal-content { 
    transition: transform 0.3s ease-out; 
}

/* --- Transitions --- */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Section Dividers / Shadows --- */
.section-shadow {
    position: relative;
    z-index: 10;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1), 0 -15px 40px -20px rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(100, 116, 139, 0.06);
}

.dark .section-shadow {
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6), 0 -20px 50px -30px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Efecto de degradado interno para reforzar el 3D */
.section-shadow::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 150px;
    background: linear-gradient(to bottom, rgba(100, 116, 139, 0.04), transparent);
    pointer-events: none;
    z-index: -1;
}

.dark .section-shadow::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent);
}

/* --- Typography Colors --- */
html:not(.dark) body {
    color: #1E293B;
}

.dark body {
    color: #FFFFFF;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem !important; line-height: 1.2 !important; }
    h2 { font-size: 2rem !important; }
    section { padding: 4rem 0 !important; }
    .container { padding: 0 1.5rem !important; }
    .hero-bg { background: radial-gradient(circle at 50% 10%, rgba(0, 163, 228, 0.15) 0%, transparent 60%); }
    
    /* Ajuste para que el formulario se vea bien en móviles */
    input, select, textarea { font-size: 16px !important; } /* Evita zoom automático en iPhone */
    
    /* Ajuste para la imagen con texto sobrepuesto */
    #funciones .absolute { padding: 1.5rem !important; }
    #funciones h3 { font-size: 1.25rem !important; }
    #funciones p { font-size: 0.85rem !important; line-height: 1.4 !important; }
}

/* Optimización de carga de imágenes */
img {
    content-visibility: auto;
}
