/* --- VARIABLES DE COLOR Y FUENTES --- */
:root {
    --color-naranja: #F26522;
    --color-marron: #A67C00;
    --color-azul: #1288CE;
    
    /* PALETA CÁLIDA MONTAÑESA */
    --color-oscuro: #2C2825; 
    --color-claro: #EBE4D8;  
    --color-fondo-secciones: #DFD3C3; 
    --color-texto-blanco: #FAFAFA; 
    
    --fuente-principal: 'Montserrat', sans-serif;
    --fuente-acento: 'Playball', cursive; 
}

/* --- RESET BÁSICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fuente-principal);
    color: var(--color-oscuro);
    background-color: var(--color-claro);
    line-height: 1.6;
}

/* --- NAVEGACIÓN --- */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--color-fondo-secciones); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px; 
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--color-oscuro);
    font-weight: 600;
    font-size: 1.05rem;
    text-transform: uppercase; 
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--color-naranja);
}

.btn-contacto {
    background-color: var(--color-marron);
    color: var(--color-texto-blanco) !important; 
    padding: 10px 25px; 
    border-radius: 30px;
    transition: background-color 0.3s ease !important;
}

.btn-contacto:hover {
    background-color: var(--color-naranja);
}

/* --- SEPARADOR GLOBAL --- */
.separator {
    height: 3px;
    width: 60px;
    background-color: var(--color-azul);
    margin: 0 auto 20px auto;
    border-radius: 2px;
}

/* =========================================
   ESTILOS DE LA PÁGINA: INICIO
   ========================================= */

.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../img/hero-inicio.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-texto-blanco); 
}

.hero-content h1 {
    font-family: var(--fuente-acento);
    font-size: 4.8rem; 
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.about-us {
    padding: 80px 5%;
    background-color: var(--color-fondo-secciones); 
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.logo-about {
    height: 300px; 
    width: auto;
    display: block;
    margin: 0 auto 30px auto;
    transition: transform 0.4s ease;
}

.logo-about:hover {
    transform: scale(1.03); 
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--color-marron);
    margin-bottom: 15px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.15rem; 
    color: var(--color-oscuro); 
}

/* =========================================
   ESTILOS DE LA PÁGINA: SERVICIOS
   ========================================= */

.page-header {
    text-align: center;
    padding: 60px 5% 20px 5%;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--color-marron);
    margin-bottom: 15px;
    font-family: var(--fuente-principal);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--color-oscuro);
    max-width: 600px;
    margin: 0 auto;
}

.services-section {
    padding: 20px 5% 80px 5%;
}

.services-grid {
    display: grid;
    /* Bajamos a 280px para que no desborde en celulares chicos */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--color-fondo-secciones);
    border-radius: 12px;
    overflow: hidden; 
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.service-img {
    width: 100%;
    height: 220px;
    object-fit: cover; 
    border-bottom: 3px solid var(--color-naranja); 
}

.service-content {
    padding: 25px;
    text-align: center;
}

.service-content h3 {
    font-size: 1.4rem;
    color: var(--color-azul); 
    margin-bottom: 10px;
}

.service-content p {
    font-size: 1rem;
    color: var(--color-oscuro);
}

/* =========================================
   FOOTER GLOBAL
   ========================================= */
footer {
    text-align: center;
    padding: 25px;
    background-color: var(--color-oscuro);
    color: var(--color-texto-blanco);
    font-size: 1rem;
}

/* =========================================
   ESTILOS DE LA PÁGINA: UBICACIÓN
   ========================================= */

.location-showcase {
    position: relative;
    height: calc(100vh - 60px); 
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-start; 
    padding-top: 40px; 
}

.map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.map-container iframe {
    filter: sepia(20%) hue-rotate(-10deg) saturate(120%);
}

.location-card {
    position: relative;
    z-index: 2; 
    margin-left: 5%; 
    background: rgba(223, 211, 195, 0.95); 
    backdrop-filter: blur(10px); 
    padding: 25px; 
    border-radius: 15px; 
    max-width: 350px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.2);
    animation: slideInLeft 0.8s ease forwards; 
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.location-card h2 {
    color: var(--color-marron);
    font-size: 1.8rem; 
    margin-bottom: 8px;
}

.separator-small {
    height: 3px;
    width: 40px;
    background-color: var(--color-azul);
    margin-bottom: 15px; 
    border-radius: 2px;
}

.location-info p {
    font-size: 0.95rem; 
    color: var(--color-oscuro);
    margin-bottom: 10px;
    line-height: 1.5;
}

.location-info strong {
    color: var(--color-marron);
}

