﻿/* =============================================================
   ANNA OSTER PSICÓLOGA — Premium Redesign
   style.css
   ============================================================= */

/* ===== TOKENS ===== */
:root {
  --c-primary:       #a4886d;
  --c-primary-dk:    #7d6453;
  --c-primary-lt:    #c4a48e;
  --c-gold:          #c99e33;
  --c-bg:            #faf8f5;
  --c-surface:       #ffffff;
  --c-surface-warm:  #f5ede3;
  --c-text-dk:       #2c1f14;
  --c-text-md:       #5c4a3a;
  --c-text-lt:       #9b8878;
  --c-border:        rgba(164,136,109,0.14);

  --f-head: 'Merriweather', serif;
  --f-body: 'Nunito', sans-serif;

  --r-sm:  6px;
  --r-md:  16px;
  --r-lg:  28px;

  --sh-sm: 0 2px 10px rgba(164,136,109,0.09);
  --sh-md: 0 8px 32px rgba(164,136,109,0.14);
  --sh-lg: 0 24px 64px rgba(164,136,109,0.18);

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --max-w: 1080px;
  --pad-section: 7rem 2.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  cursor: url('assets/img/mariposa_oscura_sinfondo_32x32_flip.png') 16 16, auto;
  font-family: var(--f-body);
  line-height: 1.75;
  color: var(--c-text-md);
  background: var(--c-bg);
  overflow-x: hidden;
}

/* Cursor nativo oculto cuando el sistema de mariposas está activo */
body.bf-cursor-active {
  cursor: none;
}

/* ===== PAGE LOADER ===== */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--c-bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loader-logo {
  width: 150px;
  opacity: 0;
  transform: translateY(12px);
}

.loader-butterflies {
  position: relative;
  width: 160px;
  height: 72px;
}

.loader-butterfly {
  position: absolute;
  width: 40px;
  height: 40px;
  background: url('assets/img/mariposas/mariposa 1.png') center/contain no-repeat;
  opacity: 0;
}

.lb1 { left: 8px;  top: 18px; }
.lb2 { left: 60px; top: 2px;  }
.lb3 { left: 112px; top: 18px; }

.loader-tagline {
  font-family: var(--f-head);
  font-size: 0.75rem;
  color: var(--c-primary);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
}

/* ===== CURSOR RING ===== */
/* cursor-ring eliminado — sustituido por estela dorada canvas en script.js */

/* ===== NAVBAR ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,245,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--c-border);
  padding: 0.7rem 2.5rem;
  transition: box-shadow 0.35s;
}

header.scrolled { box-shadow: var(--sh-md); }

.navbar {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 68px;
  object-fit: contain;
  transition: transform 0.3s var(--ease);
}

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

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--f-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-gold);
  text-decoration: none;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--c-gold);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover::after { width: 100%; }

.lang-flags { display: flex; gap: 0.45rem; align-items: center; }

.flag {
  width: 22px; height: 22px;
  cursor: pointer;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}

.flag:hover {
  transform: scale(1.22);
  box-shadow: 0 2px 8px rgba(164,136,109,0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 201;
  flex-shrink: 0;
}

.ham-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-gold);
  border-radius: 2px;
  transition: transform 0.38s var(--ease), opacity 0.25s, width 0.25s;
  transform-origin: center;
}

.hamburger.open .ham-bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open .ham-bar:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open .ham-bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ===== NAV OVERLAY ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44,31,20,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.38s, visibility 0.38s;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ===== SECTIONS BASE ===== */
.section {
  min-height: 100vh;
  padding: var(--pad-section);
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-family: var(--f-head);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--c-primary-dk);
  line-height: 1.22;
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--f-head);
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

p {
  font-family: var(--f-body);
  font-size: 1.03rem;
  color: var(--c-text-md);
  margin-bottom: 1rem;
  line-height: 1.82;
}

.italic {
  font-style: italic;
  font-family: var(--f-head);
  font-weight: 300;
  color: var(--c-text-lt);
  font-size: 1.08rem;
  text-align: center;
  letter-spacing: 0.02em;
  display: block;
}

.terapia {
  text-align: center;
  font-family: var(--f-body);
  font-size: 1.05rem;
  color: var(--c-text-md);
  font-weight: 300;
  max-width: 620px;
  margin: 0 auto 2rem;
}

