/* =========================================================
   Efectos institucionales - Lince / Mirtha Uribe
   Paleta: #0078a5  #ffffff  #00677f  #0f2540  #5cc4f0  #e8f6fb
   ========================================================= */

:root {
  --rp-primary: #0078a5;
  --rp-white: #ffffff;
  --rp-secondary: #00677f;
  --rp-ink: #0f2540;
  --rp-cyan: #5cc4f0;
  --rp-soft: #e8f6fb;
}

/* ---------- Boton Personero: pulse + glow + shine ---------- */
.btn-personero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #0078a5 0%, #00677f 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0 rgba(0, 120, 165, 0.55), 0 8px 22px -6px rgba(0, 103, 127, 0.65);
  animation: personero-pulse 1.8s ease-in-out infinite;
  z-index: 1;
}

.btn-personero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, transparent 40%, rgba(255,255,255,0.45) 50%, transparent 60%, transparent 100%);
  transform: translateX(-120%);
  animation: personero-shine 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

.btn-personero:hover {
  background: linear-gradient(135deg, #00677f 0%, #0078a5 100%) !important;
  box-shadow: 0 0 0 6px rgba(92, 196, 240, 0.28), 0 10px 28px -6px rgba(0, 120, 165, 0.7);
  transform: translateY(-1px) scale(1.03);
}

@keyframes personero-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 120, 165, 0.55), 0 8px 22px -6px rgba(0, 103, 127, 0.65);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(92, 196, 240, 0), 0 8px 22px -6px rgba(0, 103, 127, 0.65);
  }
}

@keyframes personero-shine {
  0%, 35% { transform: translateX(-120%); }
  65%, 100% { transform: translateX(120%); }
}

/* ---------- Typewriter: una frase a la vez, revelado por ancho ---------- */


/* ---------- Timeline: completed 1..N + active glow ---------- */
#timeline-progress {
  background: linear-gradient(90deg, #0078a5, #5cc4f0) !important;
}

.timeline-btn.is-done span:first-child {
  background-color: #0078a5 !important;
  border-color: #0078a5 !important;
  color: #ffffff !important;
}

.timeline-btn.is-done span:last-child {
  color: #0078a5 !important;
}

.timeline-btn.is-active span:first-child,
.timeline-btn.btn-active span:first-child {
  background-color: #00677f !important;
  border-color: #5cc4f0 !important;
  color: #ffffff !important;
  transform: scale(1.18);
  box-shadow: 0 0 0 6px rgba(0, 120, 165, 0.28), 0 0 18px rgba(92, 196, 240, 0.55);
  animation: timeline-ring 1.6s ease-in-out infinite;
  z-index: 2;
}

.timeline-btn.is-active span:last-child,
.timeline-btn.btn-active span:last-child {
  color: #00677f !important;
  font-weight: 800;
}

@keyframes timeline-ring {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(0, 120, 165, 0.35), 0 0 12px rgba(92, 196, 240, 0.4);
    transform: scale(1.14);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(92, 196, 240, 0.08), 0 0 22px rgba(0, 120, 165, 0.55);
    transform: scale(1.22);
  }
}

/* ---------- Formulario inline Mirtha te escucha ---------- */
#form-solicitud .form-input:focus,
#form-propuestas-inline .form-input:focus {
  border-color: #0078a5;
  box-shadow: 0 0 0 3px rgba(0, 120, 165, 0.18);
}

.solicitud-card {
  background: linear-gradient(180deg, #ffffff 0%, #e8f6fb 100%);
  border: 1px solid rgba(0, 120, 165, 0.18);
}

/* =========================================================
   Mirtha Te Escucha — fondo suave + formulario con marco
   ========================================================= */
.mirtha-escucha {
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(0, 120, 165, 0.1), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(0, 103, 127, 0.1), transparent 50%),
    radial-gradient(circle at 70% 15%, rgba(92, 196, 240, 0.12), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #f3fafc 45%, #ffffff 100%);
  position: relative;
}
.mirtha-escucha::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image: radial-gradient(rgba(0, 120, 165, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
}
.mirtha-escucha::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  top: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 120, 165, 0.12), transparent 70%);
  pointer-events: none;
  animation: mirtha-blob 8s ease-in-out infinite alternate;
}
@keyframes mirtha-blob {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-30px, 40px) scale(1.15); }
}

