@charset "UTF-8";

/* =========================================================
   HOME Â· CSS depurado para index.html
   Dependencias externas que siguen siendo necesarias:
   - /assets/css/fonts.css
   - /assets/css/swiper-bundle.min.css
   - /assets/css/flatpickr.min.css
   - /assets/css/footer.css
   ========================================================= */

:root {
  --arena-claro: #e8e5de;
  --verde-claro: #e3eae6;
  --verde-oscuro: #718473;
  --plomo: #515a6b;
  --gris-oscuro: #323741;
  --arena-oscuro: #a39382;
  --verde-medio: #afb8af;
  --arena-medio: #ccc7bf;
  --header-height: 100px;
  --container-width: 1200px;
  --container-padding: 40px;
}

/* =========================================================
   RESET / BASE
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Aribau Grotesk Light", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #3c3b3a;
  background-color: #fff;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.white {
  color: #fff;
}

.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}



/* =========================================================
   HERO / VÃDEO / PRELOADER
   ========================================================= */

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background-color: #fff;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.10);
}

.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78vh;
  min-height: 100vh;
  transform: translate(-50%, -50%);
}

.hero-fallback-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background-image: url("https://cortijobablou.es/assets/images/vistacortijo.jpeg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-video.show-fallback iframe {
  display: none;
}

.hero-video.show-fallback .hero-fallback-image {
  opacity: 1;
}

.hero-inner {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  max-width: var(--container-width);
  height: 100%;
  padding: 130px var(--container-padding) 40px;
  transform: translateX(-50%);
  text-align: center;
}

.hero-text {
  position: absolute;
  top: 55%;
  left: 50%;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto 60px;
  color: #fff;
  transform: translate(-50%, -50%);
  text-align: center;
  text-transform: none;
}

.hero-text h1 {
  margin: 0;
  font-family: "Retro Voice", serif;
  font-size: 60px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  font-weight: 100;
  text-transform: none;
}

.hero-subtitle {
  margin: 0;
  text-transform: uppercase;
}

#preloader {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 16px;
}

.preloader-logo {
  height: 170px;
}

.preloader-spinner {
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #323741;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   BARRA DE RESERVAS
   ========================================================= */

.booking-bar {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0;
  color: #fff;
  background-color: rgba(112, 131, 116, 0.8);
  border: 0.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: stretch;
}

.booking-field {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 9px 11px;
  background-color: rgba(112, 131, 116, 0.8);
  border: 0.5px solid rgba(255, 255, 255, 0.35);
}

.booking-field label {
  margin-bottom: 4px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-align: left;
  text-transform: uppercase;
  opacity: 0.85;
}

.booking-field input,
.booking-field select {
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 11px;
}

.booking-field input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.booking-field select {
  appearance: none;
}

.booking-submit {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  background-color: #fff;
}

.btn-buscar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 0;
  background-color: #fff;
  color: #323741;
  font-size: 11px;
  font-weight: 200;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-buscar:hover {
  color: #718473;
}

.booking-submit:hover {
  color: #fff;
  background-color: rgba(112, 131, 116, 1);
}

.booking-btn-desktop {
  display: inline-flex;
}

.booking-btn-mobile {
  display: none !important;
}

.mobile-nav a.btn-buscar.mobile-menu-reserva {
  color: #718473;
  background-color: #fff;
}

/* =========================================================
   SECCIONES GENERALES
   ========================================================= */

.section-general,
.section-centrado {
  padding: 80px 0;
  background-color: #fff;
}

.section-general-verde {
  padding: 80px 0;
  background-color: #718473;
}

.section-general-inner,
.section-centrado-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 30px;
}

.section-general-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-areas:
    "text media"
    "actions media";
  align-items: stretch;
  column-gap: 60px;
  row-gap: 20px;
}

.section-general--reverse .section-general-inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  grid-template-areas:
    "media text"
    "media actions";
}

.section-general-text {
  grid-area: text;
}

.section-general-media {
  grid-area: media;
  display: flex;
  align-self: right;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
	max-width: 400px;
}

.section-general-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: cover;
}

.section-general-actions,
.section-centrado-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section-general-actions {
  grid-area: actions;
  align-self: end;
}

.section-centrado-actions {
  justify-content: center;
  align-items: center;
  padding: 25px 40px;
  margin-top: 12px;
}

