/* --- 1. Estilos Base y Fuentes --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Texto Secundario: Aileron */
    font-family: 'Aileron', sans-serif;
    color: #ffffff;
    line-height: 1.6;
    background-color: #0D0F1A;
}

/* --- 2. Botón CTA (Reutilizable) --- */
.btn-cta {
    /* Texto Alternativo: Montserrat */
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    background-color: #f39c12;
    color: #222;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
    position: relative;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.btn-cta:hover {
    background-color: #e67e22;
}

/* --- 3. Estilos de la Página Principal (index.html) --- */
.hero {
    height: 100vh;
    /* Ruta Relativa Corregida */
    background-image: url('../images/img1.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px 5%;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.main-header .logo img {
    height: 80px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    /* Texto Alternativo: Montserrat */
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    color: #f0f0f0;
    font-weight: 700;
    font-size: 16px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #f39c12;
}
/* Clase 'active' para el nav */
.main-nav a.active {
    color: #f39c12;
    font-weight: 900;
}

.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    /* Texto Alternativo: Montserrat (Corregido) */
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.hero-content p {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 30px;
    /* Usa Aileron del body */
}

/* --- 4. Estilos para Páginas Internas (header-interno) --- */
body.pagina-interna {
    background-color: #0D0F1A;
}

.header-interno {
    background-color: #0D0F1A;
    padding: 20px 5%;
    border-bottom: 1px solid #2a2d40;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.header-interno .logo img {
    height: 60px; /* Tamaño corregido */
}

/* --- 5. Estilos Sección "Sobre" --- */
#sobre {
    background-color: #0D0F1A;
    padding: 100px 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.image-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.image-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.image-collage img:hover {
    transform: scale(1.03);
}

.image-collage .img-main {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    height: 300px;
}

.image-collage .img-secondary-1 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    height: 200px;
}

.image-collage .img-secondary-2 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    height: 200px;
}

.text-content h2 {
    /* Texto Alternativo: Montserrat */
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #c0c0c0;
    margin-bottom: 20px;
    /* Usa Aileron del body */
}

.text-content p:last-child {
    margin-bottom: 0;
    font-weight: 700;
    color: #f0f0f0;
}

/* --- 6. Estilos Sección "Servicios" --- */
.service-section {
    padding: 80px 5%;
    background-color: #f0f0f0;
    color: #222;
    text-align: center;
}

.section-title {
    /* Texto Alternativo: Montserrat */
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0D0F1A;
    text-transform: uppercase;
}

.service-description {
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    /* Usa Aileron del body */
}

.service-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service-card {
    flex-basis: calc(33.33% - 20px);
    max-width: 350px;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.service-card:first-child img {
    filter: grayscale(100%);
}

.service-card:nth-child(2) img,
.service-card:last-child img {
    filter: none;
}

.card-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #0D0F1A;
    color: #fff;
}

.service-name {
    font-weight: 400;
    font-size: 1.1rem;
}

.service-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: #f39c12;
}

/* --- 7. Estilos Sección "Equipo" --- */
#equipo {
    background-color: #0D0F1A;
    padding: 100px 5%;
    display: flex;
    align-items: center;
    gap: 50px;
    min-height: 80vh;
}

.titulo-vertical {
    /* Texto Alternativo: Montserrat */
    font-family: 'Montserrat', sans-serif;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 10px;
    white-space: nowrap;
}

.equipo-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 300px;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 5px;
    scrollbar-width: thin;
    scrollbar-color: #f39c12 #1A1C2A;
}

.equipo-grid::-webkit-scrollbar {
    height: 8px;
}
.equipo-grid::-webkit-scrollbar-track {
    background: #1A1C2A;
    border-radius: 4px;
}
.equipo-grid::-webkit-scrollbar-thumb {
    background-color: #f39c12;
    border-radius: 4px;
}
.equipo-grid::-webkit-scrollbar-thumb:hover {
    background-color: #e67e22;
}

.miembro-card {
    background-color: #1A1C2A;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.miembro-card:hover {
    transform: translateY(-5px);
}

.miembro-imagen {
    position: relative;
}

