

/* Variables CSS para modo oscuro premium */
:root {
--bg-primary: #ffffff;
--bg-secondary: #f8fafc;
--bg-tertiary: #f1f5f9;
--bg-card: #ffffff;
--text-primary: #0f172a;
--text-secondary: #475569;
--text-tertiary: #64748b;
--border-color: #e2e8f0;
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
--gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
--gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
--gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
--glass-bg: rgba(255, 255, 255, 0.1);
--glass-border: rgba(255, 255, 255, 0.18);
--orange-primary: #f97316;
--orange-hover: #ea580c;
--transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
--transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
--bg-primary: #020617;
--bg-secondary: #0f172a;
--bg-tertiary: #1e293b;
--bg-card: #1e293b;
--text-primary: #f8fafc;
--text-secondary: #cbd5e1;
--text-tertiary: #94a3b8;
--border-color: #334155;
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
--gradient-primary: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
--gradient-secondary: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
--gradient-accent: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
--glass-bg: rgba(30, 41, 59, 0.3);
--glass-border: rgba(148, 163, 184, 0.1);
--orange-primary: #f97316;
--orange-hover: #ea580c; 
}

/* General styles */
html, body {
font-family: 'Poppins', sans-serif;
scroll-behavior: smooth;
}

.container {
max-width: 100%;
overflow-x: hidden;
}

.hero-image-container {
position: relative;
overflow: hidden;
}

.hero-image-container .background-image {
position: absolute;
top: 50%;
left: 50%;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -2;
transform: translate(-50%, -50%) translateZ(0); 
object-fit: cover;
}

.hero-image-container::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
z-index: -1;
}

.container {
position: relative;
z-index: 1;
}

.plan-card {
transition: transform 0.3s ease;
}

.plan-card:hover {
transform: scale(1.05) translateZ(0); 
animation: pulse 1.5s;
}

.swiper-slide {
display: flex;
justify-content: center;
}

.map-iframe {
width: 100%;
height: 400px;
border: 0;
border-radius: 8px;
}

.btn-whatsapp {
position: fixed;
z-index: 999;
bottom: 20px;
right: 20px;
}

.btn-whatsapp:before,
.btn-whatsapp:after {
content: "";
position: absolute;
top: 2px;
left: 4px;
width: 45px;
height: 45px;
border-radius: 50%;
background-color: #00e676;
opacity: 0;
animation: onda 1.7s infinite;
will-change: transform, opacity; /* Optimize animation */
}

.btn-whatsapp:before {
animation-delay: 1s;
}

.btn-whatsapp:after {
animation-delay: 1.3s;
}

.btn-whatsapp img {
position: relative;
z-index: 2;
}

@keyframes onda {
0% { transform: scale(1); }
15% { opacity: 1; }
100% { opacity: 0; transform: scale(2.5); }
}

@keyframes colorSwitch {
0% { color: #FFFFFF; }
50% { color: #F97316; }
100% { color: #FFFFFF; }
}

.animate-color-switch {
animation: colorSwitch 1s infinite;
}

@keyframes pulse-up {
0% { transform: translateY(0); }
50% { transform: translateY(-8px); }
100% { transform: translateY(0); }
}

.button {
position: fixed;
z-index: 999;
bottom: 95px;
right: 20px;
width: 50px;
height: 50px;
border-radius: 50%;
background-color: rgb(255, 145, 0);
border: none;
font-weight: 600;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition-duration: 0.3s;
animation: pulse-up 0.6s infinite ease-in-out;
opacity: 0;
will-change: transform; /* Optimize animation */
}

.button.show-btn {
opacity: 1;
visibility: visible;
}

.svgIcon {
width: 12px;
transition-duration: 0.3s;
}

.svgIcon path {
fill: white;
}

/* Animación para el menú deslizante */
.slide-menu {
position: fixed;
top: 0;
right: 0;
height: 100vh;
width: 280px;
transform: translateX(100%);
transition: transform 0.3s ease-in-out;
z-index: 1000;
}

.slide-menu.active {
transform: translateX(0);
}

/* Overlay para cerrar el menú */
.menu-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.5);
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
z-index: 55;
}

.menu-overlay.active {
opacity: 1;
visibility: visible;
}

.menu-icon {
margin-right: 10px !important;
display: inline-block;
width: 20px;
text-align: center;
}

/* Estilos para el Mini Banner de Cookies */
#cookie-banner {
position: fixed;
bottom: 20px;
right: 20px;
width: 320px;
background-color: rgba(31, 41, 55, 0.95);
color: white;
padding: 16px;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
font-size: 14px;
z-index: 99999;
transform: translateY(100%);
transition: transform 0.5s ease;
}