.section-eyebrow,
.section-centrado-eyebrow,
.section-eyebrow-white {
  margin: 0 0 18px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-eyebrow,
.section-centrado-eyebrow {
  color: #8b8f96;
}

.section-eyebrow-white {
  color: #fff;
}

.section-general-title,
.section-general-title.section-general-title {
  margin: 0 0 26px;
  color: #303642;
  font-family: "Retro Voice", serif;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

/* Título blanco en secciones de fondo verde */
.section-general-verde .section-general-title,
.section-general-gris .section-general-title {
  color: #fff;
}

.section-general-body p {
  margin: 0 0 14px;
  color: #303642;
  font-size: 14px;
  line-height: 1.5;
}

.section-general-body-white {
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.section-general-body-white p {
  margin: 0 0 14px;
}

.btn-outline,
.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 15px 30px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-outline {
  border: 0.7px solid #303642;
  background-color: transparent;
  color: #303642;
}

.btn-outline:hover {
  background-color: #303642;
  color: #fff;
}

.btn-outline--white {
  border-color: #fff;
  color: #fff;
}

.btn-outline--white:hover {
  background-color: #fff;
  color: #303642;
}

.btn-solid {
  border: 0.7px solid #303642;
  background-color: #303642;
  color: #fff;
}

.btn-solid:hover {
  background-color: transparent;
  color: #303642;
}

.btn-solid-white {
  border-color: #fff;
  background-color: #fff;
  color: #303642;
}

.btn-solid-white:hover {
  border-color: #303642;
  background-color: #303642;
  color: #fff;
}

/* =========================================================
   HOME Â· BLOQUE HABITACIONES
   ========================================================= */

.section-centrado {
  background-color: #f8f5f0;
}

.section-centrado-inner {
  text-align: center;
}

.habitaciones-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
}

.habitacion-card {
  text-align: center;
}

.habitacion-media {
  position: relative;
  width: 100%;
  padding-top: 130%;
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid #fff;
  background-color: #fff;
}

.habitacion-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.habitacion-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.habitacion-card:hover .habitacion-overlay {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.3);
}

.habitacion-overlay-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.habitacion-title {
  margin: 0;
  color: #fff;
  font-family: "Retro Voice", serif;
  font-size: 28px;
  letter-spacing: 0.03em;
  text-transform: none;
}

.habitacion-text {
  margin: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
}

.habitacion-link-label {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* =========================================================
   CARRUSEL HOME
   ========================================================= */

.carrusel-slider {
  max-width: 1180px;
  margin: 60px auto 0;
  padding: 0;
}

.carrusel-swiper {
  width: 100%;
  overflow: hidden;
}

.carrusel-slide {
  position: relative;
  overflow: hidden;
}

.carrusel-slide::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.carrusel-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carrusel-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  max-width: 100%;
  height: 3px;
  background-color: #5f7660;
  transition: all 0s linear;
}

.carrusel-swiper .swiper-slide-active .carrusel-progress-bar {
  width: 100%;
  transition-duration: 5000ms;
}

.carrusel-pagination-wrapper {
  margin-top: 48px;
  text-align: center;
}

.carrusel-pagination {
  display: inline-block;
}

.carrusel-pagination .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  margin: 0 4px !important;
  border: 1px solid #5f7660;
  border-radius: 0;
  background-color: transparent;
  opacity: 1;
  cursor: pointer;
}

.carrusel-pagination .swiper-pagination-bullet-active {
  background-color: #5f7660;
}

/* =========================================================
   BLOQUE ACEITE
   ========================================================= */

#aceite .section-general-inner {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-areas:
    "text media"
    "promo media";
  padding-top: 30px;
}

#aceite .section-general-text,
#aceite .section-general-body p {
  text-align: center;
}

#aceite .section-centrado-inner {
  grid-area: promo;
  padding: 0;
}

#aceite .section-centrado-actions {
  justify-content: center;
  padding: 0;
}

#aceite .section-general-title-secondary {
  display: block;
  margin: 0 0 26px;
  color: #303642;
  font-family: "Retro Voice", serif;
  font-size: 30px;
  line-height: 1.1;
  text-transform: none;
	
}

/* =========================================================
   FRANJA CTA CON IMAGEN
   ========================================================= */

.section-full-bleed-short {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.section-full-bleed-bg {
  position: absolute;
  inset: 0;
  background-color: var(--verde-oscuro);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.section-full-bleed-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.section-full-bleed-short::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.35);
}

.section-full-bleed-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: var(--container-width);
  height: 100%;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
}

.section-full-bleed-short .hero-text {
  position: static;
  transform: none;
  margin: 0 auto;
}

.section-franja-text-white {
  display: block;
  margin: 0 0 12px;
  color: #fff;
  font-family: "Retro Voice", serif;
  font-size: 40px;
  line-height: 1.1;
	letter-spacing: 1.6px;
}

#imagen {
  position: relative;
  overflow: hidden;
}