.nota-viaje {
    font-style: italic;
    font-size: 0.85rem !important; 
    color: #555 !important;
    margin-top: 15px;
}

.btn-gps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px; 
    padding: 12px; 
    background-color: var(--color-naranja);
    color: var(--color-texto-blanco);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--fuente-principal);
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 5px 15px rgba(242, 101, 34, 0.3);
}

.btn-gps:hover {
    background-color: #d95a1e;
    transform: translateY(-3px);
}

/* AQUÍ ESTÁ EL AJUSTE ESPECÍFICO PARA EL MAPA EN MÓVILES */
@media (max-width: 768px) {
    .location-showcase {
        align-items: flex-start; /* Mueve la tarjeta hacia arriba */
        padding-top: 15px; /* Un pequeño margen arriba */
    }
    .location-card {
        margin-left: 5%;
        margin-right: auto;
        max-width: 80%; /* La hacemos más angosta para no tapar el mapa */
        padding: 15px; /* Achicamos el relleno interno */
        animation: slideInLeft 0.8s ease forwards; /* Vuelve a entrar por la izquierda */
    }
    .location-card h2 {
        font-size: 1.3rem; /* Letra más chica */
        margin-bottom: 5px;
    }
    .separator-small {
        margin-bottom: 10px;
    }
    .location-info p {
        font-size: 0.8rem; /* Textos más compactos */
        margin-bottom: 6px;
    }
    .nota-viaje {
        font-size: 0.75rem !important;
        margin-top: 10px;
    }
    .btn-gps {
        padding: 8px; /* Botón más delgado */
        font-size: 0.9rem;
        margin-top: 10px;
    }
}

/* =========================================
   ESTILOS DE LA PÁGINA: ESPACIO RELAJACIÓN
   ========================================= */

.relax-section {
    padding: 20px 5% 80px 5%;
}

.relax-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px; 
}

.relax-block {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: var(--color-fondo-secciones);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.relax-block.reverse {
    flex-direction: row-reverse;
}

.relax-image {
    flex: 1;
    height: 450px;
    overflow: hidden;
}

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

.relax-block:hover .relax-image img {
    transform: scale(1.05); 
}

.relax-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.relax-subtitle {
    font-size: 0.9rem;
    color: var(--color-naranja);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 10px;
}

.relax-content h2 {
    font-size: 2.2rem;
    color: var(--color-marron);
    margin-bottom: 20px;
    font-family: var(--fuente-principal);
}

.relax-content p {
    font-size: 1.1rem;
    color: var(--color-oscuro);
    margin-bottom: 25px;
    line-height: 1.7;
}

.relax-details {
    list-style: none;
    margin-bottom: 30px;
}

.relax-details li {
    font-size: 1rem;
    color: var(--color-oscuro);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.relax-details li::before {
    content: "•";
    color: var(--color-azul);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -4px;
}

.price-tag {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-claro);
    padding: 15px 25px;
    border-radius: 12px;
    border-left: 4px solid var(--color-naranja);
    width: fit-content;
}

.price-label {
    font-size: 0.95rem;
    color: #666;
    margin-right: 15px;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-marron);
}

.hidden-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visible-scroll {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .relax-block, .relax-block.reverse {
        flex-direction: column; 
    }
    
    .relax-image {
        width: 100%;
        height: 300px;
    }
    
    .relax-content {
        padding: 30px 20px;
    }
}

/* =========================================
   ESTILOS DE LA PÁGINA: CONTACTO
   ========================================= */

.contact-showcase {
    padding: 60px 5%;
    min-height: calc(100vh - 80px); 
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-claro);
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h1 {
    font-size: 3rem;
    color: var(--color-marron);
    margin-bottom: 15px;
    font-family: var(--fuente-principal);
}

.contact-header p {
    font-size: 1.2rem;
    color: var(--color-oscuro);
}

.contact-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap; 
    perspective: 1000px; 
}

.contact-card {
    width: 280px;
    height: 320px;
    background: var(--color-fondo-secciones);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-oscuro);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-bottom: 4px solid transparent;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.icon-wrapper {
    margin-bottom: 25px;
    color: var(--color-marron); 
    transition: color 0.4s ease, transform 0.4s ease;
}

.contact-card h3 {
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.contact-card p {
    font-size: 1rem;
    color: #666;
}

/* WHATSAPP */
.contact-card.whatsapp:hover {
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.2);
    border-bottom-color: #25D366;
}
.contact-card.whatsapp:hover .icon-wrapper {
    color: #25D366;
    transform: scale(1.1);
}

