/*
Theme Name: Parador del Gitano
Template:   generatepress
Version:    1.0
Description: Child theme para Hotel Parador del Gitano
Author:     Parador del Gitano
*/

/* ================================================
   GOOGLE FONTS
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Jost:wght@300;400;500&display=swap');

/* ================================================
   VARIABLES CSS
   ================================================ */
:root {
  --oro:          #C9A84C;
  --oro-claro:    #E8C96A;
  --verde:        #2A3D2E;
  --verde-medio:  #3D5E42;
  --crema:        #F5F0E8;
  --blanco:       #FDFCF9;
  --texto:        #1C2B1E;
  --gris:         #6B7A6E;
}

/* ================================================
   RESET GLOBAL
   ================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ================================================
   BODY
   ================================================ */
body {
  font-family: 'Jost', sans-serif;
  color: var(--texto);
  background: var(--blanco);
  padding-bottom: 64px;
  line-height: 1.6;
}

/* ================================================
   HEADINGS
   ================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.2;
  font-weight: 400;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }

/* ================================================
   NAV STICKY
   ================================================ */
#site-navigation {
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#site-navigation.scrolled {
  background: var(--verde) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* ================================================
   CLASES UTILITARIAS
   ================================================ */
.btn-primario {
  display: inline-block;
  background: var(--oro);
  color: var(--verde) !important;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border: 2px solid var(--oro);
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn-primario:hover {
  background: var(--oro-claro);
  border-color: var(--oro-claro);
  transform: translateY(-2px);
}

.btn-secundario {
  display: inline-block;
  background: transparent;
  color: var(--blanco) !important;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border: 2px solid rgba(255,255,255,0.6);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
}

.btn-secundario:hover {
  border-color: var(--oro);
  color: var(--oro) !important;
  background: rgba(201,168,76,0.1);
  transform: translateY(-2px);
}

.label-seccion {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 12px;
}

.titulo-seccion {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--texto);
  margin-bottom: 40px;
}

.titulo-seccion em {
  font-style: italic;
  color: var(--oro);
}

/* ================================================
   BARRA FLOTANTE
   ================================================ */
.barra-flotante {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--verde);
  border-top: 2px solid var(--oro);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.barra-flotante a {
  color: var(--crema);
  text-decoration: none;
  font-size: 0.82rem;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.barra-flotante a:hover {
  color: var(--oro-claro);
}

.barra-flotante .btn-reservar {
  background: var(--oro);
  color: var(--verde) !important;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 20px;
  border: none;
  text-decoration: none;
  transition: background 0.3s ease;
}

.barra-flotante .btn-reservar:hover {
  background: var(--oro-claro);
}

.barra-flotante .sep {
  color: var(--oro);
  opacity: 0.5;
  font-size: 0.7rem;
}

/* ================================================
   ANIMACIONES REVEAL
   ================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://www.paradordelgitano.com/wp-content/uploads/2023/05/DJI_0897.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(28,43,30,0.6), rgba(28,43,30,0.75));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--blanco);
  padding: 0 24px;
  max-width: 800px;
}

.hero-eyebrow {
  display: block;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--oro-claro);
  margin-bottom: 20px;
}

.hero-content h1 {
  color: var(--blanco);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-content h1 em {
  color: var(--oro-claro);
  font-style: italic;
}

.hero-sub {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: rgba(253,252,249,0.85);
  margin-bottom: 36px;
  text-transform: uppercase;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(253,252,249,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--oro);
  border-bottom: 2px solid var(--oro);
  transform: rotate(45deg);
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* ================================================
   BARRA CONFIANZA
   ================================================ */
.barra-confianza {
  background: var(--verde);
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.barra-confianza .trust-item {
  color: var(--crema);
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.barra-confianza .trust-item span.stars {
  color: var(--oro);
}

.barra-confianza .trust-sep {
  color: var(--oro);
  opacity: 0.4;
}

/* ================================================
   PROPUESTA DE VALOR
   ================================================ */
.propuesta {
  background: var(--crema);
  padding: 100px 40px;
}

.propuesta-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.propuesta-header {
  text-align: center;
  margin-bottom: 64px;
}

.propuesta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.propuesta-item {
  position: relative;
  padding: 40px 32px;
  background: var(--blanco);
  border-bottom: 3px solid var(--oro);
}

.propuesta-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 300;
  color: var(--oro);
  opacity: 0.15;
  line-height: 1;
}

.propuesta-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.propuesta-item h3 {
  color: var(--texto);
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.propuesta-item p {
  color: var(--gris);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ================================================
   HABITACIONES
   ================================================ */
.habitaciones {
  background: var(--blanco);
  padding: 100px 40px;
}

.habitaciones-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.habitaciones-header {
  margin-bottom: 48px;
}

.habitaciones-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.hab-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hab-card:first-child {
  grid-row: span 2;
  min-height: 520px;
}

.hab-card:not(:first-child) {
  min-height: 240px;
}

.hab-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 100%;
}

.hab-card-sub {
  position: relative;
  overflow: hidden;
  min-height: 240px;
}

.hab-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.hab-card:hover .hab-img,
.hab-card-sub:hover .hab-img {
  transform: scale(1.05);
}

.hab-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,43,30,0.85) 0%, rgba(28,43,30,0.1) 60%);
  transition: opacity 0.3s ease;
}

