/* ==========================================================
   Butterfly · Decoración de eventos en Murcia
   Paleta sacada del Instagram: lilas, rosa empolvado, oro,
   verde hoja; y el encaje de las blondas como motivo.
   ========================================================== */

/* ---------- Tipografías alojadas en la propia web (licencia OFL: ver css/fonts/*-OFL.txt) ----------
   Figtree y Caveat son tipografías variables: un archivo cubre todos sus pesos. */
@font-face {
  font-family: 'Yeseva One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/yesevaone-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Yeseva One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/yesevaone-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/figtree-variable-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/figtree-variable-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('fonts/caveat-variable-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('fonts/caveat-variable-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --papel: #FBF7FD;        /* fondo, blanco lila */
  --lila-claro: #EFE6F7;   /* bandas con encaje */
  --lavanda: #9B7BC4;
  --lavanda-osc: #6E4E9A;
  --ciruela: #3B1E4A;      /* texto */
  --ciruela-suave: #6B5577;
  --rosa: #E8A6B8;
  --rosa-claro: #F9E3EA;
  --oro: #C9A24A;
  --hoja: #5E7D4E;
  --azul: #8FB3D9;
  --amarillo: #E3B23C;
  --amarillo-claro: #FCEFC4;
  --rojo: #C2364B;
  --rojo-claro: #FBE4E8;
  --blanco: #FFFFFF;

  --f-display: "Yeseva One", Georgia, serif;
  --f-texto: "Figtree", system-ui, sans-serif;
  --f-mano: "Caveat", cursive;

  --ancho: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radio: 14px;
  --sombra: 0 14px 30px -18px rgba(59, 30, 74, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  color-scheme: light;
  background: var(--papel);
  color: var(--ciruela);
  font: 400 1.0625rem/1.65 var(--f-texto);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--lavanda-osc); text-underline-offset: 3px; }
a:hover { color: var(--ciruela); }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 20ch; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ciruela); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.contenedor { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }
.estrecho { max-width: 860px; }
.seccion { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.intro { font-size: 1.15rem; color: var(--ciruela-suave); max-width: 58ch; margin-bottom: 2.4rem; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--f-texto);
  padding: 1rem 1.6rem; border-radius: 999px; border: 2px solid var(--ciruela);
  background: var(--ciruela); color: var(--papel); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.boton:hover { background: var(--lavanda-osc); border-color: var(--lavanda-osc); color: #fff; }
.boton:active { transform: translateY(1px); }
.boton-claro { background: transparent; color: var(--ciruela); }
.boton-claro:hover { background: var(--ciruela); border-color: var(--ciruela); color: var(--papel); }
.boton-peque { padding: .7rem 1.15rem; font-size: .95rem; }

/* ---------- Encaje (blonda) arriba y abajo de las bandas ---------- */
.encaje { background: var(--lila-claro); margin: 22px 0; }
.encaje::before, .encaje::after {
  content: ""; position: absolute; left: 0; right: 0; height: 22px; pointer-events: none;
  background:
    radial-gradient(circle at 50% 100%, var(--lila-claro) 11.5px, transparent 12.5px) 0 0 / 26px 12px repeat-x,
    radial-gradient(circle, var(--papel) 2.4px, transparent 3px) 0 13px / 26px 9px repeat-x;
}
.encaje::before { top: -12px; }
.encaje::after {
  bottom: -12px; transform: scaleY(-1);
}

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .8rem var(--gutter);
  background: rgba(251, 247, 253, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(155, 123, 196, .18);
}
.marca { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ciruela); font-family: var(--f-display); font-size: 1.6rem; }
.marca-icono { width: 40px; height: 34px; color: var(--lavanda); }
.menu { margin-left: auto; }
.menu ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.menu a { color: var(--ciruela); text-decoration: none; font-weight: 500; }
.menu a:hover { color: var(--lavanda-osc); text-decoration: underline; }
.menu-boton { display: none; }

@media (max-width: 820px) {
  .cabecera { gap: .75rem; }
  .cabecera > .boton { display: none; }
  .menu-boton {
    display: inline-flex; font: 600 1rem var(--f-texto); color: var(--ciruela);
    background: none; border: 2px solid var(--ciruela); border-radius: 999px; padding: .5rem 1rem; cursor: pointer;
  }
  .menu ul {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--papel);
    border-bottom: 1px solid rgba(155, 123, 196, .25); padding: .5rem var(--gutter) 1rem;
  }
  .menu ul.abierto { display: flex; }
  .menu ul a { display: block; padding: .8rem 0; font-size: 1.15rem; }
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--ancho); margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(56px, 8vw, 110px);
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 5vw, 64px); align-items: center;
}
.hero-firma { font-family: var(--f-mano); font-size: 1.75rem; color: var(--lavanda-osc); margin-bottom: .3rem; transform: rotate(-2deg); transform-origin: left; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.04; max-width: 15ch; }
.hero-sub { font-size: 1.18rem; color: var(--ciruela-suave); max-width: 50ch; margin: 1.2rem 0 2rem; }
.hero-acciones { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-escena { position: relative; aspect-ratio: 1 / 1.05; }
.polaroid {
  position: absolute; margin: 0; background: #fff; padding: 10px 10px 34px;
  box-shadow: var(--sombra); border-radius: 4px; width: 56%;
}
.polaroid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
/* Sin foto, la clase .sin-foto (position: relative) no debe sacar la polaroid de su sitio */
.polaroid.sin-foto { position: absolute; }
.p1 { left: 2%; top: 6%; transform: rotate(-7deg); }
.p2 { right: 0; top: 0; transform: rotate(5deg); width: 50%; }
.p3 { left: 24%; bottom: 0; transform: rotate(-1.5deg); z-index: 2; }

.mariposa-hero {
  position: absolute; width: 46%; aspect-ratio: 200 / 170; left: -12%; bottom: 12%; z-index: 3;
  filter: drop-shadow(0 12px 14px rgba(59, 30, 74, .25));
  transform: rotate(-14deg);
}
.mariposa-hero .ala { transform-box: fill-box; }
.mariposa-hero .ala-izq { transform-origin: right center; animation: aleteo .5s ease-in-out 3 .4s; }
.mariposa-hero .ala-der { transform-origin: left center; animation: aleteo .5s ease-in-out 3 .4s; }
@keyframes aleteo { 50% { transform: scaleX(.25); } }

.mariposa-mini { position: absolute; width: 13%; aspect-ratio: 200 / 170; z-index: 3; }
.m1 { color: var(--rosa); right: 4%; bottom: 22%; transform: rotate(18deg); }
.m2 { color: var(--oro); left: 46%; top: -4%; width: 9%; transform: rotate(-20deg); }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); overflow-x: clip; }
  .hero-escena { max-width: 460px; width: 92%; margin: 0 auto; }
  .mariposa-hero { left: -6%; }
  .m2 { display: none; }
}

