/* ==========================================================
   1. VARIABLES Y RESET
   ========================================================== */
:root {
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(-45deg, #eef2f6, #e3e8ef, #f0f4f8, #ffffff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #102a43;
    -webkit-font-smoothing: antialiased;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    transition: color 0.3s ease;
}

/* ==========================================================
   2. FONDO Y AMBIENTE (Luces, Texturas, Logo)
   ========================================================== */
/* Fondo Oscuro Vivo y Respirante (Violeta/Azul) */
html.dark body {
    background: linear-gradient(-45deg, #120e41, #1a0b2e, #0a0a1a, #050505);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: white;
}

/* Textura de Grano (Noise) */
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 2; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}
html.dark .noise-overlay { opacity: 0.04; }

/* Luces Ambientales Neón */
.ambient-light {
    position: fixed; border-radius: 9999px; filter: blur(120px); z-index: 0; pointer-events: none;
}
.ambient-1 { background: #00f0ff; opacity: 0.1; width: 400px; height: 400px; top: -100px; left: -100px; }
.ambient-2 { background: #1900ff; opacity: 0.1; width: 300px; height: 300px; bottom: -50px; right: -50px; }
html.dark .ambient-1 { opacity: 0.25; }
html.dark .ambient-2 { opacity: 0.25; }

/* Logo Flotante (Sello de Agua) */
.logo-watermark {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 120%; max-width: 600px; opacity: 0.04; filter: blur(1px) grayscale(100%) brightness(0);
    z-index: 1; pointer-events: none; user-select: none;
    animation: levitate 6s ease-in-out infinite;
}
html.dark .logo-watermark {
    opacity: 0.15; filter: blur(1px) grayscale(100%) brightness(200%) drop-shadow(0 0 20px rgba(0, 240, 255, 0.4));
    animation: levitate 6s ease-in-out infinite, pulseGlow 4s ease-in-out infinite;
}

/* ==========================================================
   3. CABECERA DE PERFIL (Avatar, Status, Tipografía)
   ========================================================== */
/* Wrapper del Avatar (Para el Aro de Energía) */
.avatar-ring-wrapper {
    position: relative;
    display: inline-block;
    padding: 4px;
    border-radius: 50%;
    margin-bottom: 16px;
}
.avatar-ring-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, #0a239196 30%, transparent 60%, #1a0458c7 80%, transparent 100%);
    animation: spin 60s linear infinite;
    z-index: 0;
}
html.dark .avatar-ring-wrapper::before {
    background: conic-gradient(from 0deg, transparent 0%, #6b86ffd3 30%, transparent 60%, #4609f0d2 80%, transparent 100%);
}

.profile-avatar {
    position: relative;
    z-index: 1;
    width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
    border: 3px solid #eef2f6; /* Borde interno para separar del aro */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: block;
}
html.dark .profile-avatar {
    border: 3px solid #050505;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Tipografía Metálica/Cromada */
.brand-name {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 900;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #1e293b 0%, #64748b 50%, #1e293b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(255,255,255,0.5));
}
html.dark .brand-name {
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.status-pill {
    background: rgba(0, 0, 0, 0.05); backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1); padding: 4px 12px; border-radius: 9999px;
    font-size: 12px; color: rgba(16, 42, 67, 0.8); margin-top: 12px;
    display: inline-flex; align-items: center; gap: 6px;
}
html.dark .status-pill {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.8);
}


.bio-text { 
    font-size: 0.875rem; 
    margin-top: 0.5rem; 
    text-align: center; 
    padding: 0 1rem; 
    color: #475569; 
}
html.dark .bio-text { 
    color: #ffffff; 
}
/* ==========================================================
   4. BOTONES (Sólidos, Óvalo, Alto Contraste)
   ========================================================== */
.link-btn {
    border-radius: 9999px; /* Forma de Óvalo/Píldora */
    background-color: #120e41; /* Azul oscuro sólido (Modo Claro) */
    color: #ffffff; /* Letras blancas (Modo Claro) */
    border: 1px solid #2d2a6e;
    box-shadow: 0 4px 15px rgba(18, 14, 65, 0.2);
    transition: all 0.3s ease;
}
html.dark .link-btn {
    background-color: #ffffff; /* Blanco sólido (Modo Oscuro) */
    color: #120e41; /* Letras azul oscuro (Modo Oscuro) */
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.link-btn:hover {
    background-color: #1a1456; /* Azul un poco más claro al pasar el mouse */
    box-shadow: 0 8px 20px rgba(18, 14, 65, 0.3);
    transform: translateY(-2px);
}
html.dark .link-btn:hover {
    background-color: #f8fafc; /* Blanco grisáceo al pasar el mouse */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.link-btn:active { transform: scale(0.97) translateY(0); }

/* Botón Destacado (Sutil resplandor para diferenciar) */
.link-btn-featured {
    border: 1px solid transparent;
    box-shadow: 0 4px 20px rgba(18, 14, 65, 0.3);
}
html.dark .link-btn-featured {
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.link-btn-featured:hover { 
    box-shadow: 0 8px 25px rgba(18, 14, 65, 0.4); 
}
html.dark .link-btn-featured:hover { 
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3); 
}
/* ==========================================================
   5. ELEMENTOS DE BOTONES (Iconos, Texto, Flecha)
   ========================================================== */
/* Cajas de Iconos (El contenedor redondo) */
.icon-box {
    width: 44px; height: 44px; /* Tamaño perfectamente proporcional */
    background: rgba(255, 255, 255, 0.15);
    border-radius: 9999px; 
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; 
}
html.dark .icon-box { 
    background: rgba(18, 14, 65, 0.1); 
}

/* Ícono dentro del botón (Forzado a estar centrado y grande) */
.btn-icon {
    width: 35px; height: 35px; /* Ícono más grande */
    display: flex; 
    align-items: center; 
    justify-content: center;
}

/* Colores de Íconos Blindados (Sin Tailwind) */
.icon-service { color: #ffffff; } /* Blanco en modo claro */
html.dark .icon-service { color: #0891b2; } /* Cyan oscuro en modo oscuro */

.icon-whatsapp { color: #25D366; } /* Verde brillante en modo claro */
html.dark .icon-whatsapp { color: #128C7E; } /* Verde oscuro en modo oscuro */

.icon-instagram { color: #E1306C; } /* Rosa en modo claro */
html.dark .icon-instagram { color: #C13584; } /* Rosa oscuro en modo oscuro */

/* Texto de Botones */
.link-btn-text { font-weight: 600; }

/* Flecha Derecha */
.link-arrow { 
    width: 22px; height: 22px; 
    color: rgba(255,255,255,0.6); 
    display: block; 
}
html.dark .link-arrow { color: rgba(18,14,65,0.6); }
/* ==========================================================
   6. BOTÓN DE TEMA (Claro/Oscuro)
   ========================================================== */
.theme-toggle-btn {
    position: fixed; top: 24px; right: 24px; z-index: 50; padding: 10px;
    border-radius: 9999px; cursor: pointer; border: none;
    background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1); box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex; align-items: center; justify-content: center;
}
.theme-toggle-btn:hover { transform: scale(1.1); }

html.dark .theme-toggle-btn {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.theme-toggle-icon { width: 22px; height: 22px; color: #102a43; display: block; }
html.dark .theme-toggle-icon { color: #ffffff; }

/* ==========================================================
   7. MODAL PREMIUM (Textos Blindados)
   ========================================================== */
.modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px);
    z-index: 100; display: flex; justify-content: center; align-items: center;
    padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-backdrop.active { opacity: 1; pointer-events: auto; }

.modal-surface {
    max-width: 500px; width: 100%; max-height: 85vh; overflow-y: auto;
    padding: 2rem; border-radius: 1rem; transform: scale(0.9); transition: transform 0.3s ease;
    background: #ffffff; box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.modal-backdrop.active .modal-surface { transform: scale(1); }

html.dark .modal-surface {
    background: #0a0a1a; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Scrollbar del Modal */
.modal-surface::-webkit-scrollbar { width: 6px; }
.modal-surface::-webkit-scrollbar-track { background: transparent; }
.modal-surface::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.2); border-radius: 10px; }
html.dark .modal-surface::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); }

/* Textos del Modal */
.modal-title { font-size: 1.5rem; font-weight: 900; color: #102a43; }
html.dark .modal-title { color: #ffffff; }

.modal-subtitle { font-size: 1.125rem; font-weight: 700; color: #102a43; }
html.dark .modal-subtitle { color: #ffffff; }

.modal-text { font-size: 0.875rem; color: #475569; margin-top: 0.25rem; }
html.dark .modal-text { color: #cbd5e1; }

/* Items/Servicios del Modal */
.service-item { padding: 1.5rem 0; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
html.dark .service-item { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.service-item:last-child { border-bottom: none; padding-bottom: 0; }
.service-item:first-child { padding-top: 0; }

/* Íconos del Modal Forzados */
.modal-icon-cyan { color: #0891b2; }
html.dark .modal-icon-cyan { color: #22d3ee; }
.modal-icon-fuchsia { color: #c026d3; }
html.dark .modal-icon-fuchsia { color: #e879f9; }

/* Botón de Cerrar Modal */
.modal-close-btn { background: transparent; border: none; cursor: pointer; padding: 8px; border-radius: 9999px; transition: background 0.2s; }
.modal-close-btn:hover { background: rgba(0,0,0,0.05); }
html.dark .modal-close-btn:hover { background: rgba(255,255,255,0.1); }
.modal-close-icon { width: 24px; height: 24px; color: #102a43; }
html.dark .modal-close-icon { color: #ffffff; }

/* ==========================================================
   8. ANIMACIONES (Keyframes)
   ========================================================== */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes levitate { 
    0%, 100% { transform: translate(-50%, -50%); } 
    50% { transform: translate(-50%, -55%); } 
}

@keyframes pulseGlow { 
    0%, 100% { opacity: 0.10; } 
    50% { opacity: 0.20; } 
}

.fade-in-up { 
    opacity: 0; 
    transform: translateY(20px); 
    animation: fadeInUp 0.6s ease-out forwards; 
}

@keyframes fadeInUp { 
    to { opacity: 1; transform: translateY(0); } 
}

.ambient-1 { animation: floatAurora1 20s ease-in-out infinite; }
.ambient-2 { animation: floatAurora2 25s ease-in-out infinite; }

@keyframes floatAurora1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(100px, 50px); }
}
@keyframes floatAurora2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-80px, -40px); }
}

/* Aro de Energía Giratorio */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Pegar el footer al fondo de la pantalla */
.footer-bottom {
    margin-top: auto; /* Empuja todo lo que hay abajo hacia el piso */
    padding-top: 2rem;
}