/* ==================================================== */
/*                  VARIABLES GLOBALES                */
/* ==================================================== */
:root {
  /* Paleta general violeta/lila clara */
  --bg: #F5F3FF;
  --card: #E7E3FF;
  --ink: #141330;
  --muted: #7B33EC;
  --accent: #A87FFF;
  --border: #D3CFFF;
  --radius: 18px;
  --shadow: 0 6px 16px rgba(123, 51, 236, 0.12);
  --maxw: 920px;
}

/* ==================================================== */
/*                  RESET BÁSICO                      */
/* ==================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background-color: var(--bg);
  font-family: 'Atkinson Hyperlegible', sans-serif;
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: 0.5px;
  position: relative;
}

/* ==================================================== */
/*                  TIPOGRAFÍAS                        */
/* ==================================================== */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@900&family=Lexend:wght@700&family=Atkinson+Hyperlegible:wght@400;700&display=swap');

/* ==================================================== */
/*                  CONTENEDORES                        */
/* ==================================================== */
.wrap {
  max-width: var(--maxw);
  margin: 48px auto;
  padding: 0 20px;
}

.container {
  max-width: 88rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==================================================== */
/*                  ENLACES                             */
/* ==================================================== */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--muted);
}

/* ==================================================== */
/*                  NAV PRINCIPAL                      */
/* ==================================================== */
.main-header {
  background-color: #7B33EC;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-link {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  color: #E7E7FF;
}

.logo-icon-primary {
  font-size: 1.8rem;
  margin-right: 0.3rem;
}

.institution-text {
  font-size: 1.1rem;
  color: #E7E7FF;
  font-weight: 400;
}

.main-menu-list {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.menu-link {
  color: #E7E7FF;
  font-size: 1rem;
  text-transform: capitalize;
  padding: 0.25rem;
  transition: color 0.3s, border-color 0.3s;
}

.menu-link:hover {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

@media (max-width: 720px) {
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-menu-list {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .menu-link {
    display: block;
    padding: 0.5rem 0;
  }
}

/* ==================================================== */
/*                  BANNER PRINCIPAL                   */
/* ==================================================== */
header {
  text-align: center;
  margin-bottom: 28px;
}

.banner {
  background: none;
  padding: 32px 20px 40px;
  color: var(--ink);
  font-family: 'Lexend', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: 0.5px;
}

.banner .subtitle {
  color: var(--muted);
  margin-top: 8px;
  font-weight: 500;
  font-size: clamp(14px, 1.5vw, 17px);
}

/* ==================================================== */
/*                  IFRAME (GENÉRICO)                  */
/* ==================================================== */
iframe {
  margin: 2rem auto;
  padding: 1rem;
  width: 80%;
  height: 80vh;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  background: transparent;
}

/* ==================================================== */
/*                  FOOTER                              */
/* ==================================================== */
footer {
  opacity: 0.8;
  text-align: center;
  font-size: 12px;
  margin: 22px 0;
  color: #E7E7FF;
  background-color: #7B33EC;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

/* ==================================================== */
/*                  STILOS PLAN / MAPA                  */
/* ==================================================== */
.card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
  margin: 18px 0;
}

.card h2 {
  font-family: 'Lexend', sans-serif;
  margin: 0 0 14px;
  font-size: clamp(20px, 2.4vw, 24px);
  color: var(--accent);
}

.card p {
  margin: 0.4rem 0;
}

.list {
  padding-left: 1.2rem;
}

.list li {
  margin: 0.35rem 0;
}

.list.ticks {
  list-style: none;
  padding-left: 0;
}

.list.ticks li {
  position: relative;
  padding-left: 28px;
}

.list.ticks li::before {
  content: "·";
  position: absolute;
  left: 10px;
  top: -4px;
  font-size: 36px;
  line-height: 1;
  color: var(--accent);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps li {
  position: relative;
  padding-left: 44px;
  margin: 8px 0;
}

.steps li::before {
  counter-increment: step;
  content: counter(step) ".";
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

/* Persona */
.persona {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

@media (min-width: 760px) {
  .persona {
    grid-template-columns: 180px 1fr;
  }
}

.avatar {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  border: 1.5px solid var(--border);
  background: #fff;
}

.badge {
  display: inline-block;
  background: #ffffffa6;
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--accent);
  margin: 10px 0;
}

.keyvals {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.keyvals li {
  margin: 6px 0;
  color: var(--muted);
}

.muted-h3 {
  margin: 12px 0 8px;
  color: var(--muted);
}

/* Grid categorías */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.cat-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}

/* Imagen Design System */
.design-img {
  width: 100%;
  border-radius: 18px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  background: #fff;
  margin-top: 12px;
}

/* ==================================================== */
/*       ESTILOS ESPECÍFICOS PARA LA PÁGINA APP       */
/* ==================================================== */
.app-simulator {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  padding: 3rem 1rem;
  gap: 2rem;
  flex-wrap: wrap;
  background: #f7f4ff;
  border-radius: 24px;
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.05);
}

/* ==================================================== */
/* MARCO DEL CELULAR */
/* ==================================================== */
.phone-frame {
  position: relative;
  width: 400px;      /* ancho fijo */
  height: 800px;     /* altura igual a la de la pantalla */
  background: #0f0a24;
  border-radius: 36px;
  padding: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25),
              inset 0 0 10px rgba(255,255,255,0.1);
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 36px;
  padding: 2px;
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.phone-frame::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: #222;
  border-radius: 3px;
  box-shadow: 0 0 4px rgba(255,255,255,0.1),
              inset 0 0 2px rgba(255,255,255,0.2);
}

/* ==================================================== */
/*       PANTALLAS DE LA APP Y BOTONES                */
/* ==================================================== */

.app-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1.2rem;
  box-sizing: border-box;
  display: flex;                  /* mantener flex siempre */
  flex-direction: column;
  justify-content: flex-start;
  opacity: 0;                     /* oculto visualmente */
  pointer-events: none;           /* no clickeable */
  border-radius: 28px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: scale(0.98);
  z-index: 1;
  color: #f0f0f0;                 /* texto claro */
}

/* Pantalla activa */
.app-screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 10;
}

/* Hover ligero para la pantalla activa */
.app-screen.active:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(123, 51, 236, 0.4);
}

