body {
    font-family: 'Rubik', sans-serif;
}

.row {
    margin-right: 0;
    margin-left: 0;
}

.flex {
    display:flex;
}

h1 {
    color: #AE1628;
}

ul.lletresVermelles li a {
    color: #AE1628;
    font-weight: 500;
    font-size: 17px;
}

ul.lletresVermelles li a:hover {
    color: #4F0A13;
    font-weight: 550;
}

ul.lletresVermelles button {
    color: #AE1628;
    font-weight: 500;
    font-size: 17px;
    padding: .5rem 1rem !important;
    ;
}

ul.lletresVermelles button:hover {
    color: #4F0A13;
    font-weight: 550;
}

.logo {
    height: 5.3rem;
}

.pdtp03 {
    padding-top: 0.3%;
}

.pdtp1 {
    padding-top: 1%;
}

.padlf2 {
    padding-left: 2%;
}

.padrt2 {
    padding-right: 2%;
}

.pdbt03 {
    padding-bottom: 0.3%;
}

.padtpbt3 {
    padding-top: 3%;
    padding-bottom: 3%;
}

.padlfrt6 {
    padding-left: 6%;
    padding-right: 6%;
}

.pad3 {
    padding: 3%;
}

.imgFachada {
    background-image: url('../img/-mg-0720-fachada-1200x800.jpg');
}

.imgRioPuente {
    background-image: url('../img/casa-cueto-rio1-1200x800.jpg');
}

.imgCasa {
    background-image: url('../img/-mg-0783-paisaje-1200x800.jpg');
}

.imgPaisaje {
    background-image: url('../img/casa-cueto-hab4b-1200x800.jpg');
}

.imgAmplia {
    background-image: url('../img/-mg-7191-hab10-1200x800.jpg');
}

.imgDobles {
    background-image: url('../img/casa-cueto-hab12-1200x800.jpg');
}

.imgFApartamento {
    background-image: url('../img/aptos-cangas-onis-800-4.jpeg');
}

.imgHab,
.imgFApartamento {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.5);
    height: 65vh;
    width: 100%;
}

.imgFachada,
.imgCasa,
.imgPaisaje,
.imgDobles,
.imgAmplia,
.imgRioPuente {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.5);
    /* Negro semitransparente */
    height: 90vh;
    /* Altura relativa al viewport */
    width: 100%;
    /* Anchura completa del contenedor */
}

@media (max-width: 1550px) {

    .imgFachada,
    .imgCasa,
    .imgPaisaje,
    .imgDobles,
    .imgAmplia {
        height: 87vh;
    }
}

