
/* ==========================================================
   EDUCA DIGITAL — CONSULTA DE HORARIOS
   Diseño oscuro basado en la identidad visual de la marca.
   ========================================================== */

:root {
  --navy: #07152f;
  --navy-2: #0b2045;
  --blue: #2589ff;
  --cyan: #27d9f2;
  --magenta: #ec4bbd;

  --text: #f2f7ff;
  --muted: #a9bad2;
  --white: #ffffff;
  --background: #07152f;
  --surface: #0b2045;
  --surface-light: #102b52;
  --border: rgba(128, 173, 220, .17);

  --shadow-card: 0 18px 50px rgba(0, 0, 0, .24);
  --shadow-soft: 0 8px 25px rgba(0, 0, 0, .18);
}

/* =========================
   BASE
   ========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 15%, rgba(39,217,242,.10), transparent 330px),
    radial-gradient(circle at 94% 25%, rgba(236,75,189,.09), transparent 310px),
    linear-gradient(145deg, #07152f 0%, #0b2045 55%, #07152f 100%);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

/* =========================
   HEADER DEL SITIO
   ========================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(7, 21, 47, .97);
  border-bottom: 1px solid rgba(39, 217, 242, .25);
  box-shadow: 0 5px 22px rgba(0, 0, 0, .18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar .container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar .nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.topbar .brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: var(--white);
  text-decoration: none;
}

.topbar .brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
}

.topbar .brand span {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: .035em;
}

.topbar .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.topbar .nav-links a {
  color: #bdcce0;
  text-decoration: none;
  font-size: .88rem;
  white-space: nowrap;
  transition: color .2s ease;
}

.topbar .nav-links a:hover,
.topbar .nav-links a[aria-current="page"] {
  color: var(--cyan);
}

.topbar .btn {
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
}

/* =========================
   CONTENEDOR PRINCIPAL
   ========================= */

.page-container {
  width: 95%;
  max-width: none;
  margin: 0 auto;
  padding: 68px 0 70px;
}

.page-container > section {
  padding: 0;
}

/* =========================
   PRESENTACIÓN
   ========================= */

.intro {
  position: relative;
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 17px;
  padding: 7px 15px;
  color: var(--cyan);
  background: rgba(39, 217, 242, .09);
  border: 1px solid rgba(39, 217, 242, .28);
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .14em;
}

.intro .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 9px rgba(39,217,242,.8);
}

h1,
h2,
p {
  margin-top: 0;
}

.intro h1 {
  max-width: 730px;
  margin: 0 auto 16px;
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.45rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -.055em;
}

.intro-text {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

/* =========================
   TARJETA DE BÚSQUEDA
   ========================= */

.schedule-card {
  position: relative;
  overflow: visible;
  padding: clamp(25px, 5vw, 44px);
  background: linear-gradient(145deg, #10294f, #0b2045);
  border: 1px solid rgba(39,217,242,.16);
  border-radius: 25px;
  box-shadow: var(--shadow-card);
}

.schedule-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--blue),
    var(--cyan),
    var(--magenta)
  );
  border-radius: 25px 25px 0 0;
  pointer-events: none;
}

.section-heading {
  margin-bottom: 29px;
}

.section-heading h2 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 850;
  letter-spacing: -.035em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
}

/* =========================
   FORMULARIO
   ========================= */

.city-form {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(240px, 1.2fr);
  gap: 20px;
  align-items: end;
}

.form-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
}

