/* ==============================================
   LANDING PAGE - Mobile First
   ============================================== */

/* Reset y base */
.landing-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.landing-page * {
    box-sizing: border-box;
}

/* ---- NAVBAR ---- */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.landing-nav-logo img {
    max-height: 36px;
}

.landing-nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.landing-nav .btn-nav-login {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    background: transparent;
    border: 2px solid #667eea;
    text-decoration: none;
    transition: all 0.2s ease;
}

.landing-nav .btn-nav-login:hover {
    background: #667eea;
    color: #fff;
}

.landing-nav .btn-nav-cita {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
}

.landing-nav .btn-nav-cita:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: #fff;
}

/* ---- MENU USUARIO ---- */
.landing-user-menu {
    position: relative;
}

.btn-nav-user {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-nav-user:hover {
    background: #e4e4e4;
}

.btn-nav-user > .glyphicon-user {
    color: #667eea;
}

.landing-user-caret {
    font-size: 10px;
    color: #999;
    transition: transform 0.2s ease;
}

.landing-user-menu.open .landing-user-caret {
    transform: rotate(180deg);
}

.landing-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    z-index: 110;
}

.landing-user-menu.open .landing-user-dropdown {
    display: block;
}

.landing-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: background 0.15s ease;
}

.landing-user-dropdown a:hover {
    background: #f8f9fa;
    color: #667eea;
}

.landing-user-dropdown a .glyphicon {
    font-size: 14px;
    color: #667eea;
    width: 18px;
    text-align: center;
}

.landing-user-divider {
    height: 1px;
    background: #eee;
    margin: 6px 0;
}

/* ---- HERO ---- */
.landing-hero {
    padding: 110px 20px 60px;
    text-align: center;
    background-color: #4a3a6b;
    background-size: cover;
    background-position: center center;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(50, 30, 80, 0.7) 0%,
        rgba(102, 126, 234, 0.55) 50%,
        rgba(50, 30, 80, 0.8) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.landing-hero-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0 auto;
}

.landing-hero h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 14px 0;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.landing-hero .hero-subtitle {
    font-size: 16px;
    opacity: 0.95;
    margin: 0 0 32px 0;
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.landing-hero .btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 34px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    color: #667eea;
    background: #fff;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.landing-hero .btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
    color: #667eea;
}

.landing-hero .btn-hero .glyphicon {
    font-size: 18px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ---- CTA FLOTANTE (solo mobile) ---- */
.landing-cta-float {
    display: block;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 99;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.5);
    transition: all 0.2s ease;
}

.landing-cta-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
    color: #fff;
}

.landing-cta-float .glyphicon {
    margin-right: 8px;
}

/* ---- SECCIONES ---- */
.landing-section {
    padding: 50px 20px;
}

.landing-section-alt {
    background: #f8f9fa;
}

.landing-section-title {
    text-align: center;
    margin-bottom: 35px;
}

