/* ================================================
   Landing Page - Peluquería PRO
   Dark mode elegante con acentos de color configurable
   ================================================ */

:root {
    --landing-bg: #0f0f0f;
    --landing-surface: #1a1a2e;
    --landing-surface-2: #16213e;
    --landing-text: #e0e0e0;
    --landing-text-muted: #8a8a9a;
    --landing-heading: #ffffff;
    --landing-border: #2a2a3e;
    --landing-primary: var(--theme-primary, #3b82f6);
    --landing-primary-hover: var(--theme-primary-hover, #2563eb);
    --landing-secondary: var(--theme-secondary, #60a5fa);
    --landing-gradient: linear-gradient(135deg, var(--landing-primary), var(--landing-secondary));
    --landing-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --landing-radius: 12px;
    --landing-transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.landing-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--landing-bg);
    color: var(--landing-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ====== NAVBAR ====== */
.landing-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--landing-border);
    padding: 0.8rem 0;
    transition: var(--landing-transition);
}

.landing-navbar.scrolled {
    background: rgba(15, 15, 15, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.landing-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--landing-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar-brand img {
    height: 40px;
    max-width: 140px;
    object-fit: contain;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.navbar-links a {
    color: var(--landing-text-muted);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--landing-transition);
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--landing-heading);
    background: rgba(255, 255, 255, 0.05);
}

.navbar-cta {
    background: var(--landing-gradient) !important;
    color: #fff !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
}

.navbar-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--landing-heading);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* ====== HERO ====== */
.landing-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 1.5rem 80px;
    background:
                var(--landing-bg);
    position: relative;
}

.hero-content {
    max-width: 700px;
}

.hero-logo {    max-height: clamp(80px, 15vw, 150px);    max-width: 80%;    margin-bottom: 1.5rem;    object-fit: contain;}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--landing-heading);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-title .accent {
    background: var(--landing-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--landing-text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--landing-gradient);
    color: #fff;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--landing-transition);
    border: none;
    cursor: pointer;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 67, 147, 0.4);
}

/* ====== SECCIONES ====== */
.landing-section {
    padding: 80px 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--landing-heading);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--landing-text-muted);
    font-size: 1.05rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--landing-gradient);
    margin: 1rem auto 0;
    border-radius: 3px;
}

/* ====== SERVICIOS ====== */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.servicio-card {
    background: var(--landing-surface);
    border: 1px solid var(--landing-border);
    border-radius: var(--landing-radius);
    padding: 1.75rem;
    transition: var(--landing-transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--landing-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--landing-shadow);
    border-color: var(--landing-primary);
}

.servicio-card:hover::before {
    opacity: 1;
}

.servicio-card.selected {
    border-color: var(--landing-primary);
    box-shadow: 0 0 0 2px var(--landing-primary);
}

.servicio-card.selected::before {
    opacity: 1;
}

.servicio-nombre {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--landing-heading);
    margin-bottom: 0.5rem;
}

