/* ===== VARIABLES ===== */
:root {
    /* Alto del navbar fixed-top: fuente única de verdad.
       Cambiar aquí afecta automáticamente body, scroll-padding y hero. */
    --navbar-h: 66px;

    /* ── Alternativas de rosado — descomentar la deseada ── */
    --primary:       #E1987C;   /* opción A: mauve rosado */
    --primary-hover: #8C6C78;
    /* --primary:       #8C6C78;    opción B: mauve oscuro */
    /* --primary-hover: #6e5462; */

    --gold:          #C69A4B;
    --black:         #0a0a0a;
    --text:          #1a1a1a;
    --text-muted:    #6B7280;
    --bg-light:      #F7F5F2;
    --bg-white:      #FFFFFF;
    --border:        #E5E7EB;
    --success:       #059669;
    --radius:        12px;
    --shadow:        0 4px 24px rgba(0,0,0,0.10);
    --shadow-lg:     0 8px 40px rgba(0,0,0,0.18);
}

/* ===== BASE ===== */
html {
    scroll-padding-top: var(--navbar-h);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg-white);
    padding-top: var(--navbar-h);
}

.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

/* ===== BOOTSTRAP OVERRIDES ===== */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}
.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    color: #fff !important;
}
.text-primary { color: var(--primary) !important; }

/* ===== NAVBAR ===== */
.nav-custom {
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0.55rem 0;
}

.nav-logo { height: 40px; width: auto; }

.nav-custom .nav-link {
    font-size: 0.88rem;
    opacity: 0.78;
    transition: opacity .2s, color .2s;
}
.nav-custom .nav-link:hover { opacity: 1; color: var(--primary) !important; }

.nav-custom .btn-light {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-size: 0.82rem;
    padding: 0.35rem 0.9rem;
    border-radius: 6px;
}
.nav-custom .btn-light:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
}

/* ===== HERO ===== */
.hero-section {
    background-color: var(--bg-white);
    padding-top: 3rem;
    min-height: calc(100vh - var(--navbar-h));
}

.hero-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 480px;
}

/* botón WhatsApp */
.btn-whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
    font-weight: 600;
}
.btn-whatsapp:hover,
.btn-whatsapp:focus,
.btn-whatsapp:active {
    background: #1ebe5d;
    border-color: #1ebe5d;
    color: #fff;
}

/* ===== BOOKING CARD ===== */
.booking-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.booking-card-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.booking-card .form-label-sm {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: var(--text);
}

.booking-card .form-control-sm,
.booking-card .form-select-sm {
    border-color: var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color .2s, box-shadow .2s;
}

.booking-card .form-control-sm:focus,
.booking-card .form-select-sm:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(225, 152, 124, 0.15);
}

#bookingAlert { font-size: 0.85rem; border-radius: 8px; }
.alert-sm { font-size: 0.82rem; padding: 0.5rem 0.85rem; }

/* ===== SECCIONES ===== */
.section-light { background: var(--bg-light); }
.section-white { background: var(--bg-white); }

.section-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--black), var(--gold));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.2rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0;
}

/* Línea decorativa debajo del título de sección */
.section-line {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    border: none;
    margin: 0.9rem 0 0.9rem;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 0;
    font-size: 0.95rem;
}

/* ===== SERVICIO CARD ===== */
.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    overflow: hidden;
}

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

.service-card-body { padding: 1.5rem; }
.service-name { font-weight: 600; font-size: 1rem; margin-bottom: 0.4rem; }
.service-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }

.service-meta {
    display: flex; justify-content: flex-end; align-items: center;
    margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border);
}

.service-duration { font-size: 0.8rem; color: var(--text-muted); }

/* ===== HISTORIA ===== */
.historia-text {
    font-size: 0.95rem;
    line-height: 1.85;
    color: #374151;
}

.historia-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.historia-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== STATS ===== */
/* ── Versión original (fondo negro) — descomentar para volver ──
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    background: var(--black);
    border-radius: var(--radius);
    padding: 2rem;
}
.stat-value { color: var(--gold); }
.stat-label { color: rgba(255,255,255,0.55); }
── */

/* ── Versión alternativa: tinte rosado, números en primary ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: rgba(166, 114, 133, 0.08);
    border: 1px solid rgba(166, 114, 133, 0.22);
    border-radius: var(--radius);
    overflow: hidden;
}

.stat-item {
    text-align: center;
    padding: 1.75rem 1rem;
    border-right: 1px solid rgba(166, 114, 133, 0.18);
}

.stat-item:last-child { border-right: none; }

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ===== BANNER / CAROUSEL ===== */
.carousel-section {
    width: 100%;
    overflow: hidden;
}

/* Desktop: ratio 32:9 (1920×540). contain + fondo negro maneja imágenes
   que no cumplan exactamente las dimensiones sin recortar contenido. */
.carousel-img {
    width: 100%;
    aspect-ratio: 32 / 9;
    height: auto;
    object-fit: contain;
    background: #000;
    display: block;
}

/* Mobile con imagen vertical 3:4 (750×1000) */
@media (max-width: 768px) {
    .has-mobile .carousel-img {
        aspect-ratio: 3 / 4;
    }
}

#mainCarousel .carousel-indicators {
    margin-bottom: 1rem;
}

#mainCarousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border-top: 0;
    border-bottom: 0;
    background-color: rgba(255,255,255,0.4);
    transition: background-color .3s;
}

#mainCarousel .carousel-indicators .active {
    background-color: var(--primary);
    transform: scale(1.3);
}

#mainCarousel .carousel-control-prev,
#mainCarousel .carousel-control-next {
    width: 44px;
    height: 44px;
    background: rgba(10,10,10,0.55);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 14px;
    opacity: 1;
    transition: background .2s;
}

