/* ============================================================
   Hotel Presidente - presidentehotel.com.ar
   Professional Hotel Booking Design
   ============================================================ */

:root {
  --primary:      #1a3a5c;
  --primary-dark: #0f2540;
  --accent:       #c8922a;
  --accent-light: #e8a93a;
  --text:         #2c2c2c;
  --text-light:   #6b7280;
  --bg:           #f8f9fa;
  --white:        #ffffff;
  --border:       #e5e7eb;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.1);
  --shadow-md:    0 4px 12px rgba(0,0,0,.12);
  --shadow-lg:    0 10px 30px rgba(0,0,0,.15);
  --radius:       8px;
  --radius-lg:    16px;
  --transition:   .25s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

/* ── Utilidades ────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
           overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.3px;
}
.site-logo span { color: var(--accent-light); }
.site-logo svg { width: 36px; height: 36px; flex-shrink: 0; }

/* ── Navegación ────────────────────────────────────────────── */
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: rgba(255,255,255,.85);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.site-nav a:hover,
.site-nav a.active {
  background: rgba(255,255,255,.15);
  color: var(--white);
}
.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--accent-light) !important; }

/* Hamburger (móvil) */
.nav-toggle { display: none; background: none; border: none; cursor: pointer;
              padding: 8px; color: var(--white); }
.nav-toggle svg { width: 24px; height: 24px; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #2a5f8f 100%);
  color: var(--white);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,.06)'/%3E%3C/svg%3E");
}
.hero__content { position: relative; z-index: 1; }
.hero__badge {
  display: inline-block;
  background: rgba(200,146,42,.25);
  border: 1px solid var(--accent);
  color: var(--accent-light);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -.5px;
}
.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  max-width: 580px;
  margin: 0 auto 32px;
}
.hero__search {
  display: flex;
  gap: 8px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 50px;
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow-lg);
}
.hero__search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
}
.hero__search button {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  border-radius: 40px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.hero__search button:hover { background: var(--accent-light); }
.hero__stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero__stat { text-align: center; }
.hero__stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--accent-light); }
.hero__stat span { font-size: .85rem; color: rgba(255,255,255,.7); }

/* ── Sección ───────────────────────────────────────────────── */
.section { padding: 64px 0; }
.section--alt { background: var(--white); }
.section__header { text-align: center; margin-bottom: 40px; }
.section__label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.3px;
  line-height: 1.2;
}
.section__desc { color: var(--text-light); margin-top: 12px; font-size: 1rem; }

/* ── Grid de hoteles ───────────────────────────────────────── */
.hotels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.hotel-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.hotel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.hotel-card__img {
  height: 180px;
  background: linear-gradient(135deg, var(--primary) 0%, #2a5f8f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hotel-card__img-placeholder {
  font-size: 3rem;
  opacity: .4;
}
.hotel-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.hotel-card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.hotel-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.3;
}
.hotel-card__desc {
  font-size: .88rem;
  color: var(--text-light);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hotel-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.hotel-card__location { font-size: .8rem; color: var(--text-light); display: flex; gap: 4px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--white);
}
.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn--sm { padding: 6px 14px; font-size: .82rem; }
.btn--lg { padding: 14px 30px; font-size: 1.05rem; }

/* ── Página de hotel (detalle) ─────────────────────────────── */
.hotel-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 48px 0 36px;
}
.hotel-header__breadcrumb {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.hotel-header__breadcrumb a { color: rgba(255,255,255,.8); }
.hotel-header__breadcrumb a:hover { color: var(--white); }
.hotel-header__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.3px;
  margin-bottom: 12px;
}
.hotel-header__sub { color: rgba(255,255,255,.75); font-size: 1.05rem; }

.hotel-content { padding: 48px 0; }
.hotel-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }

