:root {
  --crema: #fdf8f3;
  --crema-hondo: #f6ece2;
  --carbon: #2b211f;
  --carbon-suave: #6b5c57;
  --amapola: #c8102e;
  --amapola-hondo: #9d0a23;
  --verde: #4a5d3a;
  --wa: #25d366;
  --wa-hondo: #1da851;
  --borde: #e6d8ca;

  --display: "Cormorant Garamond", Georgia, serif;
  --texto: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radio: 14px;
  --sombra: 0 18px 40px -24px rgba(43, 33, 31, .45);
  --ancho: 1140px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--crema);
  color: var(--carbon);
  font-family: var(--texto);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 .4em;
}

h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
h3 { font-size: 1.25rem; }

h1 em { font-style: italic; color: var(--amapola); }

p { margin: 0 0 1rem; }

a { color: inherit; }

.contenedor {
  width: min(100% - 2.5rem, var(--ancho));
  margin-inline: auto;
}

.sobretitulo {
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--amapola);
  margin-bottom: .9rem;
}

.visualmente-oculto {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.saltar {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--carbon);
  color: #fff;
  padding: .7rem 1.1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.saltar:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--amapola);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--texto);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.boton:hover { transform: translateY(-2px); }
.boton:active { transform: translateY(0); }

.boton--primario {
  background: var(--amapola);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(200, 16, 46, .9);
}
.boton--primario:hover { background: var(--amapola-hondo); }

.boton--fantasma {
  background: transparent;
  color: var(--carbon);
  border-color: var(--borde);
}
.boton--fantasma:hover { background: var(--crema-hondo); }

.boton--wa { background: var(--wa); color: #06331a; }
.boton--wa:hover { background: var(--wa-hondo); color: #fff; }

.boton--ancho { width: 100%; padding-block: 1rem; font-size: 1rem; }

.icono-wa { width: 20px; height: 20px; flex: none; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 243, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cabecera.esta-fija {
  border-bottom-color: var(--borde);
  box-shadow: 0 10px 30px -26px rgba(43, 33, 31, .7);
}

.cabecera__fila {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 78px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--amapola);
  margin-right: auto;
}
.logo__flor { width: 30px; height: 30px; flex: none; }
.logo__texto {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--carbon);
}

.nav { display: flex; gap: 1.8rem; }
.nav a {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  color: var(--carbon-suave);
  position: relative;
  padding-block: .3rem;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--amapola);
  transition: width .2s ease;
}
.nav a:hover { color: var(--carbon); }
.nav a:hover::after { width: 100%; }

.cabecera__wa { padding: .6rem 1.15rem; font-size: .9rem; }

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--borde);
  border-radius: 10px;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 18px; height: 1.5px;
  margin-inline: auto;
  background: var(--carbon);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-movil {
  display: none;
  flex-direction: column;
  padding: .5rem 1.25rem 1.25rem;
  border-top: 1px solid var(--borde);
}
.nav-movil a {
  padding: .85rem .25rem;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--crema-hondo);
}

/* ---------- Portada ---------- */
.portada {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.portada::before {
  content: "";
  position: absolute;
  top: -22%; right: -12%;
  width: 46rem; height: 46rem;
  background: radial-gradient(circle, rgba(200, 16, 46, .09), transparent 62%);
  pointer-events: none;
}

.portada__interior {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.portada__sub {
  font-size: 1.1rem;
  color: var(--carbon-suave);
  max-width: 34ch;
  margin-bottom: 1.8rem;
}

.portada__acciones { display: flex; flex-wrap: wrap; gap: .8rem; }

.portada__notas {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  font-size: .85rem;
  color: var(--carbon-suave);
}
.portada__notas li { display: flex; align-items: center; gap: .45rem; }
.portada__notas li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amapola);
  flex: none;
}