/* ===== BUTTON ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--f-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 2.2rem;
  border-radius: 50px;
  margin-top: 1.5rem;
  border: 2px solid transparent;
  transition: background 0.3s var(--ease),
              color 0.3s var(--ease),
              transform 0.25s var(--ease-spring),
              box-shadow 0.3s;
}

.btn:hover {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(164,136,109,0.22);
}

/* ===== FLOATING BUTTERFLIES ===== */
.mariposa {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.mariposa1 {
  width: 58px; height: 58px;
  top: 8%; left: 8%;
  opacity: 0.26;
  animation: floatB1 10s ease-in-out infinite alternate;
}

.mariposa2 {
  width: 44px; height: 44px;
  top: 16%; right: 6%;
  opacity: 0.19;
  animation: floatB2 13s ease-in-out infinite alternate;
  animation-delay: -4s;
}

.mariposa3 {
  width: 48px; height: 48px;
  bottom: 24%; left: 5%;
  opacity: 0.21;
  animation: floatB3 11s ease-in-out infinite alternate;
  animation-delay: -7s;
}

.mariposa4 {
  width: 38px; height: 38px;
  bottom: 14%; right: 8%;
  opacity: 0.17;
  animation: floatB1 15s ease-in-out infinite alternate;
  animation-delay: -10s;
}

.mariposa5 {
  width: 34px; height: 34px;
  top: 50%; left: 44%;
  opacity: 0.14;
  animation: floatB2 12s ease-in-out infinite alternate;
  animation-delay: -5s;
}

.mariposa6 {
  width: 40px; height: 40px;
  bottom: 30%; right: 28%;
  opacity: 0.18;
  animation: floatB3 14s ease-in-out infinite alternate;
  animation-delay: -8s;
}

@keyframes floatB1 {
  0%   { transform: translate(0, 0)      rotate(-8deg) scale(1);    }
  33%  { transform: translate(12px,-20px) rotate(4deg)  scale(1.04); }
  66%  { transform: translate(-8px,-32px) rotate(-5deg) scale(0.97); }
  100% { transform: translate(5px, -22px) rotate(7deg)  scale(1.02); }
}

@keyframes floatB2 {
  0%   { transform: translate(0, 0)       rotate(10deg)  scale(1);    }
  40%  { transform: translate(-14px,-24px) rotate(-6deg) scale(1.05); }
  70%  { transform: translate(9px, -36px)  rotate(8deg)  scale(0.98); }
  100% { transform: translate(-6px,-20px)  rotate(-4deg) scale(1.03); }
}

@keyframes floatB3 {
  0%   { transform: translate(0, 0)       rotate(-12deg) scale(1);    }
  50%  { transform: translate(16px,-26px)  rotate(6deg)  scale(1.06); }
  100% { transform: translate(-4px,-18px)  rotate(-8deg) scale(1.01); }
}

/* ===== INICIO / HERO ===== */
#inicio {
  min-height: 100vh;
  text-align: center;
  align-items: center;
  padding: 8rem 2.5rem 5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 25% 55%, rgba(164,136,109,0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 75% 45%, rgba(201,158,51,0.04) 0%, transparent 55%),
    var(--c-bg);
}

#inicio h1 { max-width: 700px; margin: 0 auto 1.25rem; }

#inicio .italic { margin-bottom: 0.6rem; }

/* ===== SOBRE MÍ ===== */
#sobremi {
  background: var(--c-surface);
  box-shadow: inset 0 1px 0 var(--c-border), inset 0 -1px 0 var(--c-border);
}

#sobremi h2#sobremi_titulo {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--c-primary-dk);
  margin-bottom: 2rem;
  text-align: center;
}

.sobremi-contenido {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 4rem;
  margin-top: 1.5rem;
}

.sobremi-imagen { flex: 0 0 auto; }

.sobremi-imagen img {
  width: 340px;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  object-fit: cover;
  display: block;
}

.sobremi-texto { flex: 1; }
.sobremi-texto p { font-size: 1rem; color: var(--c-text-md); }

.toggle-btn {
  display: none;
  margin-bottom: 1.5rem;
  background: transparent;
  border: 1.5px solid var(--c-primary);
  color: var(--c-primary);
  font-family: var(--f-head);
  font-size: 0.85rem;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.25s, color 0.25s, transform 0.2s var(--ease-spring);
}