.miembro-imagen img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.miembro-imagen .nombre {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

.miembro-sociales {
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.miembro-sociales a {
    color: #c0c0c0;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.miembro-sociales a:hover {
    color: #f39c12;
}

/* --- 8. Estilos Sección "Ubicación" --- */
.location-section {
    padding: 100px 5%;
    background-color: #0D0F1A;
    color: #ffffff;
    text-align: center;
}

.location-section .container-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.location-section .section-title {
    margin-bottom: 50px;
    color: #ffffff;
    /* Usa Montserrat heredado */
}

.ubicacion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.ubicacion-info-local {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.ubicacion-info-local .location-map-container {
    width: 100%;
    margin: 0 auto;
}

.ubicacion-info-local .map-placeholder {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.ubicacion-info-local .map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ubicacion-info-local .map-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    padding: 20px;
    text-align: left;
}

.ubicacion-info-local .map-info-overlay p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    /* Usa Aileron del body */
}

.ubicacion-info-local .social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.ubicacion-info-local .social-icons img {
    width: 25px;
    height: 25px;
    filter: invert(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.ubicacion-info-local .social-icons a:hover img {
    opacity: 0.8;
    transform: scale(1.1);
}

.ubicacion-mapa-google {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.ubicacion-mapa-google iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- 9. Componentes Globales (WhatsApp y Admin) --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    transition: transform 0.3s ease;
}

.whatsapp-float img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.admin-link {
    /* position: absolute lo posiciona en la esquina del .hero */
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 10; 
    
    background-color: #f39c12; 
    color: #222;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.admin-link:hover {
    transform: scale(1.1);
    background-color: #e67e22;
}


/* --- 10. Estilos del Modal (Agregados) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    /* Usa Aileron del body */
}

.modal-content {
    background-color: #0d0d0d;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    position: relative;
}

.modal-content h2 {
    /* Texto Alternativo: Montserrat */
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
    color: #ccc;
    /* Usa Aileron del body */
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: #ffffff;
    box-sizing: border-box;
    font-size: 16px;
    /* Usa Aileron del body */
}

.horario-selector {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.horario-selector input[type="radio"] {
    display: none;
}

.horario-selector label {
    background-color: #2a2a2a;
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    min-width: 60px;
    transition: background-color 0.2s;
}

.horario-selector input[type="radio"]:checked + label {
    background-color: #d1a355;
    color: #0d0d0d;
    font-weight: 700;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: #ffffff;
    text-decoration: none;
}

.btn-modal-action {
    /* Texto Alternativo: Montserrat */
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: #d1a355;
    color: #0d0d0d;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.btn-modal-action:hover {
    background-color: #e0b365;
}

#successModal .modal-content {
    text-align: center;
    padding: 50px 20px;
}

#successModal .modal-content h2 {
    font-size: 24px;
    color: #d1a355;
    margin-bottom: 30px;
    /* Usa Montserrat heredado */
}

#successModal .logo-apolo {
    display: block;
    margin: 0 auto 20px;
    font-size: 40px;
    /* Texto Principal: Boston Angel (reemplazado) */
    font-family: 'Pinyon Script', cursive;
    color: #d1a355;
    line-height: 1;
}

#successModal .btn-modal-action {
    max-width: 200px;
    margin: 20px auto 0;
    display: block;
}


/* --- 11. Estilos Sección "Productos" (Estilo Wii/Cover Flow) --- */

#producto-catalogo {
    padding: 80px 0 50px 0; 
    background-color: #0D0F1A;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

#producto-catalogo .section-title {
    color: #ffffff;
    margin-bottom: 40px;
}

.catalogo-container {
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.catalogo-slider {
    display: flex; 
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slider-item {
    width: 220px; 
    height: 280px; 
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: scale(0.8);
    opacity: 0.5;
    background-color: transparent;
}

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


.slider-item.active {
    transform: scale(1.1); 
    opacity: 1;
    border: 3px solid #f39c12;
}

.catalogo-info {
    max-width: 500px; 
    margin: 40px auto 0 auto;
    padding: 0 20px;
    min-height: 180px; 
}

.catalogo-info h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem; 
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.catalogo-info span {
    font-size: 1.5rem; 
    font-weight: 700;
    color: #f39c12;
    display: block;
    margin-bottom: 15px;
}

.catalogo-info p {
    font-size: 1rem; 
    line-height: 1.6;
    color: #c0c0c0;
    margin-bottom: 25px;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(calc(280px / 2 - 50%)); 
    z-index: 10;
    
    background-color: #f39c12;
    color: #222;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-arrow:hover {
    transform: translateY(calc(280px / 2 - 50%)) scale(1.1);
}

.nav-arrow:disabled {
    background-color: #333; 
    cursor: not-allowed;
    opacity: 0.5;
}

#prev-btn {
    left: 30px; 
}

#next-btn {
    right: 30px; 
}


