/* Centro de aprendizaje — specs desde Canva Site (1366×768 por sección)
   Fuente: https://161123.my.canva.site/guias-de-usuario */

/* —— Fuentes del export Canva —— */
@font-face {
  font-family: "TT Hoves";
  src: url("../fonts/TTHoves-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TT Hoves";
  src: url("../fonts/TTHoves-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Machina";
  src: url("../fonts/NeueMachina-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Times New Roman Canva";
  src: url("../fonts/TimesNewRoman-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Touvlo";
  src: url("../fonts/Touvlo-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html.guias-centro-nic,
html.guias-centro-nic body,
html.guias-centro-nic section#main-body {
  background: #ffffff !important;
}

html.guias-centro-nic section#main-body {
  padding: 0;
  margin: 0;
}

html.guias-centro-nic section#main-body > .container,
html.guias-centro-nic section#main-body .row,
html.guias-centro-nic section#main-body .col-12 {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.gc-page {
  /* Colores exactos del bootstrap Canva */
  --gc-navy: #051d40;
  --gc-learn: #99d9d9;
  --gc-gold: #ffb36c;
  --gc-red: #ff5055;
  --gc-white: #ffffff;

  background: #fff;
  color: var(--gc-navy);
  width: 100%;
  overflow-x: hidden;
  font-family: "TT Hoves", "Montserrat", Arial, sans-serif;
}

/* ========== HERO ========== */
/* Foto e panel azul al mismo alto */
.gc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.35rem, 2.8vw, 2.25rem);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: min(56vw, 37rem);
  background: #ffffff;
  box-sizing: border-box;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  align-items: stretch;
}

.gc-hero__photo {
  position: relative;
  align-self: stretch;
  height: min(56vw, 37rem);
  min-height: min(56vw, 37rem);
  overflow: hidden;
  background: #0a1528;
}

.gc-hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.gc-hero__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  background: var(--gc-navy);
  margin-right: 0;
  min-height: min(56vw, 37rem);
  height: min(56vw, 37rem);
  padding: clamp(2rem, 4.5vw, 3.75rem) clamp(1.5rem, 4vw, 3.25rem);
  color: var(--gc-white);
}

/* Times Bold ~59.4px, uppercase, leading 1.25 */
.gc-hero__title {
  margin: 0 0 1.15rem;
  font-family: "Times New Roman Canva", "Times New Roman", Times, serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 3.7rem);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0;
}

.gc-hero__line {
  display: block;
  color: var(--gc-white);
}

.gc-hero__line--accent {
  color: var(--gc-learn);
}

/* TT Hoves ~36px, leading 1.2 */
.gc-hero__text {
  margin: 0;
  max-width: 26rem;
  font-family: "TT Hoves", "Montserrat", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 2.2vw, 2.25rem);
  line-height: 1.2;
  color: var(--gc-white);
}

/* ========== STATUS ========== */
.gc-status {
  background: #fff;
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.5rem;
  text-align: center;
}

.gc-status__inner {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  /* espacio lateral/superior para doodles sin solapar el título */
  padding: 1.15rem 3.25rem 0.55rem 3.1rem;
  max-width: min(42rem, 100%);
  text-align: center;
}

/* Neue Machina — 3 líneas */
.gc-status__title {
  margin: 0;
  padding-bottom: 0;
  font-family: "Neue Machina", "Montserrat", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1.65rem, 5.2vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--gc-navy);
  text-align: center;
}

.gc-status__line {
  position: relative;
  display: inline-block;
  /* inline-block: el ancho = el texto → la flecha/rayos anclan al borde real de la palabra */
}

.gc-status__line--1,
.gc-status__line--2,
.gc-status__line--3 {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.gc-status__line--1 {
  padding-right: 0;
}

.gc-status__line--3 {
  padding-left: 0;
}

/* subrayado más abajo del texto + nota debajo */
.gc-status__note {
  margin: 1.1rem 0 0;
  font-family: "TT Hoves", "Montserrat", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.8vw, 1.75rem);
  color: var(--gc-navy);
  text-align: center;
}

.gc-doodle {
  position: absolute;
  display: block;
  pointer-events: none;
  /* recolor negro → rojo Canva */
  filter: invert(33%) sepia(93%) saturate(2400%) hue-rotate(331deg) brightness(102%) contrast(101%);
}