.solicitud-frame {
  position: relative;
  background: linear-gradient(165deg, #ffffff 0%, #f7fcfe 100%);
  border: 1px solid rgba(0, 120, 165, 0.18);
  border-radius: 1.25rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 18px 40px -18px rgba(0, 103, 127, 0.35),
    0 8px 20px -12px rgba(0, 120, 165, 0.25);
  overflow: hidden;
}
.solicitud-frame::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, #00677f, #0078a5, #5cc4f0, #0078a5, #00677f);
  background-size: 200% 100%;
  animation: frame-sheen 4s linear infinite;
}
.solicitud-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(0, 120, 165, 0.22);
  border-radius: 1rem;
  pointer-events: none;
}
.solicitud-frame > * {
  position: relative;
  z-index: 1;
}
@keyframes frame-sheen {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.solicitud-frame .form-input {
  border: 1px solid rgba(0, 120, 165, 0.2);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.solicitud-frame .form-input:focus {
  border-color: #0078a5;
  box-shadow: 0 0 0 3px rgba(0, 120, 165, 0.15);
  outline: none;
}

/* Formulario Mirtha: campos grandes y ovalados */
.solicitud-frame .form-input,
#form-solicitud .form-input,
#form-propuestas .form-input {
  width: 100% !important;
  min-height: 52px !important;
  padding: 0.95rem 1.35rem !important;
  border-radius: 9999px !important;
  border: 1.5px solid rgba(0, 120, 165, 0.28) !important;
  background: #ffffff !important;
  font-size: 1rem !important;
  line-height: 1.35 !important;
  box-sizing: border-box !important;
}
.solicitud-frame textarea.form-input,
#form-solicitud textarea.form-input,
#form-propuestas textarea.form-input {
  min-height: 140px !important;
  border-radius: 1.75rem !important;
  padding: 1rem 1.35rem !important;
  resize: vertical !important;
}
.solicitud-frame label,
#form-solicitud label {
  font-size: 0.92rem !important;
  margin-bottom: 0.4rem !important;
}
.solicitud-frame #btn-submit-solicitud,
#form-solicitud button[type="submit"] {
  min-height: 54px !important;
  border-radius: 9999px !important;
  font-size: 1.05rem !important;
  width: 100% !important;
}
.solicitud-frame h3 {
  font-size: 1.85rem !important;
  color: #0078a5 !important;
  letter-spacing: -0.02em;
}
.solicitud-frame .space-y-4 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1.15rem !important;
}

/* =========================================================
   Franja celeste — máquina de escribir (alterna frases)
   ========================================================= */
@keyframes lince-typing {
  0%, 8% { width: 0; }
  40%, 72% { width: 100%; }
  92%, 100% { width: 0; }
}
@keyframes lince-blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: #ffffff; }
}
@keyframes lince-frase-1 {
  0%, 49.9% { opacity: 1; visibility: visible; z-index: 2; }
  50%, 100% { opacity: 0; visibility: hidden; z-index: 0; }
}
@keyframes lince-frase-2 {
  0%, 49.9% { opacity: 0; visibility: hidden; z-index: 0; }
  50%, 100% { opacity: 1; visibility: visible; z-index: 2; }
}

#franja-celeste .frase-1,
#franja-celeste .frase-2 {
  position: relative !important;
  display: inline-block !important;
  text-align: left !important;
  max-width: 100% !important;
  min-height: 1.2em;
}

#franja-celeste .frase-1 {
  animation: lince-frase-1 12s infinite !important;
}
#franja-celeste .frase-2 {
  animation: lince-frase-2 12s infinite !important;
}

#franja-celeste .escribir-1,
#franja-celeste .escribir-2 {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  box-sizing: content-box !important;
  max-width: none !important;
  border-right: 4px solid #ffffff !important;
  color: #ffffff !important;
  width: 0;
}

#franja-celeste .escribir-1 {
  animation: lince-typing 6s steps(22, end) infinite,
             lince-blink 0.75s step-end infinite !important;
}
#franja-celeste .escribir-2 {
  animation: lince-typing 6s steps(33, end) infinite,
             lince-blink 0.75s step-end infinite !important;
  animation-delay: 0s, 0s !important;
}

/* Mientras frase-2 está activa, su typing debe sentirse en su mitad:
   usamos el mismo ciclo 6s; al ocultar frase-1 no se ve el solapamiento. */
#franja-celeste .frase-2 .escribir-2 {
  animation: lince-typing 6s steps(33, end) infinite,
             lince-blink 0.75s step-end infinite !important;
}

