/* ============================================================
   Hotel La Piedad – Stylesheet
   Paleta: #ffffff bg, #252525 texto, #171717 footer, #c0392b acento
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: #ffffff;
  color: #252525;
  line-height: 1.65;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: #252525; text-decoration: none; transition: color .3s; }
a:hover, a:focus { color: #c0392b; }

ul { list-style: none; }

/* --- Layout ------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header ------------------------------------------------- */
#site-header {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.logo-link { display: inline-flex; align-items: center; }
.logo-link img { height: 52px; width: auto; }

/* Nav */
#main-nav ul {
  display: flex;
  gap: 0;
}
#main-nav a {
  display: inline-block;
  padding: 0 18px;
  line-height: 70px;
  font-size: .9rem;
  font-weight: 500;
  color: #252525;
  letter-spacing: .03em;
  position: relative;
}
#main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 18px; right: 18px;
  height: 3px;
  background: #c0392b;
  transform: scaleX(0);
  transition: transform .3s;
}
#main-nav a:hover::after,
#main-nav a.active::after { transform: scaleX(1); }
#main-nav a:hover, #main-nav a.active { color: #c0392b; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #252525;
  border-radius: 2px;
  transition: all .3s;
}

/* --- Banner / Slider --------------------------------------- */
#hero {
  position: relative;
  overflow: hidden;
  height: 65vh;
  min-height: 480px;
  background: #111;
}

/* Slides */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Overlay y texto */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.20) 0%, rgba(0,0,0,.62) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  pointer-events: none;
}
.hero-text h1 {
  font-size: 3rem;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0,0,0,.55);
  line-height: 1.15;
}
.hero-text p {
  color: rgba(255,255,255,.9);
  font-size: 1.1rem;
  margin-top: 14px;
  text-shadow: 0 1px 6px rgba(0,0,0,.55);
}

/* Indicadores (dots) */
.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .3s;
}
.hero-dot.active { background: #fff; }

/* Hero badge, actions & CTA */
.hero-badge {
  display: inline-block;
  background: rgba(192,57,43,.85);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  pointer-events: auto;
}
.hero-cta {
  display: inline-block;
  padding: 13px 30px;
  background: #c0392b;
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  border-radius: 6px;
  letter-spacing: .02em;
  transition: background .3s, transform .2s;
}
.hero-cta:hover { background: #a93226; color: #fff; transform: translateY(-2px); }
.hero-cta--outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.8);
  color: #fff;
}
.hero-cta--outline:hover { background: rgba(255,255,255,.15); color: #fff; transform: translateY(-2px); }

@media (max-width: 768px) {
  #hero { height: 55vh; min-height: 260px; }
  .hero-text h1 { font-size: 1.75rem; }
  .hero-overlay { padding: 24px 16px; }
  .hero-badge { font-size: .7rem; padding: 5px 14px; }
  .hero-actions { margin-top: 20px; gap: 10px; }
  .hero-cta { padding: 11px 22px; font-size: .88rem; }
}

/* --- Main Content ------------------------------------------ */
#main-content { padding: 70px 0; }

/* Section title */
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #252525;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 3px solid #c0392b;
  display: inline-block;
}

/* Historia bullets */
.historia-list { margin: 0; }
.historia-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid #f2f2f2;
  font-size: 1rem;
  line-height: 1.7;
}
.historia-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: #c0392b;
  font-size: .65rem;
  top: 15px;
}

/* --- Historia layout (Homepage) ---------------------------- */
.historia-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 10px;
}
.historia-texto p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
}
.historia-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.historia-stat {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  transition: box-shadow .25s, transform .25s;
}
.historia-stat:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-3px); }
.historia-stat__num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: #c0392b;
  line-height: 1.1;
  margin-bottom: 6px;
}
.historia-stat__label {
  display: block;
  font-size: .78rem;
  color: #666;
  line-height: 1.4;
}

