/* ==========================================================
   VARIABLES Y BASE FLUIDA
   Rango objetivo: 320px (móvil pequeño) → 3840px (4K)
   ========================================================== */
   
    :root {
  --gold: #EFBF04;
  --gold-bright: #EFBF04;
  /* Altura aproximada del header fijo (móvil/tablet) */
  --header-h: clamp(64px, 5vw + 32px, 84px);
}

/* Escritorio (≥1280px). --logo-h es la ÚNICA medida base del header:
   vale 85px (tu diseño original) desde ~1360px hacia abajo y crece
   suavemente en pantallas grandes. Logo, muñeca, copas y badge se
   calculan como proporción de esta variable, así todo escala junto
   y conserva la composición exacta del diseño original. */
@media (min-width: 1280px) {
  :root {
    --logo-h: clamp(85px, 4.4vw + 25px, 220px);
    --header-h: calc(var(--logo-h) + 1.9rem);
  }
}

/* Tamaño de fuente raíz fluido:
   ~14px a 360px  →  ~16px a 1440px  →  ~20px a 3840px (tope 22px).
   Todo lo medido en rem escala solo con la pantalla. */
html {
  font-size: clamp(0.875rem, 0.833rem + 0.185vw, 1.375rem);
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
          text-size-adjust: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img,
svg,
video {
  max-width: 100%;
}

/* Las imágenes del header tienen tamaño propio: sin tope de ancho ni
   encogimiento (esto era lo que dejaba el logo diminuto). */
.site-header img {
  max-width: none;
  flex-shrink: 0;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(132deg, #000000,#00ff00, #0000ff,#e60073,#ff0000,#ffffff);
  background-size: 400% 400%;
  animation: BackgroundGradient 15s ease infinite;
  font-family: 'Cormorant Garamond', serif;
}

@keyframes BackgroundGradient {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}


/* ==========================================================
   HEADER (base / escritorio ≥ 1280px)
   Las medidas que antes eran px fijos (-160px, 600px, 170px…)
   ahora son proporcionales al ancho de pantalla.
   ========================================================== */

.site-header {
  width: 100%;
  background: #000;
  padding: 0.8rem clamp(1rem, 1.2vw, 4rem);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
}

.site-header a {
  text-decoration: none;
  color: var(--gold);
}

.barra {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-texto {
  /* Original: 85px de alto y margin-left -160px (= 1.88 × alto) */
  height: var(--logo-h, 85px);
  width: auto;
  margin-left: calc(var(--logo-h, 85px) * -1.882); /* ajusta según la posición de tu logo circular */
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: brightness(0) saturate(100%) invert(78%) sepia(75%) saturate(2077%) hue-rotate(4deg) brightness(101%) contrast(98%);
}

.logo-texto:hover {
  transform: scale(1.03);
}

/* Badge "15 años": original 100px de alto (= 1.18 × --logo-h),
   ahora centrado en el header en vez de fijo a 600px. */
.user-login img {
  height: calc(var(--logo-h, 85px) * 1.176);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.nav {
  display: flex;
  gap: clamp(1px, 0.65vw, 2px);
  justify-content: center;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--gold-bright);
  margin: 0 clamp(0.6rem, 1.2vw, 2rem);
  font-weight: 500;
  font-size: clamp(1rem, 0.8rem + 0.3vw, 1.6rem);
}

.nav a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--gold-bright);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.nav > a,
.menu-desplegable > a,
.menu-desplegable > .servicio-mobile-toggle {
  transition: opacity 0.25s ease, color 0.25s ease;
}

/* Atenúa SOLO el primer nivel, y solo en escritorio con mouse */
@media (hover: hover) and (min-width: 1280px) {
  .nav:has(> a:hover, > .menu-desplegable:hover) > a:not(:hover),
  .nav:has(> a:hover, > .menu-desplegable:hover) > .menu-desplegable:not(:hover) > a,
  .nav:has(> a:hover, > .menu-desplegable:hover) > .menu-desplegable:not(:hover) > .servicio-mobile-toggle {
    opacity: 0.3;
  }
}

 /* =====================================================
   MENÚ HAMBURGUESA
===================================================== */
.menu-toggle {
  display: none;
}


/* Muñeca (icono izquierdo) y copas (icono derecho) — base escritorio */
/* Originales: 50px de ancho (= 0.59 × --logo-h); copas desplazadas
   170px a la izquierda (= 2 × --logo-h) para superponerse al texto */
.icono-izquierdo {
  width: calc(var(--logo-h, 85px) * 0.588);
  position: relative;
  left: 2px;
  top: 2px;
  transition: .3s;
}

.icono-derecho {
  width: calc(var(--logo-h, 85px) * 0.588);
  position: relative;
  right: calc(var(--logo-h, 85px) * 2);
  top: calc(var(--logo-h, 85px) * 0.176);
  transition: .3s;
}

.icono-izquierdo:hover,
.icono-derecho:hover {
  transform: scale(1.08);
}

.icono-izquierdo,
.icono-derecho {
  filter:
    drop-shadow(0 0 8px rgba(175,148,83,.5))
    drop-shadow(0 0 18px rgba(175,148,83,.3));
}

.icono-izquierdo {
  animation:
    entrarIzquierda 1.2s ease-out,
    flotar 4s ease-in-out infinite 1.2s,
    brilloDorado 4s ease-in-out infinite 1.2s;
}

.icono-derecho {
  animation:
    entrarDerecha 1.2s ease-out,
    flotar 4s ease-in-out infinite 1.2s,
    brilloDorado 4s ease-in-out infinite 1.2s;
}

@keyframes flotar {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-5px) rotate(2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes brilloDorado {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(175,148,83,.5));
  }
  60% {
    filter:
      drop-shadow(0 0 12px rgba(240, 182, 46, 0.9))
      drop-shadow(0 0 25px rgba(235, 192, 51, 0.7));
  }
}

@keyframes entrarIzquierda {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes entrarDerecha {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ==========================================================
   HEADER RESPONSIVE — bloque único
   Tablets/laptops chicas: 769px–1279px | Celulares: hasta 768px
   Tamaños de logo/iconos fluidos entre 320px y 1279px.
   ========================================================== */

@media (max-width: 1279px) {

  .site-header {
    padding: 0.6rem clamp(0.75rem, 3vw, 1.5rem);
  }

  .barra {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    position: relative;
  }

  /* LOGO */
  .logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
  }

  .logo-texto {
    height: clamp(36px, 3.5vw + 28px, 60px);
    width: auto;
    position: relative;
    left: -9px;
    margin: 0;
    padding: 0;
    display: block;
    object-fit: contain;
  }

  /* MUÑECA */
  .icono-izquierdo {
    width: clamp(30px, 5vw + 14px, 56px);
    position: relative;
    left: -9px;
    top: 0;
    margin-right: 3px;
    flex-shrink: 0;
  }

  /* COPAS */
  .icono-derecho {
    width: clamp(24px, 4vw + 12px, 46px);
    position: relative;
    left: -9px;
    right: auto;
    top: 0;
    margin-left: 3px;
    flex-shrink: 0;
  }

  /* LOGO 15 AÑOS (badge circular centrado) */
  .user-login {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
  }

  .user-login img {
    position: static !important;
    width: clamp(52px, 4vw + 36px, 76px);
    height: clamp(52px, 4vw + 36px, 76px);
    object-fit: contain;
    border-radius: 50%;
    transform: none !important;
  }

  /* HAMBURGUESA */
  .menu-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;   /* área táctil mínima recomendada */
    height: 44px;
    cursor: pointer;
    z-index: 10;
  }

  .menu-toggle img {
    width: clamp(24px, 2vw + 16px, 34px);
    height: auto;
    display: block;
    filter: brightness(0) saturate(100%) invert(78%) sepia(75%) saturate(2077%) hue-rotate(4deg) brightness(101%) contrast(98%);
  }

  /* MENÚ DESPLEGABLE (tablet + celular) */
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: linear-gradient(180deg, #0d0d0d, #000);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
    display: none;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    z-index: 2001;
    border-top: 2px solid var(--gold);
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
  }

  .nav.active {
    display: flex;
    animation: navAbrir 0.3s ease;
  }

  @keyframes navAbrir {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav > a,
  .nav > .menu-desplegable {
    width: 100%;
  }

  .nav a {
    display: block;
    width: 100%;
    margin: 0;
    padding: clamp(0.9rem, 1.5vw + 0.6rem, 1.25rem) 0;
    font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.35rem);
    letter-spacing: 0.4px;
    text-align: center;
    border-bottom: 1px solid rgba(175, 148, 83, 0.18);
    transition: background 0.25s ease, color 0.25s ease;
  }

  .nav > a:last-child {
    border-bottom: none;
  }

  .nav a:hover,
  .nav a:active {
    background: rgba(175, 148, 83, 0.14);
    color: #fff;
    text-decoration: none;
  }

/* Respeta la preferencia del sistema si el usuario pidió menos
   animaciones */
@media (prefers-reduced-motion: reduce) {
    .nav.active {
        animation: none;
    }
}


    .menu-desplegable .contenido-desplegable {
        position: static;
    }
}

/* =====================================================
   CONTACTO
   El layout ahora usa flexbox con wrap: los dos bloques
   (caja dorada + formulario) se acomodan lado a lado
   cuando hay espacio y se apilan solos cuando no lo hay,
   en vez de forzar "fila" desde 1024px y "columna" hasta
   768px (lo que dejaba la tablet, entre 768 y 1024, con
   un choque de anchos: un bloque al 100% y el otro al 50%
   dentro de un contenedor que no permitía envolver).
===================================================== */

.contenido-contacto {
  padding: 3rem;
  padding-top: 115px;
}

.contacto-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contacto-info,
.formulario-container {
  flex: 1 1 380px;
  max-width: 460px;
}

.contacto-info {
  background-color: #000000;
  color: rgba(255,255,255);
  padding: 4rem 2rem;
  text-align: center;
  align-items: center;
  position: relative;
}

.contacto-info img.icono-flor {
  position: absolute;
  max-width: 15%;
  top: 120px;
  left: 14%;
}

.logo-contacto {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.logo-contacto img {
  width: 400px;
  height: auto;
  display: block;
}

.texto-contacto {
  font-size: 1.3rem;
  line-height: 1.6;
  font-weight: 500;
  text-align: center;
}

.formulario-container {
  background: #fbfbfb;
  padding: 3rem 2.5rem;
}

.titulo-formulario {
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
  color: #b79513;
  font-weight: 600;
  text-align: center;
}

.formulario .fila {
  display: block;
  gap: 0;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.campo {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.campo label {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #b79513;
  text-align: left;
}

.campo input,
.campo textarea {
  border: none;
  border-bottom: 2px solid #b79513;
  padding: 0.5rem 0;
  font-size: 1rem;
  background-color: transparent;
  outline: none;
  width: 100%;
}

.campo textarea {
  resize: vertical;
  min-height: 100px;
}

.campo input::placeholder,
.campo textarea::placeholder {
  color: #000000;
}

.campo textarea:hover{
  min-height: 100px;
  resize: vertical;
  background-color: #f5f0e6;
  border: 1px solid #b79513;
}

.boton-enviar {
  text-align: center;
  margin-top: 1.5rem;
}

.boton-enviar button {
  background-color: transparent;
  color: #b79513;
  border: 2px solid #b79513;
  padding: 0.6rem 2rem;
  font-size: 1.1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.boton-enviar button:hover {
  background-color: #b79513;
  color: rgb(0, 0, 0);
}

@media (max-width: 480px) {

  .contenido-contacto {
    padding: 1.5rem;
    padding-top: 100px;
  }

  .contacto-info,
  .formulario-container {
    padding: 2.5rem 1.5rem;
  }

  .logo-contacto img {
    width: 150px;
  }

  .titulo-formulario {
    font-size: 1.1rem;
  }

  .campo label {
    font-size: 0.75rem;
  }

  .boton-enviar button {
    width: 100%;
    padding: 0.9rem;
  }
}

/* ==========================================================
   BOTÓN WHATSAPP FLOTANTE
   ========================================================== */

.wsp-premium-btn {
  position: fixed;
  bottom: clamp(14px, 1.6vw, 40px);
  right: clamp(14px, 1.6vw, 40px);
  background: linear-gradient(135deg, #eb0a67, #1ebe5d, #ddb14b);
  color: #fff;
  border: none;
  padding: clamp(0.85rem, 0.6rem + 0.5vw, 1.4rem) clamp(1.1rem, 0.8rem + 0.7vw, 2.2rem);
  border-radius: 60px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(0.9rem, 0.8rem + 0.3vw, 1.5rem);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  z-index: 999;
  animation: pulse 2.5s infinite, float 4s ease-in-out infinite;
}

.wsp-premium-btn i {
  font-size: 1.6em;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.wsp-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000; /* por encima del header (2000/2001) */
}

.wsp-modal.active {
  display: flex;
}

.wsp-modal-box {
  background: #fff;
  padding: clamp(1.5rem, 1vw + 1rem, 2.5rem);
  width: 90%;
  max-width: clamp(20rem, 28vw, 36rem);
  border-radius: 20px;
  text-align: center;
  animation: fadeUp .35s ease;
}

.wsp-modal.active .wsp-modal-box {
  transform: scale(1);
}

@keyframes fadeUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.wsp-modal-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 1rem + 0.5vw, 2rem);
  margin-bottom: 0.5rem;
}

.wsp-modal-box input {
  width: 100%;
  padding: 0.8rem;
  margin: 1rem 0;
  font-size: max(16px, 1rem); /* evita el zoom automático de iOS al enfocar */
  border-radius: 12px;
  border: 1px solid #ccc;
  outline: none;
}

.wsp-actions {
  display: flex;
  gap: 0.75rem;
}

.wsp-cancel,
.wsp-confirm {
  flex: 1;
  padding: 0.75rem;
  font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1.3rem);
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.wsp-cancel {
  background: #eee;
}

.wsp-confirm {
  background: #25D366;
  color: #fff;
}


/* ==========================================================
   ACCESIBILIDAD: respeta "reducir movimiento" del sistema
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =====================================================
   TEXTO EN MOVIMIENTO (marquee)
===================================================== */

.loop-container{
    width:100%;
    overflow:hidden;
    white-space:nowrap;
    position:relative;
    padding:20px 0;
}

.loop-track{
    display:inline-flex;
    animation: scrollText 20s linear infinite;
}

.item{
    font-family: 'Playfair Display', serif;
    font-weight:bold;
    color:#bff3f5;
    padding-right:50px;
    white-space:nowrap;
    font-size: 2rem;
}

@keyframes scrollText{
    from{ transform:translateX(0); }
    to{ transform:translateX(-50%); }
}

@media (max-width: 768px) {
  .item {
    font-size: 1.4rem;
    padding-right: 30px;
  }
}

/* ==========================================================
   FOOTER
   ========================================================== */

.footer {
  background-color: #000;
  color: #fff;
  padding: clamp(2.5rem, 4vw, 5rem) clamp(1.25rem, 3vw, 4rem) clamp(2rem, 3vw, 4rem);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(0.9rem, 0.8rem + 0.2vw, 1.3rem);
  width: min(92vw, 80rem);
  margin: clamp(2rem, 4vw, 5rem) auto;
  border-radius: 4px;
}

.footer-content {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.25rem, 2vw, 3rem);
  text-align: center;
}

.footer-column {
  flex: 1;
  min-width: min(100%, 11rem);
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  padding-right: clamp(1rem, 1.5vw, 2.5rem);
}

.footer-column:last-child {
  border-right: none;
  padding-right: 0;
}

.footer-column p,
.footer-column a {
  color: var(--gold-bright);
  line-height: 1.6;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer .social .icons {
  display: flex;
  gap: clamp(1.2rem, 1.8vw, 3rem);
  justify-content: center;
}

.footer .social .icons img {
  width: clamp(28px, 2.2vw, 64px);
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.footer .social .icons img[alt="Facebook"] {
  filter: invert(31%) sepia(92%) saturate(2580%) hue-rotate(214deg) brightness(92%) contrast(102%);
}

.footer .social .icons img[alt="TikTok"] {
  filter: invert(100%) hue-rotate(160deg) saturate(600%) brightness(115%);
}

.footer .social .icons img[alt="Instagram"] {
  filter: invert(38%) sepia(62%) saturate(3250%) hue-rotate(326deg) brightness(93%) contrast(96%);
}

.footer .social .icons img:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .footer {
    width: calc(100% - 30px);
    max-width: 100%;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-column {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 0;
    padding-bottom: 1.5rem;
  }

  .footer-column:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}


/* =========================================
   BOTÓN RESERVA UNA REUNIÓN
   EFECTO TIPO CODEPEN
   ========================================= */

.btn-reunion {
  position: relative;
  display: inline-block;
  padding: 0.6rem 1rem;
  margin: 1.25rem 0;

  color: var(--gold);
  background: transparent;

  text-decoration: none;
  text-transform: uppercase;

  font-family: "Raleway", sans-serif;
  font-size: clamp(0.8rem, 0.72rem + 0.2vw, 1.2rem);
  font-weight: 700;

  transition: 0.5s;

  /* Una sola línea sin importar qué tan angosta sea la columna */
  white-space: nowrap;
  width: max-content;
  max-width: 100%;

  overflow: hidden;
  cursor: pointer;

  /* Marco fino permanente; los span animados son un brillo extra */
  border: 1px solid var(--gold);
  border-radius: 2px;
}

.btn-reunion:hover {
  background: var(--gold);
  color: #fff;
  box-shadow:
    0 0 5px var(--gold),
    0 0 15px var(--gold),
    0 0 30px var(--gold);
  -webkit-box-reflect: below 1px linear-gradient(transparent, #0005);
}

.btn-reunion span {
  position: absolute;
  display: block;
}

/* Borde superior */
.btn-reunion span:nth-child(1) {
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
  animation: reunion-animate1 1s linear infinite;
}

@keyframes reunion-animate1 {
  0%        { left: -100%; }
  50%, 100% { left: 100%; }
}

/* Borde derecho */
.btn-reunion span:nth-child(2) {
  top: -100%;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--gold));
  animation: reunion-animate2 1s linear infinite;
  animation-delay: 0.25s;
}

@keyframes reunion-animate2 {
  0%        { top: -100%; }
  50%, 100% { top: 100%; }
}

/* Borde inferior */
.btn-reunion span:nth-child(3) {
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(270deg, transparent, var(--gold));
  animation: reunion-animate3 1s linear infinite;
  animation-delay: 0.5s;
}

@keyframes reunion-animate3 {
  0%        { right: -100%; }
  50%, 100% { right: 100%; }
}

/* Borde izquierdo */
.btn-reunion span:nth-child(4) {
  bottom: -100%;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(360deg, transparent, var(--gold));
  animation: reunion-animate4 1s linear infinite;
  animation-delay: 0.75s;
}

@keyframes reunion-animate4 {
  0%        { bottom: -100%; }
  50%, 100% { bottom: 100%; }
}