/* INSTAGRAM */
.contact-card.instagram:hover {
    box-shadow: 0 15px 40px rgba(225, 48, 108, 0.2);
    border-bottom-color: #E1306C;
}
.contact-card.instagram:hover .icon-wrapper {
    color: #E1306C; 
    transform: scale(1.1);
}

/* BOOKING.COM */
.contact-card.booking:hover {
    box-shadow: 0 15px 40px rgba(0, 53, 128, 0.2);
    border-bottom-color: #003580;
}
.contact-card.booking:hover .icon-wrapper {
    color: #003580;
    transform: scale(1.1);
}

/* SELECTOR IDIOMA */
.lang-select {
    background-color: transparent;
    color: var(--color-oscuro);
    border: 1px solid var(--color-marron);
    border-radius: 5px;
    padding: 5px 10px;
    font-family: var(--fuente-principal);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.lang-select:hover {
    background-color: var(--color-marron);
    color: var(--color-texto-blanco);
}

/* =========================================
   ESTILOS DE LA PÁGINA: GALERÍA 
   ========================================= */

.active-view {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

.hidden-view {
    display: none;
}

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

.gallery-selection {
    padding: 60px 5%;
    min-height: calc(100vh - 80px);
    background-color: var(--color-claro);
}

.selection-header {
    text-align: center;
    margin-bottom: 50px;
}

.selection-header h1 {
    font-size: 3rem;
    color: var(--color-marron);
    font-family: var(--fuente-principal);
}

.apartments-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap; 
}

.apt-card {
    position: relative;
    flex: 1; 
    min-width: 280px;
    max-width: 450px;
    height: 600px; 
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 3px solid #6b5c46; 
    outline: 1px solid #c2b79e; 
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

.apt-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: var(--color-texto-blanco);
    transition: background 0.4s ease;
}

.apt-overlay h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-family: var(--fuente-acento);
    letter-spacing: 1px;
}

.btn-ver {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-naranja);
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.apt-card:hover {
    transform: scale(1.03); 
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.apt-card:hover img {
    transform: scale(1.08); 
}

.apt-card:hover .btn-ver {
    transform: translateY(0);
    opacity: 1;
}

.gallery-viewer {
    padding: 30px 5% 60px 5%;
    background-color: var(--color-oscuro); 
    min-height: calc(100vh - 80px);
    color: var(--color-texto-blanco);
}

.viewer-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--color-texto-blanco);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--fuente-principal);
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-back:hover {
    background: var(--color-naranja);
}

.viewer-header h2 {
    font-size: 2rem;
    font-family: var(--fuente-acento);
}

.room-navbar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.room-btn {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    color: var(--color-texto-blanco);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--fuente-principal);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.room-btn.active, .room-btn:hover {
    background: var(--color-marron);
    border-color: var(--color-marron);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid #6b5c46; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.grid-image {
    width: 100%;
    height: 700px; 
    object-fit: cover; 
    transition: transform 0.4s ease, filter 0.4s ease;
}

.grid-image:hover {
    transform: scale(1.05); 
    filter: brightness(1.1); 
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    }
    .grid-image { height: 450px; }
}


/* =========================================
   ADAPTABILIDAD TOTAL PARA CELULARES (NUEVO)
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. Barra de Navegación */
    .navbar {
        padding: 10px 5%;
    }
    .nav-links {
        flex-wrap: wrap; /* Permite que los links bajen si no entran */
        justify-content: center;
        gap: 10px 15px; /* Menos espacio entre botones */
    }
    .nav-links li a {
        font-size: 0.85rem; /* Letra un poco más chica */
    }
    .btn-contacto {
        padding: 8px 15px;
        font-size: 0.85rem !important;
    }
    .lang-select {
        margin-top: 5px; /* Separa un poco el selector si cae a la línea de abajo */
    }

    /* 2. Textos Gigantes (Inicio y Títulos) */
    .hero {
        height: 70vh;
    }
    .hero-content h1 {
        font-size: 3rem; /* Título gigante achicado para celular */
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .about-text h2 {
        font-size: 2rem;
    }
    .page-header h1, .selection-header h1, .contact-header h1 {
        font-size: 2.2rem;
    }
    .page-header p, .selection-header p, .contact-header p {
        font-size: 1rem;
    }

    /* 3. Logo Sobre Nosotros */
    .logo-about {
        height: auto;
        width: 100%;
        max-width: 220px; /* Evita que el logo ocupe toda la pantalla */
    }

    /* 4. Tarjetas de Servicios y Contacto */
    .services-grid {
        grid-template-columns: 1fr; /* Fuerza una sola columna en el celular */
    }
    .contact-card {
        width: 100%;
        max-width: 320px; /* Evita que desborde a los costados */
    }

    /* 5. Galería (Ajuste de la Tarjeta) */
    .apt-card {
        height: 400px; /* Tarjeta un poco más baja en celular para que no sea infinita */
    }
    .apt-overlay h2 {
        font-size: 1.8rem;
    }
}
/* =========================================
   BOTÓN DE ADMINISTRACIÓN SECRETO
   ========================================= */