/* --- 12. Media Queries (Diseño Responsivo) --- */

/* Estilos para 992px de ancho o menos (Tablets) */
@media (max-width: 992px) {
    /* Servicios */
    .service-list {
        gap: 20px;
    }
    .service-card {
        flex-basis: calc(50% - 10px);
    }
    
    /* Ubicación */
    .ubicacion-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .ubicacion-mapa-google {
        height: 450px;
        min-height: auto;
    }
    .ubicacion-info-local .map-placeholder {
        height: 400px;
    }
}

/* Estilos para 768px de ancho o menos (Móviles) */
@media (max-width: 768px) {
    
    /* Hero */
    .hero-content h1 {
        font-size: 3rem; 
    }

    /* Header Principal (index.html) */
    .hero .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .hero .main-nav {
        width: 100%;
    }
    .hero .main-nav ul {
        flex-direction: column;
        gap: 15px; 
        width: 100%;
    }
    
    /* 👇 ==========================================
      👇 ¡AQUÍ ESTÁ LA CORRECCIÓN DEL BOTÓN!
      👇 ==========================================
    */
    .hero .main-header .btn-cta {
        display: none; /* <-- ¡AQUÍ! Se oculta en móvil */
    }
    /* ========================================== */

    /* Header Interno (Otras páginas) */
    .header-interno {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 10px;
    }
    .header-interno .main-nav {
        width: 100%; 
    }
    .header-interno .main-nav ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
        width: 100%; 
    }
    .header-interno .btn-cta {
        margin-top: 15px;
        width: 100%;
        text-align: center;
    }

    /* Sección Sobre */
    #sobre {
        grid-template-columns: 1fr;
        padding: 60px 5%;
        gap: 40px;
    }
    .text-content h2,
    .section-title { /* Títulos de sección más pequeños en móvil */
        font-size: 2rem;
    }
    .image-collage .img-main {
        height: 220px;
    }
    .image-collage .img-secondary-1,
    .image-collage .img-secondary-2 {
        height: 150px;
    }
    
    /* Sección Servicios */
    .service-section {
        padding: 50px 5%;
    }
    .service-card {
        flex-basis: 100%;
        max-width: 100%;
    }
    .service-card img {
        height: 250px;
    }
    
    /* Sección Equipo */
    #equipo {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .titulo-vertical {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 2rem;
        letter-spacing: 5px;
    }
    .equipo-grid {
        grid-auto-columns: 250px;
        width: 100%;
    }
    .miembro-imagen img {
        height: 300px;
    }

    /* Sección Ubicación */
    .location-map-container {
        padding: 0 10px;
    }
    .map-placeholder,
    .map-iframe-wrapper {
        height: 350px;
    }

    /* Modal */
    .modal-content {
        margin: 5% auto; 
    }

    /* Botones Flotantes */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .admin-link {
        bottom: 20px;
        left: 20px;
        width: 50px; 
        height: 50px;
        font-size: 20px;
    }

    /* Sección Productos (Móvil) */
    .catalogo-slider {
        gap: 20px;
        transform: translateX(25%);
    }
    .slider-item {
        width: 140px;  /* <- "Cuadrito" */
        height: 140px; /* <- "Cuadrito" */
        background-color: transparent; 
    }
    .slider-item img {
        object-fit: cover; 
        padding: 0; 
    }
    .catalogo-info {
        min-height: 160px; 
    }
    .catalogo-info h2 {
        font-size: 1.5rem;
    }
    .catalogo-info span {
        font-size: 1.2rem;
    }
    .catalogo-info p {
        font-size: 0.9rem;
    }
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        /* Centrado vertical para 140px */
        transform: translateY(calc(140px / 2 - 50%));
    }
    .nav-arrow:hover {
        /* Centrado vertical para 140px */
        transform: translateY(calc(140px / 2 - 50%)) scale(1.1);
    }
    #prev-btn {
        left: 10px;
    }
    #next-btn {
        right: 10px;
    }
}