.hab-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
}

.hab-info h3 {
  color: var(--blanco);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.hab-info .hab-link {
  display: inline-block;
  color: var(--oro);
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hab-info .hab-link:hover {
  color: var(--oro-claro);
}

/* ================================================
   DESTINOS
   ================================================ */
.destinos {
  background: var(--verde);
  padding: 100px 40px;
  color: var(--crema);
}

.destinos-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.destinos-header {
  margin-bottom: 56px;
}

.destinos-header .label-seccion { color: var(--oro-claro); }
.destinos-header .titulo-seccion { color: var(--blanco); }

.destinos-grid {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 40px;
  align-items: start;
}

.destino-card {
  background: rgba(255,255,255,0.07);
  border-left: 3px solid var(--oro);
  padding: 40px;
  transition: background 0.3s ease;
}

.destino-card:hover {
  background: rgba(255,255,255,0.12);
}

.destino-card .dist {
  font-size: 0.8rem;
  color: var(--oro-claro);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-family: 'Jost', sans-serif;
}

.destino-card h3 {
  color: var(--blanco);
  margin-bottom: 16px;
  font-size: 1.8rem;
}

.destino-card p {
  color: rgba(245,240,232,0.8);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.destino-card .dest-link {
  color: var(--oro);
  text-decoration: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(201,168,76,0.4);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.destino-card .dest-link:hover {
  color: var(--oro-claro);
  border-color: var(--oro-claro);
}

/* ================================================
   SOSTENIBLE
   ================================================ */
.sostenible {
  background: var(--blanco);
  padding: 100px 40px;
}

.sostenible-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.sostenible-header {
  text-align: center;
  margin-bottom: 64px;
}

.sostenible-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.sos-card {
  border: 1px solid rgba(201,168,76,0.35);
  padding: 48px 40px;
  border-left: 4px solid var(--oro);
  transition: box-shadow 0.3s ease;
}

.sos-card:hover {
  box-shadow: 0 8px 40px rgba(201,168,76,0.12);
}

.sos-icon {
  font-size: 2.4rem;
  margin-bottom: 20px;
  display: block;
}

.sos-card h3 {
  color: var(--texto);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.sos-card p {
  color: var(--gris);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ================================================
   GALERÍA
   ================================================ */
.galeria {
  background: var(--crema);
  padding: 100px 40px;
}

.galeria-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.galeria-header {
  text-align: center;
  margin-bottom: 48px;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 260px 260px;
  gap: 12px;
}

.gal-item {
  overflow: hidden;
  position: relative;
}

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

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gal-item:hover img {
  transform: scale(1.08);
}

/* ================================================
   TESTIMONIOS
   ================================================ */
.testimonios {
  background: var(--blanco);
  padding: 100px 40px;
}

.testimonios-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.testimonios-header {
  text-align: center;
  margin-bottom: 64px;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.test-card {
  background: var(--crema);
  padding: 48px 36px 36px;
  position: relative;
  border-bottom: 3px solid var(--oro);
}

.test-quote {
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--oro);
  opacity: 0.25;
}

.test-card p {
  color: var(--texto);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
}

.test-stars {
  color: var(--oro);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.test-autor {
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gris);
  letter-spacing: 0.05em;
}

.test-fuente {
  font-size: 0.75rem;
  color: var(--oro);
  display: block;
  margin-top: 2px;
}

/* ================================================
   CTA FINAL
   ================================================ */
.cta-final {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://www.paradordelgitano.com/wp-content/uploads/2023/05/CTZY8745.jpg');
  background-size: cover;
  background-position: center;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(42,61,46,0.82);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--blanco);
  padding: 60px 24px;
  max-width: 720px;
}

.cta-content h2 {
  color: var(--blanco);
  margin-bottom: 20px;
}

.cta-content h2 em {
  color: var(--oro-claro);
}

.cta-content p {
  color: rgba(253,252,249,0.85);
  font-size: 1rem;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================================
   MEDIA QUERIES
   ================================================ */
@media (max-width: 992px) {
  .propuesta-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .hab-card:first-child {
    grid-row: span 1;
    min-height: 360px;
  }

  .hab-card-inner {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 220px 220px 220px;
  }

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

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

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

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

  .hab-card-inner {
    grid-template-columns: 1fr;
  }

  .barra-confianza {
    gap: 16px;
    padding: 14px 16px;
  }

  .barra-confianza .trust-sep {
    display: none;
  }

  .barra-flotante {
    gap: 12px;
    padding: 8px 12px;
  }

  .barra-flotante a {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .propuesta,
  .habitaciones,
  .destinos,
  .sostenible,
  .galeria,
  .testimonios {
    padding: 64px 20px;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .galeria-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

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

  .gal-item {
    height: 220px;
  }
}

/* ================================================
   PROBLEMA 1 — OCULTAR HEADER (logo/título) DE GENERATEPRESS
   Solo en página de inicio el header con título se oculta;
   en otras páginas se oculta igualmente porque la nav es suficiente.
   ================================================ */
.site-header {
  display: none !important;
}

/* ================================================
   PROBLEMA 3 — NAV TRANSPARENTE (estado inicial)
   GeneratePress usa <nav class="nav-primary">.
   La hacemos fija, transparente inicialmente y verde al hacer scroll.
   ================================================ */
.nav-primary {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent !important;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Al hacer scroll: fondo verde */
.nav-primary.scrolled {
  background: var(--verde) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* Links del menú en blanco inicialmente */
.nav-primary:not(.scrolled) .main-nav a,
.nav-primary:not(.scrolled) a {
  color: var(--blanco) !important;
}

.nav-primary:not(.scrolled) .main-nav a:hover,
.nav-primary:not(.scrolled) a:hover {
  color: var(--oro-claro) !important;
}

/* Botón de menú móvil en blanco */
.nav-primary:not(.scrolled) .menu-toggle {
  color: var(--blanco) !important;
}

/* Hero: ocupa toda la pantalla desde top:0 */
.page-template-page-inicio .hero {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.page-template-page-inicio {
  padding-top: 0 !important;
}

/* Resto de páginas: espacio para la nav fija */
body:not(.page-template-page-inicio) .site-content,
body:not(.page-template-page-inicio) #content {
  padding-top: 80px;
}

/* ================================================
   PROBLEMA 1 — OCULTAR NAV GENERATEPRESS EN PÁGINA INICIO
   (reemplazada por .hero-nav personalizada)
   ================================================ */
.page-template-page-inicio .nav-primary,
.page-template-page-inicio .main-navigation,
.page-template-page-inicio #site-navigation {
  display: none !important;
}

/* ================================================
   AJUSTE 1 — ANCHO COMPLETO (eliminar márgenes GeneratePress)
   ================================================ */
.site-content,
.grid-container,
.inside-site-content,
#page,
.site {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.page-template-page-inicio .content-area,
.page-template-page-inicio .site-content,
.page-template-page-inicio #primary {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.page-template-page-inicio .entry-content,
.page-template-page-inicio .entry-header {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.page-template-page-inicio .site-content {
  padding-top: 0 !important;
}

/* ================================================
   AJUSTE 3 — QUITAR CRÉDITO GENERATEPRESS
   ================================================ */
.site-info,
.wp-site-blocks > footer .site-info {
  display: none !important;
}