#mainCarousel .carousel-control-prev:hover,
#mainCarousel .carousel-control-next:hover {
    background: var(--primary);
}

#mainCarousel .carousel-control-prev-icon,
#mainCarousel .carousel-control-next-icon {
    width: 18px;
    height: 18px;
}

/* ===== EQUIPO ===== */
.stylist-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    padding: 0;
    transition: transform .2s, box-shadow .2s;
}

.stylist-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.stylist-photo-lg {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.stylist-avatar-lg {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.stylist-info {
    padding: 1rem 1.25rem 1.25rem;
}

.stylist-name { font-weight: 600; font-size: 1rem; margin-bottom: 0.35rem; }

.stylist-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

/* ===== SERVICIOS: CABECERA DE COLUMNA (multi-género) ===== */
.service-col-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.service-col-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.service-col-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    margin: 0;
}

/* ===== VER MÁS SERVICIOS ===== */
.ver-mas-btn {
    border-radius: 30px;
    font-size: 0.875rem;
    padding: 0.45rem 1.5rem;
}

/* ===== EMPTY STATE ===== */
.empty-state { padding: 3rem 1rem; }

/* ===== FOOTER ===== */
.footer-custom {
    background: var(--black);
    color: rgba(255,255,255,0.68);
}

.footer-logo { height: 34px; width: auto; opacity: 0.88; }

.footer-title {
    color: white;
    font-weight: 600;
    font-size: 0.83rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 1rem;
}

.footer-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 0.6rem;
    font-size: 0.875rem;
}

.footer-link {
    color: rgba(255,255,255,0.60);
    text-decoration: none;
    transition: color .2s;
}
.footer-link:hover { color: var(--primary); }

.footer-divider { border-color: rgba(255,255,255,0.08); }

.social-link {
    color: rgba(255,255,255,0.60);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color .2s;
}
.social-link:hover { color: var(--primary); }

.map-container {
    border-radius: 8px;
    overflow: hidden;
    height: 140px;
    border: 1px solid rgba(255,255,255,0.08);
}

.map-container iframe { width: 100%; height: 100%; border: 0; }

/* ===== MIS CITAS MODAL ===== */
.cita-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: var(--bg-white);
}

.cita-card:last-child { margin-bottom: 0; }
.cita-service { font-weight: 600; font-size: 0.95rem; }
.cita-detail  { font-size: 0.82rem; color: var(--text-muted); }

.cita-status {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}

.status-PENDING   { background: #FEF3C7; color: #92400E; }
.status-CONFIRMED { background: #D1FAE5; color: #065F46; }
.status-CANCELLED { background: #FEE2E2; color: #991B1B; }
.status-COMPLETED { background: #E5E7EB; color: #374151; }

.reschedule-form {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.75rem;
}

/* ===== SECCIÓN PRODUCTOS ===== */
.section-productos {
    background: var(--bg-light);
}

.productos-tag {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.marca-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    min-height: 130px;
    text-decoration: none;
    transition: transform .25s, box-shadow .25s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.marca-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

.marca-card img {
    max-height: 80px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter .25s;
}

.marca-card:hover img { filter: grayscale(0%); }

/* ===== MARQUEE INFINITO (productos / equipo) ===== */
.marquee-wrap {
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: flex;
    width: max-content;
}

/* cuando los items caben en pantalla → centrar */
.marquee-track.is-centered {
    width: 100%;
    justify-content: center;
}

/* Mobile: scroll táctil en lugar de animación */
@media (max-width: 768px) {
    .marquee-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .marquee-wrap::-webkit-scrollbar { display: none; }
    .marquee-track {
        animation: none !important;
        width: max-content;
    }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(var(--marquee-distance, -50%)); }
}

.product-item {
    flex: 0 0 200px;
    margin-right: 1.25rem;
}

/* ===== INTL-TEL-INPUT: integración con Bootstrap ===== */
.iti { display: block; }
.iti--separate-dial-code .iti__selected-dial-code { font-size: 0.875rem; }
.iti--separate-dial-code .iti__flag-container { top: 0; bottom: 0; }
.iti input.form-control-sm { height: calc(1.5em + 0.5rem + 2px); padding: 0.25rem 0.5rem; font-size: 0.875rem; }

.product-item .marca-card {
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
}

.product-item .marca-card img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

.stylist-item {
    flex: 0 0 210px;
    margin-right: 1.5rem;
}

.stylist-item .stylist-card { width: 100%; }

@media (max-width: 991px) {
    .product-item  { flex-basis: 160px; }
    .stylist-item  { flex-basis: 180px; }
}

@media (max-width: 575px) {
    .product-item  { flex-basis: 130px; }
    .stylist-item  { flex-basis: 155px; }
}

/* ===== LISTA COMPACTA DE SERVICIOS ===== */
.service-search-wrap {
    position: relative;
    max-width: 440px;
}

.service-search-wrap .fa-magnifying-glass {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.service-search-input {
    padding-left: 2.5rem !important;
    border-radius: 30px !important;
    font-size: 0.875rem;
}

.service-search-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(225, 152, 124, 0.15) !important;
}

.service-list-wrap {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.service-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}

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

.service-list-item:hover {
    background: rgba(225, 152, 124, 0.06);
}

.service-list-main { min-width: 0; }

.service-list-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
}

.service-list-desc {
    font-size: 0.775rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-list-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .stats-grid { grid-template-columns: 1fr; gap: 1rem; }
    .hero-title  { font-size: 1.75rem; }
    .booking-card { margin-top: 1.5rem; padding: 1.25rem; }
    .historia-img { max-height: 300px; }

    #mainCarousel .carousel-control-prev,
    #mainCarousel .carousel-control-next { width: 34px; height: 34px; margin: 0 6px; }
}