/* ---------- Foto que aún no existe: fondo ilustrado ---------- */
.sin-foto { position: relative; }
.sin-foto img { opacity: 0; }
.sin-foto::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-100 -80 200 170'%3E%3Cg fill='white' fill-opacity='.55'%3E%3Cpath d='M0,-4 C-18,-62 -88,-78 -94,-34 C-98,-6 -58,10 0,4 Z M0,-4 C18,-62 88,-78 94,-34 C98,-6 58,10 0,4 Z M0,6 C-46,10 -74,40 -60,66 C-46,86 -10,62 0,20 Z M0,6 C46,10 74,40 60,66 C46,86 10,62 0,20 Z'/%3E%3C/g%3E%3C/svg%3E") center 42% / 34% no-repeat,
    var(--fondo-tono, linear-gradient(150deg, var(--lila-claro), var(--lavanda)));
}
.polaroid.sin-foto::before { inset: 10px 10px 34px; }
.sin-foto[data-tono="lila"]  { --fondo-tono: linear-gradient(150deg, #E7DBF4, #A68BCB); }
.sin-foto[data-tono="rosa"]  { --fondo-tono: linear-gradient(150deg, #FBE8EE, #E3A0B3); }
.sin-foto[data-tono="hoja"]  { --fondo-tono: linear-gradient(150deg, #E5EEDB, #7F9E6C); }
.sin-foto[data-tono="azul"]  { --fondo-tono: linear-gradient(150deg, #E2ECF7, #8FB3D9); }
.sin-foto[data-tono="oro"]   { --fondo-tono: linear-gradient(150deg, #F8EFD6, #D3B262); }
.sin-foto[data-tono="plata"] { --fondo-tono: linear-gradient(150deg, #F2F2F4, #A9A9B4); }
.sin-foto[data-tono="tinta"] { --fondo-tono: linear-gradient(150deg, #8B6C99, #3B1E4A); }

/* ---------- Celebraciones ---------- */
.celebs { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 72px); }
.celeb { position: relative; padding-top: 1.4rem; }
.celeb::before {
  content: ""; position: absolute; top: 0; left: 0; width: 84px; height: 8px;
  background: radial-gradient(circle at 50% 0, var(--c) 6px, transparent 6.5px) 0 0 / 14px 8px repeat-x;
}
#cumpleanos { --c: var(--oro); }
#comuniones { --c: var(--lavanda); }
#bautizos   { --c: var(--rosa); }
#bodas      { --c: var(--hoja); }
.celeb h3 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
.celeb p { max-width: 48ch; }
.celeb a { font-weight: 600; }

.ocasiones { margin-top: clamp(40px, 5vw, 64px); padding: clamp(20px, 3vw, 32px); background: var(--papel); border-radius: 22px; box-shadow: var(--sombra); }
.ocasiones h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: .2em; }
.ocasiones > p { color: var(--ciruela-suave); margin: 0; }
.ocasiones .chip { background: #fff; }
.ocasiones .ocasiones-otra { margin-top: 1.2rem; color: var(--ciruela); font-weight: 500; }
.ocasiones-otra a { font-weight: 600; }
.tematicas { margin-top: clamp(48px, 6vw, 80px); padding-top: 2rem; border-top: 1px dashed rgba(110, 78, 154, .35); }
.tematicas h3 { margin-bottom: .2em; }
.tematicas > p { color: var(--ciruela-suave); }
.chips { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  font: 500 .98rem var(--f-texto); color: var(--ciruela);
  background: var(--papel); border: 1.5px solid rgba(110, 78, 154, .45); border-radius: 999px;
  padding: .55rem 1rem; cursor: pointer; transition: background .15s, border-color .15s;
}
.chip:hover { border-color: var(--ciruela); }
.chip[aria-pressed="true"] { background: var(--ciruela); color: var(--papel); border-color: var(--ciruela); }
.chip[aria-pressed="true"]::before { content: "✓ "; }

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

/* ---------- Galería ---------- */
.galeria-cabeza { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 2rem; }
.galeria-cabeza h2 { margin: 0; }
.filtros { display: flex; flex-wrap: wrap; gap: .4rem; }
.filtro {
  font: 500 .95rem var(--f-texto); color: var(--ciruela-suave); background: none;
  border: 0; border-bottom: 2px solid transparent; padding: .4rem .5rem; cursor: pointer;
}
.filtro:hover { color: var(--ciruela); }
.filtro[aria-pressed="true"] { color: var(--ciruela); border-bottom-color: var(--oro); font-weight: 600; }

.mosaico {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  grid-auto-rows: 230px; grid-auto-flow: dense; gap: 12px;
}
.mosaico li.alto { grid-row: span 2; }
.mosaico li.ancho { grid-column: span 2; }
.mosaico li[hidden] { display: none; }
.mosaico figure { margin: 0; height: 100%; position: relative; overflow: hidden; border-radius: var(--radio); }
.mosaico img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; transition: transform .5s ease; }
.mosaico li:hover img { transform: scale(1.04); }
.mosaico figcaption {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  background: rgba(251, 247, 253, .93); color: var(--ciruela);
  font-size: .9rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px;
}
.galeria-pie { margin-top: 1.6rem; text-align: center; }

@media (max-width: 560px) {
  .mosaico { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 8px; }
  .mosaico figcaption { font-size: .78rem; left: 6px; bottom: 6px; }
}

/* ---------- Proceso (es una secuencia real: numerado) ---------- */
.pasos { list-style: none; margin: 2.5rem 0 0; padding: 0; counter-reset: paso;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.pasos li { counter-increment: paso; position: relative; }
.pasos li::before {
  content: counter(paso); display: grid; place-items: center;
  width: 54px; height: 54px; margin-bottom: 1rem; border-radius: 50%;
  font: 400 1.6rem var(--f-display); color: var(--ciruela); background: var(--papel);
  box-shadow: 0 0 0 2px var(--lavanda) inset, 0 0 0 6px var(--lila-claro), 0 0 0 7px rgba(155,123,196,.4);
}
.pasos h3 { font-size: 1.3rem; }
.pasos p { color: var(--ciruela-suave); font-size: 1rem; }
@media (max-width: 900px) { .pasos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pasos { grid-template-columns: 1fr; } }

/* ---------- Disponibilidad ---------- */
.franjas-info { color: var(--ciruela-suave); margin: -1.4rem 0 1rem; font-size: .98rem; }
.leyenda { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-bottom: 1.2rem; font-size: .95rem; color: var(--ciruela-suave); }
.leyenda span { display: inline-flex; align-items: center; gap: .45rem; }
.punto { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 11px/1 var(--f-texto); }
.punto.libre { background: #fff; box-shadow: 0 0 0 1.5px var(--lavanda) inset; }
.punto.parcial { background: var(--amarillo-claro); box-shadow: 0 0 0 1.5px var(--amarillo) inset; }
.punto.parcial::after { content: ""; width: 8px; height: 2px; border-radius: 2px; background: var(--ciruela); margin-top: 8px; }
.punto.completo { background: var(--rojo); color: #fff; }
.punto.completo::after { content: "×"; font-size: 14px; }

.calendarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.mes { background: #fff; border-radius: 18px; padding: 1.2rem 1.1rem 1rem; box-shadow: var(--sombra); }
.mes h3 { font-size: 1.35rem; text-transform: none; margin-bottom: .7rem; }
.mes-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.mes-grid .dsem { font-size: .78rem; font-weight: 600; color: var(--ciruela-suave); padding-bottom: 4px; }
.dia {
  position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  font: 500 .92rem var(--f-texto); color: var(--ciruela);
  background: none; border: 0; padding: 0; cursor: pointer;
}
.dia.libre:hover { background: var(--lila-claro); }
.dia.finde { font-weight: 700; }
/* Además del color: una rayita en los días con franjas ocupadas y el número tachado en los completos */
.dia.parcial { background: var(--amarillo-claro); box-shadow: 0 0 0 1.5px var(--amarillo) inset; }
.dia.parcial::after { content: ""; position: absolute; bottom: 18%; width: 30%; height: 2px; border-radius: 2px; background: var(--ciruela); }
.dia.completo { background: var(--rojo); color: #fff; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.dia.pasado { background: none; box-shadow: none; color: #C9BED1; cursor: default; text-decoration: none; }
.dia.pasado::after { display: none; }
.dia.hoy { box-shadow: 0 0 0 2px var(--oro) inset; }
.dia.elegido { outline: 3px solid var(--oro); outline-offset: 1px; }
.dia.abierto { outline: 3px solid var(--ciruela); outline-offset: 1px; }

/* Panel con las franjas del día */
.dia-detalle { margin-top: 1.5rem; background: #fff; border-radius: 18px; padding: clamp(16px, 3vw, 28px); box-shadow: var(--sombra); }
.dia-detalle:focus { outline: none; }
.detalle-cabeza { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.detalle-cabeza h3 { margin: 0 0 .3rem; }
.detalle-cerrar { background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--ciruela); cursor: pointer; padding: 0 .3rem; }
.dia-detalle > p { color: var(--ciruela-suave); margin-bottom: 1rem; }
.franjas { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.franja {
  width: 100%; display: grid; gap: .1rem; text-align: left; cursor: pointer;
  font: 500 .95rem var(--f-texto); color: var(--ciruela);
  background: #fff; border: 1.5px solid #D9CCE6; border-radius: 14px; padding: .8rem 1rem;
}
.franja:hover:not(:disabled) { border-color: var(--ciruela); }
.franja-nombre { font: 400 1.2rem var(--f-display); }
.franja-horas { color: var(--ciruela-suave); font-size: .88rem; }
.franja-estado { font-weight: 600; font-size: .88rem; margin-top: .3rem; }
.franja.libre .franja-estado::before { content: "✓ "; color: var(--hoja); }
.franja.prereserva { background: var(--amarillo-claro); border-color: var(--amarillo); cursor: not-allowed; }
.franja.prereserva .franja-estado::before { content: "◐ "; }
.franja.reservado, .franja.bloqueado { background: var(--rojo-claro); border-color: var(--rojo); cursor: not-allowed; }
.franja.reservado .franja-estado, .franja.bloqueado .franja-estado { color: var(--rojo); }
.franja.reservado .franja-estado::before, .franja.bloqueado .franja-estado::before { content: "× "; }
.franja.elegida { background: var(--ciruela); border-color: var(--ciruela); color: var(--papel); }
.franja.elegida .franja-horas { color: var(--lila-claro); }
.enlace-boton { background: none; border: 0; padding: 0; font: 600 1rem var(--f-texto); color: var(--lavanda-osc); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.alternativas { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.form-estado .chip { background: #fff; }
.campo select {
  width: 100%; font: 400 1rem var(--f-texto); color: var(--ciruela);
  background: var(--papel); border: 1.5px solid #D9CCE6; border-radius: 12px; padding: .8rem .95rem;
}
.campo select:focus { outline: none; border-color: var(--lavanda-osc); box-shadow: 0 0 0 3px rgba(155, 123, 196, .25); }
@media (max-width: 600px) { .franjas { grid-template-columns: 1fr; } }
.cal-nav { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.2rem; }
.cal-nav button:disabled { opacity: .35; cursor: default; pointer-events: none; }

@media (max-width: 900px) { .calendarios { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .calendarios { grid-template-columns: 1fr; } }

/* ---------- Formulario ---------- */
#form-propuesta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.4rem;
  background: #fff; border-radius: 22px; padding: clamp(20px, 4vw, 44px); box-shadow: var(--sombra);
}
#form-propuesta > fieldset:first-child, .campo-ancho { grid-column: 1 / -1; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .campo label { display: block; font-weight: 600; margin-bottom: .5rem; font-size: 1rem; }
.campo input, .campo textarea {
  width: 100%; font: 400 1rem var(--f-texto); color: var(--ciruela);
  background: var(--papel); border: 1.5px solid #D9CCE6; border-radius: 12px; padding: .8rem .95rem;
}
.campo textarea { resize: vertical; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--lavanda-osc); box-shadow: 0 0 0 3px rgba(155, 123, 196, .25); }
.campo input[aria-invalid="true"] { border-color: #B2324B; }

.opciones { display: flex; flex-wrap: wrap; gap: .5rem; }
.opciones label { position: relative; cursor: pointer; }
.opciones input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opciones span {
  display: inline-block; padding: .6rem 1rem; border-radius: 999px;
  border: 1.5px solid #D9CCE6; background: var(--papel); font-weight: 500; transition: all .15s;
}
.opciones label:hover span { border-color: var(--lavanda-osc); }
.opciones input:checked + span { background: var(--ciruela); color: var(--papel); border-color: var(--ciruela); }
.opciones input:focus-visible + span { outline: 3px solid var(--oro); outline-offset: 2px; }

.error { color: #B2324B; font-size: .9rem; margin: .35rem 0 0; min-height: 0; }
.error:empty { display: none; }
.aviso { font-size: .92rem; margin: .4rem 0 0; }
.aviso:empty { display: none; }
.aviso.ok { color: var(--hoja); }
.aviso.mal { color: #B2324B; }
.aviso.medio { color: #9A5A2A; }
.form-acciones { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }

@media (max-width: 600px) { #form-propuesta { grid-template-columns: 1fr; } }

.resultado {
  margin-top: 1.5rem; background: #fff; border-radius: 22px; padding: clamp(20px, 4vw, 36px);
  box-shadow: 0 0 0 2px var(--hoja) inset, var(--sombra);
}
.resultado:focus { outline: none; }
.resultado h3 { margin-bottom: .3em; }
.resultado pre {
  white-space: pre-wrap; word-break: break-word; font: 400 .98rem/1.55 var(--f-texto);
  background: #E7F6DF; color: var(--ciruela); padding: 1rem 1.1rem; border-radius: 4px 16px 16px 16px; margin: 1rem 0 1.2rem;
}

/* ---------- Contacto ---------- */
.equipo { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 1.5rem; }
.persona {
  background: #fff; border-radius: 22px; padding: 1.8rem; box-shadow: var(--sombra);
  display: flex; flex-direction: column; align-items: flex-start; gap: .4rem;
}
.persona:nth-child(2) .persona-icono { color: var(--rosa); }
.persona-icono { width: 52px; height: 44px; color: var(--lavanda); margin-bottom: .4rem; }
.persona h3 { margin: 0; font-size: 1.6rem; }
.persona .tel { font: 600 1.35rem var(--f-texto); color: var(--ciruela); text-decoration: none; margin-bottom: .6rem; }
.persona .tel:hover { text-decoration: underline; }
.zona { margin-top: 2rem; color: var(--ciruela-suave); max-width: 62ch; }
@media (max-width: 600px) { .equipo { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid rgba(110, 78, 154, .25); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.12rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--f-display); color: var(--lavanda-osc); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .8rem 0 0; color: var(--ciruela-suave); max-width: 65ch; }

/* ---------- Pie ---------- */
.pie { background: var(--ciruela); color: #E6DAEE; padding: 64px 0 24px; margin-top: 40px; }
.pie .marca { color: #fff; }
.pie .marca-icono { color: var(--rosa); }
.pie a { color: #F2E9F7; }
.pie-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pie-legal { text-align: center; font-size: .88rem; margin: 3rem 0 0; opacity: .7; }
@media (max-width: 720px) { .pie-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-flotante {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35);
}
.whatsapp-flotante svg { width: 30px; height: 30px; }
.whatsapp-flotante:hover { color: #fff; transform: scale(1.05); }

/* ---------- Backend: consentimiento, antispam, estado del envío ---------- */
.sr, .trampa { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.opcional { font-weight: 400; color: var(--ciruela-suave); font-size: .9rem; }
.consentimiento label { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; color: var(--ciruela-suave); cursor: pointer; }
.consentimiento input { width: 20px; height: 20px; margin-top: .15rem; flex: none; accent-color: var(--ciruela); }
.form-estado { margin: 0; padding: .9rem 1.1rem; border-radius: 14px; font-weight: 500; }
.form-estado:empty { display: none; }
.form-estado.ok { background: #EAF2E5; color: #3E5A31; }
.form-estado.mal { background: #FBE7EB; color: #8E2238; }
.form-estado.cargando { background: var(--lila-claro); color: var(--ciruela); }
.form-estado strong { font-family: var(--f-display); font-weight: 400; font-size: 1.15em; letter-spacing: .03em; }
button[aria-busy="true"] { opacity: .65; cursor: progress; }

/* ---------- Formulario de contacto ---------- */
.form-contacto {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; max-width: 720px; margin-top: 2.5rem;
  background: #fff; border-radius: 22px; padding: clamp(20px, 4vw, 36px); box-shadow: var(--sombra);
}
.form-contacto h3, .form-contacto > p { grid-column: 1 / -1; margin: 0; }
.form-contacto > p { color: var(--ciruela-suave); }
@media (max-width: 600px) { .form-contacto { grid-template-columns: 1fr; } }

/* ---------- Páginas legales (privacidad y aviso legal) ---------- */
.legal h1 { font-size: clamp(2.3rem, 6vw, 3.4rem); margin: 1.2rem 0 1rem; }
.legal h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); max-width: none; margin: 2.2rem 0 .5rem; }
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-left: 1.3rem; margin: 0 0 1em; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Cursor mariposa (solo ratón; en táctil no se aplica) ----------
   SVG de 32×32 con la mariposa de la marca y borde blanco. El punto activo
   (3 3) está en la punta del ala superior izquierda. */
:root {
  --cursor-mariposa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='-93.1 -84.2 202.0 202.0'%3E%3Cg transform='rotate(15)'%3E%3Cg fill='%23fff' stroke='%23fff' stroke-width='13' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M0,-4C-18,-62-88,-78-94,-34C-98,-6-58,10,0,4ZM0,-4C18,-62,88,-78,94,-34C98,-6,58,10,0,4Z'/%3E%3Cpath d='M0,6C-46,10-74,40-60,66C-46,86-10,62,0,20ZM0,6C46,10,74,40,60,66C46,86,10,62,0,20Z'/%3E%3Cpath d='M-2-20C-8-40-18-52-26-56M2-20C8-40,18-52,26-56' fill='none'/%3E%3C/g%3E%3Cpath d='M0,-4C-18,-62-88,-78-94,-34C-98,-6-58,10,0,4ZM0,-4C18,-62,88,-78,94,-34C98,-6,58,10,0,4Z' fill='%239B7BC4'/%3E%3Cpath d='M0,6C-46,10-74,40-60,66C-46,86-10,62,0,20ZM0,6C46,10,74,40,60,66C46,86,10,62,0,20Z' fill='%237E5FB0'/%3E%3Cellipse cx='0' cy='8' rx='6' ry='30' fill='%233B1E4A'/%3E%3Cpath d='M-2-20C-8-40-18-52-26-56M2-20C8-40,18-52,26-56' stroke='%233B1E4A' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E") 3 3, auto;
  --cursor-mariposa-enlace: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='-93.1 -84.2 202.0 202.0'%3E%3Cg transform='rotate(15)'%3E%3Cg fill='%23fff' stroke='%23fff' stroke-width='13' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M0,-4C-18,-62-88,-78-94,-34C-98,-6-58,10,0,4ZM0,-4C18,-62,88,-78,94,-34C98,-6,58,10,0,4Z'/%3E%3Cpath d='M0,6C-46,10-74,40-60,66C-46,86-10,62,0,20ZM0,6C46,10,74,40,60,66C46,86,10,62,0,20Z'/%3E%3Cpath d='M-2-20C-8-40-18-52-26-56M2-20C8-40,18-52,26-56' fill='none'/%3E%3C/g%3E%3Cpath d='M0,-4C-18,-62-88,-78-94,-34C-98,-6-58,10,0,4ZM0,-4C18,-62,88,-78,94,-34C98,-6,58,10,0,4Z' fill='%23E8A6B8'/%3E%3Cpath d='M0,6C-46,10-74,40-60,66C-46,86-10,62,0,20ZM0,6C46,10,74,40,60,66C46,86,10,62,0,20Z' fill='%23D9839B'/%3E%3Cellipse cx='0' cy='8' rx='6' ry='30' fill='%233B1E4A'/%3E%3Cpath d='M-2-20C-8-40-18-52-26-56M2-20C8-40,18-52,26-56' stroke='%233B1E4A' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E") 3 3, pointer;
}
@media (hover: hover) and (pointer: fine) {
  body { cursor: var(--cursor-mariposa); }
  a, button, summary, label, .boton, .chip, .filtro, .dia, .franja, .menu-boton,
  .detalle-cerrar, .enlace-boton, .opciones input, .consentimiento input,
  input[type="checkbox"], input[type="radio"], .opciones label, .consentimiento label, .faq summary
  { cursor: var(--cursor-mariposa-enlace); }
  input:not([type="checkbox"]):not([type="radio"]), textarea { cursor: text; }
  select { cursor: auto; }
  button:disabled, .franja:disabled, input:disabled { cursor: not-allowed; }
  button[aria-busy="true"] { cursor: progress; }
  .dia.pasado { cursor: default; }
}