.form-field label {
  color: #eaf5ff;
  font-size: .9rem;
  font-weight: 800;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 55px;
  padding: 0 16px;
  color: var(--white);
  background: #071a38;
  border: 1px solid rgba(128,173,220,.27);
  border-radius: 13px;
  outline: none;
  font-family: inherit;
  font-size: .94rem;
  color-scheme: dark;
  transition:
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.form-field input:hover,
.form-field select:hover {
  background: #0a2042;
  border-color: rgba(39,217,242,.45);
}

.form-field input:focus,
.form-field select:focus {
  background: #0a2042;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(39,217,242,.12);
}

.form-field input::placeholder {
  color: #8298b6;
}

.form-field small {
  color: #9db1cb;
  font-size: .78rem;
  line-height: 1.45;
}

/* =========================
   BOTÓN PRINCIPAL
   ========================= */

.primary-button {
  grid-column: 1 / -1;
  justify-self: center;
  position: relative;
  width: 75%;
  min-height: 56px;
  margin-top: 2px;
  padding: 13px 24px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(
    105deg,
    #2589ff 0%,
    #1765d1 58%,
    #514bd3 100%
  );
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  box-shadow: 0 9px 22px rgba(37,137,255,.23);
  cursor: pointer;
  font-family: inherit;
  font-size: .96rem;
  font-weight: 850;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    filter .2s ease;
}

.primary-button:hover {
  filter: brightness(1.12);
  box-shadow: 0 13px 27px rgba(37,137,255,.35);
  transform: translateY(-2px);
}

.primary-button:active {
  transform: translateY(0);
}

.primary-button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

/* =========================
   MENSAJES
   ========================= */

.form-message {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: #ff9b9b;
  font-size: .88rem;
}

/* =========================
   RESULTADO
   ========================= */

.schedule-result {
  position: relative;
  margin-top: 25px;
  padding: clamp(20px, 4vw, 30px);
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(236,75,189,.10), transparent 230px),
    linear-gradient(135deg, #102e53 0%, #0c2549 58%, #172449 100%);
  border: 1px solid rgba(39,217,242,.28);
  border-radius: 20px;
  animation: result-in .35s ease both;
}

.schedule-result[hidden] {
  display: none;
}

.result-kicker {
  margin-bottom: 5px;
  color: var(--cyan);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.schedule-result h2 {
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 850;
  letter-spacing: -.035em;
}

/* =========================
   PANEL DE HORA LOCAL
   ========================= */

.local-time-panel {
  position: relative;
  padding: 29px 20px 25px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 15% 0%, rgba(39,217,242,.18), transparent 210px),
    linear-gradient(125deg, #07152f 0%, #0b2045 55%, #123e70 100%);
  border: 1px solid rgba(39,217,242,.28);
  border-radius: 17px;
  box-shadow: 0 13px 28px rgba(0,0,0,.2);
}

.local-time-panel::before,
.local-time-panel::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(39,217,242,.12);
  border-radius: 50%;
  pointer-events: none;
}

.local-time-panel::before {
  top: -95px;
  left: -45px;
}

.local-time-panel::after {
  right: -80px;
  bottom: -105px;
  width: 210px;
  height: 210px;
}

.local-time-panel .time-label {
  position: relative;
  z-index: 1;
  display: block;
  color: #bdcce0;
  font-size: .9rem;
  font-weight: 600;
}

.time-value {
  position: relative;
  z-index: 1;
  margin: 5px 0 0;
  color: var(--cyan);
  font-size: clamp(2.6rem, 9vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.055em;
  text-shadow: 0 0 22px rgba(39,217,242,.22);
}

.class-days {
  position: relative;
  z-index: 1;
  margin: 9px 0 0;
  color: #fff;
  font-size: .94rem;
  font-weight: 650;
}

/* =========================
   PANEL INFORMATIVO
   ========================= */

.argentina-time-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 15px;
  padding: 17px 19px;
  background: #0b2045;
  border: 1px solid rgba(128,173,220,.20);
  border-radius: 14px;
}

.argentina-time-panel .time-label {
  color: var(--muted);
  font-size: .88rem;
}

.argentina-time-panel strong {
  color: var(--cyan);
  font-size: 1.08rem;
  font-weight: 850;
}

.argentina-time-panel p {
  margin: 0;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.6;
}

.date-note {
  margin: 16px 0 0;
  color: #a9bad2;
  font-size: .84rem;
  line-height: 1.6;
}

/* =========================
   INFORMACIÓN DEL CURSO
   ========================= */

.schedule-info {
  position: relative;
  margin-top: 25px;
  padding: clamp(25px, 4vw, 34px);
  overflow: hidden;
  background: linear-gradient(145deg, #10294f, #0b2045);
  border: 1px solid rgba(39,217,242,.16);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.schedule-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--cyan),
    var(--blue),
    var(--magenta)
  );
}

.schedule-info h2 {
  margin-bottom: 9px;
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 850;
  letter-spacing: -.03em;
}

.schedule-info > p {
  color: var(--muted);
}

.base-schedule {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 19px 0 13px;
  padding: 17px 19px;
  background: #071a38;
  border: 1px solid rgba(39,217,242,.18);
  border-radius: 13px;
}