/* Botón para cerrar el banner */
#close-banner {
position: absolute;
top: 8px;
right: 8px;
background: none;
border: none;
color: white;
font-size: 18px;
cursor: pointer;
font-weight: bold;
}

/* Título del banner */
#cookie-banner h3 {
color: #f97316;
margin-top: 0;
margin-bottom: 10px;
font-size: 16px;
font-weight: bold;
}

/* Párrafo del banner */
#cookie-banner p {
margin: 0 0 12px 0;
font-size: 12px;
}

/* Enlaces dentro del banner */
#cookies-link {
color: #f97316;
text-decoration: underline;
cursor: pointer;
}

/* Contenedor de botones principales */
.button-container {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
}

/* Botón Aceptar */
#accept-cookies {
flex: 1;
margin-right: 5px;
background-color: #f97316;
border: none;
color: white;
padding: 6px 0;
border-radius: 6px;
cursor: pointer;
font-weight: bold;
font-size: 13px;
}

/* Botón Rechazar */
#reject-cookies {
flex: 1;
margin-left: 5px;
background-color: #6b7280;
border: none;
color: white;
padding: 6px 0;
border-radius: 6px;
cursor: pointer;
font-weight: bold;
font-size: 13px;
}

/* Modal de Políticas de Cookies */
#cookie-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
justify-content: center;
align-items: center;
z-index: 999999;
}

/* Contenido del modal */
.modal-content {
background-color: white;
color: black;
padding: 20px;
border-radius: 10px;
max-width: 600px;
width: 90%;
max-height: 80%;
overflow-y: auto;
position: relative;
}

/* MODO OSCURO - Modal */
[data-theme="dark"] .modal-content {
    background: transparent !important;   
    border: 1px solid rgba(255, 255, 255, 0.12);  
    backdrop-filter: blur(20px) !important;        
    -webkit-backdrop-filter: blur(8px) !important;
    color: #ffffff !important;
}

/* Forzar texto blanco dentro */
[data-theme="dark"] .modal-content h2,
[data-theme="dark"] .modal-content p,
[data-theme="dark"] .modal-content li,
[data-theme="dark"] .modal-content strong,
[data-theme="dark"] .modal-content span {
    color: #ffffff !important;
}

/* Links en modo oscuro */
[data-theme="dark"] .modal-content a {
    color: #f97316 !important;  
}

/* Botón cerrar */
[data-theme="dark"] #close-modal {
    color: #ffffff !important;
}


/* Título del modal */
.modal-content h2 {
margin-top: 0;
}

/* Botón cerrar modal */
#close-modal {
position: absolute;
top: 10px;
right: 10px;
background: none;
border: none;
font-size: 20px;
cursor: pointer;
}

/* Efectos hover para los botones */
#accept-cookies:hover {
background-color: #ea580c;
}

#reject-cookies:hover {
background-color: #4b5563;
}

#close-banner:hover,
#close-modal:hover {
opacity: 0.7;
}