.toggle-btn:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-1px);
}

/* ===== INSTAGRAM ===== */
#instagram {
  padding: 5rem 2.5rem;
  text-align: center;
  background: var(--c-surface-warm);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  min-height: unset;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#instagram > * { width: 100%; max-width: var(--max-w); }

#instagram h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  margin-bottom: 1.5rem;
  color: var(--c-primary-dk);
}

#instagram iframe {
  display: block;
  width: 100%;
  max-width: 980px;
  height: 520px;
  border: none;
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  margin: 0 auto 1.5rem;
}

/* ===== SERVICIOS ===== */
#servicios { background: var(--c-bg); }

.servicios-contenido {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}

.servicios-texto { flex: 1; min-width: 280px; }

.servicios-texto h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--c-primary-dk);
  margin-bottom: 1.25rem;
}

#text-expl-idiom {
  color: var(--c-text-md);
  font-size: 1rem;
  line-height: 1.82;
}

.servicios-lista {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 280px;
  margin: 0;
}

.servicios-lista-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--f-body);
  font-size: 0.96rem;
  color: var(--c-text-md);
  padding: 0.55rem 0.75rem;
  border-radius: var(--r-sm);
  transition: background 0.22s, transform 0.2s var(--ease);
}

.servicios-lista-item:hover {
  background: rgba(164,136,109,0.08);
  transform: translateX(5px);
}

.servicios-lista-item img {
  width: 18px; height: 18px;
  flex-shrink: 0;
  opacity: 0.65;
}

/* ===== TARJETAS FLIP ===== */
.tarjetas-terapia {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.tarjeta {
  width: 300px;
  height: 480px;
  perspective: 900px;
  cursor: pointer;
  transition: filter 0.4s;
}

.tarjeta:not(.activo):hover {
  filter: drop-shadow(0 22px 40px rgba(164,136,109,0.32));
}

.tarjeta-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.95s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
  will-change: transform;
}

.tarjeta.activo .tarjeta-inner {
  transform: rotateY(180deg) !important;
  transition: transform 0.95s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.tarjeta-front,
.tarjeta-back {
  position: absolute;
  width: 100%; height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.tarjeta-front {
  background-size: cover;
  background-position: center;
  box-shadow: var(--sh-lg);
  align-items: flex-end;
}

.tarjeta-front::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 50%), rgba(255,255,255,0.22) 0%, transparent 55%);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s;
}

.tarjeta:not(.activo):hover .tarjeta-front::after { opacity: 1; }

/* gradient overlay on front card */
.tarjeta-front::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(44,31,20,0.58) 0%,
    rgba(44,31,20,0.12) 45%,
    transparent 100%
  );
  border-radius: var(--r-lg);
}

.tarjeta-front-label {
  position: relative;
  z-index: 2;
  color: #fff;
  font-family: var(--f-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
  margin-bottom: 0.5rem;
}

.tarjeta-back {
  background: linear-gradient(145deg, var(--c-primary) 0%, var(--c-primary-dk) 100%);
  transform: rotateY(180deg);
  color: #fff;
  font-family: var(--f-body);
  font-size: 0.98rem;
  line-height: 1.78;
  box-shadow: var(--sh-lg);
  flex-direction: column;
  gap: 1rem;
  padding: 2.5rem 2rem;
}

/* ===== TERAPIA ===== */
#terapia {
  background: var(--c-surface);
  text-align: center;
  box-shadow: inset 0 1px 0 var(--c-border);
}

#terapia h2 {
  text-align: center;
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  color: var(--c-primary-dk);
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

#terapia_texto {
  color: var(--c-text-md);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: left;
  font-size: 1rem;
}

#señales-idiom {
  text-align: center;
  margin: 2.5rem auto 1.75rem;
  max-width: 600px;
  display: block;
}

#terapia .servicios-lista {
  max-width: 660px;
  margin: 0 auto;
}

#terapia .servicios-lista-item { text-align: left; }

#pediri-idiom {
  color: var(--c-text-md);
  max-width: 700px;
  margin: 2rem auto 0;
  text-align: center;
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.82;
}