/* --- 13. Estilos para Login de Administrador (NUEVO) --- */

.login-section {
    /* Centrar vertical y horizontalmente */
    min-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0D0F1A;
    padding: 20px;
}

.login-card {
    background-color: #1A1C2A; /* Un tono más claro que el fondo */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    text-align: center;
    border: 1px solid #2a2d40;
}

.login-icon {
    font-size: 3rem;
    color: #f39c12;
    margin-bottom: 20px;
}

.login-card h2 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

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

/* Estilos de los Inputs */
.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #f39c12;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: #0D0F1A; /* Fondo oscuro para el input */
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Aileron', sans-serif;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #f39c12; /* Borde dorado al escribir */
}

.btn-login {
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.forgot-pass {
    display: block;
    margin-top: 20px;
    color: #666;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-pass:hover {
    color: #f39c12;
}

/* Ajuste Responsive para Login */
@media (max-width: 768px) {
    .login-card {
        padding: 30px 20px;
    }
}
/* --- 14. Estilos del Panel de Control (Dashboard) --- */

.dashboard-section {
    padding: 50px 5%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
}

.dashboard-header {
    margin-bottom: 40px;
}
.dashboard-header h1 {
    font-family: 'Montserrat', sans-serif;
    color: #f39c12;
    font-size: 2.5rem;
    margin-bottom: 5px;
}
.dashboard-header p {
    color: #c0c0c0;
}

/* Tarjetas de Resumen (KPIs) */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.kpi-card {
    background-color: #1A1C2A;
    padding: 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-left: 4px solid #f39c12; /* Borde decorativo */
}

.kpi-icon {
    background-color: rgba(243, 156, 18, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #f39c12;
}

.kpi-info h3 {
    font-size: 0.9rem;
    color: #c0c0c0;
    font-weight: 400;
    margin-bottom: 5px;
}

.kpi-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
}

/* Botones de Acciones Rápidas */
.section-subtitle {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.action-card {
    background-color: #2a2d40;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid #333;
}

.action-card:hover {
    transform: translateY(-5px);
    background-color: #32364a;
    border-color: #f39c12;
}

.action-card i {
    font-size: 2rem;
    color: #f39c12;
    margin-bottom: 15px;
    display: block;
}

.action-card span {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Tabla de Actividad Reciente */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-header h2 {
    color: #fff;
    font-size: 1.5rem;
}

.view-all {
    color: #f39c12;
    text-decoration: none;
    font-weight: 700;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1A1C2A;
    border-radius: 10px;
    overflow: hidden;
}

table th, table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #2a2d40;
}

table th {
    background-color: #252836;
    color: #f39c12;
    font-weight: 700;
}

table td {
    color: #c0c0c0;
}

.status {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status.confirmada {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.status.pendiente {
    background-color: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

/* Ajustes del Header Admin */
.logo-admin {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-admin img {
    height: 40px;
}
.logo-admin span {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border-left: 1px solid #666;
    padding-left: 10px;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    .actions-grid {
        grid-template-columns: 1fr 1fr;
    }
    .logo-admin span {
        display: none; /* Ocultar texto "Panel Admin" en celular si no cabe */
    }
}
/* --- 15. Estilos para la Agenda (Admin) --- */

.admin-section {
    padding: 40px 5%;
    background-color: #0D0F1A;
    min-height: 100vh;
}

.admin-container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.page-header h1 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    font-size: 2rem;
}

/* Barra de Herramientas */
.agenda-toolbar {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background-color: #1A1C2A;
    padding: 20px;
    border-radius: 10px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    color: #c0c0c0;
    font-weight: 700;
}

.admin-input {
    background-color: #0D0F1A;
    border: 1px solid #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-family: 'Aileron', sans-serif;
}

/* Timeline de Citas */
.agenda-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.time-slot {
    display: flex;
    align-items: stretch; /* Estirar altura */
}

.slot-time {
    width: 100px;
    color: #f39c12;
    font-weight: 700;
    padding-top: 15px; /* Alinear texto con la tarjeta */
    font-size: 1.1rem;
}

.slot-content {
    flex-grow: 1;
    background-color: #1A1C2A;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid #333; /* Borde por defecto */
    transition: transform 0.2s ease;
}

.slot-content:hover {
    transform: translateX(5px);
}

/* Estados de la Cita (Borde Izquierdo) */
.slot-content.confirmed { border-left-color: #2ecc71; } /* Verde */
.slot-content.pending { border-left-color: #f1c40f; }   /* Amarillo */
.slot-content.in-process { border-left-color: #3498db; } /* Azul */
.slot-content.free { 
    border-left-color: #666; 
    background-color: transparent;
    border: 1px dashed #333;
    color: #666;
}

.cita-info h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.cita-info p {
    color: #c0c0c0;
    font-size: 0.9rem;
}

.cita-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Badges de Estado */
.status-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}
.status-badge.confirmed { background-color: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.status-badge.pending { background-color: rgba(241, 196, 15, 0.2); color: #f1c40f; }
.status-badge.process { background-color: rgba(52, 152, 219, 0.2); color: #3498db; }

/* Botones de Acción (Editar/Borrar) */
.action-btn {
    background: none;
    border: none;
    color: #c0c0c0;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s;
}
.action-btn:hover { color: #fff; }
.action-btn.delete:hover { color: #e74c3c; }

/* Botón para slot libre */
.btn-add-fast {
    background: none;
    border: none;
    color: #2ecc71;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsivo para Agenda */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .agenda-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .slot-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .cita-actions {
        width: 100%;
        justify-content: space-between;
    }
}
/* --- 16. Estilos para Punto de Venta (Caja) --- */

.pos-layout {
    display: grid;
    grid-template-columns: 1fr 350px; /* Catálogo flexible | Ticket fijo */
    gap: 30px;
    height: calc(100vh - 150px); /* Ocupa el resto de la pantalla */
}

/* Columna Izquierda: Catálogo */
.pos-catalog {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pos-tabs {
    display: flex;
    gap: 10px;
}

.pos-tab {
    background-color: #1A1C2A;
    border: 1px solid #333;
    color: #c0c0c0;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.pos-tab.active, .pos-tab:hover {
    background-color: #f39c12;
    color: #222;
    border-color: #f39c12;
}

.pos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    overflow-y: auto; /* Scroll si hay muchos productos */
    padding-right: 5px;
}

.pos-item {
    background-color: #1A1C2A;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.pos-item:hover {
    transform: translateY(-3px);
    border-color: #f39c12;
    background-color: #252836;
}

.pos-item-icon {
    font-size: 2.5rem;
    color: #f39c12;
    margin-bottom: 10px;
}

.pos-item-info h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 5px;
}

.pos-item-info span {
    color: #2ecc71; /* Verde para el precio */
    font-weight: 700;
}


/* Columna Derecha: Ticket */
.pos-ticket-panel {
    background-color: #fff; /* Ticket blanco para contraste */
    color: #222;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.ticket-header {
    background-color: #f39c12;
    padding: 15px;
    text-align: center;
}

.ticket-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #222;
    font-weight: 700;
}

.ticket-items {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f8f9fa;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #ccc;
    padding: 10px 0;
}

.t-desc p {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
}

.t-desc small {
    color: #666;
}

.t-price {
    font-weight: 700;
    color: #333;
}

.t-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    margin-left: 10px;
}

.ticket-footer {
    padding: 20px;
    background-color: #fff;
    border-top: 2px solid #eee;
}

.ticket-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 700;
}

.total-amount {
    color: #2ecc71; /* Verde dinero */
}

.btn-checkout {
    width: 100%;
    text-align: center;
    display: block;
    font-size: 1.1rem;
}

/* Responsivo para POS */
@media (max-width: 992px) {
    .pos-layout {
        grid-template-columns: 1fr; /* Apilar columnas */
        height: auto;
    }
    .pos-ticket-panel {
        min-height: 400px;
    }
}
/* --- 17. Estilos para Control de Gastos (NUEVO) --- */

.gastos-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Formulario | Tabla */
    gap: 30px;
    align-items: start;
}

/* Tarjeta del Formulario */
.gastos-form-card {
    background-color: #1A1C2A;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-top: 4px solid #e74c3c; /* Color rojo para gastos */
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admin-input {
    width: 100%;
    padding: 12px;
    background-color: #0D0F1A;
    border: 1px solid #333;
    border-radius: 5px;
    color: #fff;
    font-family: 'Aileron', sans-serif;
    font-size: 1rem;
}

.admin-input:focus {
    outline: none;
    border-color: #f39c12;
}

.full-width {
    width: 100%;
    margin-top: 10px;
}

/* Panel de Historial */
.gastos-history-panel {
    background-color: #1A1C2A;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.history-header h2 {
    color: #fff;
    font-size: 1.3rem;
}

.total-expenses {
    background-color: #0D0F1A;
    padding: 10px 15px;
    border-radius: 5px;
    color: #c0c0c0;
}

/* Tabla Específica de Gastos */
.table-gastos {
    width: 100%;
    border-collapse: collapse;
}

.table-gastos th {
    text-align: left;
    padding: 10px;
    color: #f39c12;
    border-bottom: 2px solid #333;
    font-size: 0.9rem;
}

.table-gastos td {
    padding: 12px 10px;
    border-bottom: 1px solid #2a2d40;
    color: #c0c0c0;
    font-size: 0.95rem;
}

.amount-negative {
    color: #e74c3c !important; /* Rojo para números negativos */
    font-weight: 700;
}

/* Badges de Categoría */
.badge-cat {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

.badge-cat.insumos { background-color: #3498db; }
.badge-cat.servicios { background-color: #f39c12; color: #000; }
.badge-cat.mtto { background-color: #95a5a6; }
.badge-cat.ads { background-color: #9b59b6; }

/* Responsivo para Gastos */
@media (max-width: 992px) {
    .gastos-layout {
        grid-template-columns: 1fr; /* Apilar en vertical */
    }
}

@media (max-width: 768px) {
    .form-row-2 {
        grid-template-columns: 1fr; /* Inputs uno debajo del otro */
        gap: 0;
    }
}
/* --- 18. Estilos para Reportes Financieros (NUEVO) --- */

/* Toolbar de Reportes */
.report-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1A1C2A;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.report-actions {
    display: flex;
    gap: 15px;
}

.btn-outline {
    background: transparent;
    border: 2px solid #f39c12;
    color: #f39c12;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #f39c12;
    color: #222;
}

/* Colores Específicos para Tarjetas */
.income-text { color: #2ecc71; }
.expense-text { color: #e74c3c; }
.balance-text { color: #3498db; }

.kpi-icon.income { color: #2ecc71; background-color: rgba(46, 204, 113, 0.2); }
.kpi-icon.expense { color: #e74c3c; background-color: rgba(231, 76, 60, 0.2); }
.kpi-icon.balance { color: #3498db; background-color: rgba(52, 152, 219, 0.2); }

/* Gráfica de Barras Simulada (CSS) */
.chart-container {
    background-color: #1A1C2A;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.chart-container h2 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-align: center;
}

.simple-bar-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 250px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.chart-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 15%;
    height: 100%;
    justify-content: flex-end;
}

.bar {
    width: 100%;
    border-radius: 5px 5px 0 0;
    position: relative;
    transition: height 1s ease;
    cursor: pointer;
}

/* Colores de las barras */
.income-bar { background-color: #2ecc71; }
.expense-bar { background-color: #e74c3c; }
.balance-bar { background-color: #3498db; }

.label {
    margin-top: 10px;
    color: #c0c0c0;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Tooltip de la barra (aparece al pasar el mouse) */
.bar .tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.bar:hover .tooltip {
    opacity: 1;
}

/* Tabla de Reportes */
.table-report {
    width: 100%;
    border-collapse: collapse;
}
.table-report th {
    text-align: left;
    padding: 15px;
    background-color: #252836;
    color: #f39c12;
}
.table-report td {
    padding: 15px;
    border-bottom: 1px solid #2a2d40;
    color: #c0c0c0;
}

.type-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.type-badge.in { background-color: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.type-badge.out { background-color: rgba(231, 76, 60, 0.2); color: #e74c3c; }

.amount-positive { color: #2ecc71; font-weight: 700; }

/* Responsivo */
@media (max-width: 768px) {
    .report-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .simple-bar-chart {
        height: 200px;
    }
    .chart-group {
        width: 25%; /* Barras más anchas en móvil */
    }
}