#imagen .section-full-bleed-bg,
#imagen .section-full-bleed-img {
  position: absolute;
  inset: 0;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 769px) and (max-width: 1200px) {
  .header-inner {
    padding: 14px 24px;
  }

  .nav-left,
  .nav-right {
    column-gap: 30px;
    letter-spacing: 0.14em;
  }

  .main-nav ul {
    gap: 18px;
  
}
}


@media (min-width: 769px) and (max-width: 1024px) {
  .booking-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-general-inner {
    grid-template-areas:
      "text media"
      "actions actions";
  }

  .section-general-actions {
    flex-wrap: nowrap;
  }

  .section-general-actions .btn-outline,
  .section-general-actions .btn-solid {
    padding: 15px 22px;
    white-space: nowrap;
  }
	.hero-text h1 {
    font-size: 14px;
    letter-spacing: 0.1em;
  }
}

/* =========================================================
   MÃVIL
   ========================================================= */

@media (max-width: 1000px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
    width: 100%;
  }

  .header-inner {
    min-height: auto;
    padding: 12px 16px;
  }

  .header-logo {
    display: none;
  }

  .mobile-header-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 12px;
  }

  .mobile-header-top .lang-switcher {
    justify-self: flex-start;
    color: #fff;
  }

  .mobile-logo {
    justify-self: center;
  }

  .mobile-logo img {
    height: 100px;
  }

  .nav-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 0.5px;
    background-color: #fff;
    border-radius: 999px;
    transition: transform 0.22s ease, opacity 0.22s ease, top 0.22s ease, bottom 0.22s ease;
  }

  .nav-toggle span:nth-child(1) {
    top: 0;
  }

  .nav-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-toggle span:nth-child(3) {
    bottom: 0;
  }

  .nav-toggle.is-active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }

  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:nth-child(3) {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(-45deg);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 88px;
  }

  .hero-inner {
    padding: 110px 20px calc(100px + env(safe-area-inset-bottom));
  }

  .hero-text {
    margin-bottom: 32px;
    padding: 10px;
  }

  .hero-text h1 {
    font-size: 22px;
    letter-spacing: 0.1em;
  }

	.hero-subtitle {
  padding: 0 40px;
  text-transform: uppercase;
}
  .mobile-menu.is-open {
    display: flex;
    flex-direction: column;
    padding-top: 120px;
    padding-bottom: calc(100px + 50px + 24px + env(safe-area-inset-bottom));
  }

  .mobile-menu.is-open .mobile-nav {
    flex: 1;
    width: 100%;
    padding: 0 24px;
  }

  .mobile-menu.is-open .mobile-menu-reserva {
    position: fixed;
    left: 50%;
    bottom: calc(100px + env(safe-area-inset-bottom));
    z-index: 1100;
    width: calc((100vw - 40px) * 0.7);
    max-width: 680px;
    margin: 0;
    transform: translateX(-50%);
  }

  .mobile-menu.is-open ~ .hero .booking-bar {
    opacity: 0;
    pointer-events: none;
  }

  .booking-form {
    grid-template-columns: 1fr;
  }

  .booking-bar {
    max-width: 70%;
  }

  .booking-field,
  .booking-btn-desktop {
    display: none;
  }

  .booking-btn-mobile {
    display: inline-flex;
    justify-content: center;
    width: 100%;
  }

  .section-general,
  .section-general-verde,
  .section-centrado {
    padding: 60px 0;
  }

  .section-general-inner,
  .section-centrado-inner {
    padding: 0 30px;
  }

  .section-general-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .section-general-text,
  .section-general-media,
  .section-general-actions {
    width: 100%;
  }

  .section-general-actions {
    flex-direction: column;
    align-items: flex-start;
	  padding-top: 30px;
  }

  .section-general-actions .btn-outline,
  .section-general-actions .btn-solid {
    align-self: flex-start;
    white-space: nowrap;
  }

  .section-centrado-inner {
    padding: 0;
  }

  .section-centrado {
    padding: 30px;
  }

  .section-centrado-actions {
    flex-wrap: wrap;
    justify-content: center;
    padding: 35px 0 35px;
  }

  .habitaciones-grid {
    grid-template-columns: 1fr;
    padding: 50px 0 0;
  }

  .carrusel-slider {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
  }

  #aceite .section-general-inner {
    text-align: center;
    padding: 0 30px;
  }

  #aceite .section-general-text {
    order: 1;
  }

  #aceite .section-general-media {
    order: 2;
  }

  #aceite .section-centrado-inner {
    order: 3;
  }

  #aceite .section-centrado-actions {
    padding: 30px;
  }

  #aceite .section-general-title-secondary {
    font-size: 26px;
  }
.section-full-bleed-short {
  height: 50vh;
	}
  .section-full-bleed-inner {
    padding: 10px;
  }

  .section-franja-text-white {
    font-size: 34px;
	  padding: 0;
  }
}
