:root {
    --black: #000000;
    --white: #ffffff;
    --gray: #f5f5f5;
    --border: 3px solid #000000;
    --shadow: 4px 4px 0px #000000;
    --hover-shadow: 6px 6px 0px #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   1. UTILITIES & LAYOUT (UNIFICADO)
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.form-container-sm {
    max-width: 800px;
}

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Espaciados Universales */
.my-1-5 { margin: 1.5rem 0; }
.mt-1 { margin-top: 1rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-0-5 { margin-bottom: 0.5rem; }
.mb-1 { margin-bottom: 1rem !important; }
.mb-1-5 { margin-bottom: 1.5rem !important; }
.mb-2 { margin-bottom: 2rem !important; }
.mb-3 { margin-bottom: 3rem !important; }

/* Tipografía y Alineación */
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.text-uppercase { text-transform: uppercase; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }
.text-sm { font-size: 0.75rem; }
.text-md { font-size: 0.85rem; }
.text-lg { font-size: 0.95rem; }
.text-xl { font-size: 1.1rem; }

/* Dimensiones e Interacción */
.w-100 { width: 100% !important; }
.h-44 { height: 44px !important; }
.flex-end { display: flex; align-items: flex-end; }
.d-block { display: block; }
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }

.divider-bold {
    border: 2px solid var(--black);
    margin: 2rem 0;
}

.section-title {
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-weight: 900;
}

/* =========================================
   2. NAVIGATION & HEADER
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-bottom: var(--border);
    padding: 1rem 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-item {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
    transition: 0.2s;
}

.nav-item:hover {
    border-bottom: 3px solid var(--black);
}

.main-wrapper {
    flex: 1 0 auto;
    padding: 2rem 0 6rem 0;
    margin-top: 80px;
}

/* =========================================
   3. FORMS & INPUTS
   ========================================= */
.form-card {
    background: var(--white);
    padding: 2rem;
    border: var(--border);
    box-shadow: var(--shadow);
}

.form-section-gray {
    background: var(--gray);
    padding: 1.5rem;
    border: var(--border);
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: var(--border);
    font-family: inherit;
    background: var(--white);
    font-weight: 600;
    box-shadow: 2px 2px 0 var(--black);
    outline: none;
}

.form-control-flat {
    background: var(--white);
    box-shadow: none;
    margin-bottom: 1rem;
}

.form-control:focus {
    box-shadow: 4px 4px 0 var(--black);
}

.form-control[readonly] {
    background-color: var(--gray);
    cursor: not-allowed;
}

/* Contenedores Flex (Tags & Inputs) */
.tags-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.input-btn-group {
    display: flex;
    gap: 0.5rem;
}

.service-pill {
    display: inline-block;
    border: var(--border);
    padding: 0.2rem 0.6rem;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    box-shadow: 2px 2px 0 var(--black);
    margin: 0.2rem;
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.service-pill:has(input:checked) {
    background: var(--gray);
}

/* =========================================
   4. BUTTONS
   ========================================= */
.btn {
    padding: 0.6rem 1.4rem;
    background-color: var(--white);
    color: var(--black);
    border: var(--border);
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: 0.2s;
    text-align: center;
    display: inline-block;
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--hover-shadow);
}

.btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 var(--black);
}

.btn-white {
    background: var(--white);
}

.btn-danger {
    background: #ff4444;
    color: white;
}

.btn-sm {
    padding: 0.2rem 0.6rem;
}

.btn-dark-lg {
    background: var(--black);
    color: var(--white);
    font-size: 1.1rem;
    padding: 1rem;
    width: 100%;
}

.btn-dark-lg:hover {
    color: var(--white);
}

/* =========================================
   5. CARDS & SECTIONS
   ========================================= */
.hero-section {
    display: grid;
    grid-template-columns: 1fr;
    border: var(--border);
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

@media (min-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
    border-bottom: var(--border);
}

@media (min-width: 768px) {
    .hero-image {
        border-bottom: none;
        border-right: var(--border);
    }
}

.hero-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 900;
}

.features-section {
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    border: var(--border);
    box-shadow: var(--shadow);
    padding: 2.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.2s;
}

.feature-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--hover-shadow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    display: block;
}

.search-container {
    background: var(--white);
    padding: 1.5rem;
    border: var(--border);
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    align-items: end;
}

.search-grid-custom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.hotel-card {
    background: var(--white);
    box-shadow: var(--shadow);
    border: var(--border);
    display: flex;
    flex-direction: column;
    transition: 0.2s;
}

.hotel-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--hover-shadow);
}

.hotel-image-card {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: var(--border);
}