/* flecha: fuera del rincón de la S (más arriba / a la derecha) */
.gc-doodle--arrow {
  top: 0;
  right: 0;
  left: auto;
  bottom: auto;
  width: clamp(2.8rem, 5.5vw, 4.75rem);
  height: auto;
  transform: translate(120%, -118%);
}

/* rayas: a la izquierda de EN, hueco claro frente a la E */
.gc-doodle--slashes {
  top: 50%;
  bottom: auto;
  left: 0;
  right: auto;
  width: clamp(1.35rem, 2.6vw, 2.75rem);
  height: auto;
  transform: translate(-155%, -28%) rotate(-180deg);
}

/* subrayado corto (≈ LAS GUIAS) — eso sí más pequeño */
.gc-doodle--underline {
  position: relative;
  display: block;
  left: auto;
  bottom: auto;
  width: min(40%, 9rem);
  max-width: 10.5rem;
  height: auto;
  margin: 1.55rem auto 0;
  transform: none;
}

/* ========== FEEDBACK ========== */
.gc-feedback {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(3.5rem, 8vw, 7rem);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem clamp(1.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
  background: #fff;
}

.gc-feedback__copy {
  width: 100%;
  min-width: 0;
}

/* Neue Machina — ancho completo de la columna (60%) */
.gc-feedback__title {
  margin: 0 0 1.25rem;
  max-width: none;
  width: 100%;
  font-family: "Neue Machina", "Montserrat", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(1.55rem, 4.2vw, 3.35rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--gc-navy);
}

/* TT Hoves Bold */
.gc-feedback__lead {
  margin: 0 0 1.75rem;
  max-width: none;
  width: 100%;
  font-family: "TT Hoves", "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.7vw, 1.85rem);
  line-height: 1.25;
  color: var(--gc-navy);
}

/* Botón CTA naranja sólido + texto blanco */
.gc-feedback__btn {
  --gc-btn-orange: #ff7e1d;
  --gc-btn-orange-hover: #ff6a00;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 14rem;
  max-width: 20.5rem;
  padding: 0.95rem 1.35rem;
  border: 2px solid var(--gc-btn-orange);
  border-radius: 0.95rem;
  background: var(--gc-btn-orange);
  color: #fff !important;
  font-family: "Touvlo", "TT Hoves", "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(0.72rem, 1.2vw, 1.25rem);
  line-height: 1.16;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 4px 0 rgba(200, 80, 0, 0.22);
  transition:
    transform 0.4s cubic-bezier(0.34, 1.45, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    letter-spacing 0.35s ease,
    color 0.25s ease,
    filter 0.25s ease;
}

.gc-feedback__btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 60%,
    transparent 100%
  );
  transform: skewX(-18deg);
  transition: left 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.gc-feedback__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 120%,
    rgba(255, 255, 255, 0.22) 0%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
}

.gc-feedback__btn > * {
  position: relative;
  z-index: 2;
}

.gc-feedback__btn:hover,
.gc-feedback__btn:focus-visible {
  transform: translateY(-6px) scale(1.06);
  letter-spacing: 0.04em;
  background: var(--gc-btn-orange-hover);
  border-color: var(--gc-btn-orange-hover);
  color: #fff !important;
  box-shadow:
    0 14px 28px rgba(255, 126, 29, 0.45),
    0 6px 0 rgba(180, 70, 0, 0.25);
  text-decoration: none !important;
  outline: none;
  filter: brightness(1.03);
}

.gc-feedback__btn:hover::before,
.gc-feedback__btn:focus-visible::before {
  left: 140%;
}

.gc-feedback__btn:hover::after,
.gc-feedback__btn:focus-visible::after {
  opacity: 1;
}

.gc-feedback__btn:active {
  transform: translateY(-2px) scale(1.02);
  transition-duration: 0.12s;
  box-shadow:
    0 6px 14px rgba(255, 126, 29, 0.35),
    0 3px 0 rgba(180, 70, 0, 0.2);
}

.gc-feedback__visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  width: 100%;
}

/* Rectángulo vertical — padding al borde + foco con sombra tenue */
.gc-feedback__card {
  box-sizing: border-box;
  width: min(100%, 16rem);
  aspect-ratio: 3 / 4.5;
  border: 2px solid var(--gc-gold);
  border-radius: 1.75rem;
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.35rem 1.2rem 1.5rem;
}

