/* main.css — Clínica Dental Germanies · página "próximamente"
   Paleta y tipografías: docs/01-MARCA.md */

:root {
  --crema-fondo:   #F7F4EE;
  --crema-tarjeta: #EDE6D8;
  --dorado:        #C8A96A;
  --dorado-hover:  #A98844;
  --verde-oscuro:  #2E4B45;
  --texto:         #4A4436;
  --exito-wa:      #2F7D5B;
  --texto-sobre-dorado: #3D2F14;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* Nada desborda horizontalmente en móvil */
html, body { overflow-x: hidden; }
img, svg, picture { max-width: 100%; height: auto; }

body {
  margin: 0;
  background: var(--crema-fondo);
  color: var(--texto);
  font-family: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  text-align: center;
}

/* --- Bloque 1: hero / wordmark --- */
.hero { margin-bottom: 40px; }

.logo { width: 100%; max-width: 420px; height: auto; margin: 0 auto; display: block; }

.filete {
  width: 48px;
  height: 2px;
  background: var(--dorado);
  border: 0;
  margin: 22px auto 0;
}

/* --- Bloque 2: titulares --- */
h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  color: var(--verde-oscuro);
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1.15;
  margin: 0 0 14px;
}

.subtitulo {
  font-size: 18px;
  color: var(--texto);
  margin: 0 auto 40px;
  max-width: 30em;
}

/* --- Foto de la fachada --- */
.fachada {
  margin: 0 auto 40px;
  max-width: 420px;            /* ancho contenido = más nitidez con fuente 561px */
}
.fachada img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--dorado);
  box-shadow: 0 10px 30px rgba(46, 75, 69, .10);
}

/* --- Bloque 3: tarjeta de datos --- */
.datos {
  background: var(--crema-tarjeta);
  border-radius: 12px;
  padding: 28px 28px 24px;
  margin: 0 0 40px;
  text-align: left;
  display: inline-block;
  width: 100%;
}

.datos ul { list-style: none; margin: 0; padding: 0; }
.datos li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.datos li:not(:last-child) { border-bottom: 1px solid rgba(74,68,54,.10); }
.datos svg { flex: 0 0 20px; color: var(--dorado); }
.datos .pendiente { color: var(--texto); opacity: .6; font-style: italic; }

/* --- Bloque 4: teaser muralla --- */
.teaser {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  color: var(--verde-oscuro);
  margin: 0 auto 44px;
  max-width: 28em;
}

/* --- Bloque 5: captura --- */
.captura-txt { margin: 0 auto 18px; max-width: 30em; }

form.aviso {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
}
form.aviso .campo {
  flex: 1 1 220px;
  min-width: 0;
}
form.aviso input[type="text"] {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(74,68,54,.25);
  border-radius: 8px;
  background: #fff;
  color: var(--texto);
  font-family: inherit;
  font-size: 16px;
}
form.aviso input[type="text"]:focus {
  outline: 2px solid var(--dorado);
  outline-offset: 1px;
  border-color: var(--dorado);
}

.btn-dorado {
  flex: 0 0 auto;
  padding: 13px 26px;
  border: 0;
  border-radius: 8px;
  background: var(--dorado);
  color: var(--texto-sobre-dorado);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s ease;
}
.btn-dorado:hover { background: var(--dorado-hover); }

/* honeypot oculto accesiblemente */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.rgpd {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--texto);
  max-width: 460px;
  margin: 14px auto 0;
  text-align: left;
}
.rgpd input { margin-top: 3px; flex: 0 0 auto; }
.rgpd a { color: var(--verde-oscuro); }

.form-msg { margin: 14px auto 0; max-width: 460px; font-size: 14px; }
.form-msg.ok  { color: var(--exito-wa); }
.form-msg.err { color: #9a3b2f; }

/* --- Footer --- */
footer {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(74,68,54,.12);
  font-size: 13px;
  color: var(--texto);
  opacity: .7;
  line-height: 1.6;
}
footer a { color: inherit; }

a { color: var(--verde-oscuro); text-underline-offset: 2px; }

/* --- Páginas legales --- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  text-align: left;
}
.legal h1 { text-align: left; font-size: clamp(28px, 5vw, 38px); }
.legal h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  color: var(--verde-oscuro);
  font-size: 24px;
  margin: 32px 0 8px;
}
.legal p, .legal li { color: var(--texto); }
.legal .volver { display: inline-block; margin-top: 32px; }

/* --- Móvil --- */
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 40px 18px 32px; }
  .hero { margin-bottom: 32px; }
  .subtitulo { font-size: 17px; margin-bottom: 32px; }
  .fachada { margin-bottom: 32px; }
  .datos { padding: 22px 18px; margin-bottom: 32px; }
  .teaser { font-size: 19px; margin-bottom: 36px; }

  /* Formulario apilado: input y botón a ancho completo (fáciles de tocar) */
  form.aviso { gap: 12px; }
  form.aviso .campo { flex: 1 1 100%; }
  .btn-dorado { flex: 1 1 100%; }

  .legal { padding: 36px 18px 48px; }
}