.servicio-descripcion {
    color: var(--landing-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.servicio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.servicio-precio {
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--landing-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.servicio-duracion {
    color: var(--landing-text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.servicio-categoria {
    display: inline-block;
    background: rgba(232, 67, 147, 0.1);
    color: var(--landing-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ====== GALERÍA ====== */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.galeria-item {
    border-radius: var(--landing-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.galeria-item:hover img {
    transform: scale(1.05);
}

.galeria-item .galeria-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.galeria-item:hover .galeria-overlay {
    opacity: 1;
}

.galeria-placeholder {
    background: var(--landing-surface);
    border: 2px dashed var(--landing-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--landing-text-muted);
    font-size: 2.5rem;
}

/* ====== EQUIPO ====== */
.equipo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.equipo-card {
    border-radius: var(--landing-radius);
    overflow: hidden;
    background: var(--landing-surface);
    box-shadow: var(--landing-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.equipo-foto-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.equipo-foto-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.equipo-card:hover .equipo-foto-wrapper img {
    transform: scale(1.08);
}

.equipo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.2rem 1rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.equipo-card:hover .equipo-overlay {
    opacity: 1;
}

.equipo-nombre {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.equipo-cargo {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 400;
}

/* ====== HORARIOS ====== */
.horarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.horario-card {
    background: var(--landing-surface);
    border: 1px solid var(--landing-border);
    border-radius: var(--landing-radius);
    padding: 1.25rem;
    text-align: center;
    transition: var(--landing-transition);
}

.horario-card.cerrado {
    opacity: 0.5;
}

.horario-dia {
    font-weight: 700;
    color: var(--landing-heading);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.horario-horas {
    font-size: 0.85rem;
    color: var(--landing-text-muted);
    line-height: 1.6;
}

.horario-cerrado {
    color: var(--landing-primary);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ====== WIZARD RESERVAS ====== */
.reserva-section {
    background: var(--landing-surface);
    border: 1px solid var(--landing-border);
    border-radius: var(--landing-radius);
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.wizard-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
    position: relative;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 200px;
}

.wizard-step .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--landing-surface-2);
    border: 2px solid var(--landing-border);
    color: var(--landing-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: var(--landing-transition);
    position: relative;
    z-index: 2;
}

.wizard-step.active .step-number {
    background: var(--landing-gradient);
    border-color: var(--landing-primary);
    color: #fff;
}

.wizard-step.completed .step-number {
    background: var(--landing-primary);
    border-color: var(--landing-primary);
    color: #fff;
}

.wizard-step .step-label {
    font-size: 0.8rem;
    color: var(--landing-text-muted);
    text-align: center;
}

.wizard-step.active .step-label {
    color: var(--landing-heading);
    font-weight: 600;
}

.wizard-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--landing-border);
    z-index: 1;
}

.wizard-step.completed:not(:last-child)::after {
    background: var(--landing-primary);
}

/* Wizard panels */
.wizard-panel {
    display: none;
}

.wizard-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Paso 2: Fecha y horas */
.fecha-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--landing-surface-2);
    border: 1px solid var(--landing-border);
    border-radius: 8px;
    color: var(--landing-heading);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.fecha-input:focus {
    outline: none;
    border-color: var(--landing-primary);
    box-shadow: 0 0 0 3px rgba(232, 67, 147, 0.2);
}

.franjas-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.franja-btn {
    padding: 0.6rem 0.75rem;
    background: var(--landing-surface-2);
    border: 1px solid var(--landing-border);
    border-radius: 8px;
    color: var(--landing-text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--landing-transition);
    text-align: center;
}

.franja-btn:hover:not(.disabled) {
    border-color: var(--landing-primary);
    color: var(--landing-heading);
}

.franja-btn.selected {
    background: var(--landing-gradient);
    border-color: var(--landing-primary);
    color: #fff;
}

.franja-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Paso 3: Datos del cliente */
.form-group-landing {
    margin-bottom: 1.25rem;
}

.form-group-landing label {
    display: block;
    font-weight: 600;
    color: var(--landing-heading);
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-group-landing input,
.form-group-landing textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--landing-surface-2);
    border: 1px solid var(--landing-border);
    border-radius: 8px;
    color: var(--landing-heading);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--landing-transition);
}

.form-group-landing input:focus,
.form-group-landing textarea:focus {
    outline: none;
    border-color: var(--landing-primary);
    box-shadow: 0 0 0 3px rgba(232, 67, 147, 0.2);
}

.form-group-landing input::placeholder,
.form-group-landing textarea::placeholder {
    color: var(--landing-text-muted);
}

.form-group-landing .required::after {
    content: ' *';
    color: var(--landing-primary);
}

/* Botones del wizard */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.btn-wizard {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--landing-transition);
    border: none;
}

.btn-wizard-back {
    background: transparent;
    border: 1px solid var(--landing-border);
    color: var(--landing-text);
}

.btn-wizard-back:hover {
    background: var(--landing-surface-2);
    color: var(--landing-heading);
}

.btn-wizard-next {
    background: var(--landing-gradient);
    color: #fff;
    flex-grow: 1;
    max-width: 300px;
}

.btn-wizard-next:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-wizard-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Resumen de reserva */
.resumen-reserva {
    background: var(--landing-surface-2);
    border: 1px solid var(--landing-border);
    border-radius: var(--landing-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--landing-border);
}

.resumen-item:last-child {
    border-bottom: none;
}

.resumen-label {
    color: var(--landing-text-muted);
    font-size: 0.9rem;
}

.resumen-valor {
    color: var(--landing-heading);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Mensaje de éxito */
.reserva-exito {
    text-align: center;
    padding: 2rem;
}

.reserva-exito .icon-success {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.reserva-exito h3 {
    color: var(--landing-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.reserva-exito p {
    color: var(--landing-text-muted);
}

/* ====== CONTACTO ====== */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contacto-item i {
    color: var(--landing-primary);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    width: 24px;
    text-align: center;
}

.contacto-item .item-label {
    font-weight: 600;
    color: var(--landing-heading);
    margin-bottom: 0.2rem;
}

.contacto-item .item-value {
    color: var(--landing-text-muted);
    font-size: 0.95rem;
}

.contacto-item .item-value a {
    color: var(--landing-primary);
    text-decoration: none;
}

.contacto-mapa {
    border-radius: var(--landing-radius);
    overflow: hidden;
    min-height: 300px;
    border: 1px solid var(--landing-border);
}

.contacto-mapa iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: none;
}

/* ====== REDES SOCIALES ====== */
.redes-sociales {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.red-social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--landing-surface);
    border: 1px solid var(--landing-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--landing-text-muted);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--landing-transition);
}

.red-social-link:hover {
    background: var(--landing-primary);
    border-color: var(--landing-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ====== FOOTER ====== */
.landing-footer {
    background: var(--landing-surface);
    border-top: 1px solid var(--landing-border);
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--landing-text-muted);
    font-size: 0.85rem;
}

.landing-footer a {
    color: var(--landing-primary);
    text-decoration: none;
}

/* ====== LOADING SPINNER ====== */
.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--landing-border);
    border-top-color: var(--landing-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    color: var(--landing-heading);
}

.loading-overlay.active {
    display: flex;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--landing-bg);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--landing-border);
    }

    .navbar-links.open {
        display: flex;
    }

    .navbar-toggle {
        display: block;
    }

    .landing-hero {
        min-height: 80vh;
        padding: 100px 1rem 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .landing-section {
        padding: 50px 1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .equipo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .equipo-overlay {
        opacity: 1;
    }

    .horarios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacto-grid {
        grid-template-columns: 1fr;
    }

    .reserva-section {
        padding: 1.5rem;
    }

    .wizard-steps {
        gap: 0;
    }

    .wizard-step .step-label {
        font-size: 0.7rem;
    }

    .franjas-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .wizard-actions {
        flex-direction: column;
    }

    .btn-wizard-next {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .galeria-grid {
        grid-template-columns: 1fr;
    }

    .equipo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .equipo-nombre {
        font-size: 0.85rem;
    }

    .equipo-cargo {
        font-size: 0.75rem;
    }

    .horarios-grid {
        grid-template-columns: 1fr 1fr;
    }

    .franjas-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ====== TEMA CLARO ====== */
body.landing-body.landing-light {
    --landing-bg: #ffffff;
    --landing-surface: #f8f9fa;
    --landing-surface-2: #f0f2f5;
    --landing-text: #333333;
    --landing-text-muted: #6c757d;
    --landing-heading: #1a1a2e;
    --landing-border: #e0e0e0;
    --landing-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.landing-body.landing-light .landing-navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--landing-border);
}

body.landing-body.landing-light .landing-navbar .navbar-brand span,
body.landing-body.landing-light .landing-navbar .navbar-links a {
    color: #333;
}

body.landing-body.landing-light .landing-navbar .navbar-links a:hover {
    color: var(--landing-primary);
}

body.landing-body.landing-light .landing-hero {
    background:
                var(--landing-bg);
}

body.landing-body.landing-light .landing-footer {
    background: #1a1a2e;
    color: #e0e0e0;
}

body.landing-body.landing-light .landing-footer a {
    color: #e0e0e0;
}

body.landing-body.landing-light .servicio-card,
body.landing-body.landing-light .horario-card,
body.landing-body.landing-light .contacto-card {
    border: 1px solid var(--landing-border);
}

body.landing-body.landing-light .navbar-toggle {
    color: #333;
}

body.landing-body.landing-light .form-control,
body.landing-body.landing-light .form-select {
    background: #fff;
    border-color: #ced4da;
    color: #333;
}

/* Auto-invertir logo según tema: cuando está activado, invierte el logo
   en el tema opuesto para que sea visible (claro→oscuro / oscuro→claro) */
body.landing-body.landing-light.logo-auto-invert .landing-logo {
    filter: invert(1) contrast(1.2);
    transition: filter 0.3s ease;
}

}
