/*
 Theme Name:   Lavanderia Landeo
 Theme URI:    https://lavanderialandeo.com/
 Description:  Lavanderia Landeo Theme
 Author:       Javier Enrique León 
 Author URI:   https://www.jeimage.com/
 Version:      1
*/

body {
  font-family: var(--fontMain) !important;
  color: var(--Negro) !important;
  font-size: 1rem;
}
img {
  max-width: 100%;
  height: auto;
}
::placeholder {
  color: #999 !important;
}
.alignleft {
  float: left;
  margin: 0 24px 24px 0;
}
.alignright {
  float: right;
  margin: 0 0 24px 24px;
}
.centered,
.aligncenter {
  display: block;
  margin: 0 auto 30px;
}

/* Backgrounds */
.bg-azul-claro {
  background-color: var(--AzulClaro);
}
.bg-azul-marino {
  background-color: var(--Azulmarino);
}

/* Colores */
.texto-azul-marino {
  color: var(--Azulmarino);
}

/* Sombra */
.sombra {
  text-shadow: 0 0 8px rgba(0, 0, 0, 1);
}

/* Headings */
h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3.625rem);
  font-weight: bold;
}
h2 {
  font-size: clamp(1.5rem, 1rem + 2.5vw, 2.25rem);
  font-weight: bold;
}
h4 {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.5rem);
  font-weight: bold;
}
.foto-texto h1,
.foto-texto h2,
.foto-texto h3,
.foto-texto h4,
.foto-texto h5,
.foto-texto h6,
.texto-foto h1,
.texto-foto h2,
.texto-foto h3,
.texto-foto h4,
.texto-foto h5,
.texto-foto h6,
.titulo-pagina h2 {
  margin-bottom: 1.5rem;
}

/* Formato */
p:last-of-type {
  margin-bottom: 0;
}

/* Header */
.navbar {
  z-index: 999;
}
.navbar-brand {
  max-width: 60%;
}
.navbar a {
  color: var(--white);
  text-decoration: none;
  transition: color ease-in 0.3;
  cursor: pointer;
  pointer: hand;
}
.navbar a:hover,
.navbar a.active {
  color: var(--AzulClaro) !important;
}
@media (min-width: 992px) {
  .navbar .nav-item {
    padding-top: 11px;
  }
  .navbar .nav-item:first-child {
    padding-top: 0;
  }
}
.navbar .nav-link {
  padding: 0 !important;
}
.lang-btn.active {
  color: var(--AzulClaro);
}

/* Banner */
.banner {
  min-height: 100dvh;
}
.video-bg {
  object-fit: cover; /* Clave: no deforma el video, lo recorta perfectamente */
  z-index: 0;
  pointer-events: none; /* Evita que el usuario pueda darle click derecho o pausarlo */
}
.banner .video-overlay {
  /* De arriba a abajo, sólido hasta el 59% y transparente al 100% */
  background: linear-gradient(
    to bottom,
    var(--Azulmarino) 59%,
    transparent 100%
  );
}
/* Asegurar el orden de las capas */
.video-overlay {
  z-index: 1;
}

.video-banner .container {
  z-index: 2;
}

/* Waves */
.bottom-custom {
  bottom: -1px;
}
.waves {
  position: relative;
  height: 150px;
  width: 100%;
  overflow: hidden;
  z-index: 99;
}
section .wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  /* background: url("https://raw.githubusercontent.com/ojitoslanda/testing/master/img/wave.png"); */
  background-size: 1000px 100px;
}

section .wave.wave1 {
  animation: animate 30s linear infinite;
  z-index: 1000;
  opacity: 1;
  animation-delay: 0s;
  background-image: url(images/ola-clara.png);
}
section .wave.wave2 {
  animation: animate2 15s linear infinite;
  z-index: 999;
  opacity: 1;
  animation-delay: -5s;
  bottom: 10px;
  background-image: url(images/ola-media.png);
}

section .wave.wave3 {
  animation: animate 30s linear infinite;
  z-index: 998;
  opacity: 1;
  animation-delay: -2s;
  bottom: 15px;
  background-image: url(images/ola-oscura.png);
}

section.olas-azul-marino .wave.wave1 {
  background-image: url(images/ola-oscura.png);
}
section.olas-azul-marino .wave.wave2 {
  background-image: url(images/ola-clara.png);
}