.hotel-body {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.hotel-body h1, .hotel-body h2, .hotel-body h3,
.hotel-body h4, .hotel-body h5, .hotel-body h6 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.3;
  margin: 1.2em 0 .6em;
}
.hotel-body h1 { font-size: 1.9rem; }
.hotel-body h2 { font-size: 1.5rem; }
.hotel-body h3 { font-size: 1.25rem; }
.hotel-body p { margin-bottom: 1em; color: var(--text); }
.hotel-body ul, .hotel-body ol { margin: .8em 0 1em 0; padding: 0; }
.hotel-body li { margin-bottom: .4em; }
.hotel-body strong { color: var(--primary); }
.hotel-body table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.hotel-body td, .hotel-body th { padding: 10px 14px; border: 1px solid var(--border); }
.hotel-body th { background: var(--bg); font-weight: 600; }

/* ── Hotel body: limpieza de contenido Elementor ────────── */
/* Ocultar H1 duplicado (ya mostrado en hotel-header) */
.hotel-body h1 { display: none; }
/* SVG icons de icon-list de Elementor */
.hotel-body .e-font-icon-svg {
  width: 20px; height: 20px; fill: currentColor; flex-shrink: 0;
}
/* Icon-list items: flex con icono + texto */
.hotel-body ul > li {
  display: flex; align-items: flex-start; gap: 8px; list-style: none;
}
.hotel-body ul > li > span:first-child {
  flex-shrink: 0; display: flex; align-items: center;
  color: var(--accent); margin-top: 2px;
}
/* Ocultar botones de Booking.com inline de Elementor (sidebar gestiona las CTAs) */
.hotel-body a[href*="booking.com/hotel/"]:not(.btn) { display: none; }

/* ── Google Maps iframe ─────────────────────────────────── */
.hotel-body iframe {
  width: 100%; height: 300px; border: 0;
  border-radius: var(--radius); margin: 24px 0; display: block;
  box-shadow: var(--shadow-sm);
}

/* ── Galería de fotos (Swiper sin JS, layout mosaico) ──── */
.hotel-body [aria-roledescription="carousel"] [aria-live="off"] {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 160px;
  gap: 4px;
  margin: 20px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hotel-body [aria-roledescription="carousel"] [aria-live="off"] .swiper-slide {
  overflow: hidden; position: relative;
}
.hotel-body [aria-roledescription="carousel"] [aria-live="off"] .swiper-slide:first-child {
  grid-row: 1 / 3;
}
.hotel-body [aria-roledescription="carousel"] [aria-live="off"] .swiper-slide:nth-child(n+4) {
  display: none;
}
.hotel-body figure.swiper-slide-inner {
  height: 100% !important; margin: 0; border-radius: 0; display: block;
}
.hotel-body .swiper-slide-image,
.hotel-body [aria-roledescription="carousel"] img {
  width: 100% !important; height: 100% !important;
  object-fit: cover; border-radius: 0; display: block;
}
/* Ocultar controles de navegación */
.hotel-body [aria-roledescription="carousel"] [role="button"],
.hotel-body .swiper-pagination { display: none; }

/* ── Grid de iconos/amenidades (Elementor image-box) ── */
.hotel-body .e-con-inner:has(figure:not(.swiper-slide-inner)) {
  display: flex; flex-wrap: wrap; gap: 12px 16px; margin: 20px 0;
}
.hotel-body .e-con-inner:has(figure:not(.swiper-slide-inner)) > div {
  flex: 0 0 calc(16.66% - 14px); min-width: 72px; text-align: center;
}
.hotel-body figure:not(.swiper-slide-inner) {
  width: 56px; height: 56px; margin: 0 auto 5px;
  overflow: hidden; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.hotel-body figure:not(.swiper-slide-inner) img {
  width: 56px !important; height: 56px !important; object-fit: cover;
}
.hotel-body figure:not(.swiper-slide-inner) + div h3 {
  font-size: .72rem; color: var(--text-light); margin: 0; font-weight: 500;
}

/* ── Header de hotel con foto real ─────────────────────── */
.hotel-header--photo {
  padding: 0; position: relative; min-height: 380px;
  display: flex; align-items: flex-end;
}
.hotel-header__photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hotel-header__photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.22) 55%, transparent 100%);
}
.hotel-header--photo .container {
  position: relative; z-index: 1; padding: 48px 20px 36px; width: 100%;
}
@media (max-width: 640px) {
  .hotel-header--photo { min-height: 280px; }
}