.landing-section-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.landing-section-title p {
    font-size: 15px;
    color: #666;
    margin: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.landing-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ---- RESERVA DESTACADA ---- */
.landing-booking {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 20px;
    text-align: center;
    color: #fff;
}

.landing-booking h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.landing-booking p {
    font-size: 15px;
    opacity: 0.9;
    margin: 0 0 25px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.booking-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto 30px;
    text-align: left;
}

.booking-step {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.15);
    padding: 14px 18px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.booking-step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: #fff;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

.booking-step-text {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}

.btn-booking {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 34px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    color: #667eea;
    background: #fff;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.btn-booking:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
    color: #667eea;
}

/* ==============================================
   SERVICIOS DESTACADOS CON FOTO
   ============================================== */
.servicios-featured {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.servicio-featured-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

.servicio-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.servicio-featured-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.servicio-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.servicio-featured-card:hover .servicio-featured-img img {
    transform: scale(1.05);
}

.servicio-featured-body {
    padding: 18px 20px;
}

.servicio-featured-body h3 {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px 0;
}

.servicio-featured-body p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Servicios adicionales (sin foto) */
.servicios-extra {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
}

.servicio-extra-item {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.servicio-extra-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.servicio-extra-item > .glyphicon {
    font-size: 26px;
    color: #667eea;
    width: 42px;
    min-width: 42px;
    height: 42px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.servicio-extra-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 2px 0;
}

.servicio-extra-item p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* ==============================================
   GALERIA HORIZONTAL
   ============================================== */
.landing-gallery {
    padding: 0;
    overflow: hidden;
    background: #2d2d3a;
}

.gallery-scroll {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 75vw;
    max-width: 320px;
    scroll-snap-align: center;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

/* ---- SOBRE NOSOTROS ---- */
.about-content {
    max-width: 600px;
    margin: 0 auto;
}

.about-image {
    margin-bottom: 25px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 25px;
}

.about-highlight {
    background: #fff;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.about-highlight .glyphicon {
    font-size: 28px;
    color: #667eea;
    display: block;
    margin-bottom: 10px;
}

.about-highlight h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.about-text {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 0;
}

/* ---- HORARIO ---- */
.horario-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

.horario-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.horario-card-header .glyphicon {
    font-size: 20px;
}

.horario-card-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.horario-card-body {
    padding: 20px 22px;
}

.horario-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.horario-row:last-child {
    border-bottom: none;
}

.horario-dia {
    font-weight: 600;
    color: #333;
}

.horario-horas {
    color: #667eea;
    font-weight: 500;
}

.horario-cerrado {
    color: #999;
    font-style: italic;
}

/* ---- CONTACTO ---- */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.contacto-item {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.contacto-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
}

.contacto-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.contacto-icon.phone {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.contacto-icon.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.contacto-icon.email {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.contacto-icon.location {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.contacto-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.contacto-value {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* ---- FOOTER ---- */
.landing-footer {
    background: #2d2d3a;
    color: rgba(255, 255, 255, 0.7);
    padding: 30px 20px;
    text-align: center;
    font-size: 13px;
}

.landing-footer p {
    margin: 0 0 8px 0;
}

.landing-footer p:last-child {
    margin-bottom: 0;
}

.landing-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.landing-footer-spacer {
    height: 70px;
}

/* ---- MAPA ---- */
.mapa-container {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-top: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mapa-container iframe {
    display: block;
    border: 0;
    width: 100%;
    height: 250px;
}

/* ==============================================
   RESPONSIVE - Navbar mobile (max 767px)
   ============================================== */
@media (max-width: 767px) {
    .landing-nav {
        padding: 8px 12px;
        gap: 8px;
    }

    .landing-nav-logo {
        flex-shrink: 1;
        min-width: 0;
        overflow: hidden;
    }

    .landing-nav-logo img {
        max-height: 28px;
    }

    .landing-nav-actions {
        gap: 6px;
        flex-shrink: 0;
    }

    .landing-nav .btn-nav-cita {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
    }

    .landing-nav .btn-nav-login {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
    }

    .btn-nav-user {
        padding: 6px 10px;
        font-size: 12px;
        gap: 4px;
    }

    .btn-nav-user > .glyphicon-user {
        font-size: 13px;
    }

    .landing-user-caret {
        font-size: 8px;
    }
}

/* ==============================================
   RESPONSIVE - Tablet (768px+)
   ============================================== */
@media (min-width: 768px) {
    .landing-hero {
        padding: 0 30px;
        min-height: 90vh;
    }

    .landing-hero h1 {
        font-size: 44px;
    }

    .landing-hero .hero-subtitle {
        font-size: 18px;
    }

    .landing-section {
        padding: 70px 30px;
    }

    .landing-section-title h2 {
        font-size: 30px;
    }

    /* Servicios: 2 columnas */
    .servicios-featured {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .servicio-featured-img {
        height: 220px;
    }

    .servicios-extra {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-top: 20px;
    }

    .booking-steps {
        flex-direction: row;
        max-width: 700px;
        gap: 12px;
    }

    .booking-step {
        flex: 1;
        flex-direction: column;
        text-align: center;
        padding: 20px 14px;
    }

    .about-image img {
        height: 320px;
    }

    .about-highlights {
        grid-template-columns: repeat(4, 1fr);
    }

    .contacto-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 600px;
    }

    .landing-cta-float {
        display: none;
    }

    .landing-footer-spacer {
        height: 0;
    }

    .mapa-container iframe {
        height: 300px;
    }

    /* Galeria: items mas anchos */
    .gallery-item {
        flex: 0 0 40vw;
        max-width: 360px;
    }

    .gallery-item img {
        height: 260px;
    }
}

/* ==============================================
   RESPONSIVE - Desktop (1060px+)
   ============================================== */
@media (min-width: 1060px) {
    .landing-hero h1 {
        font-size: 50px;
    }

    .servicios-featured {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 22px;
    }

    /* Galeria: cuadricula en lugar de scroll */
    .gallery-scroll {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 4px;
        overflow-x: visible;
        max-width: 1200px;
        margin: 0 auto;
    }

    .gallery-item {
        flex: none;
        max-width: none;
    }

    .gallery-item img {
        height: 200px;
    }
}

/* ==============================================
   ANIMACIONES
   ============================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 0;
    transform: translateY(24px);
}

.animate-in.visible {
    animation: fadeInUp 0.5s ease forwards;
}

/* Stagger delay para cards */
.servicios-featured .animate-in:nth-child(1).visible { animation-delay: 0s; }
.servicios-featured .animate-in:nth-child(2).visible { animation-delay: 0.08s; }
.servicios-featured .animate-in:nth-child(3).visible { animation-delay: 0.16s; }
.servicios-featured .animate-in:nth-child(4).visible { animation-delay: 0.24s; }
.servicios-featured .animate-in:nth-child(5).visible { animation-delay: 0.32s; }