/* --- Gallery Grid (Homepage) ------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 70px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.gallery-grid img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform .4s;
  cursor: pointer;
}
.gallery-grid img:hover {
  transform: scale(1.06);
}
.gallery-item-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.62));
  color: #fff;
  font-size: .8rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.gallery-item:hover .gallery-item-caption { opacity: 1; }

/* --- Servicios --------------------------------------------- */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 10px;
}
.servicio-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #fafafa;
  border: 1px solid #eeeeee;
  border-radius: 6px;
  transition: box-shadow .25s;
}
.servicio-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.servicio-icon {
  font-size: 1.4rem;
  color: #c0392b;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}
.servicio-item strong { font-size: .95rem; color: #252525; }

/* --- Tarifas ----------------------------------------------- */
.tarifas-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 10px;
}
.tarifa-card {
  border: 1px solid #eeeeee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.tarifa-card-header {
  background: #252525;
  color: #fff;
  padding: 18px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tarifa-card-header span { font-size: 1.3rem; }
.tarifa-table {
  width: 100%;
  border-collapse: collapse;
}
.tarifa-table tr:not(:last-child) td {
  border-bottom: 1px solid #f2f2f2;
}
.tarifa-table td {
  padding: 14px 24px;
  font-size: .95rem;
}
.tarifa-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: #c0392b;
}

.tarifas-notas {
  margin-top: 30px;
  background: #fafafa;
  border-left: 4px solid #c0392b;
  padding: 18px 24px;
  border-radius: 0 6px 6px 0;
}
.tarifas-notas p { margin-bottom: 6px; font-size: .95rem; }
.tarifas-notas p:last-child { margin-bottom: 0; }

.pagos-icons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.pago-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #252525;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: .85rem;
  font-weight: 500;
}

/* --- Ubicación --------------------------------------------- */
.ubicacion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.ubicacion-info h2 { margin-bottom: 20px; }
.direccion-highlight {
  background: #252525;
  color: #fff;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.subte-list { margin-top: 16px; }
.subte-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f2f2f2;
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.subte-list li::before {
  content: '🚇';
  font-size: 1rem;
}
.subte-linea {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #c0392b;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.mapa-container { border-radius: 8px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.mapa-container img { width: 100%; cursor: pointer; }
.mapa-container p {
  text-align: center;
  font-size: .82rem;
  color: #666;
  padding: 8px;
  background: #fafafa;
  border-top: 1px solid #eee;
}

.ubicacion-descriptores {
  margin-top: 40px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 24px;
}
.ubicacion-descriptores h3 { margin-bottom: 14px; font-size: 1rem; color: #666; text-transform: uppercase; letter-spacing: .05em; }
.desc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.desc-tag {
  background: #252525;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .85rem;
}

/* --- Galería full ------------------------------------------ */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.galeria-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #f0f0f0;
  aspect-ratio: 4/3;
}
.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
  cursor: pointer;
}
.galeria-item:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 28px;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  transition: color .2s;
}
.lightbox-close:hover { color: #c0392b; }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 14px 18px;
  cursor: pointer;
  border-radius: 4px;
  transition: background .2s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(192,57,43,.7); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* --- Footer ------------------------------------------------- */
#site-footer {
  background: #171717;
  color: #a2a2a2;
  font-size: .875rem;
}
.footer-inner {
  padding: 50px 0 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-brand img { height: 48px; margin-bottom: 16px; background: #fff; padding: 4px 8px; border-radius: 4px; }
.footer-brand p { line-height: 1.7; max-width: 300px; }

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c0392b;
  display: inline-block;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #a2a2a2; }
.footer-col ul a:hover { color: #fff; }

.footer-col p { margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom a { color: #a2a2a2; }
.footer-bottom a:hover { color: #fff; }

/* Crédito diseñador */
.footer-credit {
  background: #0f0f0f;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: #666;
}
.footer-credit a {
  color: #888;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .3s;
}
.footer-credit a:hover { color: #fff; }
.footer-credit img {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
}

/* AFIP QR */
.afip-qr img { height: 56px; }

/* --- Fade-in on scroll ------------------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-animate].animated {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 991px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .ubicacion-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .historia-layout { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  #main-nav {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
  }
  #main-nav.open { display: block; }
  #main-nav ul { flex-direction: column; }
  #main-nav a {
    line-height: 1;
    padding: 16px 20px;
    display: block;
    border-bottom: 1px solid #f2f2f2;
  }
  #main-nav a::after { display: none; }

  .hero-text h1 { font-size: 1.75rem; }
  #hero img { height: 280px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .tarifa-card { margin-bottom: 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .servicios-grid { grid-template-columns: 1fr; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
  .ubicacion-grid { gap: 28px; }
}