/* ── Widget Bookaff (reemplazo estático) ────────────────── */
.bookaff-widget {
  background: linear-gradient(135deg, #fff9ee 0%, #fffaf0 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 28px 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.bookaff-widget__img { font-size: 3rem; flex-shrink: 0; line-height: 1; }
.bookaff-widget__body { flex: 1; min-width: 0; }
.bookaff-widget__label {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: .75rem; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 10px;
}
.bookaff-widget__title {
  font-size: 1.25rem; color: var(--primary); font-weight: 800;
  margin: 0 0 6px; line-height: 1.3; display: block;
}
.bookaff-widget__meta {
  color: var(--text-light); font-size: .9rem; margin-bottom: 16px;
  display: flex; align-items: center; gap: 6px;
}
.bookaff-widget__features {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
}
.bookaff-widget__feat {
  background: rgba(26,58,92,.07); color: var(--primary);
  font-size: .8rem; padding: 4px 10px; border-radius: 20px;
}
.bookaff-widget__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.bookaff-widget__note { font-size: .8rem; color: var(--text-light); font-style: italic; }
@media (max-width: 600px) {
  .bookaff-widget { flex-direction: column; padding: 20px; }
}

/* Sidebar */
.hotel-sidebar { position: sticky; top: 88px; }
.booking-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--accent);
  margin-bottom: 20px;
}
.booking-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  text-align: center;
}
.booking-card .btn { width: 100%; justify-content: center; margin-bottom: 10px; }
.booking-card__note {
  font-size: .78rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.info-card__title {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-light);
  margin-bottom: 14px;
}
.info-list { list-style: none; }
.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
}
.info-list li:last-child { border-bottom: none; }
.info-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }

/* ── Blog ──────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card__img {
  height: 160px;
  background: linear-gradient(135deg, var(--primary) 0%, #3a7fc1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  opacity: .5;
}
.blog-card__body { padding: 20px; }
.blog-card__title { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; line-height: 1.3; }
.blog-card__excerpt { font-size: .87rem; color: var(--text-light); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card__footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: .8rem; color: var(--text-light); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .site-logo { margin-bottom: 14px; font-size: 1.1rem; }
.footer-desc { font-size: .9rem; line-height: 1.7; }
.footer-col h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
                 color: var(--white); margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
}

/* ── Paginación ────────────────────────────────────────────── */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  border: 2px solid var(--border);
  color: var(--text);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ── 404 ────────────────────────────────────────────────────── */
.not-found {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.not-found__code { font-size: 8rem; font-weight: 900; color: var(--border); line-height: 1; }
.not-found__title { font-size: 2rem; color: var(--primary); font-weight: 700; margin-bottom: 12px; }
.not-found__text { color: var(--text-light); margin-bottom: 24px; }

/* ── Página informativa (page.php) ─────────────────────────── */
.page-info-content { padding: 48px 0 60px; }
.page-info-body { max-width: 820px; }
.page-info-body h2 { color: var(--primary); font-size: 1.35rem; font-weight: 700;
  margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.page-info-body h3 { color: var(--primary-dark); font-size: 1.1rem; font-weight: 700;
  margin: 24px 0 8px; }
.page-info-body p { margin-bottom: 16px; line-height: 1.75; color: var(--text); }
.page-info-body ul { margin: 0 0 16px 20px; }
.page-info-body li { margin-bottom: 8px; line-height: 1.65; color: var(--text); }
.page-info-body a:not(.btn) { color: var(--primary); text-decoration: underline; }
.page-info-body a:not(.btn):hover { color: var(--accent); }
.page-info-cta { margin-top: 48px; padding: 28px 32px; background: var(--bg);
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.page-info-cta p { margin: 0; font-weight: 600; color: var(--primary); flex: 1; min-width: 200px; }
.page-info-cta .btn { flex-shrink: 0; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hotel-layout { grid-template-columns: 1fr; }
  .hotel-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0;
              background: var(--primary-dark); flex-direction: column; padding: 12px;
              box-shadow: var(--shadow-md); }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 50px 0 40px; }
  .hero__search { flex-direction: column; border-radius: var(--radius-lg); padding: 12px; gap: 12px; }
  .hero__search button { border-radius: var(--radius); }
  .hotels-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
