/* profesional.css · estilo sobrio de las páginas de ejemplo (plantilla del 25-nov-2026).
   Para negocios que piden algo "más profesional" (clínicas, consultorios, empresas). Va con vida.js.
   Movimiento suave: entradas, secciones que aparecen, fotos que se acercan, tarjetas que se levantan y cifras que cuentan.
   Usa las variables de la página: --tinta, --suave, --borde. Todo lo que se mueve respeta "reducir movimiento". */

/* Aviso de abierto / cerrado: <span class="abierto" data-horario="1-5 10:00-18:00; 6 9:00-15:00">Texto sin JS</span> */
.abierto { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--tinta); font-weight: 600; font-size: 15px; line-height: 1.3; padding: 9px 16px 9px 13px; border-radius: 999px; box-shadow: 0 4px 16px rgba(16, 32, 64, .08); }
.abierto::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #9aa3b5; flex: none; }
.abierto.si::before { background: #22a04b; box-shadow: 0 0 0 4px rgba(34, 160, 75, .18); }
.abierto.no::before { background: #d9534f; box-shadow: 0 0 0 4px rgba(217, 83, 79, .15); }

/* Formulario que abre WhatsApp con el mensaje listo: <form class="form-wa" data-wa="57..." data-saludo="..."> */
.form-wa .campo { display: grid; gap: 6px; margin-bottom: 14px; }
.form-wa label { font-weight: 600; font-size: 15px; color: var(--tinta); }
.form-wa input, .form-wa select, .form-wa textarea { font: inherit; font-size: 16px; color: var(--tinta); width: 100%; padding: 12px 14px; border: 1.5px solid var(--borde, #d8dee9); border-radius: 12px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.form-wa textarea { min-height: 96px; resize: vertical; }
.form-wa input:focus, .form-wa select:focus, .form-wa textarea:focus { outline: none; border-color: var(--morado); box-shadow: 0 0 0 4px rgba(11, 58, 143, .12); }
.form-wa .opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.form-wa .opciones label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid var(--borde, #d8dee9); border-radius: 999px; cursor: pointer; font-weight: 600; }
.form-wa .opciones input { width: auto; accent-color: var(--morado); }
.form-wa .opciones label:has(input:checked) { border-color: var(--morado); background: rgba(11, 58, 143, .06); }
.form-wa .nota { font-size: 14px; color: var(--suave); margin: 10px 0 0; }
.form-wa .resaltar { animation: none; }

@media (prefers-reduced-motion: no-preference) {
  /* Entrada de la portada */
  .entrada > * { animation: p-subir .8s cubic-bezier(.2, .7, .2, 1) backwards; }
  .entrada > :nth-child(2) { animation-delay: .07s; }
  .entrada > :nth-child(3) { animation-delay: .14s; }
  .entrada > :nth-child(4) { animation-delay: .21s; }
  .entrada > :nth-child(5) { animation-delay: .28s; }
  .entrada > :nth-child(6) { animation-delay: .35s; }
  .mosaico > * { animation: p-aparecer .9s cubic-bezier(.2, .7, .2, 1) backwards; }
  .mosaico > :nth-child(2) { animation-delay: .12s; }
  .mosaico > :nth-child(3) { animation-delay: .24s; }
  .mosaico > :nth-child(4) { animation-delay: .36s; }
  @keyframes p-subir { from { opacity: 0; transform: translateY(16px); } }
  @keyframes p-aparecer { from { opacity: 0; transform: scale(.96); } }

  /* Secciones que aparecen al llegar a ellas */
  .js .revelar { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--retraso, 0s); }
  .js .revelar.visible { opacity: 1; transform: none; }

  /* Fotos que se acercan al pasar el ratón */
  .foto-zoom { overflow: hidden; }
  .foto-zoom img { transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
  .foto-zoom:hover img, .levanta:hover .foto-zoom img { transform: scale(1.05); }

  /* Tarjetas que se levantan */
  .levanta { transition: transform .35s ease, box-shadow .35s ease, opacity .8s ease; }
  .levanta:hover, .js .levanta.visible:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16, 32, 64, .12); transition-delay: 0s; }

  /* El punto verde de "Abierto ahora" late suave */
  .abierto.si::before { animation: p-latido 2.2s ease-in-out infinite; }
  @keyframes p-latido { 50% { box-shadow: 0 0 0 7px rgba(34, 160, 75, .07); } }

  /* El formulario se ilumina cuando llegan a él desde un botón de servicio */
  .form-wa.resaltar { animation: p-resaltar 1.4s ease; }
  @keyframes p-resaltar { 20% { box-shadow: 0 0 0 6px rgba(11, 58, 143, .18); } }

  /* Botón fijo de WhatsApp: entra desde abajo */
  .wa-fijo { animation: p-subir .6s ease 1s backwards; }
}