@media (max-width: 768px) {

    .imgFachada,
    .imgCasa,
    .imgPaisaje,
    .imgDobles,
    .imgAmplia {
        height: 75vh;
    }

    .logo {
        height: 2rem;
    }

    .navigation {
        flex-direction: column;   /* apilar verticalmente */
        align-items: center;      /* centrar ambos bloques */
    }

    /* Hacemos que logo y menú ocupen todo el ancho */
    .navigation .logo,
    .navigation{
        width: 100%;
    }

    /* Un pequeño espacio entre logo y menú */
    .navigation .nav {
        margin-top: 1rem;
        justify-content: center;
    }
    .col-7{
        padding: 0%;
        max-width: 100%;
    }
    ul.lletresVermelles button {
        color: #AE1628;
        font-weight: 500;
        font-size: 13px;
        padding: .5rem 1rem !important;
        ;
    }

    ul.lletresVermelles li a {
        color: #AE1628;
        font-weight: 500;
        font-size: 13px;
    }

    .flex{
        display:block;
    }

    /* Convierte tu contenedor d-flex en columna */
    .d-flex {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Para que cada .col-5 ocupe 100% y tenga un pequeño margen inferior */
    .d-flex > .col-5 {
        max-width: 100% !important;
        margin-bottom: 1rem;
    }
    .txt20 {
        font-size: 15px !important;
    }

    h1{
        font-size:1.7rem ;
    }
    .contenido div h1{
        font-size: 2.7rem !important;
        color: white;
    }
      .hotel-room-container {
    flex-direction: column;
  }
  .hotel-room-container .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* 2) Ajusta la grid de características a 2 columnas o incluso 1 */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 3) Que el botón ocupe todo el ancho */
  .reserve-button {
    display: block;
    width: 100%;
    text-align: center;
  }

  /* 4) Ajustes de tipografía y márgenes para móvil */
  .room-title {
    font-size: 1.5rem;
  }
  .room-content p,
  .feature-item span {
    font-size: 0.9rem;
  }
  .feature-item {
    padding: 0.5rem 0;
  }
  .row.pdtp1 {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 1rem;             /* espacio entre bloque de texto y links */
  }

  /* 2) Cada col-6 pasa a ocupar el 100% y se centra el texto */
  .row.pdtp1 > .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
    margin: 0;             /* elimina márgenes sobrantes */
  }

  /* 3) Centra también tu <ul class="nav"> */
  .row.pdtp1 .nav {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 0.5rem;           /* separación entre enlaces */
    padding: 0;
    margin: 0;
  }

  /* 4) Ajusta el padding de los enlaces para que no queden muy juntos */
  .row.pdtp1 .nav-link {
    padding: 0.25rem 0.5rem;
    white-space: nowrap;   /* evita que se partan en varias líneas */
  }

    /* 1) Pila las .col-6 y ocupa 100% */
  #habitaciones .row {
    display: flex;
    flex-direction: column;
    gap: 1rem;             /* espacio entre habitaciones */
  }
  .row > .col-6.imgHab {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0;             /* elimina márgenes laterales */
  }

  /* 2) Ajusta la imagen de fondo */
  .imgHab {
    background-size: cover !important;
    background-position: center !important;
    height: 200px;         /* altura fija, cambia según tu diseño */
  }

  /* 3) Oculta el overlay (hover) y el contenido superpuesto */
  .imgHab .overlay,
  .imgHab .contenido {
    display: none !important;
  }

  /* 4) Muestra siempre el bloque hover-text justo debajo */
  .imgHab .hover-text {
    position: static !important;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 1rem;
    max-height: none;
    overflow: visible;
  }

  /* 5) Dentro de hover-text, empaca la info ordenada */
  .imgHab .hover-text .pad3 {
    padding: 0.5rem 1rem;
  }
  .imgHab .hover-text h4.txtlf {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  .imgHab .hover-text p.txtlf {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  /* 6) Ajusta la grid de características a 2 columnas */
  .imgHab .hover-text .row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .imgHab .hover-text .row > .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .imgHab .hover-text .row ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  /* 7) Elimina cualquier padding extra en móviles */
  .imgHab[style] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
    .imgHab .hover-text h4.txtlf:nth-of-type(2) {
    display: none !important;
  }

  /* Oculta la fila con las características */
  .imgHab .hover-text .row {
    display: none !important;
  }

  /* Ajusta márgenes para que no quede espacio vacío */
  .imgHab .hover-text {
    padding-bottom: 1rem;
  }

  .imgHabs{
    height: 300px !important; 
    object-fit: cover;
  }

}

#casaCueto p {
    color: #767676;
}

.txt20 {
    font-size: 23px;
}

.contenido div h1 {
    font-size: 55px;
    color: white;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Negro semitransparente */
    z-index: 1;
}

.contenido {
    z-index: 2;
}

.col-6 {
    position: relative;
    overflow: hidden;
}

.col-6 .hover-text {
    position: absolute;
    bottom: -100%;
    /* Inicialmente fuera de la vista */
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Fondo semitransparente */
    color: white;
    text-align: center;
    height: 55%;
    transition: bottom 0.3s ease-in-out;
    /* Animación suave */
    z-index: 2;
    /* Asegura que esté por encima del contenido existente */
}

.col-6:hover .hover-text {
    bottom: 0;
    /* Mueve el texto hacia arriba al hacer hover */
}

.col-6 .contenido {
    z-index: 1;
    /* Asegura que el contenido esté debajo del hover-text */
}

.txtlf {
    text-align: left;
}

.hotel-room-container {
    padding: 2.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    margin: 3rem auto;
    border: 1px solid #f0e6d8;
    max-width: 1200px;
}

.room-title {
    color: #2a2a2a;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e8d5b5;
    position: relative;
}

.room-description {
    padding-right: 3rem;
    border-right: 1px solid #eee5d5;
    position: relative;
}

.room-content {
    line-height: 1.8;
    color: #5a5a5a;
}

.highlight-text {
    color: #b38b59;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.room-highlights {
    list-style: none;
    padding-left: 1.5rem;
}

.room-highlights li {
    position: relative;
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
}

.room-highlights li:before {
    content: "✓";
    color: #b38b59;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #faf8f5;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
}

.icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 1rem;
    background-size: contain;
}

.wifi {
    background-image: url('icon-wifi.svg');
}

.tv {
    background-image: url('icon-tv.svg');
}

.climate {
    background-image: url('icon-climate.svg');
}

.minibar {
    background-image: url('icon-minibar.svg');
}

.safe {
    background-image: url('icon-safe.svg');
}

.bath {
    background-image: url('icon-bath.svg');
}

