/* ============================================================
   Hotel Entre Rios - Estilos Principales
   Paleta: Naturaleza serrana / ríos / Salamanca
   ============================================================ */

/* --- Variables CSS --- */
:root {
  --color-primary:     #2C5F6E;   /* azul río profundo */
  --color-secondary:   #4A8B74;   /* verde vegetación */
  --color-accent:      #C8954A;   /* ocre tierra / dorado */
  --color-dark:        #1A2E35;   /* casi negro azulado */
  --color-light:       #F5F0E8;   /* crema arena */
  --color-white:       #FFFFFF;
  --color-text:        #2D3748;
  --color-text-light:  #718096;
  --color-border:      rgba(44,95,110,0.15);

  --font-display:      'Playfair Display', Georgia, serif;
  --font-body:         'Lato', Helvetica, sans-serif;
  --font-mono:         'Courier New', monospace;

  --shadow-sm:  0 2px 8px rgba(26,46,53,0.08);
  --shadow-md:  0 8px 30px rgba(26,46,53,0.12);
  --shadow-lg:  0 20px 60px rgba(26,46,53,0.18);

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

/* --- Tipografía --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--color-dark);
  line-height: 1.2;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-dark);
  position: relative;
  margin-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin-top: 0.75rem;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin-top: 1rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all var(--transition);
  background: transparent;
}

#navbar.scrolled {
  background: var(--color-dark);
  padding: 0.9rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-white) !important;
}

.navbar-brand img {
  height: 56px;
  width: auto;
}

.navbar-brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.5rem 1rem !important;
  transition: color var(--transition);
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.navbar-nav .nav-link:hover {
  color: var(--color-white) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: none;
  color: var(--color-white);
  padding: 0.4rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../imgs/galeria/hotel/HOTEL-001.JPG');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.45;
  transition: opacity 1s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,46,53,0.75) 0%,
    rgba(44,95,110,0.5) 50%,
    rgba(26,46,53,0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  padding-top: 80px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.3s forwards;
}

.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--color-accent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.5s forwards;
}

.hero-title span {
  color: var(--color-accent);
  font-style: italic;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.7s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.9s forwards;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce 2s infinite;
}

.hero-scroll-hint i {
  font-size: 1.2rem;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--color-accent);
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary-custom:hover {
  background: transparent;
  color: var(--color-accent);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-white);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all var(--transition);
  cursor: pointer;
}

.btn-outline-custom:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.12);
  color: var(--color-white);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--color-accent);
  transition: all var(--transition);
}

.btn-accent:hover {
  background: #b8843c;
  border-color: #b8843c;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200,149,74,0.35);
}

/* ============================================================
   SECCIONES GENERALES
   ============================================================ */
section {
  padding: 6rem 0;
}

.section-light {
  background: var(--color-light);
}

.section-dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.section-dark .section-title,
.section-dark h3 {
  color: var(--color-white);
}

.section-dark .section-desc {
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   NOSOTROS
   ============================================================ */
.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-image-wrap:hover img {
  transform: scale(1.04);
}

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 140px;
  height: 140px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  text-align: center;
  padding: 1rem;
}

.about-badge .badge-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.about-badge .badge-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  margin-top: 0.3rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.about-feature-icon {
  width: 42px;
  height: 42px;
  background: rgba(44,95,110,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.about-feature-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.2rem;
}

.about-feature-text span {
  font-size: 0.82rem;
  color: var(--color-text-light);
}

/* ============================================================
   HABITACIONES (CARDS)
   ============================================================ */
.room-card {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  height: 100%;
  background: var(--color-white);
}

.room-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.room-card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.room-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.room-card:hover .room-card-img-wrap img {
  transform: scale(1.07);
}

.room-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

.room-card-body {
  padding: 1.75rem;
}

.room-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  color: var(--color-dark);
}

.room-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

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

.amenity-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--color-primary);
  background: rgba(44,95,110,0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-weight: 600;
}

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  min-height: 220px;
}

.gallery-item:first-child img {
  min-height: 480px;
}

.gallery-extra {
  display: none;
}

.gallery-grid.show-all .gallery-extra {
  display: block;
}

/* 29 fotos en 3 columnas (la primera ocupa 2x2) dejan un hueco al final */
@media (min-width: 769px) {
  .gallery-grid.show-all .gallery-item:last-child {
    grid-column: span 2;
  }

  /* que tome el alto de la fila en vez de estirarla */
  .gallery-grid.show-all .gallery-item:last-child img {
    position: absolute;
    inset: 0;
    min-height: 0;
  }
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,46,53,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.gallery-overlay i {
  color: var(--color-white);
  font-size: 2rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  background: rgba(26,46,53,0.4);
}

.gallery-item:hover .gallery-overlay i {
  opacity: 1;
}

/* Lightbox */
.lightbox-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10,15,20,0.94);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}

.lightbox-backdrop.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--color-white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  font-size: 1.1rem;
  z-index: 10000;
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-counter {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.service-card {
  text-align: center;
  padding: 2.5rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  height: 100%;
  background: var(--color-white);
}

.service-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 72px;
  height: 72px;
  background: rgba(44,95,110,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  color: var(--color-primary);
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--color-primary);
  color: var(--color-white);
}

.service-card h5 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--color-dark);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 52px;
  height: 52px;
  background: rgba(200,149,74,0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-item h6 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.contact-info-item p,
.contact-info-item a {
  font-size: 1rem;
  color: var(--color-dark);
  font-weight: 600;
}

.contact-info-item a:hover {
  color: var(--color-primary);
}

.contact-phone {
  font-size: 1.35rem !important;
  letter-spacing: 0.02em;
}

.contact-directions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.88rem !important;
  color: var(--color-accent) !important;
}

.contact-directions:hover {
  color: var(--color-primary) !important;
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.contact-actions .btn-accent {
  padding-left: 1rem;
  padding-right: 1rem;
}

.btn-whatsapp {
  background: #25D366;
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background: #1EBE5A;
  border-color: #1EBE5A;
  box-shadow: 0 8px 20px rgba(37,211,102,0.35);
}

/* Mapa embed */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 420px;
}

@media (max-width: 991px) {
  .map-wrap {
    min-height: 340px;
  }
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-brand img {
  height: 90px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-title {
  font-family: var(--font-display);
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

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

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a::before {
  content: '›';
  color: var(--color-accent);
}

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

.footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 2.5rem 0 1.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ============================================================
   ANIMACIONES
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  cursor: pointer;
  z-index: 500;
  box-shadow: var(--shadow-md);
  border: none;
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-item:first-child img {
    min-height: 280px;
  }

  .about-badge {
    right: 0;
    bottom: 0;
    width: 110px;
    height: 110px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item:first-child {
    grid-column: span 1;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