@keyframes animate {
  0% {
    background-position-x: 0;
  }

  100% {
    background-position-x: 1000px;
  }
}

@keyframes animate2 {
  0% {
    background-position-x: 0;
  }

  100% {
    background-position-x: -1000px;
  }
}

/* Botón */
.boton {
  background: var(--Azulmarino);
  font-size: 1.25rem;
  border-radius: 8px;
  padding: 8px 16px;
  color: #fff;
  text-decoration: none;
  transition: all ease-in 0.3s;
  cursor: pointer;
  pointer: hand;
  display: inline-block;
  border: none;
}
.boton:hover {
  background: var(--AzulRey);
}
.boton-big {
  padding: 1rem 1.5rem;
}
.boton-big-wa {
  padding: 1rem 1.5rem;
  background-color: #25d366;
}

/* Services */
.servicios .servicio-caja:nth-child(even) .servicio {
  background-color: var(--Azulmarino);
}

.servicios .servicio-caja:nth-child(odd) .servicio {
  background-color: var(--AzulRey);
}

.servicio {
  transition: transform ease-in 0.3s;
}

.servicio:hover {
  transform: scale(1.1);
}

/* Cientes */

.clientes .splide {
  padding: 1.5rem 1rem;
}

/* Banner página */
.page-banner {
  /* Creamos la variable con un valor base de respaldo */
  --nav-height: 80px;

  /* Aplicamos el padding dinámico */
  padding-top: var(--nav-height);
}

/* Texto foto */
.texto-foto b,
.texto-foto strong {
  color: var(--AzulRey);
}

/* Blockquote */
blockquote {
  position: relative;
  padding-left: 80px;
  margin-bottom: 0;
}
blockquote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  background-image: url("images/quote.svg") !important;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  user-select: none;
}

/* Valores */

.valores .texto h4::first-letter {
  font-size: 40px;
  font-weight: bold;
  display: inline-block;
  vertical-align: baseline;
  line-height: 1;
}

/* Servicios */
.servicio-i:nth-child(odd) .servicio-int {
  background-color: var(--Azulmarino);
}
.servicio-i:nth-child(even) .servicio-int {
  background-color: var(--AzulRey);
}
.servicio-int img.hf {
  opacity: 1;
  transition: opacity ease-in 0.3s;
}
.servicio-int:hover img.hf {
  opacity: 0;
}

/* Testimonios */
.carousel-indicators [data-bs-target] {
  padding: 0;
  width: 16px;
  height: 16px;
  border-radius: 160px;
  border: none;
  margin: 0 8px;
  opacity: 1;
  background-color: #fff;
}
.carousel-indicators [data-bs-target].active {
  background-color: var(--Azulmarino);
}

/* FAQ */

.accordion-item {
  border: none;
}
.accordion-item .accordion-header button {
  color: var(--Azulmarino);
  font-size: 1.5rem;
  font-weight: bold;
}
.accordion-item .accordion-header {
  color: var(--Azulmarino);
  font-size: 1.5rem;
  font-weight: bold;
  border: none;
  border-bottom: solid var(--Azulmarino) 2px;
}
.accordion-button:not(.collapsed) {
  color: var(--Azulmarino);
  background-color: transparent;
  box-shadow: none;
}
.accordion-button:focus {
  z-index: 3;
  border-color: transparent;
  outline: 0;
  box-shadow: unset;
}

/* Footer */
footer a {
  color: var(--white);
  text-decoration: none;
  transition: color ease-in 0.3;
  cursor: pointer;
  pointer: hand;
}
footer a:hover {
  color: var(--AzulClaro);
}

.organic-reveal-container {
  position: relative;
  width: 100%;
  height: 200px; /* Altura suficiente para que la hoja respire */
  margin-top: 10px;
}

/* LA CORTINA CSS: El secreto del éxito */
.reveal-mask {
  position: relative;
  width: 100%;
  height: 100%;
  border-bottom: 4px solid #ffffff; /* Tu línea de 4px de grosor */

  /* Estado inicial: oculto totalmente desde la derecha */
  clip-path: inset(0 100% 0 0);

  /* Animación automática al cargar: 4 segundos de elegancia */
  animation: revealAnimation 4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.8s; /* Un breve respiro para el usuario */
}