.btn-admin {
    background-color: #1a1a1a;
    color: var(--color-naranja) !important;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid var(--color-naranja);
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-admin:hover {
    background-color: var(--color-naranja);
    color: var(--color-texto-blanco) !important;
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.4);
}

@media (max-width: 768px) {
    .btn-admin {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}
/* =========================================
   ESTILOS DE LA PÁGINA: ADMINISTRACIÓN
   ========================================= */

.admin-body {
    background-color: #F4F6F8; /* Un gris muy suave y profesional para trabajar */
    margin: 0;
    min-height: 100vh;
}

/* --- LOGIN SCREEN --- */
.admin-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: linear-gradient(rgba(44, 40, 37, 0.8), rgba(44, 40, 37, 0.9)), url('../img/hero-inicio.jpg');
    background-size: cover;
}

.login-box {
    background: var(--color-texto-blanco);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    height: 100px;
    margin-bottom: 20px;
}

.login-box h2 {
    color: var(--color-marron);
    margin-bottom: 5px;
}

.login-box p {
    color: #666;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-oscuro);
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--fuente-principal);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--color-naranja);
}

.error-message {
    color: #d32f2f;
    font-size: 0.85rem;
    background-color: #fde0e0;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.btn-ingresar {
    width: 100%;
    background-color: var(--color-naranja);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--fuente-principal);
    transition: background-color 0.3s ease;
}

.btn-ingresar:hover {
    background-color: #d95a1e;
}