/* Estilo para la notificación */
.notification {
position: fixed;
top: 20px;
right: -320px;
width: 300px;
background-color: #f97316;
color: white;
padding: 16px;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
z-index: 9999999;
font-size: 14px;
font-weight: bold;
transition: right 0.4s ease-out;
}

.notification.show {
right: 20px;
}

.notification.info {
background-color: #f97316;
}

/* CHATBOT */
#chatbot-button {
    position: fixed;
    bottom: 20px;
    left: 7px;
    width: 100px;  
    height: 70px;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    z-index: 1000;
    transform: scale(2.2);
}
#chatbot-button:hover img {
    filter: drop-shadow(0 0 20px rgb(98, 0, 255)); 
}
#chatbot-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}           


#chatbot-modal {
display: none;
position: fixed;
bottom: 100px;
left: 20px;
width: 360px;
height: 500px;
max-height: 500px;
background-color: #fff;
border-radius: 12px;
box-shadow: 0 20px 32px rgba(0, 0, 0, 0.2);
z-index: 10000;
overflow: hidden;
}

#chatbot-modal.show {
display: block;
}

.modal-header {
background-color: #1f2937;
color: #f97316;
padding: 12px 16px;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 16px;
font-weight: 600;
height: 48px;
}

.modal-header img {
width: 35px;
height: 35px;
border-radius: 50%;
object-fit: cover;
}

.modal-header button {
background: none;
border: none;
color: #fff;
font-size: 30px;
cursor: pointer;
}

.modal-body {
padding: 16px;
height: calc(500px - 48px - 60px);
overflow-y: auto;
background-color: #f9fafb;
}

.chat-message {
margin-bottom: 12px;
padding: 10px;
border-radius: 8px;
font-size: 14px;
line-height: 1.5;
max-width: 80%;
}

.chat-message.bot {
background-color: #f97316;
color: #fff;
margin-right: 10%;
border-top-right-radius: 0;
text-align: left;
display: flex;
align-items: flex-start;
gap: 8px;
max-width: 80%;
padding: 10px;
}

.chat-message.bot img {
width: 30px;
height: 30px;
border-radius: 50%;
object-fit: cover;
}

.chat-message.user {
background-color: #e5e7eb;
color: #1f2937;
margin-left: auto;
margin-right: 5%;
border-top-left-radius: 0;
display: flex;
align-items: flex-start;
gap: 8px;
max-width: 80%;
padding: 10px;
box-sizing: border-box;
}

.chat-message.user img {
width: 30px;
height: 30px;
border-radius: 50%;
object-fit: cover;
}

.chat-message.typing {
background-color: #f97316;
color: #fff;
margin-right: 10%;
border-top-right-radius: 0;
max-width: 80px;
padding: 6px;
display: flex;
align-items: center;
gap: 8px;
}

.chat-message.typing img {
width: 30px;
height: 30px;
border-radius: 50%;
object-fit: cover;
}

.typing-dots span {
display: inline-block;
width: 6px;
height: 6px;
background-color: #fff;
border-radius: 50%;
margin: 0 2px;
animation: typing 0.8s infinite ease-in-out;
will-change: transform, opacity;
}

.typing-dots span:nth-child(2) {
animation-delay: 0.1s;
}

.typing-dots span:nth-child(3) {
animation-delay: 0.1s;
}

@keyframes typing {
0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
40% { transform: translateY(-4px); opacity: 1; }
}

.question-list {
margin-top: 16px;
}

.question-list.main {
animation: fadeIn 1s ease-in forwards;
}

.question-item {
background-color: #fff;
border: 1px solid #d1d5db;
border-radius: 8px;
padding: 10px;
margin-bottom: 8px;
cursor: pointer;
transition: background-color 0.2s ease, transform 0.2s ease;
font-size: 14px;
color: #1f2937;
}

.question-item:hover {
background-color: #f97316;
color: #fff;
transform: translateY(-2px);
}

.question-item.back {
background-color: #e5e7eb;
color: #1f2937;
}

