/* === GENERAL === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

button {
    font-family: inherit;
}

/* === HEADER === */
header {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* === NAV DESKTOP === */
nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

nav a:hover {
    color: #ffc107;
}

/* === SESSION BUTTON === */
.session {
    margin-left: 1rem;
}

.btn-session {
    background-color: #ffc107;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
}

.btn-session:hover {
    background-color: #e0a800;
}

/* === USER ACCOUNT === */
.user-account {
    position: relative;
    margin-left: 1rem;
}

.account-btn {
    background-color: #ffc107;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.account-btn:hover {
    background-color: #e0a800;
}

.account-btn img {
    width: 20px;
    height: 20px;
}

.account-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    padding: 0.5rem 0;
    z-index: 1000;
    display: none;
}

.account-menu.active {
    display: block;
}

.account-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.account-menu a:hover {
    background-color: #f5f5f5;
}

.account-menu hr {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid #eee;
}

/* === HAMBURGER ICON === */
.menu-icon {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    z-index: 20;
}

.menu-icon img {
    width: 30px;
    height: 30px;
}

/* === MOBILE MENU === */
.mobile-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    flex-direction: column;
    gap: 0.8rem;
    animation: fadeIn 0.3s ease-in-out;
    z-index: 30;
}

.mobile-menu a {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.mobile-menu.active {
    display: flex;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('../images/index/banner.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 4rem;
    text-align: left;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 700px;
    transition: all 0.4s ease-in-out;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-content h1 span {
    color: #ffc107;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn.primary {
    background-color: #ffc107;
    color: black;
}

.btn.primary:hover {
    background-color: #e0a800;
}

.btn.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn.secondary:hover {
    background-color: white;
    color: black;
}

/* === ANIMATION === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {

    nav,
    .session,
    .user-account {
        display: none !important;
    }

    .menu-icon {
        display: block;
        margin-left: auto;
    }



    header {
        flex-direction: row;
    }

    .hero {
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 2rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content h2 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-content {
        align-items: center;
    }

    .buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .logo img {
        height: 40px;
    }
}


.habitaciones-destacadas {
    background-color: #f8f9fa;
    padding: 4rem 2rem;
}

.habitaciones-destacadas h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #343a40;
}

.habitaciones-grupo {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.grupo h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #495057;
    text-align: center;
}

/* Grid específico para habitaciones destacadas en el índice */
.habitaciones-destacadas .grid-habitaciones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ajustes para cards en la página de inicio */
.habitaciones-destacadas .hab-card {
    max-width: 350px;
    margin: 0 auto;
}

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

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}


.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    height: 320px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.card h4 {
    font-size: 1.1rem;
    margin: 1rem 1rem 0.5rem;
    color: #212529;
}

.card p {
    font-size: 0.9rem;
    margin: 0 1rem 1rem;
    color: #6c757d;
    flex-grow: 1;
}

/* Responsive */


/* Estilos para gestión de imágenes */
.imagenes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.imagen-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.imagen-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.imagen-controls {
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.orden-input {
    width: 50px;
    padding: 0.25rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.btn-delete-image {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-delete-image:hover {
    background-color: #c82333;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.upload-area.dragover {
    border-color: #ffc107;
    background-color: #fff3cd;
}

.btn-card {
    display: inline-block;
    margin: 0 1rem 1rem;
    padding: 0.5rem 1rem;
    background-color: #007b5e;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn-card:hover {
    background-color: #005e47;
}

/* ====== FUENTES ====== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Merienda&display=swap');
/* ========================== */
/* ESTILOS PARA EL FOOTER */
/* ========================== */

.footer {
    margin-top: 4rem;
    background-color: #f4f4f4;
    padding: 40px 20px 20px;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    gap: 20px;
}

.footer-col {
    flex: 1 1 200px;
    min-width: 200px;
}

.logo-col {
    max-width: 250px;
}

.footer-logo {
    width: 200px;
    margin-bottom: 10px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.footer-col ul li a:hover {
    text-decoration: underline;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.5;
}

.social-icons a {
    margin-right: 10px;
    font-size: 20px;
    text-decoration: none;
    color: #333;
}

.social-icons a:hover {
    color: #555;
}

.footer-bottom {
    border-top: 1px solid #ddd;
    margin-top: 30px;
    padding-top: 10px;
    text-align: center;
    font-size: 13px;
    color: #666;
}

/* Para pantallas menores a 768px */
@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-col {
        width: 100%;
        margin-bottom: 30px;
    }
}

/* Para pantallas menores a 480px */
@media screen and (max-width: 480px) {
    .footer-bottom {
        font-size: 12px;
    }
}

.hero-content {
    animation: slideFadeIn 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

.btn:hover,
.btn-session:hover,
.btn-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card {
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 0.6s ease forwards;
}

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

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

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

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

.habitaciones {
    margin-top: 8rem;
    padding: 4rem 1rem;
    background-color: #f9f9f9;
    margin-bottom: 6rem;
}

.titulo-seccion {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.grid-habitaciones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.hab-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

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

.hab-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

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

.hab-card:hover .hab-image img {
    transform: scale(1.02);
}

.hab-image .estado-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hab-content {
    padding: 24px;
    font-family: 'Poppins', sans-serif;
}

.hab-nombre {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    line-height: 1.3;
    height: 3.9rem; /* Altura fija para 2 líneas (1.5rem * 1.3 * 2) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hab-servicios-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.hab-servicio-pill {
    background: #f9b600;
    color: #1a1a1a;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border: none;
    transition: all 0.2s ease;
}

.hab-servicio-pill:hover {
    background: #e6a500;
    transform: translateY(-1px);
}

.hab-servicio-pill.more {
    background: #6c757d;
    color: white;
}

.hab-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.hab-precio-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hab-precio-valor {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.hab-precio-texto {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.hab-btn-action {
    background-color: #1a1a1a;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid #1a1a1a;
}

.hab-btn-action:hover {
    background-color: #f9b600;
    color: #1a1a1a;
    border-color: #f9b600;
    transform: translateY(-2px);
}

/* ========================== */
/* ESTILOS PARA DETALLE DE HABITACIÓN */
/* ========================== */

.detalle-habitacion {
    margin-top: 8rem;
    padding: 2rem 1rem;
    background-color: #f9f9f9;
    min-height: 80vh;
}

.galeria-habitacion {
    margin-bottom: 3rem;
}

.imagen-principal {
    width: 100%;
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.imagen-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.imagen-principal img:hover {
    transform: scale(1.02);
}

.imagenes-miniatura {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.miniatura {
    width: 80px;
    height: 60px;
    border-radius: 0.5rem;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.miniatura:hover,
.miniatura.active {
    border-color: #ffc107;
    transform: scale(1.05);
}

.info-habitacion {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.detalle-info h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.descripcion {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.caracteristicas {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.caracteristica {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.caracteristica i {
    color: #ffc107;
    font-size: 1.1rem;
}

.servicios h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
}

.lista-servicios {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.lista-servicios li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.lista-servicios i {
    color: #28a745;
    font-size: 0.9rem;
}

.precio-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 2rem;
}

.precio {
    text-align: center;
    margin-bottom: 2rem;
}

.precio-valor {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
}

.precio-texto {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.btn-reservar {
    width: 100%;
    background-color: #ffc107;
    color: #000;
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.btn-reservar:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.btn-volver {
    display: block;
    text-align: center;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-volver:hover {
    color: #333;
}

/* Responsive para detalle de habitación */
@media (max-width: 768px) {
    .detalle-habitacion {
        margin-top: 6rem;
        padding: 1rem;
    }

    .info-habitacion {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detalle-info h1 {
        font-size: 2rem;
    }

    .imagen-principal {
        height: 300px;
    }

    .caracteristicas {
        flex-direction: column;
        gap: 1rem;
    }

    .lista-servicios {
        grid-template-columns: 1fr;
    }

    .precio-card {
        position: static;
    }
    
    .hab-content {
        padding: 20px;
    }
    
    .hab-nombre {
        font-size: 1.2rem;
        height: 3.12rem; /* Altura fija para 2 líneas en móvil (1.2rem * 1.3 * 2) */
    }
    
    .hab-image {
        height: 200px;
    }
    
    .hab-footer {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .hab-btn-action {
        text-align: center;
        width: 100%;
    }
    
    .hab-precio-info {
        text-align: center;
    }
}


/* ********* */


.nosotros-hero {
    position: relative;
    background-image: url('../images/nosotros/hero-nosotros.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    padding-top: 7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.nosotros-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.contenido-hero {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1rem;
}

.contenido-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contenido-hero p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.valores {
    padding: 4rem 1rem;
    background-color: #f4f4f4;
}

.grid-valores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card-valor {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.porque-elegirnos {
    padding: 4rem 1rem;
}

.porque-elegirnos h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.grid-razones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.razon img {
    width: 64px;
    margin-bottom: 1rem;
}

.razon h4 {
    margin-bottom: 0.5rem;
    color: #22989c;
}

.razon p {
    font-size: 0.95rem;
}

/* ========================== */
/* ESTILOS PARA SECCIÓN DE UBICACIÓN/MAPA */
/* ========================== */

.ubicacion-mapa {
    padding: 4rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-bottom: 0;
}

.ubicacion-mapa h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 700;
}

.descripcion-ubicacion {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mapa-container {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 3px solid white;
    background: white;
    padding: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mapa-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.mapa-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 12px;
    filter: saturate(1.1) contrast(1.05);
}

/* Responsive para mapa */
@media (max-width: 1024px) {
    .mapa-container iframe {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .ubicacion-mapa {
        padding: 3rem 1rem;
    }
    
    .ubicacion-mapa h2 {
        font-size: 2rem;
    }
    
    .descripcion-ubicacion {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .mapa-container {
        margin: 0 1rem;
        border-width: 2px;
        padding: 4px;
    }
    
    .mapa-container iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .ubicacion-mapa h2 {
        font-size: 1.75rem;
    }
    
    .mapa-container {
        margin: 0 0.5rem;
    }
    
    .mapa-container iframe {
        height: 250px;
    }
}

/* ========================== */
/* ESTILOS PARA PÁGINA DE GESTIÓN */
/* ========================== */

.gestion-container {
    margin-top: 8rem;
    padding: 2rem 1rem;
    min-height: 80vh;
}

.titulo-seccion {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

/* Pestañas */
.tabs-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #ffc107;
    border-bottom-color: #ffc107;
}

.tab-btn:hover {
    color: #ffc107;
}

/* Contenido de pestañas */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Header del CRUD */
.crud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.crud-header h2 {
    margin: 0;
    color: #333;
}

.btn-primary {
    background-color: #ffc107;
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

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

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Tabla */
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.crud-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.crud-table th,
.crud-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.crud-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.crud-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Estados de habitación */
.estado-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: bold;
    text-transform: uppercase;
}

.estado-disponible {
    background-color: #d4edda;
    color: #155724;
}

.estado-ocupada {
    background-color: #f8d7da;
    color: #721c24;
}

.estado-mantenimiento {
    background-color: #fff3cd;
    color: #856404;
}

.estado-limpieza {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Botones de acción */
.btn-action {
    padding: 0.5rem;
    margin: 0 0.25rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit {
    background-color: #007bff;
    color: white;
}

.btn-edit:hover {
    background-color: #0056b3;
}

.btn-images {
    background-color: #17a2b8;
    color: white;
}

.btn-images:hover {
    background-color: #138496;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-delete:hover {
    background-color: #c82333;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #000;
}

/* Formulario */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .gestion-container {
        margin-top: 6rem;
        padding: 1rem;
    }
    
    .crud-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer button {
        width: 100%;
    }
}