/* ===== RESEÑAS ===== */
#reseñas {
  padding: 5rem 2.5rem;
  background: var(--c-surface-warm);
  text-align: center;
  border-top: 1px solid var(--c-border);
  min-height: unset;
  max-width: none;
}

#reseñas h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  color: var(--c-primary-dk);
  margin-bottom: 0.9rem;
}

.reseñas-media {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.97rem;
  margin: 0.6rem 0 0.4rem;
  color: var(--c-text-md);
}

.google-logo { width: 34px; height: 34px; border-radius: 50%; }

.estrella-grande {
  font-size: 1.7rem;
  color: var(--c-gold);
  margin: 0.3rem 0 0.9rem;
}

.enlace-reseñas {
  font-size: 0.88rem;
  color: var(--c-text-lt);
  margin-bottom: 2.5rem;
}

.enlace-reseñas a {
  color: var(--c-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reseñas-contenedor {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0.5rem 0;
  max-width: var(--max-w);
  margin: 0 auto;
  perspective: 1200px;
}

.reseña-card {
  width: 285px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 1.75rem;
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  text-align: left;
  transform-style: preserve-3d;
  transition: transform 0.42s var(--ease), box-shadow 0.42s;
}

.reseña-card:hover {
  transform: translateY(-14px) rotateX(4deg) scale(1.02);
  box-shadow: 0 28px 52px rgba(164,136,109,0.22), 0 4px 12px rgba(164,136,109,0.08);
}

.reseña-usuario h3 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--c-text-dk);
  font-family: var(--f-head);
}

.estrella { color: var(--c-gold) !important; font-size: 0.88rem; line-height: 1.6; }

.reseña-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--c-primary);
  margin: 0.7rem 0 0.35rem;
  font-family: var(--f-head);
}

.reseña-card p {
  font-size: 0.88rem;
  color: var(--c-text-md);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ===== CITA ===== */
#cita {
  min-height: 80vh;
  text-align: center;
  align-items: center;
  padding: 7rem 2.5rem;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(201,158,51,0.05) 0%, transparent 55%),
    var(--c-bg);
}

#cita h2 {
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  color: var(--c-primary-dk);
  max-width: 580px;
  text-align: center;
  margin: 0 auto 0.9rem;
}

#cita_texto {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

/* ===== CONTACTO ===== */
#contacto {
  background: var(--c-surface);
  padding: var(--pad-section);
  min-height: unset;
  box-shadow: inset 0 1px 0 var(--c-border);
}

.contacto-section { min-height: unset; }

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 3.5rem;
  margin-top: 2rem;
}

.contact-info {
  flex: 1;
  min-width: 250px;
}

.contact-info h2 {
  font-size: 1.9rem;
  color: var(--c-primary-dk);
  margin-bottom: 0.6rem;
}

.contact-info > p {
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
  color: var(--c-text-lt);
}

.contact-info ul { list-style: none; padding: 0; }

.contact-info li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  color: var(--c-text-md);
}

.contact-info li i { color: var(--c-primary); width: 16px; text-align: center; }

.contact-info a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-info a:hover {
  color: var(--c-primary-dk);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.social-icons { display: flex; gap: 0.9rem; margin-top: 1.5rem; }

.social-icons a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  font-size: 1rem;
  transition: background 0.28s, color 0.28s, transform 0.22s var(--ease-spring);
}

.social-icons a:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* contact form column */
.contact-form {
  flex: 1;
  min-width: 300px;
  background: rgba(250,248,245,0.65);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--sh-sm);
}

.form-group {
  margin-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-form label {
  font-family: var(--f-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-primary-dk);
  letter-spacing: 0.04em;
}

.contact-form input,
.contact-form textarea {
  padding: 0.82rem 1rem;
  border: 1.5px solid rgba(164,136,109,0.22);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  font-size: 0.96rem;
  font-family: var(--f-body);
  color: var(--c-text-dk);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(164,136,109,0.11);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--c-text-lt); }

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--c-primary);
  color: #fff;
  border: 2px solid transparent;
  border-radius: 50px;
  font-family: var(--f-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease),
              color 0.3s var(--ease),
              transform 0.22s var(--ease-spring),
              box-shadow 0.3s;
}

