/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
.header {
    background: linear-gradient(
        135deg,
        #000000 0%,
        #000000 35%,
        #8b6508 70%,
        #000 100%
    );
    color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-menu a:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../../assets/images/banner-hotel-tawa.png');
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
   
    background-color: #9a690b;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: #000000;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

/* Room Cards */

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 2rem;
    margin-top: 2rem;
}

/* Tablets */
/* Tablets */
@media (max-width: 1024px){
    .rooms-grid{
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Móviles */
@media (max-width: 768px){
    .rooms-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Móviles pequeños */
@media (max-width: 480px){
    .rooms-grid{
        grid-template-columns: 1fr !important;
    }
}


.room-card img{
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.room-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.room-card-content {
    padding: 1.5rem;
}

.room-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.room-card p {
    color: #666;
    margin-bottom: 1rem;
}

.room-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #9a690b;
    margin-bottom: 1rem;
}

.room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.amenity-tag {
    background-color: #ecf0f1;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #555;
}

/* Form Styles */
.form-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.table th {
    background-color: #2c3e50;
    color: white;
    font-weight: 600;
}

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

/* Status Badges */
.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background-color: #d4edda;
    color: #155724;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.status-completed {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Footer */
.footer {
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255,255,255,0.2);
    border-radius: 5px;
}

/* ==========================
   MENÚ RESPONSIVE
========================== */

@media (max-width:768px){

    .header{
        overflow:visible;
    }

    .nav-container{
        position:relative;
        overflow:visible;
    }

    .mobile-menu-toggle{
        display:block;
        background:none;
        border:none;
        color:#fff;
        font-size:30px;
        cursor:pointer;
    }

    .nav-menu{
        display:none;

        position:absolute;
        top:100%;
        left:0;

        width:100%;

        background:#000;

        flex-direction:column;

        padding:0;
        margin:0;

        list-style:none;

        z-index:9999;

        box-shadow:0 5px 15px rgba(0,0,0,.3);
    }

    .nav-menu.active{
        display:flex !important;
    }

    .nav-menu li{
        width:100%;
        border-bottom:1px solid rgba(255,255,255,.1);
    }

    .nav-menu li:last-child{
        border-bottom:none;
    }

    .nav-menu li a{
        display:block;
        width:100%;
        padding:15px 20px;
        color:#fff;
        text-decoration:none;
    }

    .nav-menu li a:hover{
        background:#9a690b;
    }
}
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
    }
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }


.logo-img{
    height: 50px;      /* ajusta el tamaño */
    width: auto;
    display: block;
}

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


/* CARD PREMIUM */
.room-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.3s ease;
}

.room-card:hover{
    transform:translateY(-8px);
    box-shadow:0 25px 60px rgba(0,0,0,.15);
}

/* IMAGE */
.room-image{
    position:relative;
    overflow:hidden;
}

.room-image img{
    width:100%;
    height:230px;
    object-fit:cover;
    transition:.4s ease;
}

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

/* PRICE BADGE */
.room-price-badge{
    position:absolute;
    top:15px;
    right:15px;
    background:#9a690b;
    color:#fff;
    padding:8px 12px;
    border-radius:20px;
    font-weight:600;
    font-size:.9rem;
    box-shadow:0 5px 15px rgba(0,0,0,.2);
}

/* CONTENT */
.room-card-content{
    padding:20px;
}

.room-card h3{
    font-size:1.3rem;
    margin-bottom:8px;
    color:#2c3e50;
}

.room-desc{
    color:#666;
    font-size:.95rem;
    margin-bottom:12px;
    line-height:1.4;
}

/* CAPACITY */
.room-capacity{
    margin-top:10px;
    font-size:.9rem;
    color:#444;
}

/* BUTTON */
.btn-room{
    width:100%;
    text-align:center;
    margin-top:15px;
    background:#000;
    border-radius:10px;
    padding:12px;
    font-weight:600;
}

.btn-room:hover{
    background:#9a690b;
}

/* =========================
   PRINT STYLE (IMPRIMIR)
========================= */
@media print {

    /* Ocultar UI */
    .no-print,
    .header,
    .footer,
    nav,
    button,
    .btn {
        display: none !important;
    }

    body {
        background: white !important;
        color: #000 !important;
        font-family: Arial, sans-serif !important;
        font-size: 12px;
        margin: 0;
        padding: 0;
    }

    /* Página A4 */
    @page {
        size: A4;
        margin: 20mm;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    /* Título */
    .section-title {
        text-align: center;
        font-size: 20px;
        margin-bottom: 15px;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-bottom: 2px solid #000;
        padding-bottom: 8px;
    }

    /* Layout tipo reporte */
    .room-card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
        margin-bottom: 15px !important;
        page-break-inside: avoid;
    }

    .room-card-content {
        padding: 10px !important;
    }

    h3 {
        font-size: 14px !important;
        margin-bottom: 8px;
        border-bottom: 1px solid #ccc;
        padding-bottom: 4px;
    }

    p {
        margin: 3px 0;
        font-size: 12px;
    }

    /* Grid limpio para impresión */
    .container > div[style*="grid"] {
        display: block !important;
    }

    /* Secciones separadas */
    .room-card {
        page-break-inside: avoid;
    }

    /* Badges */
    .status-badge {
        border: 1px solid #000;
        padding: 3px 6px;
        font-size: 11px;
        font-weight: bold;
    }

    /* Amenidades */
    .amenity-tag {
        border: 1px solid #000;
        padding: 2px 5px;
        font-size: 11px;
        margin-right: 4px;
        display: inline-block;
    }

    /* Encabezado tipo documento */
    .section-title::before {
        content: "HOTEL RESERVATION REPORT";
        display: block;
        font-size: 12px;
        margin-bottom: 5px;
        color: #555;
    }

    /* Evitar cortes feos */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}