.base-schedule span {
  color: var(--muted);
  font-size: .91rem;
  font-weight: 600;
}

.base-schedule strong {
  color: var(--cyan);
  font-size: 1.25rem;
  font-weight: 900;
}

.schedule-info .timezone-note {
  margin-bottom: 0;
  color: #a9bad2;
  font-size: .85rem;
  line-height: 1.7;
}

/* =========================
   PIE DE PÁGINA
   ========================= */

.site-footer {
  padding: 24px 18px;
  color: rgba(255,255,255,.75);
  background: #050f23;
  border-top: 1px solid rgba(39,217,242,.20);
  text-align: center;
  font-size: .8rem;
}

.site-footer p {
  margin: 0;
}

/* =========================
   ANIMACIÓN
   ========================= */

@keyframes result-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 1000px) {
  .topbar .nav {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .topbar .nav-links {
    gap: 14px;
  }
}

/* =========================
   MÓVILES
   ========================= */

@media (max-width: 800px) {
  .topbar .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 7px 0;
    scrollbar-width: thin;
  }

  .topbar .nav-links a {
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .topbar .container {
    width: calc(100% - 28px);
  }

  .topbar .nav {
    gap: 12px;
  }

  .topbar .brand img {
    width: 42px;
    height: 42px;
  }

  .topbar .brand span {
    font-size: .94rem;
  }

  .topbar > .container > .btn {
    padding: 9px 11px;
    font-size: .78rem;
  }

.page-container {
  width: 95%;
  padding: 44px 0 45px;
}

  .intro {
    margin-bottom: 29px;
  }

  .intro h1 {
    font-size: clamp(2rem, 9vw, 2.55rem);
  }

  .intro-text {
    font-size: .96rem;
  }

  .schedule-card {
    padding: 25px 18px;
    border-radius: 19px;
  }

  .city-form {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .primary-button {
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
  }

  .schedule-result {
    padding: 18px;
    border-radius: 16px;
  }

  .local-time-panel {
    padding: 25px 14px 22px;
  }

  .time-value {
    font-size: clamp(2.4rem, 12vw, 3.2rem);
  }

  .argentina-time-panel,
  .base-schedule {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .schedule-info {
    padding: 25px 20px;
    border-radius: 18px;
  }
}

/* =========================
   ACCESIBILIDAD
   ========================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* =========================================================
   BUSCADOR PERSONALIZADO DE CIUDADES
   Compatible con PC y dispositivos móviles
   ========================================================= */

.city-autocomplete {
  position: relative;
  z-index: 20;
  width: 100%;
}

.city-autocomplete:focus-within {
  z-index: 30;
}

.city-options[hidden] {
  display: none !important;
}

.city-options {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 7px);
  left: 0;
  right: 0;

  max-height: 270px;
  overflow-y: auto;
  overscroll-behavior: contain;

  padding: 6px;

  background: #0b2045;
  border: 1px solid rgba(39, 217, 242, .4);
  border-radius: 13px;

  box-shadow:
    0 12px 30px rgba(0, 0, 0, .35),
    0 0 14px rgba(39, 217, 242, .08);
}

.city-option {
  display: flex;
  width: 100%;
  min-height: 48px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  padding: 11px 13px;

  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 9px;

  text-align: left;
  font-family: inherit;
  font-size: .92rem;

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.city-option + .city-option {
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.city-option:hover,
.city-option.active {
  background: rgba(37, 137, 255, .2);
}

.city-option:focus-visible {
  outline: 2px solid #27d9f2;
  outline-offset: -2px;
}

.city-option-name {
  color: #fff;
  font-weight: 750;
}

.city-option-state {
  flex-shrink: 0;
  color: #27d9f2;
  font-size: .78rem;
  font-weight: 700;
}

.city-option-empty {
  padding: 16px 12px;
  color: rgba(255, 255, 255, .75);
  font-size: .86rem;
  text-align: center;
}

@media (max-width: 560px) {
  .city-options {
    max-height: 240px;
  }

  .city-option {
    min-height: 52px;
    padding: 13px 12px;
    font-size: .94rem;
  }
}

.imessage-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.imessage-float img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  transition: inherit;
}

.imessage-float:hover {
  transform: scale(1.25);
  filter: drop-shadow(0 0 5px #27d9f2)
          drop-shadow(0 0 10px #2589ff)
          drop-shadow(0 0 16px #27d9f2);
}
