/* ==========================================================================
   RIEDENTAL — Página "en construcción" (contador a la inauguración)
   Estilos propios (complementan Bootstrap 5.3.3)
   ========================================================================== */

:root {
  --rd-teal-900: #0a3d3a;
  --rd-teal-700: #0d5c56;
  --rd-teal-600: #12726a;
  --rd-teal-100: #e4f2f0;
  --rd-gold-500: #c9a04a;
  --rd-gold-300: #e9cf8e;
  --rd-cream: #faf8f4;
  --rd-ink: #1f2b2a;
  --rd-ink-soft: #4b5a58;

  --rd-font-display: "Playfair Display", "Georgia", serif;
  --rd-font-body: "Poppins", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--rd-font-body);
  font-weight: 300;
  color: var(--rd-ink);
  background-color: var(--rd-cream);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(13, 92, 86, 0.06), transparent 45%),
    radial-gradient(circle at 88% 92%, rgba(201, 160, 74, 0.10), transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1050;
  padding: 0.75rem 1rem;
  background: var(--rd-teal-900);
  color: #fff;
}

/* ---------------------------------------------------------------------- */
/* Encabezado / logo                                                       */
/* ---------------------------------------------------------------------- */

header {
  padding-top: clamp(1.75rem, 5vw, 3rem);
}

.site-logo {
  width: 100%;
  max-width: 260px;
  height: auto;
}

/* ---------------------------------------------------------------------- */
/* Tarjeta principal                                                       */
/* ---------------------------------------------------------------------- */

.hero-card {
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 5vw, 3.5rem);
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 1.5rem 3.5rem -1.5rem rgba(10, 61, 58, 0.35);
  border: 1px solid rgba(13, 92, 86, 0.08);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rd-gold-500);
}

.divider {
  width: 4.5rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rd-teal-600), var(--rd-gold-500));
}

/* ---------------------------------------------------------------------- */
/* Contador regresivo                                                      */
/* ---------------------------------------------------------------------- */

.countdown {
  max-width: 38rem;
}

.countdown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1.25rem 0.25rem 1rem;
  background: var(--rd-teal-100);
  border: 1px solid rgba(13, 92, 86, 0.12);
  border-radius: 1rem;
  height: 100%;
  transition: transform 0.15s ease;
}

.countdown-value {
  font-family: var(--rd-font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6.5vw, 3.1rem);
  line-height: 1;
  color: var(--rd-teal-900);
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rd-ink-soft);
}

/* Pulso sutil en el bloque de segundos en cada tick, para reforzar
   visualmente que el contador se actualiza en tiempo real. */
@keyframes rd-tick-pulse {
  0% {
    opacity: 0.55;
    transform: translateY(-2px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.countdown-tick {
  display: inline-block;
  animation: rd-tick-pulse 0.4s ease-out;
}

.countdown-done {
  font-family: var(--rd-font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  color: var(--rd-teal-700);
}

/* ---------------------------------------------------------------------- */
/* Formulario "Notificarme"                                                */
/* ---------------------------------------------------------------------- */

.notify-form {
  max-width: 30rem;
}

.notify-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--rd-ink-soft);
  margin-bottom: 0.6rem;
}

.notify-form .input-group-text {
  background: var(--rd-teal-100);
  border: 1px solid #dce7e5;
  color: var(--rd-teal-700);
}

.notify-form .form-control {
  border: 1px solid #dce7e5;
  font-family: var(--rd-font-body);
}

.notify-form .form-control:focus {
  border-color: var(--rd-teal-600);
  box-shadow: 0 0 0 0.2rem rgba(13, 92, 86, 0.15);
}

.btn-notify {
  background: var(--rd-teal-700);
  border: 1px solid var(--rd-teal-700);
  color: #fff;
  font-weight: 500;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.btn-notify:hover,
.btn-notify:focus {
  background: var(--rd-teal-900);
  border-color: var(--rd-teal-900);
  color: #fff;
}

.notify-feedback {
  min-height: 1.4rem;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.notify-feedback.text-success-custom {
  color: var(--rd-teal-700);
  font-weight: 500;
}

.notify-feedback.text-danger-custom {
  color: #a3311b;
  font-weight: 500;
}

/* ---------------------------------------------------------------------- */
/* Línea de contacto (correo)                                              */
/* ---------------------------------------------------------------------- */

.contact-line {
  font-size: 0.9rem;
  color: var(--rd-ink-soft);
}

.contact-line-link {
  font-weight: 500;
  color: var(--rd-teal-700);
  text-decoration: none;
  border-bottom: 1px solid var(--rd-gold-500);
}

.contact-line-link:hover,
.contact-line-link:focus {
  color: var(--rd-gold-500);
}

/* ---------------------------------------------------------------------- */
/* Pie de página                                                           */
/* ---------------------------------------------------------------------- */

footer {
  color: var(--rd-ink-soft);
}

.footer-text {
  font-size: 0.85rem;
}

.footer-domain {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--rd-teal-700);
}

/* ---------------------------------------------------------------------- */
/* Responsive: formulario en pantallas muy pequeñas                        */
/* ---------------------------------------------------------------------- */

@media (max-width: 420px) {
  .notify-form .input-group {
    flex-wrap: wrap;
  }

  .notify-form .input-group-text {
    border-radius: 0.5rem 0.5rem 0 0;
    flex: 1 0 100%;
    justify-content: flex-start;
    border-bottom: 0;
  }

  .notify-form .form-control {
    border-radius: 0;
    border-bottom: 0;
    flex: 1 1 auto;
    min-width: 0;
  }

  .btn-notify {
    border-radius: 0 0 0.5rem 0.5rem;
    flex: 1 0 100%;
  }
}

/* ---------------------------------------------------------------------- */
/* Accesibilidad: preferencia de movimiento reducido                       */
/* ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .countdown-tick {
    animation: none;
  }
}