@media (max-width: 992px) {
    .hotel-room-container {
        padding: 1.5rem;
        margin: 2rem auto;
    }

    .room-description {
        padding-right: 1.5rem;
        border-right: none;
        border-bottom: 1px solid #eee5d5;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }

    .room-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hotel-room-container {
        padding: 1rem;
        margin: 1rem 0;
    }

    .room-content {
        font-size: 0.95rem;
    }
}

.reserve-button {
    background: #b38b59;
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(179, 139, 89, 0.3);
}

.reserve-button:hover {
    background: #9a754d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(179, 139, 89, 0.4);
}

.icon-arrow {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"/></svg>');
    transition: transform 0.3s ease;
}

.reserve-button:hover .icon-arrow {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .reserve-button {
        width: 100%;
        justify-content: center;
        margin-top: 1.5rem;
        padding: 1rem;
    }
}

/* Añadir esto al final de los media queries existentes */
@media (max-width: 576px) {
    .reserve-button {
        font-size: 0.9rem;
    }
}

.admin-panel {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin: 2rem;
    border: 1px solid #eaeaea;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.panel-title {
    font-size: 1.8rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    margin: 0;
}

.panel-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #3b82f6;
}

.dashboard-icon {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232d3748"><path d="M13 3v2h6v2h-6v2h6v2h-6v2h6v2h-6v2h6v2h-6v2h8V3zM3 21h8V3H3z"/></svg>');
}

.admin-badge {
    background: #3b82f6;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    align-self: center;
    font-weight: 500;
}

.panel-stats {
    display: flex;
    gap: 1.5rem;
}

.stat-card {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    min-width: 140px;
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    display: block;
    margin-top: 0.3rem;
}

.panel-actions {
    display: flex;
    justify-content: flex-end;
}

.action-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.action-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.add-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"/></svg>');
}

@media (max-width: 768px) {
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .panel-stats {
        flex-wrap: wrap;
    }

    .stat-card {
        flex: 1;
        min-width: auto;
    }

    .panel-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .action-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .admin-panel {
        margin: 1rem;
        padding: 1.5rem;
    }

    .panel-title {
        font-size: 1.4rem;
    }

    .stat-value {
        font-size: 1.4rem;
    }
}

.panel-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin: 20px auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.panel-header {
    text-align: center;
    padding: 1.5rem;
}

.panel-header h1 {
    color: #2d3436;
    font-size: 2rem;
    margin: 0;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.panel-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #4a90e2;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .panel-header h1 {
        font-size: 1.5rem;
    }

    .panel-container {
        margin: 10px;
        padding: 1rem;
    }
}

/* Estilos base del panel */
.dashboard-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f4f8;
}

.panel-header h1 {
    color: #2d3748;
    font-size: 2rem;
    margin: 0;
}

/* Grid de habitaciones */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Tarjeta de habitación */
.room-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease;
}

.room-card:hover {
    transform: translateY(-3px);
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.room-number {
    font-weight: 600;
    color: #1e293b;
}

.room-status {
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.available {
    background: #d1fae5;
    color: #065f46;
}

.unavailable {
    background: #fee2e2;
    color: #991b1b;
}

.maintenance {
    background: #fef3c7;
    color: #92400e;
}

.room-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.3rem;
}

.edit-btn,
.delete-btn,
.habilitar-btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-btn {
    background: #e0f2fe;
    color: #0369a1;
}

.delete-btn {
    background: #fee2e2;
    color: #dc2626;
}

.habilitar-btn {
    background: #d4ffbf;
    color: #28a745;
}

/* Formulario */
.form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: flex-end;
}

.room-form {
    background: white;
    width: 400px;
    padding: 2rem;
    height: 100vh;
    overflow-y: auto;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #475569;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.status-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.status-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.save-btn,
.cancel-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.save-btn {
    background: #3b82f6;
    color: white;
}

.cancel-btn {
    background: #f1f5f9;
    color: #64748b;
}

.add-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-button:hover {
    background: #2563eb;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-container {
        margin: 1rem;
        padding: 1rem;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .room-form {
        width: 100%;
    }
}

.icon-small {
    width: 24px;
    /* Ajusta el tamaño según tus necesidades */
    height: 24px;
    /* Ajusta el tamaño según tus necesidades */
}

/* Estilo base para todos los inputs */
.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Ajustes específicos para checkboxes */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.marbt2 {
    margin-bottom: 10px;
}


.estilo-cueto {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f8f5f0;
    /* Color beige claro similar al fondo de la web */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-seccion {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0d7cc;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

h2,
h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #6b6258;
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #d4c9bd;
    border-radius: 4px;
    background: #fff;
    font-size: 1rem;
}

.ts-control,
.ts-dropdown {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #d4c9bd;
    border-radius: 4px;
    background: #fff;
    font-size: 1rem;
}

div.ts-control input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #d4c9bd;
    border-radius: 4px;
    background: #fff;
    font-size: 1rem;
}

.boton-primario {
    background: #8a7463;
    /* Color terroso similar al header */
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.boton-primario:hover {
    background: #6b5b4d;
}

.form-legal {
    margin: 1.5rem 0;
    font-size: 0.9rem;
    color: #666;
    display: flex;
}
.imgHabs{
    height: 450px; 
    object-fit: cover;
}