.question-item.back:hover {
background-color: #d1d5db;
color: #1f2937;
}

.modal-footer {
padding: 12px 16px;
background-color: #fff;
border-top: 1px solid #e5e7eb;
display: flex;
align-items: center;
gap: 8px;
height: auto;
min-height: 60px;
overflow: visible;
justify-content: flex-start;
}

.modal-footer input {
flex: 1 1 auto;
min-width: 0;
max-width: 70%;
padding: 10px;
border: 1px solid #d1d5db;
border-radius: 8px;
font-size: 12px;
outline: none;
}

.modal-footer input:focus {
border-color: #f97316;
box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.modal-footer button {
background-color: #f97316;
color: #fff;
padding: 8px 16px;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: background-color 0.3s ease;
white-space: nowrap;
min-width: 80px;
flex-shrink: 0;
}

.modal-footer button:hover {
background-color: #ea580c;
}

@keyframes scaleUp {
from { transform: scale(0.5); opacity: 0; }
to { transform: scale(1); opacity: 1; }
}

@keyframes scaleDown {
from { transform: scale(1); opacity: 1; }
to { transform: scale(0.5); opacity: 0; }
}

@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
#chatbot-modal {
    width: 90%;
    left: 5%;
    height: 400px;
}

.modal-body {
    height: calc(400px - 48px - 60px);
}

.chat-message.user {
    margin-left: 30%;
    margin-right: 5%;
}
}

/* SECCIÓN PLANES - Efectos permanentes en móviles */
@media (max-width: 768px) {
[data-theme="dark"] #planes {
    background: var(--bg-secondary);
    position: relative;
}

[data-theme="dark"] #planes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.05;
    animation: sectionGlow 4s infinite ease-in-out;
}

[data-theme="dark"] #planes h2 {
    color: var(--orange-primary);
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
    animation: titleGlow 3s infinite ease-in-out;
}

[data-theme="dark"] #planes .plan-card::after {
    opacity: 1;
    animation: shimmer 2s infinite;
}

[data-theme="dark"] #planes .plan-card {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.6);
    border-color: var(--orange-primary);
    animation: planCardGlow 3s infinite ease-in-out;
}
}

@keyframes planCardGlow {
0%, 100% {
    border-color: var(--orange-primary);
    box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.6);
}
50% {
    border-color: var(--orange-hover);
    box-shadow: 0 20px 45px -8px rgba(249, 115, 22, 0.4);
}
}

/* SECCIÓN BENEFICIOS - Efectos permanentes en móviles */
@media (max-width: 768px) {
[data-theme="dark"] #beneficios {
    background: var(--bg-primary);
    position: relative;
}

[data-theme="dark"] #beneficios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-secondary);
    opacity: 0.03;
    animation: sectionPulse 5s infinite ease-in-out;
}

[data-theme="dark"] #beneficios h2 {
    color: var(--text-primary);
    text-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
    animation: benefitsTitleGlow 2.5s infinite ease-in-out;
}

[data-theme="dark"] #beneficios .grid > div::before {
    opacity: 0.05;
    animation: benefitsCardGlow 4s infinite ease-in-out;
}

[data-theme="dark"] #beneficios .grid > div {
    transform: translateY(-4px);
    border-color: var(--orange-primary);
    box-shadow: var(--shadow-xl);
    animation: benefitsFloat 3.5s infinite ease-in-out;
}

[data-theme="dark"] #beneficios i {
    animation: float 2s ease-in-out infinite;
    filter: drop-shadow(0 6px 12px rgba(124, 58, 237, 0.5));
}
}

@keyframes benefitsCardGlow {
0%, 100% { opacity: 0.05; }
50% { opacity: 0.1; }
}