.gc-feedback__card img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  /* sombra suave del foco (casi imperceptible) */
  filter: drop-shadow(0 4px 8px rgba(5, 29, 64, 0.08))
    drop-shadow(0 10px 18px rgba(5, 29, 64, 0.06));
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .gc-hero {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    min-height: 0;
    padding: 0 1.25rem;
    align-items: stretch;
  }

  .gc-hero__photo {
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 2;
    max-height: 320px;
    align-self: stretch;
  }

  .gc-hero__panel {
    min-height: 0;
    height: auto;
    margin-right: 0;
  }

  .gc-hero__title {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .gc-hero__text {
    font-size: clamp(1.05rem, 3.5vw, 1.25rem);
  }

  .gc-status__title {
    font-size: clamp(1.55rem, 7.5vw, 2.4rem);
  }

  .gc-feedback {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    text-align: center;
  }

  .gc-feedback__visual {
    justify-content: center;
  }

  .gc-feedback__title,
  .gc-feedback__lead {
    max-width: none;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .gc-feedback__btn {
    margin: 0 auto;
  }
}

@media (max-width: 550px) {
  .gc-status {
    padding: 2.75rem 1rem 2.25rem;
  }

  .gc-status__inner {
    padding: 1rem 2.2rem 0.45rem 2.1rem;
  }

  .gc-doodle--arrow {
    transform: translate(100%, -105%);
  }

  .gc-doodle--slashes {
    transform: translate(-135%, -30%) rotate(-180deg);
  }

  .gc-doodle--underline {
    margin-top: 1.4rem;
    width: min(48%, 8.5rem);
  }

  .gc-feedback {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .gc-feedback__btn {
    max-width: none;
    width: 100%;
  }
}

/* ========== Animaciones ========== */
/* Hero: foto wipe desde la izquierda + panel wipe desde abajo + líneas */
.gc-hero--motion {
  --gc-hero-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.gc-hero--motion .gc-hero__photo {
  opacity: 1;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
  transition:
    clip-path 0.9s var(--gc-hero-ease),
    -webkit-clip-path 0.9s var(--gc-hero-ease);
  will-change: clip-path;
}

.gc-hero--motion .gc-hero__photo img {
  transform: none;
  filter: none;
}

.gc-hero--motion .gc-hero__photo.is-visible {
  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);
}

.gc-hero--motion .gc-hero__panel {
  opacity: 1;
  clip-path: inset(100% 0 0 0);
  -webkit-clip-path: inset(100% 0 0 0);
  transition:
    clip-path 0.9s var(--gc-hero-ease),
    -webkit-clip-path 0.9s var(--gc-hero-ease);
  will-change: clip-path;
}

.gc-hero--motion .gc-hero__panel.is-visible {
  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);
}

.gc-hero--motion .gc-hero__title {
  overflow: hidden;
}

.gc-hero--motion .gc-hero__line {
  display: block;
  opacity: 0;
  transform: translateY(0.85em);
  filter: blur(6px);
  transition:
    opacity 0.55s ease,
    transform 0.65s var(--gc-hero-ease),
    filter 0.55s ease;
  will-change: transform, opacity, filter;
}

.gc-hero--motion .gc-hero__line.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.gc-hero--motion .gc-hero__text {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.55s ease,
    transform 0.6s var(--gc-hero-ease);
}

.gc-hero--motion .gc-hero__text.is-visible {
  opacity: 1;
  transform: none;
}

/* Status: líneas + doodles al entrar en viewport */
.gc-status--motion .gc-status__line,
.gc-status--motion .gc-doodle--underline,
.gc-status--motion .gc-status__note {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gc-status--motion .gc-status__line.is-visible,
.gc-status--motion .gc-doodle--underline.is-visible,
.gc-status--motion .gc-status__note.is-visible {
  opacity: 1;
  transform: none;
}

.gc-status--motion .gc-doodle--arrow,
.gc-status--motion .gc-doodle--slashes {
  opacity: 0;
  transition: opacity 0.45s ease 0.15s;
}

.gc-status--motion .gc-status__line--1.is-visible .gc-doodle--arrow,
.gc-status--motion .gc-status__line--3.is-visible .gc-doodle--slashes {
  opacity: 1;
}

/* doodles “vivos” suaves cuando ya se ven */
.gc-status--motion .gc-status__line--1.is-visible .gc-doodle--arrow {
  animation: gc-arrow-wiggle 3.2s ease-in-out 0.5s infinite;
}

.gc-status--motion .gc-status__line--3.is-visible .gc-doodle--slashes {
  animation: gc-slashes-pulse 2.8s ease-in-out 0.6s infinite;
}

@keyframes gc-arrow-wiggle {
  0%,
  100% {
    transform: translate(120%, -118%) rotate(0deg);
  }
  50% {
    transform: translate(124%, -128%) rotate(-4deg);
  }
}

@keyframes gc-slashes-pulse {
  0%,
  100% {
    transform: translate(-155%, -28%) rotate(-180deg) scale(1);
  }
  50% {
    transform: translate(-158%, -32%) rotate(-180deg) scale(1.06);
  }
}

/* Feedback */
.gc-feedback--motion .gc-feedback__title,
.gc-feedback--motion .gc-feedback__lead,
.gc-feedback--motion .gc-feedback__btn,
.gc-feedback--motion .gc-feedback__card {
  opacity: 0;
  will-change: opacity, transform;
}

.gc-feedback--motion .gc-feedback__title {
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gc-feedback--motion .gc-feedback__lead {
  transform: translateY(12px);
  transition: opacity 0.5s ease 0.06s, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.06s;
}

.gc-feedback--motion .gc-feedback__btn {
  transform: translateY(10px);
  transition:
    opacity 0.45s ease 0.12s,
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s,
    box-shadow 0.35s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    letter-spacing 0.35s ease,
    color 0.25s ease;
}

.gc-feedback--motion .gc-feedback__card {
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gc-feedback--motion .gc-feedback__title.is-visible,
.gc-feedback--motion .gc-feedback__lead.is-visible,
.gc-feedback--motion .gc-feedback__btn.is-visible,
.gc-feedback--motion .gc-feedback__card.is-visible {
  opacity: 1;
  transform: none;
}

/* hover gana sobre is-visible de la entrada */
.gc-feedback--motion .gc-feedback__btn.is-visible:hover,
.gc-feedback--motion .gc-feedback__btn.is-visible:focus-visible {
  transform: translateY(-6px) scale(1.06);
}

.gc-feedback--motion .gc-feedback__btn.is-visible:active {
  transform: translateY(-2px) scale(1.02);
}

/* Foco: sin flotación continua */

@media (max-width: 550px) {
  .gc-status--motion .gc-status__line--1.is-visible .gc-doodle--arrow {
    animation-name: gc-arrow-wiggle-sm;
  }

  .gc-status--motion .gc-status__line--3.is-visible .gc-doodle--slashes {
    animation-name: gc-slashes-pulse-sm;
  }

  @keyframes gc-arrow-wiggle-sm {
    0%,
    100% {
      transform: translate(100%, -105%) rotate(0deg);
    }
    50% {
      transform: translate(104%, -114%) rotate(-4deg);
    }
  }

  @keyframes gc-slashes-pulse-sm {
    0%,
    100% {
      transform: translate(-135%, -30%) rotate(-180deg) scale(1);
    }
    50% {
      transform: translate(-138%, -34%) rotate(-180deg) scale(1.06);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .gc-hero--motion .gc-hero__photo,
  .gc-hero--motion .gc-hero__photo img,
  .gc-hero--motion .gc-hero__panel,
  .gc-hero--motion .gc-hero__line,
  .gc-hero--motion .gc-hero__text,
  .gc-status--motion .gc-status__line,
  .gc-status--motion .gc-doodle--underline,
  .gc-status--motion .gc-status__note,
  .gc-status--motion .gc-doodle--arrow,
  .gc-status--motion .gc-doodle--slashes,
  .gc-feedback--motion .gc-feedback__title,
  .gc-feedback--motion .gc-feedback__lead,
  .gc-feedback--motion .gc-feedback__btn,
  .gc-feedback--motion .gc-feedback__card {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
    -webkit-clip-path: none;
    transition: none;
    animation: none;
  }

  .gc-status--motion .gc-status__line--1.is-visible .gc-doodle--arrow,
  .gc-status--motion .gc-status__line--3.is-visible .gc-doodle--slashes {
    animation: none;
  }

  .gc-feedback__btn::before,
  .gc-feedback__btn::after {
    display: none;
  }

  .gc-feedback__btn:hover,
  .gc-feedback__btn:focus-visible,
  .gc-feedback--motion .gc-feedback__btn.is-visible:hover,
  .gc-feedback--motion .gc-feedback__btn.is-visible:focus-visible {
    transform: none;
    letter-spacing: inherit;
  }
}
