/* ===============================
   MANTENIMIENTO RIGGEO - CSS
   - Animación de entrada
   - Layout principal
   - Títulos y textos
   - Reloj minimalista
   - Slot para imagen
   - Redes sociales (FA 5.3.1)
   - Olas (amplitud reducida)
   - Reset / Base
================================= */

/* ---- Animación de entrada ---- */
@keyframes mainteIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Layout principal ---- */
.mainte {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 2rem;
  padding-left: 2rem;
}

.mainte a {
  color: var(--mt-accent, #b10e0e);
}

/* Íconos SVG (si se usan en otra parte) */
.mainte .i {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-width: 2;
  width: var(--mt-icon-size, 26px);
  height: var(--mt-icon-size, 26px);
  display: block;
}

/* ---- Contenido ---- */
.mainte-content {
  display: flex;
  flex-direction: column;
  text-align: center;
  max-width: var(--mt-content, 560px);
  gap: var(--mt-gap, 1.25rem);
  position: relative;
  z-index: 1;
}

.mainte-content *:not(:where(svg, svg *)) {
  margin: 0;
  opacity: 0;
  transform: translateY(var(--mt-aty, -2rem));
  animation: mainteIn 0.9s ease forwards;
}

/* ---- Títulos / Textos ---- */
.mainte-title {
  font-weight: 600;
  color: var(--mt-color-title, #fff);
  font-size: var(--mt-title-size, 2.2rem);
}

.mainte-text {
  color: var(--mt-color-text, #fff);
  font-size: var(--mt-text-size, 1.05rem);
  animation-delay: 0.6s;
  line-height: 1.55;
  --mt-aty: 0;
}

/* ---- Reloj minimalista ---- */
.clock {
  --clock-size: 2.6rem;
  font: 300 var(--clock-size)/1.1 ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
  color: #fff;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.6rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(2px);
  display: inline-block;
  margin-inline: auto;
  animation-delay: 0.9s;
}

.clock small {
  font-size: 0.42em;
  opacity: 0.75;
  margin-left: 0.35rem;
}

/* ---- Imagen debajo del reloj ---- */
.mainte-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation-delay: 1.1s;
}

.mainte-image img {
  max-width: 220px;
  width: 60%;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mainte-image img:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* ---- Redes sociales ---- */
.mainte-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  --mt-aty: 2rem;
}

.mainte-social > *:nth-child(odd) {
  animation-delay: 0.75s;
}

.mainte-social-item {
  font-size: 1.8rem;           /* Tamaño de ícono FA */
  color: #cfcfcf;              /* Color base neutro */
  transition: transform 0.2s ease, color 0.2s ease;
}

.mainte-social-item:hover {
  transform: translateY(-2px);
}

.mainte-social-item:hover .fa-whatsapp {
  color: #25d366;              /* Verde WhatsApp */
}

.mainte-social-item:hover .fa-envelope {
  color: #0072c6;              /* Azul correo */
}

/* ---- Olas (amplitud reducida) ---- */
@keyframes wave {
  to {
    transform: rotate(360deg);
  }
}

.wave {
  --wave-size: 240rem;         /* antes ~380rem */
  --wave-color: #861f1f;
  width: 100%;
  position: absolute;
  overflow: hidden;
  min-height: 100vh;
  inset: 0;
  pointer-events: none;
}

.wave-item,
.wave-item::after,
.wave-item::before {
  content: "";
  position: absolute;
  opacity: var(--wave-opacity);
  width: var(--wave-size);
  height: var(--wave-size);
  background: var(--wave-color);
  transform-origin: 48% 50%;
  border-radius: 46%;
  animation: wave var(--wave-duration, 18s) infinite linear;
  pointer-events: none;
  filter: blur(2px);
}

.wave-item {
  top: 80%;
  left: 50%;
  margin-left: calc((var(--wave-size) / 2) * -1);
  --wave-opacity: 0.18;
}

.wave-item::after {
  --wave-duration: 32s;
  --wave-opacity: 0.06;
  top: 6rem;
  left: 4rem;
}

.wave-item::before {
  --wave-duration: 24s;
  --wave-opacity: 0.10;
  top: -6rem;
  left: -4rem;
}

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

body {
  background-color: var(--mt-bg, #0a0a0a);
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