@keyframes benefitsFloat {
0%, 100% {
    transform: translateY(-4px);
    border-color: var(--orange-primary);
    box-shadow: var(--shadow-xl);
}
50% {
    transform: translateY(-8px);
    border-color: var(--orange-hover);
    box-shadow: 0 20px 40px -10px rgba(124, 58, 237, 0.3);
}
}

/* SECCIÓN INTERCOM TV - Efectos permanentes en móviles */
@media (max-width: 768px) {
[data-theme="dark"] #intercom-tv {
    background: var(--bg-secondary);
    position: relative;
}

[data-theme="dark"] #intercom-tv::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    opacity: 0.04;
    animation: tvSectionGlow 3.5s infinite ease-in-out;
}

[data-theme="dark"] #intercom-tv h2 {
    color: var(--orange-primary);
    text-shadow: 0 0 25px rgba(6, 182, 212, 0.6);
    animation: tvTitleGlow 3s infinite ease-in-out;
}
}

/* SECCIÓN CONTACTO - Efectos permanentes en móviles */
@media (max-width: 768px) {
[data-theme="dark"] #contacto {
    background: var(--bg-primary);
    position: relative;
}

[data-theme="dark"] #contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--gradient-primary), var(--gradient-accent));
    opacity: 0.06;
    animation: contactSectionGlow 4.5s infinite ease-in-out;
}

[data-theme="dark"] #contacto h2 {
    color: var(--orange-primary);
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.7);
    animation: contactTitleGlow 2.8s infinite ease-in-out;
}
}

/* ANIMACIONES PARA SECCIONES */
@keyframes sectionGlow {
0%, 100% { opacity: 0.05; }
50% { opacity: 0.08; }
}

@keyframes sectionPulse {
0%, 100% { opacity: 0.03; }
50% { opacity: 0.06; }
}

@keyframes tvSectionGlow {
0%, 100% { opacity: 0.04; }
50% { opacity: 0.07; }
}

@keyframes contactSectionGlow {
0%, 100% { opacity: 0.06; }
50% { opacity: 0.09; }
}

@keyframes titleGlow {
0%, 100% {
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
    color: var(--orange-primary);
}
50% {
    text-shadow: 0 0 30px rgba(249, 115, 22, 0.8);
    color: var(--orange-hover);
}
}

@keyframes benefitsTitleGlow {
0%, 100% {
    text-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
    color: var(--text-primary);
}
50% {
    text-shadow: 0 0 25px rgba(124, 58, 237, 0.7);
    color: var(--orange-primary);
}
}

@keyframes tvTitleGlow {
0%, 100% {
    text-shadow: 0 0 25px rgba(6, 182, 212, 0.6);
    color: var(--orange-primary);
}
50% {
    text-shadow: 0 0 35px rgba(6, 182, 212, 0.9);
    color: #06b6d4;
}
}

@keyframes contactTitleGlow {
0%, 100% {
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.7);
    color: var(--orange-primary);
}
50% {
    text-shadow: 0 0 30px rgba(249, 115, 22, 1);
    color: var(--orange-hover);
}
}

/* Body con gradiente de fondo dinámico */
body {
background: var(--bg-primary);
position: relative;
overflow-x: hidden;
}

body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--gradient-primary);
opacity: 0;
z-index: -2;
transition: var(--transition);
}

[data-theme="dark"] body::before {
opacity: 0.03;
}

/* Efectos de glassmorphism para navbar */
[data-theme="dark"] nav {
background: rgba(2, 6, 23, 0.8);
border-bottom: 1px solid var(--glass-border);
box-shadow: var(--shadow-lg);
}

/* Hero section con overlay mejorado */
[data-theme="dark"] .hero-image-container::before {
background: linear-gradient(135deg,
rgba(2, 6, 23, 0.9) 0%,
rgba(15, 23, 42, 0.8) 30%,
rgba(30, 41, 59, 0.7) 70%,
rgba(51, 65, 85, 0.6) 100%);
}

