/* Identidad compartida por el sitio y el panel de Sofia Zermeño: rosa, café y beige. */
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../fonts/playfair-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 900; font-display: swap; src: url('../fonts/playfair-italic.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/dmsans.woff2') format('woff2'); }

:root {
  /* Beige */
  --beige-50: #fdf9f4;
  --beige-100: #f7efe5;
  --beige-200: #eddfce;
  --beige-300: #dcc7ad;
  /* Rosa */
  --rosa-50: #fbeff1;
  --rosa-100: #f6dde2;
  --rosa-200: #eebcc8;
  --rosa-400: #d77a97;
  --rosa-600: #b03c64;
  --rosa-700: #92294f;
  /* Café */
  --cafe-950: #2e1f19;
  --cafe-900: #3e2a22;
  --cafe-700: #5c4033;
  --cafe-500: #85604c;
  --cafe-300: #b59482;

  --linea: #e4d3bf;
  --error: #a12347;
  --ok: #3f7a52;
  --sombra: 0 14px 34px rgba(62, 42, 34, 0.1);
  --sombra-suave: 0 6px 18px rgba(62, 42, 34, 0.08);
  --radio: 18px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--cafe-900); background: var(--beige-50);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; color: var(--cafe-900); }
p { margin: 0; }
a { color: var(--rosa-700); text-underline-offset: 3px; }
a:hover { color: var(--rosa-600); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--rosa-400); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

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

.monograma { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--rosa-600); color: #fff; font-family: var(--serif); font-style: italic; font-size: 1.05rem; letter-spacing: 0.02em; }

/* ---------------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primario { background: var(--rosa-600); color: #fff; box-shadow: 0 8px 20px rgba(176, 60, 100, 0.28); }
.btn-primario:hover { background: var(--rosa-700); color: #fff; }
.btn-secundario { background: transparent; color: var(--cafe-900); border-color: var(--cafe-700); }
.btn-secundario:hover { background: var(--cafe-900); color: var(--beige-50); }
.btn-suave { background: var(--rosa-100); color: var(--rosa-700); }
.btn-suave:hover { background: var(--rosa-200); color: var(--rosa-700); }
.btn-peligro { background: transparent; color: var(--error); border-color: var(--error); }
.btn-peligro:hover { background: var(--error); color: #fff; }
.btn-chico { min-height: 40px; padding: 8px 16px; font-size: 0.92rem; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.55; cursor: not-allowed; box-shadow: none; transform: none; }

/* ---------------------------------------------------------------- formularios */
.campo { display: grid; gap: 6px; align-content: start; } /* start: si el vecino es más alto, las filas no se estiran (desalineaba los selectores) */
.campo > label, .campo > .rotulo { font-weight: 600; font-size: 0.95rem; color: var(--cafe-900); }
.campo .ayuda { font-size: 0.86rem; color: var(--cafe-500); }
.opcional { font-weight: 400; color: var(--cafe-500); }
input[type='text'], input[type='email'], input[type='tel'], input[type='password'], input[type='date'], input[type='number'], input[type='search'], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px;
  border: 1.5px solid var(--beige-300); background: #fff; font-size: 16px; /* 16 px: iOS no hace zoom al enfocar */
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 42px; background-image: linear-gradient(45deg, transparent 50%, var(--cafe-700) 50%), linear-gradient(135deg, var(--cafe-700) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
input::placeholder, textarea::placeholder { color: var(--cafe-500); opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--rosa-600); box-shadow: 0 0 0 4px rgba(176, 60, 100, 0.16); }
.campo.invalido input, .campo.invalido select, .campo.invalido textarea { border-color: var(--error); }
.error { color: var(--error); font-size: 0.88rem; font-weight: 500; min-height: 0; }
.error:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; line-height: 1.5; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--rosa-600); }
.alerta { padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--error); background: #fdeef1; color: #6f1730; font-weight: 500; }
.alerta.ok { border-color: var(--ok); background: #eef7f0; color: #25472f; }
.alerta.info { border-color: var(--beige-300); background: var(--beige-100); color: var(--cafe-900); }
.trampa { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
