/* ==========================
   PALETA Y VARIABLES GLOBALES
   ========================== */
:root {
  --azul-marino: #a6aeb7;
  --cafe: #ff7b00;
  --blanco: #ffffff;
  --transparente: rgba(96, 82, 28, 0.15);
  --borde-glass: rgba(0, 42, 255, 0.25);
  --sombra-glass: rgba(0, 0, 0, 0.3);
  --texto: #9b3737;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: url('../img/bg-hotel.jpg') no-repeat center center/cover;
  backdrop-filter: blur(8px);
  color: var(--texto);
  min-height: 100vh;
}

/* Capa difuminada para todo el fondo */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 149, 133, 0.7);
  backdrop-filter: blur(12px);
  z-index: -1;
}

/* ==========================
   ENCABEZADO Y MENÚ
   ========================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  padding: 15px 40px;
  box-shadow: 0 4px 20px var(--sombra-glass);
  border-bottom: 1px solid var(--borde-glass);
}

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

.logo img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 2px solid var(--cafe);
  /* Mantener proporciones dentro del círculo sin deformar */
  object-fit: cover;
}

.logo h1 {
  color: var(--blanco);
  font-size: 1.4rem;
  margin-bottom: 2px;
}

.logo p {
  font-size: 0.85rem;
  color: rgba(122, 79, 53, 0.8);
}

/* Navegación */
.navbar ul {
  display: flex;
  list-style: none;
  gap: 18px;
}

.navbar a {
  text-decoration: none;
  color: var(--blanco);
  font-weight: 500;
  transition: color 0.3s ease, background 0.3s ease;
  padding: 6px 12px;
  border-radius: 8px;
}

.navbar a:hover,
.navbar a.active {
  background: var(--cafe);
  color: var(--blanco);
}

/* ==========================
   SECCIÓN HERO (principal)
   ========================== */
.index-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 100px 10%;
  flex-wrap: wrap;
  gap: 30px;
}

.index-hero .left {
  max-width: 550px;
}

.index-hero h2 {
  font-size: 2.5rem;
  color: var(--blanco);
}

.index-hero p {
  color: rgba(10, 8, 8, 0.9);
  margin-top: 10px;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--cafe);
  color: var(--blanco);
}

.btn-primary:hover {
  background: #a86b3b;
}

.btn-outline {
  border: 2px solid var(--blanco);
  color: var(--blanco);
}

.btn-outline:hover {
  background: var(--blanco);
  color: var(--azul-marino);
}

/* ==========================
   TARJETA GLASS
   ========================== */
.glass-card {
  background: var(--transparente);
  border: 1px solid var(--borde-glass);
  border-radius: 20px;
  padding: 25px;
  color: var(--blanco);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 25px var(--sombra-glass);
  text-align: center;
  max-width: 400px;
}

/* ==========================
   CARRUSEL
   ========================== */
.carousel-section {
  padding: 60px 0;
}

.carousel-caption h5 {
  color: var(--blanco);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.carousel-caption p {
  color: var(--blanco);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

/* ==========================
   SECCIÓN DE CARACTERÍSTICAS
   ========================== */
.features {
  text-align: center;
  padding: 70px 5%;
  background: rgba(255, 255, 255, 0.08);
  border-top: 1px solid var(--borde-glass);
  backdrop-filter: blur(10px);
}

.features h2 {
  color: var(--blanco);
  font-size: 2rem;
  margin-bottom: 30px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.card {
  background: var(--transparente);
  border: 1px solid var(--borde-glass);
  border-radius: 20px;
  padding: 20px;
  width: 300px;
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 25px var(--sombra-glass);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px var(--sombra-glass);
}

.card img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 15px;
  /* Altura fija para uniformar tarjetas sin mover el layout */
  height: 180px;
  object-fit: cover; /* Recorta la imagen para llenar el espacio sin deformación */
}

.card h3 {
  color: var(--blanco);
  margin-bottom: 10px;
}

/* ==========================
   FOOTER
   ========================== */
footer {
  background: rgba(13, 27, 42, 0.85);
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid var(--borde-glass);
  color: rgba(255, 255, 255, 0.85);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--cafe);
}

/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 900px) {
  .index-hero {
    flex-direction: column;
    text-align: center;
    padding: 80px 5%;
  }

  .glass-card {
    margin-top: 25px;
  }

  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .navbar ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Auth layout */
.auth-wrap {
  display: flex;
  gap: 20px;
  max-width: 1000px;
  margin: 80px auto;
  padding: 0 10px;
  align-items: stretch;
}

.auth-image {
  flex: 1;
  min-height: 420px;
  background: url('../img/carrusel2.jpg') center/cover no-repeat;
  border-radius: 20px;
  border: 1px solid var(--borde-glass);
  box-shadow: 0 4px 25px var(--sombra-glass);
}

.auth-panel {
  flex: 1;
  background: var(--transparente);
  border: 1px solid var(--borde-glass);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  padding: 28px;
  box-shadow: 0 4px 25px var(--sombra-glass);
}

/* Imagen ilustrativa dentro de formularios (uniforme y sin deformación) */
.form-illustration {
  width: 100%;
  height: 180px; /* puedes pedirme ajustar esta altura */
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--borde-glass);
}

.auth-panel h2 {
  color: var(--blanco);
  margin-bottom: 6px;
}

.helper {
  opacity: 0.9;
  margin-bottom: 16px;
}

.auth-panel form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-panel input,
.auth-panel textarea,
.auth-panel select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--borde-glass);
  color: var(--blanco);
  padding: 12px 14px;
  border-radius: 12px;
  outline: none;
}

.auth-panel input::placeholder,
.auth-panel textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.auth-panel input:focus,
.auth-panel textarea:focus,
.auth-panel select:focus {
  border-color: var(--cafe);
  box-shadow: 0 0 0 3px #bec6bb;
}

.login-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-top: 6px;
}

.login-meta a {
  color: var(--blanco);
  opacity: 0.9;
  text-decoration: none;
}

.login-meta a:hover {
  color: var(--cafe);
}

.social-login {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.social-login a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--borde-glass);
  color: var(--blanco);
  text-decoration: none;
  font-weight: 700;
}

.social-login a:hover {
  background: var(--cafe);
}

@media (max-width: 900px) {
  .auth-wrap {
    flex-direction: column;
    padding: 0 5%;
  }

  .auth-image {
    min-height: 220px;
  }
}

/* Contenedor amplio para páginas internas (Nosotros) */
.page-container {
  max-width: 1100px;
  margin: 80px auto;
  padding: 24px;
  background: var(--transparente);
  border: 1px solid var(--borde-glass);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 25px var(--sombra-glass);
}

.page-container section {
  margin-bottom: 28px;
}

.page-container h2 {
  color: var(--blanco);
  margin-bottom: 10px;
}
