/* Mobile-First Design */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --success-color: #10b981;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Se elimina el padding-bottom que dejaba un espacio en blanco al final */
}

/* Header Overlay & Sticky */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
    padding: 1.5rem 0;
    z-index: 1000;
    box-shadow: none;
    transition: all 0.3s ease;
}

/* Header al hacer scroll */
.header.header-scrolled {
    background: var(--dark-color);
    padding: 0.8rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logo-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.logo-link:hover {
    opacity: 0.8;
}

.business-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.nav-menu .nav-link {
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-menu .nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Slider Full Screen */
.hero-slider {
    height: 100vh;
    min-height: 400px;
    overflow: hidden;
}

.hero-slider .carousel-inner,
.hero-slider .carousel-item {
    height: 100%;
}

.hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 12px;
    bottom: 20%;
}

/* Servicios Premium */
.services-section {
    padding: 3rem 0;
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(99, 102, 241, 0.2);
}

.service-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.service-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    line-height: 1.3;
}

.service-body {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.service-description {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.service-footer {
    border-top: 1px dashed #e2e8f0;
    padding-top: 1.5rem;
}

.service-duration {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
    background: #f1f5f9;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.service-price-tag {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.service-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.service-description {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.service-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.service-duration {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0;
    /* Aumentamos el padding para compensar el botón flotante */
    margin-top: 0;
}

.footer h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer p {
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

.footer i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Botón Flotante CTA */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: 20px;
    z-index: 1000;
}

.btn-appointment {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-appointment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

/*Booking*/
.booking-container {
    max-width: 800px;
    margin: 100px auto 2rem;
    /* Aumentado de 2rem para evitar que el header fijo cubra el contenido */
    padding: 0 1rem;
}

.booking-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.step.active .step-circle {
    background: var(--primary-color);
    color: white;
}

.step.completed .step-circle {
    background: var(--success-color);
    color: white;
}

.step-label {
    font-size: 0.85rem;
    color: #64748b;
}

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

.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
}

.service-option {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.service-option:hover {
    border-color: var(--primary-color);
    background: #f8fafc;
}

.service-option.selected {
    border-color: var(--primary-color);
    background: #eef2ff;
}

.service-option input[type="radio"] {
    margin-right: 1rem;
}

/* Staff Selection Styles - Premium Redesign */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.staff-option-card {
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    height: 300px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.staff-option-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.2);
}

.staff-option-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2), 0 15px 30px rgba(99, 102, 241, 0.15);
}

.staff-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.staff-avatar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.staff-option-card:hover .staff-avatar img {
    transform: scale(1.1);
}

.staff-initial {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.3;
}

/* Gradient Overlay for text readability - Smoother transition */
.staff-option-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.5) 35%,
            rgba(0, 0, 0, 0.1) 70%,
            transparent 100%);
    z-index: 2;
    transition: opacity 0.3s ease;
}

.staff-option-card.selected::after {
    background: linear-gradient(to top,
            rgba(99, 102, 241, 0.9) 0%,
            rgba(99, 102, 241, 0.4) 50%,
            rgba(0, 0, 0, 0.1) 100%);
}

.staff-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 3;
    color: white;
    text-align: left;
}

.staff-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.staff-tag {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.staff-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px #10b981;
}

.selected-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 4;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.staff-option-card.selected .selected-indicator {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 576px) {
    .staff-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .staff-option-card {
        height: 240px;
    }

    .staff-info {
        padding: 1rem;
    }

    .staff-name {
        font-size: 0.8rem;
        white-space: normal;
        line-height: 1.2;
    }

    .staff-tag {
        font-size: 0.7rem;
    }
}

/* Fix para intl-tel-input con Bootstrap */
.iti {
    display: block;
    margin-bottom: 1rem;
}

.iti__country-list {
    z-index: 2000;
}

.time-slot {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin: 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.time-slot:hover {
    border-color: var(--primary-color);
    background: #f8fafc;
}

.time-slot.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.time-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-nav {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
}

.success-message {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .step-label {
        font-size: 0.7rem;
    }

    .time-slot {
        padding: 0.6rem 1rem;
        margin: 0.25rem;
        font-size: 0.9rem;
    }
}

/* Responsive - Tablet y Desktop */
@media (min-width: 768px) {
    .hero-slider {
        height: 100vh;
    }

    .hero-slider img {
        height: 100vh;
    }

    .business-name {
        font-size: 2rem;
    }

    .floating-cta {
        right: 40px;
        left: auto;
        max-width: 300px;
    }
}

@media (min-width: 992px) {
    .hero-slider {
        height: 100vh;
    }

    .hero-slider img {
        height: 100vh;
    }
}

/* Vivid Why Choose Us Section */
.why-choose-us {
    padding: 1rem 0;
    /* Reducido de 8rem para estar más cerca de Servicios */
    background: transparent;
    /* Antes #ffffff, ahora transparente para no cortar el fondo animado */
    overflow: hidden;
    position: relative;
}

/* Decorative Blobs (Globales) */
.decor-blob {
    position: fixed;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.12;
    /* Ligeramente más sutil para ser global */
    border-radius: 50%;
    pointer-events: none;
}

.decor-blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
}

.decor-blob-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: -50px;
    left: -100px;
}

.decor-blob-3 {
    width: 200px;
    height: 200px;
    background: #f43f5e;
    top: 40%;
    left: 10%;
    opacity: 0.08;
}

.section-header .bg-soft-primary {
    background-color: rgba(99, 102, 241, 0.1);
    font-weight: 600;
}

.section-title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 3rem 2rem;
    border-radius: 30px;
    text-align: center;
    height: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}

.feature-icon-wrapper {
    width: 85px;
    height: 85px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    border-radius: 24px;
    position: relative;
}

/* Diferentes gradientes para cada icono */
.feature-card-1 .feature-icon-wrapper {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.feature-card-2 .feature-icon-wrapper {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.feature-card-3 .feature-icon-wrapper {
    background: linear-gradient(135deg, #10b981, #06b6d4);
}

.feature-card-4 .feature-icon-wrapper {
    background: linear-gradient(135deg, #d946ef, #6366f1);
}

.feature-icon-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(15px);
    opacity: 0.4;
    z-index: -1;
    border-radius: inherit;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: var(--dark-color);
}

.feature-text {
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
}

/* Animación de entrada sutil (Opcional, requiere JS para dispararse con scroll) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    animation: fadeInUp 0.8s ease backwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}