/* ---------- Los 4 ramos ---------- */
.ramos-portada {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.ramo {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.ramo:nth-child(odd) { transform: translateY(-16px); }
.ramo:hover { transform: translateY(-24px); box-shadow: 0 26px 48px -26px rgba(43, 33, 31, .55); }
.ramo:nth-child(even):hover { transform: translateY(-8px); }

.ramo__foto { aspect-ratio: 4 / 5; overflow: hidden; background: var(--crema-hondo); }
.ramo__foto img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.ramo:hover .ramo__foto img { transform: scale(1.05); }

.ramo__pie { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.ramo h3 { font-size: 1.15rem; margin-bottom: .15rem; }
.ramo__desc { font-size: .8rem; color: var(--carbon-suave); margin-bottom: .6rem; line-height: 1.4; }
.ramo__precio {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--amapola);
  margin: 0 0 .8rem;
}
.ramo__pedir {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem 1rem;
  border: 1px solid var(--carbon);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.ramo__pedir:hover { background: var(--carbon); color: var(--crema); }

/* ---------- Bienvenida ---------- */
.bienvenida {
  background: var(--crema-hondo);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.bienvenida__interior {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.bienvenida__foto {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  aspect-ratio: 4 / 5;
}
.bienvenida__foto img { width: 100%; height: 100%; object-fit: cover; }
.bienvenida__texto p { color: var(--carbon-suave); max-width: 52ch; }

.ventajas {
  display: grid;
  gap: 1.1rem;
  margin: 2rem 0 0;
  padding-top: 1.8rem;
  border-top: 1px solid var(--borde);
}
.ventajas dt {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
}
.ventajas dd {
  margin: .1rem 0 0;
  font-size: .92rem;
  color: var(--carbon-suave);
}

/* ---------- Contacto ---------- */
.contacto { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.contacto__interior {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contacto__intro p { color: var(--carbon-suave); max-width: 44ch; }

.contacto__datos {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.contacto__datos li {
  display: grid;
  gap: .1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--borde);
}
.contacto__datos li:last-child { border-bottom: 0; padding-bottom: 0; }
.contacto__etiqueta {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--carbon-suave);
}
.contacto__datos a {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amapola);
  text-decoration: none;
}
.contacto__datos a:hover { text-decoration: underline; }

.formulario {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--sombra);
  display: grid;
  gap: 1.1rem;
}

.campo { display: grid; gap: .4rem; }
.campo label { font-size: .88rem; font-weight: 600; }
.campo label span[aria-hidden] { color: var(--amapola); }
.opcional { font-weight: 400; color: var(--carbon-suave); }

.campo input,
.campo textarea {
  width: 100%;
  padding: .8rem .95rem;
  font-family: var(--texto);
  font-size: .95rem;
  color: var(--carbon);
  background: var(--crema);
  border: 1px solid var(--borde);
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.campo textarea { resize: vertical; min-height: 88px; }
.campo input::placeholder,
.campo textarea::placeholder { color: #b5a79f; }
.campo input:focus,
.campo textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--amapola);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, .14);
}
.campo input[aria-invalid="true"] { border-color: var(--amapola); background: #fff6f6; }

.error { margin: 0; font-size: .82rem; font-weight: 500; color: var(--amapola-hondo); }

.formulario__nota {
  margin: 0;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--carbon-suave);
  text-align: center;
}
.formulario__aviso {
  margin: 0;
  padding: .7rem .9rem;
  border-radius: 10px;
  background: rgba(37, 211, 102, .12);
  border: 1px solid rgba(29, 168, 81, .35);
  font-size: .85rem;
  font-weight: 500;
  text-align: center;
}

/* ---------- Pie ---------- */
.pie {
  background: var(--carbon);
  color: #e9ded6;
  /* Espacio extra abajo para que el botón flotante no tape el texto legal. */
  padding: 2.5rem 0 6rem;
}
.pie__fila {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.pie__marca { display: grid; gap: .1rem; margin: 0; }
.pie .logo__texto { color: #fff; }
.pie__marca span:last-child { font-size: .85rem; color: #b6a79e; }
.pie__legal { margin: 0; font-size: .82rem; color: #b6a79e; }

/* ---------- WhatsApp flotante ---------- */
.wa-flotante {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.25rem;
  background: var(--wa);
  color: #06331a;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  box-shadow: 0 14px 30px -12px rgba(6, 51, 26, .55);
  transition: transform .18s ease, background-color .18s ease;
}
.wa-flotante svg { width: 26px; height: 26px; flex: none; }
.wa-flotante:hover { transform: scale(1.05); background: var(--wa-hondo); color: #fff; }

.wa-flotante::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid var(--wa);
  animation: pulso 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes pulso {
  0%   { opacity: .7; transform: scale(1); }
  70%  { opacity: 0;  transform: scale(1.22); }
  100% { opacity: 0;  transform: scale(1.22); }
}

/* ---------- Adaptable ---------- */
@media (max-width: 1000px) {
  .portada__interior,
  .bienvenida__interior,
  .contacto__interior { grid-template-columns: 1fr; }

  .bienvenida__foto { max-height: 420px; aspect-ratio: 16 / 10; }
  .ramos-portada { grid-template-columns: repeat(4, 1fr); }
  .portada__sub { max-width: none; }
}

@media (max-width: 860px) {
  .nav, .cabecera__wa { display: none; }
  .menu-btn { display: flex; }
  .nav-movil:not([hidden]) { display: flex; }
  .ramos-portada { grid-template-columns: repeat(2, 1fr); gap: .85rem; }
  .ramo:nth-child(odd) { transform: none; }
  .ramo:hover, .ramo:nth-child(even):hover { transform: translateY(-6px); }
}

@media (max-width: 560px) {
  .contenedor { width: min(100% - 1.75rem, var(--ancho)); }
  h1 { font-size: clamp(2.4rem, 12vw, 3.2rem); }
  .portada__acciones .boton { width: 100%; }
  .ramo__pie { padding: .75rem .8rem 1rem; }
  .ramo h3 { font-size: 1rem; }
  .ramo__precio { font-size: 1.1rem; }
  .wa-flotante__texto { display: none; }
  .wa-flotante { padding: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
