/* ===== VARIABLES OSCURAS ===== */
:root {
    --primary: #8b5cf6;          /* violeta más vibrante para fondo oscuro */
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --bg-dark: #0f0f12;           /* fondo principal casi negro */
    --bg-card: #1a1a1e;           /* fondo de tarjetas */
    --bg-light: #26262c;          /* fondos secundarios */
    --text-primary: #f1f5f9;      /* texto principal blanco/gris muy claro */
    --text-secondary: #cbd5e1;    /* texto secundario */
    --border: #2d2d35;            /* bordes sutiles */
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== HEADER ===== */
.header {
    background: rgba(15, 15, 18, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo i {
    color: var(--primary);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-reserva-nav {
    background: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    color: white !important;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* ===== HERO ===== */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0f0f12 0%, #1a1a1e 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.btn-whatsapp {
    background: #075e54;
    color: white;
}

.btn-whatsapp:hover {
    background: #054a44;
}

.hero-image img {
    width: 100%;
    border-radius: 48px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* ===== SECCIONES GENERALES ===== */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== SERVIOS (CARDS OSCURAS) ===== */
.servicios, .caracteristicas, .como-funciona {
    background-color: var(--bg-dark);
    padding: 3rem 0;
}

.servicios-grid, .caracteristicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.servicio-card, .caracteristica {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.servicio-card:hover, .caracteristica:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.5);
}

.servicio-card i, .caracteristica i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.servicio-card h3, .caracteristica h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.servicio-card p, .caracteristica p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== CÓMO FUNCIONA ===== */
.pasos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2rem;
}

.paso {
    flex: 1;
    text-align: center;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.paso-num {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
}

.paso h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.paso p {
    color: var(--text-secondary);
}

/* ===== TESTIMONIOS ===== */
.testimonios {
    background: var(--bg-light);
    padding: 3rem 0;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonio {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid var(--border);
}

.testimonio i.fa-star {
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.testimonio p {
    color: var(--text-secondary);
    margin: 1rem 0;
}

.testimonio h4 {
    color: var(--primary-light);
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer p {
    color: var(--text-secondary);
}

.social a {
    color: var(--text-secondary);
    margin: 0 0.5rem;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.social a:hover {
    color: var(--primary);
}

/* ===== CARRUSEL HORIZONTAL CON DESLIZAMIENTO SUAVE ===== */
.carrusel-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.carrusel-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1.5rem;
    flex: 1;
    scrollbar-width: none;          /* Firefox: oculta barra */
    -ms-overflow-style: none;       /* IE/Edge: oculta barra */
    -webkit-overflow-scrolling: touch; /* iOS: deslizamiento suave */
}

.carrusel-container::-webkit-scrollbar {
    display: none;                  /* Chrome/Safari: oculta barra */
}

/* Cards: cada una ocupa el ancho de 1/4 del contenedor menos el gap */
.servicio-card {
    flex: 0 0 calc(25% - 1.125rem); /* 4 cards visibles */
    min-width: 240px;               /* para que no se achiquen demasiado */
}

.carrusel-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    color: var(--text-primary);
    flex-shrink: 0;  /* evita que los botones se encojan */
}

.carrusel-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.carrusel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Responsive: en móvil, mostrar 1 card completa */
@media (max-width: 768px) {
    .servicio-card {
        flex: 0 0 calc(100% - 1rem);
        min-width: auto;
    }
    .carrusel-btn {
        display: flex;
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
}

/* ===== WIDGET DE RESERVAS (versión oscura) ===== */
.widget-reserva {
    background: var(--bg-card);
    border-radius: 32px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid var(--border);
}

.pasos-reserva {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

.paso-indicador {
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
}

.paso-indicador.activo {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

.paso-contenido {
    display: none;
    animation: fade 0.3s ease;
}

.paso-contenido.active {
    display: block;
}

.servicios-opciones {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.servicio-opcion {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 16px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.1s;
    color: var(--text-primary);
}

.servicio-opcion.seleccionado {
    border-color: var(--primary);
    background: #2d2a3e;
}

.horarios-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.horario-boton {
    background: var(--bg-light);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    border: 1px solid var(--border);
    cursor: pointer;
}

.horario-boton.seleccionado {
    background: var(--primary);
    color: white;
}

#calendario, #calendario-demo {
    width: 100%;
    padding: 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-light);
    color: var(--text-primary);
    font-size: 1rem;
}

.botones-paso {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn-anterior {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    cursor: pointer;
    color: var(--text-primary);
}

.btn-siguiente {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    cursor: pointer;
}

.mensaje-exito {
    background: #064e3b;
    color: #a7f3d0;
    padding: 1rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 1rem;
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 1rem;
        background: var(--bg-dark);
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 1rem;
        border-top: 1px solid var(--border);
    }
    .menu-toggle {
        display: block;
    }
    .pasos {
        flex-direction: column;
    }
    .hero-text h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
}


/* ===== ESTILOS GLOBALES PARA FLATPICKR (CALENDARIO) ===== */
.flatpickr-calendar {
    background: var(--bg-card) !important;
    border-color: var(--border) !important;
    box-shadow: var(--shadow) !important;
    width: 310px !important;          /* Aumentado para que quepan 7 días */
}

.flatpickr-days {
    width: 310px !important;
}

.flatpickr-day {
    max-width: 38px !important;       /* Ligeramente más ancho */
    height: 38px !important;
    line-height: 38px !important;
    margin: 2px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    color: var(--text-primary) !important;
    background: var(--bg-light) !important;
    box-shadow: none !important;
}

/* Ajuste para los días de la semana (cabecera) */
.flatpickr-weekday {
    font-size: 12px !important;
    width: 38px !important;
}

/* Días deshabilitados (base) */
.flatpickr-day.disabled,
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.disabled:hover,
.flatpickr-day.prevMonthDay.disabled,
.flatpickr-day.nextMonthDay.disabled {
    background: rgba(128, 0, 32, 0.3) !important;  /* bordo translúcido */
    color: #9ca3af !important;
    cursor: not-allowed !important;
    text-decoration: none !important;
}

/* Días seleccionados */
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

/* Día actual (hoy) */
.flatpickr-day.today {
    border: 1px solid var(--primary) !important;
}

/* Hover en días habilitados */
.flatpickr-day:not(.disabled):not(.flatpickr-disabled):hover {
    background: var(--primary-light) !important;
    color: var(--bg-dark) !important;
}

/* Cabecera del calendario */
.flatpickr-months .flatpickr-month,
.flatpickr-weekdays {
    color: var(--text-primary) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: var(--text-primary) !important;
    background: var(--bg-card) !important;
}


/* Días de otros meses: atenuados, sin fondo bordo, no seleccionables */
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    background: rgba(128, 128, 128, 0.2) !important;  /* gris muy tenue */
    color: #6b7280 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;   /* no se pueden hacer clic */
    text-decoration: none !important;
    opacity: 0.5 !important;
}

/* Asegurar que los días inhabilitados (pasados/domingos) mantengan su bordo */
.flatpickr-day.disabled,
.flatpickr-day.flatpickr-disabled {
    background: rgba(128, 0, 32, 0.3) !important;   /* bordo translúcido */
    color: #9ca3af !important;
    cursor: not-allowed !important;
}

/* ===== SECCIÓN DE PRECIOS ===== */
.precios {
    background: var(--bg-dark);
    padding: 4rem 0;
}

.precios-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.plan-card {
    background: var(--bg-card);
    border-radius: 28px;
    padding: 2rem 1.8rem;
    width: 100%;
    max-width: 320px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

/* Plan destacado (Pro) */
.plan-card.destacado {
    border: 2px solid var(--primary);
    background: linear-gradient(145deg, var(--bg-card), #201e2a);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    white-space: nowrap;
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.plan-precio {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    color: var(--primary-light) !important;
    margin: 0.5rem 0 !important;
    line-height: 1.2 !important;
}

.plan-precio .periodo {
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    color: var(--text-secondary) !important;
}

.plan-precio .moneda-simbolo {
    font-size: 1.8rem !important;
    margin-right: 4px !important;
    vertical-align: middle !important;
}

/* Aseguramos que el valor numérico no herede tamaño pequeño */
.plan-precio .precio-valor {
    font-size: inherit !important;
    font-weight: inherit !important;
}

.plan-caracteristicas {
    list-style: none;
    margin: 1.5rem 0;
    flex-grow: 1;
}

.plan-caracteristicas li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.plan-caracteristicas i {
    width: 20px;
    font-size: 1rem;
}

.plan-caracteristicas .fa-check-circle {
    color: var(--primary);
}

.plan-caracteristicas .fa-times-circle {
    color: #6b7280;
}

.btn-plan {
    display: block;
    text-align: center;
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.8rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    margin-top: 1rem;
}

.btn-plan-primary {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-plan-primary:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.btn-plan:hover:not(.btn-plan-primary) {
    background: var(--primary-light);
    color: var(--bg-dark);
    border-color: var(--primary);
}

.precios-nota {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2rem;
}

/* Selector de país */
.selector-pais {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.selector-pais label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.selector-pais select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.selector-pais select:hover {
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .precios-grid {
        flex-direction: column;
        align-items: center;
    }
    .plan-card {
        max-width: 100%;
    }
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Asegurar que el logo no tenga subrayado ni cambio de color */
a.logo {
    text-decoration: none;
    color: inherit;
}

/* Animación suave para las cards del carrusel */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.servicio-card {
    animation: fadeSlideUp 0.3s ease-out forwards;
}