.submit-btn:hover {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(164,136,109,0.2);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(250,248,245,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--c-text-dk);
  padding: 1.1rem 2rem;
  text-align: center;
  box-shadow: 0 -4px 20px rgba(164,136,109,0.10);
  z-index: 9990;
  font-family: var(--f-body);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.cookie-banner p { margin: 0; color: var(--c-text-md); }

.cookie-banner button {
  background: var(--c-primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.22s, transform 0.18s;
}

.cookie-banner button:hover { background: var(--c-primary-dk); transform: translateY(-1px); }

#reject-cookies {
  background: transparent !important;
  color: var(--c-text-lt) !important;
  border: 1px solid rgba(164,136,109,0.28) !important;
}

#reject-cookies:hover {
  background: rgba(164,136,109,0.1) !important;
  color: var(--c-text-md) !important;
}

.cookie-banner a {
  color: var(--c-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== COOKIE MODAL ===== */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: rgba(44,31,20,0.52);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.cookie-modal-content {
  background: var(--c-surface);
  padding: 2.8rem 2.5rem 2.2rem;
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--r-md);
  position: relative;
  box-shadow: var(--sh-lg);
  scrollbar-width: thin;
  scrollbar-color: var(--c-primary-lt) transparent;
}

.cookie-modal-content::-webkit-scrollbar { width: 5px; }
.cookie-modal-content::-webkit-scrollbar-thumb {
  background: var(--c-primary-lt);
  border-radius: 4px;
}

.cookie-modal-content h2 {
  font-size: 1.45rem;
  color: var(--c-primary-dk);
  margin-bottom: 0.35rem;
  font-family: var(--f-head);
}

.cookie-modal-content .cookie-date {
  font-size: 0.78rem;
  color: var(--c-text-lt);
  margin-bottom: 1.4rem;
  display: block;
}

.cookie-modal-content h3 {
  font-size: 1rem;
  color: var(--c-primary-dk);
  font-family: var(--f-body);
  font-weight: 700;
  margin: 1.5rem 0 0.55rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--c-border);
}

.cookie-modal-content p {
  font-size: 0.9rem;
  color: var(--c-text-md);
  margin-bottom: 0.75rem;
  line-height: 1.72;
}

.cookie-modal-content ul {
  padding-left: 1.2rem;
  margin-bottom: 0.75rem;
}

.cookie-modal-content ul li {
  font-size: 0.9rem;
  color: var(--c-text-md);
  line-height: 1.7;
  margin-bottom: 0.3rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin: 0.6rem 0 1rem;
}

.cookie-table th {
  background: var(--c-surface-warm);
  color: var(--c-primary-dk);
  font-weight: 700;
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 2px solid var(--c-border);
}

.cookie-table td {
  padding: 0.5rem 0.75rem;
  color: var(--c-text-md);
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}

.cookie-table tr:last-child td { border-bottom: none; }