.hotel-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hotel-title-card {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hotel-location {
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.hotel-price-card {
    font-size: 1.2rem;
    font-weight: 900;
}

.card-desc {
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================================
   6. DETAILS & ROOM CARDS
   ========================================= */
.detail-card {
    display: block;
    background: var(--white);
    box-shadow: var(--shadow);
    border: var(--border);
    margin-bottom: 3rem;
    overflow: hidden;
}

.gallery-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-bottom: var(--border);
}

@media (min-width: 992px) {
    .gallery-container {
        float: left;
        width: 45%;
        margin-right: 2.5rem;
        margin-bottom: 1.5rem;
        border-right: var(--border);
    }
}

.detail-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

@media (min-width: 992px) {
    .detail-img {
        height: 450px;
    }
}

.thumbnails-grid {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray);
    border-top: var(--border);
    overflow-x: auto;
}

.thumb-img {
    flex: 0 0 100px;
    height: 75px;
    object-fit: cover;
    cursor: pointer;
    border: var(--border);
    opacity: 0.6;
    transition: 0.2s;
}

.thumb-img:hover, .thumb-img.active {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 2px 2px 0 var(--black);
}

.thumbnails-grid::-webkit-scrollbar {
    height: 8px;
}

.thumbnails-grid::-webkit-scrollbar-track {
    background: transparent;
}

.thumbnails-grid::-webkit-scrollbar-thumb {
    background: var(--black);
    border-radius: 4px;
}

.detail-info {
    padding: 2.5rem;
    display: block;
    overflow: visible;
}

.detail-title {
    margin-bottom: 1rem;
    font-weight: 900;
    font-size: 2.2rem;
    text-transform: uppercase;
    overflow-wrap: break-word;
}

.detail-desc {
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 1.05rem;
    overflow-wrap: break-word;
}

.detail-contact {
    background: var(--gray);
    padding: 1.5rem;
    border: var(--border);
    margin-bottom: 2rem;
    overflow-wrap: break-word;
}

.map-container {
    width: 100%;
    height: 350px;
    margin-top: 1.5rem;
    border: var(--border);
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-wrapper {
    border: 3px solid #000;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    margin-bottom: 2rem;
    background: #f5f5f5;
    display: flex; /* Añadido: Evita espacios blancos inferiores que generan los iframes inline */
}

/* Añadido: Reglas específicas para que el iframe ocupe todo el espacio y quite bordes internos */
.map-wrapper iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block;
    margin: 0;
    padding: 0;
}

.room-card {
    display: block;
    padding: 1.5rem;
    border: var(--border);
    margin-bottom: 1rem;
    cursor: pointer;
    background-color: var(--white);
    box-shadow: 2px 2px 0 var(--black);
    transition: 0.2s;
}

.room-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--black);
}

.room-card input[type="radio"] {
    display: none;
}

.room-card:has(input[type="radio"]:checked) {
    background: var(--gray);
}

.room-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.room-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem; /* Añadido: Garantiza una separación forzosa entre el texto y el precio */
}

.room-name {
    display: block;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.room-price {
    font-size: 1.4rem;
    font-weight: 900;
}

/* =========================================
   7. REVIEWS & SURVEYS
   ========================================= */
.review-section {
    margin-top: 3rem;
    border-top: var(--border);
    padding-top: 3rem;
}

.review-bars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.review-bar-item {
    background: var(--gray);
    border: var(--border);
    padding: 1rem;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.bar-track {
    width: 100%;
    height: 10px;
    background: var(--white);
    border: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--black);
}

.review-form-card {
    background: var(--white);
    border: var(--border);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.survey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.review-item {
    background: var(--white);
    border: var(--border);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 2px 2px 0 var(--black);
}

.review-header-flex {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.review-metrics {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-review-delete {
    background-color: #dc3545;
    color: white;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    text-decoration: none;
    border-color: #dc3545;
}

.btn-review-delete:hover {
    background-color: #c82333;
}

/* =========================================
   8. AUTH, DASHBOARD & MISC
   ========================================= */
.auth-card {
    background: var(--white);
    padding: 3rem;
    box-shadow: var(--shadow);
    border: var(--border);
    max-width: 450px;
    margin: 2rem auto;
}

.auth-title {
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-weight: 900;
}

.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 800;
    border: var(--border);
}

.alert-light {
    background: var(--white);
}

/* Dashboard Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: var(--border);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: var(--border);
    border-right: var(--border);
}

th {
    font-weight: 900;
    text-transform: uppercase;
    background: var(--gray);
}

.table-responsive {
    overflow-x: auto;
}

.status-active {
    font-weight: bold;
    color: green;
}

.status-inactive {
    font-weight: bold;
    color: red;
}

.btn-sm-action {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
}

.btn-toggle-active {
    background-color: #666;
    color: #fff;
    border-color: #666;
}

.btn-toggle-inactive {
    background-color: #28a745;
    color: #fff;
    border-color: #28a745;
}

/* Paginación y Estados Vacíos */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-link {
    padding: 0.5rem 1rem;
    border: var(--border);
    font-weight: 800;
    background: var(--white);
    box-shadow: 2px 2px 0 var(--black);
}

.page-link.active, .page-link:hover {
    background: var(--black);
    color: var(--white);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    border: var(--border);
    box-shadow: var(--shadow);
    font-weight: 800;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--white);
    padding: 2rem;
    border: var(--border);
    box-shadow: var(--shadow);
}

.about-intro {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

.about-card-center {
    text-align: center;
}

.about-card-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: var(--border);
    margin-bottom: 1.5rem;
    box-shadow: 4px 4px 0 var(--black);
}

.about-card-title {
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.about-card-role {
    font-weight: 800;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* =========================================
   9. FOOTER
   ========================================= */
.footer {
    background-color: var(--white);
    border-top: var(--border);
    padding: 2rem 0 1rem 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-heading {
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.footer-link {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-desc {
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-link-item {
    display: block;
    margin-bottom: 0.5rem;
}

.footer-link-item:last-child {
    margin-bottom: 0;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    box-shadow: 2px 2px 0 var(--black);
    transition: 0.2s;
}

.social-icon:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--black);
}

.footer-copyright {
    border-top: var(--border);
    padding-top: 2rem;
    text-align: center;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
}