/* Secciones con gradientes sutiles */
[data-theme="dark"] section:not(#inicio) {
background: var(--bg-primary);
}

[data-theme="dark"] .bg-white {
background: var(--bg-primary) !important;
}

[data-theme="dark"] .bg-gray-100 {
background: var(--bg-secondary) !important;
}

[data-theme="dark"] .bg-gray-100::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--gradient-secondary);
opacity: 0.02;
z-index: 0;
pointer-events: none;
}

/* Cards premium con glassmorphism */
[data-theme="dark"] .plan-card {
background: var(--glass-bg);
border: 1px solid var(--glass-border);
box-shadow: var(--shadow-xl);
position: relative;
overflow: hidden;
}

[data-theme="dark"] .plan-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: var(--gradient-accent);
opacity: 0.8;
}

[data-theme="dark"] .plan-card::after {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
opacity: 0;
transition: var(--transition);
z-index: -1;
}

[data-theme="dark"] .plan-card:hover::after {
opacity: 1;
animation: shimmer 2s infinite;
}

[data-theme="dark"] .plan-card:hover {
transform: scale(1.05) translateY(-5px);
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
border-color: var(--orange-primary);
}

@keyframes shimmer {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

/* Beneficios con efectos visuales mejorados */
[data-theme="dark"] #beneficios .grid > div {
background: var(--glass-bg);
border: 1px solid var(--glass-border);
border-radius: 16px;
padding: 2rem;
position: relative;
overflow: hidden;
transition: var(--transition);
}

[data-theme="dark"] #beneficios .grid > div::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--gradient-accent);
opacity: 0;
transition: var(--transition);
z-index: -1;
}

[data-theme="dark"] #beneficios .grid > div:hover::before {
opacity: 0.05;
}

[data-theme="dark"] #beneficios .grid > div:hover {
transform: translateY(-8px);
border-color: var(--orange-primary);
box-shadow: var(--shadow-xl);
}

[data-theme="dark"] #beneficios i {
background: var(--gradient-secondary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
filter: drop-shadow(0 4px 8px rgba(124, 58, 237, 0.3));
}

/* Intercom TV section con diseño premium */
[data-theme="dark"] #intercom-tv .bg-gray-50 {
background: var(--glass-bg) !important;
border: 1px solid var(--glass-border);
position: relative;
overflow: hidden;
}

[data-theme="dark"] #intercom-tv .bg-gray-50::before {
content: '';
position: absolute;
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
background: var(--gradient-accent);
border-radius: inherit;
opacity: 0;
transition: var(--transition);
z-index: -1;
}

@media (max-width: 768px) {
[data-theme="dark"] #intercom-tv .bg-gray-50::before {
    opacity: 0.1;
}
}

[data-theme="dark"] #intercom-tv .bg-gray-50:hover::before {
opacity: 0.1;
}

[data-theme="dark"] #intercom-tv i {
background: var(--gradient-secondary);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
filter: drop-shadow(0 2px 4px rgba(124, 58, 237, 0.4));
}

/* FAQ con efectos mejorados */
[data-theme="dark"] .faq-item {
background: var(--glass-bg);
border: 1px solid var(--glass-border);
border-radius: 12px;
padding: 0.9rem;
transition: var(--transition);
position: relative;
overflow: hidden;
}

[data-theme="dark"] .faq-item::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.1), transparent);
transition: left 0.6s ease;
}

@media (max-width: 768px) {
[data-theme="dark"] .faq-item::before {
    left: 100%;
    animation: slideGlow 3s infinite;
}

[data-theme="dark"] .faq-item {
    transform: translateY(-1px);
    border-color: var(--orange-primary);
    box-shadow: var(--shadow-lg);
}
}

@keyframes slideGlow {
0% { left: -100%; }
50% { left: 100%; }
100% { left: -100%; }
}

[data-theme="dark"] .faq-item:hover::before {
left: 100%;
}