.cookie-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-required  { background: #edf7ed; color: #2e7d32; }
.badge-analytics { background: #fff3e0; color: #e65100; }
.badge-third     { background: #f3e5f5; color: #6a1b9a; }

.cookie-modal-content .close {
  position: absolute;
  top: 1.1rem; right: 1.4rem;
  font-size: 1.5rem;
  color: var(--c-text-lt);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.cookie-modal-content .close:hover { color: var(--c-text-dk); }

/* ===== FORM FEEDBACK (sustituye al alert() nativo) ===== */
.form-feedback {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background: rgba(44,31,20,0.52);
  backdrop-filter: blur(6px);
  animation: ffFadeIn 0.25s var(--ease);
}

.form-feedback[hidden] { display: none; }

.form-feedback-box {
  background: var(--c-surface);
  width: 100%;
  max-width: 380px;
  padding: 2.6rem 2.2rem 2.2rem;
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  text-align: center;
  animation: ffPopIn 0.35s var(--ease-spring);
}

.form-feedback-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-family: var(--f-body);
  line-height: 1;
}

.form-feedback--success .form-feedback-icon { background: #edf7ed; color: #2e7d32; }
.form-feedback--error   .form-feedback-icon { background: #fdecea; color: #c0392b; }

.form-feedback-title {
  font-family: var(--f-head);
  font-size: 1.25rem;
  color: var(--c-text-dk);
  margin-bottom: 0.6rem;
}

.form-feedback-text {
  font-size: 0.92rem;
  color: var(--c-text-md);
  line-height: 1.65;
  margin-bottom: 1.6rem;
}

.form-feedback-btn {
  border: none;
  cursor: pointer;
  padding: 0.75rem 2.2rem;
  border-radius: 50px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  background: var(--c-primary);
  transition: background 0.25s, transform 0.2s var(--ease-spring), box-shadow 0.25s;
}

.form-feedback-btn:hover {
  background: var(--c-primary-dk);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(164,136,109,0.28);
}

@keyframes ffFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ffPopIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--c-surface);
  padding: 4rem 2.5rem 2rem;
  border-top: 1px solid var(--c-border);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: flex-start;
}

.footer-logo img { max-width: 130px; opacity: 0.88; }

.footer-info h4,
.footer-links h4 {
  font-family: var(--f-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--c-primary-dk);
  margin-bottom: 0.65rem;
  letter-spacing: 0.03em;
}

.footer-info p,
.footer-info a,
.footer-links li,
.footer-links a {
  font-size: 0.88rem;
  color: var(--c-text-lt);
  text-decoration: none;
  line-height: 2.1;
  transition: color 0.2s;
}

.footer-info a:hover,
.footer-links a:hover { color: var(--c-primary); }

.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin: 0; }

.footer-social { display: flex; gap: 0.75rem; }

.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  font-size: 0.95rem;
  transition: background 0.28s, color 0.28s, transform 0.22s var(--ease-spring);
}

.footer-social a:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 1.75rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--c-text-lt);
  line-height: 2.2;
}

.footer-bottom img {
  height: 15px;
  vertical-align: middle;
  margin-left: 4px;
  opacity: 0.65;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  :root { --pad-section: 5rem 1.5rem; }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(250,248,245,0.98);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    z-index: 200;
    padding: 0.5rem 1.75rem 2rem;
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--sh-lg);
    gap: 0;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.38s var(--ease), opacity 0.35s, visibility 0.35s;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links li {
    border-bottom: 1px solid var(--c-border);
    padding: 0.9rem 0;
    transform: translateX(-18px);
    opacity: 0;
    transition: transform 0.32s var(--ease), opacity 0.32s;
  }

  .nav-links li:last-child { border-bottom: none; padding-top: 1rem; }

  .nav-links.active li { transform: translateX(0); opacity: 1; }
  .nav-links.active li:nth-child(1) { transition-delay: 0.07s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.11s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.15s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.19s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.23s; }
  .nav-links.active li:nth-child(6) { transition-delay: 0.27s; }
  .nav-links.active li:nth-child(7) { transition-delay: 0.31s; }

  .nav-links a { font-size: 1rem; display: block; }
  .hamburger { display: flex; }
  header { padding: 0.7rem 1.25rem; }

  .sobremi-contenido { flex-direction: column; align-items: center; gap: 2rem; }
  .sobremi-imagen { width: 100%; display: flex; justify-content: center; }
  .sobremi-imagen img { width: 90%; max-width: 300px; margin: 0 auto; }
  .sobremi-texto { display: none; }
  .sobremi-texto.activo { display: block; }
  .toggle-btn { display: inline-block; }

  .tarjetas-terapia { flex-direction: column; align-items: center; gap: 2rem; }
  .tarjeta { width: 88%; max-width: 310px; height: auto; aspect-ratio: 3/4; }

  .mariposa { width: 36px !important; height: 36px !important; opacity: 0.13 !important; }

  #instagram iframe { width: 100%; aspect-ratio: 4/5; height: auto; }

  .reseñas-contenedor { flex-direction: column; align-items: center; }
  .reseña-card { width: 90%; }

  .contact-wrapper { flex-direction: column; }
  .footer-content { flex-direction: column; align-items: center; text-align: center; }
  .footer-social { justify-content: center; }

  .cursor-ring { display: none; }
}

@media (max-width: 480px) {
  .mariposa { display: none; }
  .cursor-ring { display: none; }
}

@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
    flex-direction: row !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    gap: 1.1rem !important;
    padding: 0 !important;
    position: static !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
  }
  .nav-links li {
    transform: none !important;
    opacity: 1 !important;
    border-bottom: none !important;
    padding: 0 !important;
    transition: none !important;
  }
  .hamburger { display: none !important; }
}