@keyframes revealAnimation {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

.leaf-asset {
  position: absolute;
  right: 60px; /* El aire de 60px solicitado */
  bottom: -2px; /* Sentada justo sobre la línea blanca */
  height: 120px; /* Altura proporcional para que se vea impecable */
  width: auto;
  display: block;
  pointer-events: none;
  /* Filtro de suavizado para el PNG */
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

.tagline {
  font-size: 0.7rem;
  opacity: 0.3;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .leaf-asset {
    right: 30px; /* Sentada justo sobre la línea blanca */
    height: 80px;
  }
}

/* El Lightbox Contenedor (Capa oscura) */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Cuando cambiamos el estado a visible */
.lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

/* Comportamiento de la imagen maximizada */
.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  user-select: none;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.lightbox[aria-hidden="false"] .lightbox-content img {
  transform: scale(1);
}

/* Botones de Control */
.lightbox-nav,
.lightbox-close {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1rem;
  z-index: 100000;
  transition: color 0.2s ease;
}
.lightbox-nav:hover,
.lightbox-close:hover {
  color: var(--AzulClaro);
}
.lightbox-close {
  top: 1rem;
  right: 1rem;
  font-size: 3.5rem;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-nav.prev {
  left: 1rem;
}
.lightbox-nav.next {
  right: 1rem;
}

/* Ocultamos flechas físicas en móviles para priorizar el arrastre táctil */
@media (max-width: 768px) {
  .lightbox-nav {
    display: none;
  }
}

.newsletter-form-container {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/* Clase que inyectará el JS para revelar el formulario */
.newsletter-form-container.is-open {
  max-height: 100px; /* Altura estimada para que el input se despliegue suavemente */
  opacity: 1;
  visibility: visible;
}

/* Control opcional para el ancho máximo del formulario inline */
.max-w-md {
  max-width: 450px;
}

/* Contacto */
.contenido input[type="text"],
.contenido input[type="tel"],
.contenido input[type="email"],
.contenido select {
  padding: 12px;
  border-radius: 12px;
  border: solid 1px var(--Gris);
  width: 100%;
}

.contenido textarea {
  padding: 12px;
  border-radius: 12px;
  border: solid 1px var(--Gris);
  width: 100%;
  height: 95px;
}

/* Banner extra */

/* 1. Contenedor del Banner */
.banner {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: #000; /* Fondo de seguridad */
  overflow: hidden;
}

/* 2. Capa que contiene las imágenes apiladas */
.banner-slider-css {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* 3. Estilo base de cada slide (Apiladas) */
.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

/* 4. Estilo de la imagen interna */
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 5. La primera imagen es la única visible al cargar */
.banner-slider-css .banner-slide:first-child {
  opacity: 1;
}

/* 6. Animación por cantidad de imágenes */
/* Si hay 2 imágenes */
.banner-slider-css[data-count="2"] .banner-slide:nth-child(1) {
  animation: fade2 12s infinite 0s;
}
.banner-slider-css[data-count="2"] .banner-slide:nth-child(2) {
  animation: fade2 12s infinite 6s;
}

/* Si hay 3 imágenes */
.banner-slider-css[data-count="3"] .banner-slide:nth-child(1) {
  animation: fade3 18s infinite 0s;
}
.banner-slider-css[data-count="3"] .banner-slide:nth-child(2) {
  animation: fade3 18s infinite 6s;
}
.banner-slider-css[data-count="3"] .banner-slide:nth-child(3) {
  animation: fade3 18s infinite 12s;
}

/* 7. Keyframes: Fade suave sin parpadeo (Capa sobre capa) */
@keyframes fade2 {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  60% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fade3 {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  33% {
    opacity: 1;
  }
  41% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

ul.dropdown-menu {
  transform: translateY(-6px);
}

.page-numbers {
  background-color: var(--AzulRey);
  color: #fff;
  display: inline-flex;
  height: 48px;
  width: 48px;
  border-radius: 136px;
  text-decoration: none;
  justify-content: center;
  align-items: center;
  margin: 0 6px;
  transition: background-color ease-in 0.3s;
}
.page-numbers:hover,
.page-numbers.current {
  background-color: var(--Azulmarino);
}

.galeria-img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.single .container img {
  border-radius: 1rem;
}