[data-theme="dark"] .faq-item:hover {
transform: translateY(-2px);
border-color: var(--orange-primary);
box-shadow: var(--shadow-lg);
}

/* Formulario con glassmorphism */
[data-theme="dark"] #contacto input,
[data-theme="dark"] #contacto select {
background: var(--glass-bg);
border: 1px solid var(--glass-border);
color: var(--text-primary);
transition: var(--transition);
}

[data-theme="dark"] #contacto input:focus,
[data-theme="dark"] #contacto select:focus {
background: rgba(30, 41, 59, 0.8);
border-color: var(--orange-primary);
box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
transform: translateY(-1px);
}

/* Footer premium */
[data-theme="dark"] footer {
background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
border-top: 1px solid var(--glass-border);
position: relative;
}

[data-theme="dark"] footer::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background: var(--gradient-accent);
opacity: 0.5;
}

/* Menú móvil mejorado */
[data-theme="dark"] #mobile-menu {
background: rgba(2, 6, 23, 0.95);
border-left: 1px solid var(--glass-border);
box-shadow: -10px 0 25px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] #mobile-menu a {
position: relative;
overflow: hidden;
}

[data-theme="dark"] #mobile-menu a::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: var(--gradient-accent);
opacity: 0.1;
transition: left 0.3s ease;
}

[data-theme="dark"] #mobile-menu a:hover::before {
left: 0;
}

/* Botones con efectos premium */
[data-theme="dark"] .bg-orange-500 {
background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-hover) 100%);
box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
transition: var(--transition);
}

[data-theme="dark"] .bg-orange-500:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(249, 115, 22, 0.6);
}

/* Chatbot premium */
[data-theme="dark"] #chatbot-modal {
background: var(--glass-bg);
border: 1px solid var(--glass-border);
box-shadow: var(--shadow-xl);
backdrop-filter: blur(3px);
-webkit-backdrop-filter: blur(3px); 
}


/* [data-theme="dark"] #chatbot-button {
background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-hover) 100%);
box-shadow: var(--shadow-lg);
} */

[data-theme="dark"] .modal-header {
background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
border-bottom: 1px solid var(--glass-border);
}

[data-theme="dark"] .modal-body {
background: rgba(15, 23, 42, 0.3);
}

[data-theme="dark"] .chat-message.user {
background: var(--glass-bg);
border: 1px solid var(--glass-border);
color: #fff; 
}

[data-theme="dark"] .question-item {
background: #f97316;
border: 1px solid var(--glass-border);
color: #fff;
transform: translateY(-1px);
box-shadow: var(--shadow);
transition: var(--transition);
}

[data-theme="dark"] .question-item.back {
background: #f97316; 
color: #fff;
}

/* Cookie banner premium */
[data-theme="dark"] #cookie-banner {
background: var(--glass-bg);
border: 1px solid var(--glass-border);
box-shadow: var(--shadow-xl);
backdrop-filter: blur(12px);  
-webkit-backdrop-filter: blur(12px); 
}


/* Modal content for cookies */
[data-theme="dark"] .modal-content {
background: var(--glass-bg);
border: 1px solid var(--glass-border);
box-shadow: var(--shadow-xl);
color: var(--text-primary);
}

/* Botón de theme toggle mejorado */
#theme-toggle {
position: relative;
padding: 10px;
border-radius: 12px;
background: var(--glass-bg);
border: 1px solid var(--glass-border);
transition: var(--transition);
}

[data-theme="dark"] #theme-toggle {
background: var(--glass-bg);
box-shadow: var(--shadow);
}

#theme-toggle:hover {
transform: scale(1.1) translateZ(0);
box-shadow: var(--shadow-lg);
}

#theme-toggle i {
transition: var(--transition);
background: var(--gradient-accent);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

[data-theme="dark"] #theme-toggle i:before {
content: "\f185";
}

[data-theme="dark"] #theme-toggle i {
transform: rotate(180deg) scale(1.1);
}