/* Scroll interno */
.scroll-content {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.4rem;
  scrollbar-width: thin;
  scrollbar-color: #5e3fd7 #1b103b;
}

.scroll-content::-webkit-scrollbar {
  width: 6px;
}

.scroll-content::-webkit-scrollbar-thumb {
  background-color: #5e3fd7;
  border-radius: 10px;
}

.scroll-content::-webkit-scrollbar-track {
  background: transparent;
}

/* ================== Botones ================== */

/* Botones de turno */
.turno-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.turno-btn {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: 2px solid transparent;
  border-radius: 16px;
  color: #fff;
  padding: 0.8rem 0.5rem;
  font-family: 'Lexend', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: 0.3s ease;
}

.turno-btn i {
  font-size: 1.4rem;
  color: #ffbb4a;
}

.turno-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.turno-btn.selected {
  background-color: #333;
  color: #fff;
}

/* Botones de emojis */
.emoji-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.emoji-btn {
  flex: 1 1 30%;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 16px;
  color: #fff;
  font-size: 1.1rem;
  text-align: center;
  padding: 0.6rem 0;
  cursor: pointer;
  transition: 0.3s ease;
}

.emoji-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* Botón aplicar filtros */
.apply-btn {
  background: #ffbb4a;
  border-radius: 20px;
  color: #1b103b;
  font-size: 1rem;
  width: 100%;
  padding: 0.8rem 0;
  cursor: pointer;
  transition: 0.3s ease;
}

.apply-btn:hover {
  background: #ffd76a;
  box-shadow: 0 4px 10px rgba(255,200,80,0.3);
  transform: translateY(-2px);
}


/* ================= Tipografía general ================= */
.app-screen h2,
.app-screen h3,
.app-screen p,
.app-screen li {
  color: #f0f0f0; /* color claro para mejor lectura */
}

/* ================= Pantallas de la app ================= */
.app-screen {
  display: none; /* por defecto todas ocultas */
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  padding: 1.2rem;
  box-sizing: border-box;
  overflow-y: auto;
  border-radius: 28px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  color: #f0f0f0;
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(1); /* La pantalla no se mueve */
}

.app-screen.active {
  display: flex;
  opacity: 1;
}

/* Scroll interno */
.scroll-content {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.4rem;
  scrollbar-width: thin;
  scrollbar-color: #5e3fd7 #1b103b;
}

.scroll-content::-webkit-scrollbar {
  width: 6px;
}

.scroll-content::-webkit-scrollbar-thumb {
  background-color: #5e3fd7;
  border-radius: 10px;
}

.scroll-content::-webkit-scrollbar-track {
  background: transparent;
}

/* Tipografía general dentro de pantallas */
.app-screen h2,
.app-screen h3,
.app-screen p,
.app-screen li {
  color: #f0f0f0;
}

/* ================= Pantalla 1 - Filtros ================= */
.app-screen.screen-1 {
  background: linear-gradient(180deg, #24115c 0%, #1b103b 100%);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2rem 1.5rem 1.5rem;
}

.turno-btn,
.emoji-btn,
.apply-btn {
  cursor: pointer;
  transition: 0.3s;
}

.turno-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.emoji-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.apply-btn:hover {
  background: #ffd76a;
  box-shadow: 0 4px 10px rgba(255,200,80,0.3);
}

/* ================= Pantalla 2 - Reseñas ================= */
.app-screen.screen-2 {
  background: linear-gradient(180deg, #24115c 0%, #1b103b 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 0 20px rgba(100,80,255,0.3);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.filter-tag {
  background: rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: 0.3s;
}

.filter-tag:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.reviews-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.8rem;
}

.review-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.review-card:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* ================= Pantalla 3 - Detalle ================= */
.app-screen.screen-3 {
  background: linear-gradient(180deg, #24115c 0%, #1b103b 100%);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  overflow: hidden;
  border-radius: 24px;
  color: #f0f0f0;
}

/* Hover solo para elementos interactivos de pantalla 3 */
.app-screen.screen-3 .btn,
.app-screen.screen-3 .action {
  cursor: pointer;
  transition: 0.3s;
}

.app-screen.screen-3 .btn:hover,
.app-screen.screen-3 .action:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.2);
}