.back-to-site {
    display: inline-block;
    margin-top: 20px;
    color: var(--color-azul);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

/* --- DASHBOARD SCREEN --- */
.admin-header {
    background-color: var(--color-oscuro);
    color: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.admin-header-left h2 {
    font-family: var(--fuente-principal);
    font-size: 1.4rem;
}

.admin-header-left span {
    color: var(--color-naranja);
    font-weight: 300;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-email-display {
    font-size: 0.9rem;
    color: #ccc;
}

.btn-logout {
    background: transparent;
    border: 1px solid #555;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #d32f2f;
    border-color: #d32f2f;
}

.admin-main {
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-top-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stats-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 200px;
    border-left: 4px solid var(--color-marron);
}

.stats-card h3 {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-oscuro);
}

.stat-number.pending {
    color: #d32f2f; /* Rojo para saber que falta cobrar */
}

.btn-action-main {
    background-color: var(--color-azul);
    color: white;
    border: none;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(18, 136, 206, 0.3);
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.btn-action-main:hover {
    background-color: #0f73ae;
    transform: translateY(-3px);
}

/* --- CALENDARIO TIMELINE --- */
.timeline-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 25px;
    overflow-x: auto; /* Para poder scrollear horizontalmente si hay muchos días */
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.timeline-header h3 {
    color: var(--color-marron);
}

.mes-actual {
    font-weight: 600;
    color: var(--color-naranja);
    font-size: 1.1rem;
}

.apt-row {
    margin-bottom: 30px;
}

.apt-label {
    font-weight: 700;
    color: var(--color-oscuro);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.apt-track {
    background-color: #f8f9fa;
    border-radius: 8px;
    height: 80px;
    position: relative;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.empty-track-msg {
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
}

/* Adaptabilidad del admin */
@media (max-width: 768px) {
    .dashboard-top-bar {
        flex-direction: column;
    }
    .btn-action-main {
        width: 100%;
    }
    .admin-header {
        flex-direction: column;
        gap: 15px;
    }
}
/* =========================================
   MODAL DE RESERVAS Y LÍNEA DE TIEMPO
   ========================================= */

/* Fondo oscuro difuminado */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* Caja blanca del formulario */
.modal-content {
    background: white;
    width: 100%;
    max-width: 650px;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-claro);
    padding-bottom: 15px;
}

.modal-header h3 {
    color: var(--color-marron);
    font-size: 1.4rem;
}

.btn-close-modal {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.btn-close-modal:hover { color: #d32f2f; }

/* Grilla del formulario */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row .input-group {
    flex: 1;
    margin-bottom: 0;
}

.form-reserva textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--fuente-principal);
    resize: vertical;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-ghost {
    background: transparent;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
}

.btn-ghost:hover { background: #f4f4f4; }

.btn-primary-save {
    background: var(--color-naranja);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(242, 101, 34, 0.3);
}

.btn-primary-save:hover { background: #d95a1e; transform: translateY(-2px); }

/* --- TARJETAS DE RESERVA EN LA LÍNEA DE TIEMPO --- */
.apt-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 15px 10px !important;
    height: auto !important;
    min-height: 120px;
}

.reserva-card {
    min-width: 240px;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-left: 5px solid #ccc;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reserva-card.pagada { border-left-color: #4caf50; } /* Verde: Todo ok */
.reserva-card.con-saldo { border-left-color: #ff9800; } /* Naranja: Debe saldo */

.reserva-card h4 {
    color: var(--color-oscuro);
    font-size: 1.05rem;
    margin: 0;
}

.res-fechas { color: var(--color-azul); font-weight: 600; font-size: 0.85rem;}
.res-detalle { color: #666; font-size: 0.85rem; }
.res-dinero { font-weight: 700; margin-top: 5px; }
.txt-verde { color: #2e7d32; }
.txt-naranja { color: #e65100; }
/* --- NUEVOS COLORES DE ESTADO (Reemplaza los anteriores de saldo) --- */
.reserva-card {
    cursor: pointer; /* Indicar que es clickeable */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.reserva-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.estado-confirmada { border-left-color: #4caf50; } /* VERDE */
.estado-espera { border-left-color: #ffc107; } /* AMARILLO */
.estado-cancelada { border-left-color: #f44336; opacity: 0.7; } /* ROJO */

/* Botón Eliminar */
.btn-danger {
    background: transparent;
    border: 1px solid #f44336;
    color: #f44336;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-right: auto; /* Lo empuja a la izquierda */
}
.btn-danger:hover {
    background: #f44336;
    color: white;
}

/* Select del filtro de mes */
.select-mes {
    padding: 8px 15px;
    font-size: 1.1rem;
    font-family: var(--fuente-principal);
    font-weight: 600;
    color: var(--color-naranja);
    border: 2px solid var(--color-naranja);
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    outline: none;
}
/* =========================================
   ADAPTABILIDAD MÓVIL (DASHBOARD Y MODAL)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Login: Ajustamos la caja de inicio de sesión */
    .login-box {
        padding: 25px 20px;
        width: 90%;
    }

    /* 2. Header del Admin: Ponemos el botón de salir abajo del mail */
    .admin-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }
    .admin-header-right {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .btn-logout {
        width: 100%;
        padding: 10px;
    }

    /* 3. Panel Central: Las estadísticas apiladas una sobre otra */
    .admin-main {
        padding: 20px 5%;
    }
    .dashboard-top-bar {
        flex-direction: column;
        gap: 15px;
    }
    .stats-card {
        width: 100%;
    }
    .btn-action-main {
        width: 100%;
        padding: 15px;
    }

    /* 4. Calendario: El selector de mes a pantalla completa */
    .timeline-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    .select-mes {
        width: 100%;
        text-align: center;
    }
    .apt-track {
        padding: 10px !important;
    }
    .reserva-card {
        min-width: 220px; /* Un poquito más angostas para que se asome la siguiente y el usuario sepa que puede deslizar (swipe) */
    }

    /* 5. Modal Mágico: Convertimos las columnas en filas fáciles de tocar */
    .modal-content {
        padding: 20px 15px;
        width: 95%;
        margin: 10px;
        max-height: 95vh;
    }
    .form-row {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
    }
    
    /* 6. Botones del Pop-up: Gigantes para el dedo pulgar */
    .modal-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        margin-top: 15px;
    }
    .modal-footer div {
        display: flex;
        flex-direction: column; /* Apila Guardar y Cancelar */
        gap: 10px;
        width: 100%;
    }
    .btn-danger, .btn-ghost, .btn-primary-save {
        width: 100%;
        margin: 0;
        text-align: center;
        padding: 12px;
        font-size: 1rem;
    }
}
/* =========================================
   ESTILOS BOTÓN PDF
   ========================================= */
.timeline-filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-pdf {
    background-color: var(--color-oscuro);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: var(--fuente-principal);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-pdf:hover {
    background-color: #444;
    transform: translateY(-2px);
}

/* Modificación para celulares */
@media (max-width: 768px) {
    .timeline-filters {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .select-mes {
        width: 100%;
    }
    .btn-pdf {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}