/* Animaciones adicionales */
@keyframes float {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-10px); }
}

[data-theme="dark"] #beneficios i:hover {
animation: float 2s ease-in-out infinite;
}

/* Mejoras de contraste y legibilidad */
[data-theme="dark"] .text-gray-600 {
color: var(--text-secondary) !important;
}

[data-theme="dark"] .text-gray-700 {
color: var(--text-secondary) !important;
}

[data-theme="dark"] .text-gray-400 {
color: var(--text-tertiary) !important;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
color: var(--text-primary);
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Scroll personalizado */
[data-theme="dark"] ::-webkit-scrollbar {
width: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
background: var(--bg-tertiary);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
background: var(--gradient-accent);
border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
background: var(--orange-primary);
}

/* Botón scroll to top mejorado */
[data-theme="dark"] .button {
background: var(--gradient-secondary);
box-shadow: var(--shadow-lg);
border: 1px solid var(--glass-border);
}

/* Efectos siempre visibles en móviles para botón scroll */
@media (max-width: 768px) {
[data-theme="dark"] .button {
transform: scale(1.1) translateY(-4px);
box-shadow: var(--shadow-xl);
animation: scrollButtonGlow 2.5s infinite ease-in-out;
border-color: var(--orange-primary);
}
}

@keyframes scrollButtonGlow {
0%, 100% {
transform: scale(1.1) translateY(-4px);
box-shadow: var(--shadow-xl);
background: var(--gradient-secondary);
}
50% {
transform: scale(1.15) translateY(-6px);
box-shadow: 0 15px 40px -10px rgba(124, 58, 237, 0.6);
background: var(--gradient-accent);
}
}

[data-theme="dark"] .button:hover {
transform: scale(1.1) translateY(-2px);
box-shadow: var(--shadow-xl);
}

/* Efectos siempre visibles en móviles para WhatsApp */
@media (max-width: 768px) {
[data-theme="dark"] .btn-whatsapp img {
filter: brightness(1.2) drop-shadow(0 0 10px rgba(0, 230, 118, 0.6));
animation: whatsappGlow 2s infinite ease-in-out;
}

[data-theme="dark"] .btn-whatsapp:before,
[data-theme="dark"] .btn-whatsapp:after {
background-color: #00ff7f;
animation-duration: 1.2s;
}
}

@keyframes whatsappGlow {
0%, 100% {
filter: brightness(1.2) drop-shadow(0 0 10px rgba(0, 230, 118, 0.6));
transform: scale(1);
}
50% {
filter: brightness(1.4) drop-shadow(0 0 15px rgba(0, 230, 118, 0.8));
transform: scale(1.05);
}
}

[data-theme="dark"] .btn-whatsapp:before,
[data-theme="dark"] .btn-whatsapp:after {
background-color: #00e676;
}

/* Swiper mejorado */
[data-theme="dark"] .swiper-pagination-bullet {
background: var(--text-tertiary);
opacity: 0.5;
}

[data-theme="dark"] .swiper-pagination-bullet-active {
background: var(--orange-primary);
opacity: 1;
box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

/* Estilos para modo oscuro en PC */
[data-theme="dark"] .question-item {
background: #f97316; 
color: #fff;
transform: translateY(-1px);
box-shadow: var(--shadow);
}

[data-theme="dark"] .question-item.back {
background: #f97316; 
color: #fff;
}

[data-theme="dark"] .chat-message.user {
color: #fff; 
}

/* Estilos para móviles en modo oscuro */
@media (max-width: 768px) {
[data-theme="dark"] .question-item {
background: #f97316; 
color: #fff;
transform: translateY(-1px);
box-shadow: var(--shadow);
}

[data-theme="dark"] .question-item.back {
background: #f97316; 
color: #fff;
}

[data-theme="dark"] .chat-message.user {
color: #fff; 
}
}


