/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a1224;
  /* fondo marino oscuro */
  color: #e5e7eb;
  line-height: 1.6;
}

/* ---------- TOP BAR ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 3000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 6vw;
  background: rgba(10, 18, 36, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -1px;
}

.nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  font-size: 0.95rem;
  color: #cbd5f5;
  transition: 0.2s ease;
}

.nav a:hover {
  color: #38bdf8;
  opacity: 0.9;
}

/* ---------- HERO SECTION ---------- */

.hero {
  min-height: calc(100vh - 80px);
  /* ocupa la primera vista casi entera */
  padding: 4rem 6vw 2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("images/luis-on-boat.jpg");
  /* imagen de fondo */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  /* capa oscura y toque azul para que se lea bien el texto */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.25), transparent 45%),
    rgba(15, 23, 42, 0.85);
}

.hero-overlay {
  position: relative;
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: flex-start;
}

/* tarjeta translúcida con avatar + texto */
.hero-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: rgba(15, 23, 42, 0.75);
  border-radius: 1.5rem;
  padding: 1.8rem 2rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.8);
}

/* avatar redondo pequeño */
.hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid #38bdf8;
  flex-shrink: 0;
}

.hero-text {
  max-width: 650px;
}

.hero h1 {
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  margin-bottom: 0.8rem;
  line-height: 1.1;
}

.hero h1 span {
  color: #38bdf8;
}

.hero p {
  font-size: 1rem;
  color: #cbd5f5;
  margin-bottom: 0.7rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 0.6rem;
}

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: 0.25s ease;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.btn.primary {
  background: #38bdf8;
  color: #0a1224;
  box-shadow: 0px 0px 10px rgba(56, 189, 248, 0.4);
}

.btn.primary:hover {
  background: #5cd0ff;
}

.btn.secondary {
  background: transparent;
  border: 1px solid #38bdf8;
  color: #e5e7eb;
}

.btn.secondary:hover {
  background: rgba(56, 189, 248, 0.15);
}

/* para botones que ocupan todo el ancho (login) */
.btn-full {
  width: 100%;
  text-align: center;
}

.small-btn {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

/* ---------- SECTIONS ---------- */

.section {
  padding: 3rem 6vw;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

/* barra azul bajo el título */
.section h2 {
  font-size: 1.7rem;
  margin-bottom: 0.7rem;
  position: relative;
}

.section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #38bdf8;
  margin-top: 6px;
  border-radius: 2px;
}

.section p {
  margin-bottom: 0.8rem;
  color: #d4d7e3;
}

.section-alt {
  background: #07101f;
  border-radius: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

/* ---------- LISTS ---------- */

.list {
  list-style: disc inside;
  margin-top: 0.5rem;
}

.list li {
  margin-bottom: 0.4rem;
}

/* ---------- CARDS ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
  margin-top: 1.2rem;
}

.card {
  background: #0c182e;
  border-radius: 1.2rem;
  padding: 1.3rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
  transition: 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #38bdf8;
  box-shadow: 0px 0px 18px rgba(56, 189, 248, 0.15);
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  color: #e9f1ff;
}

.card p {
  font-size: 0.95rem;
  color: #d1d9e8;
}

/* tarjetas clicables (links) */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-meta {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* GRID de tools en la home */
.tools-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

/* ---------- FOOTER ---------- */

.footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  font-size: 0.85rem;
  color: #9ca3af;
  border-top: 1px solid rgba(56, 189, 248, 0.15);
}

/* ---------- APP SHELL & LOGIN (DATA LAB, ETC.) ---------- */

.app-shell {
  min-height: calc(100vh - 80px);
  padding: 3rem 6vw 2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* LOGIN VIEW */

.login-panel {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.login-box {
  width: 100%;
  max-width: 420px;
  background: #020617;
  border-radius: 1.5rem;
  padding: 2.2rem 2rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0px 18px 40px rgba(15, 23, 42, 0.7);
  margin-top: 2rem;
}

.login-box h1 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.login-subtitle {
  font-size: 0.95rem;
  color: #9ca3af;
  margin-bottom: 1.4rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: #e5e7eb;
}

.input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #020617;
  color: #e5e7eb;
  font-size: 0.95rem;
}

.input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}

.form-help {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 0.6rem;
}

.form-error {
  font-size: 0.85rem;
  color: #fecaca;
  background: rgba(248, 113, 113, 0.1);
  border-radius: 0.5rem;
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

/* ---------- APP VIEW ---------- */

.app-layout {
  max-width: 1200px;
  margin: 0 auto;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
}

.app-header h1 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.app-header p {
  font-size: 0.95rem;
  color: #9ca3af;
}

/* GRID PRINCIPAL */

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.app-column {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* TARJETAS DENTRO DE LA APP */

.metric-card {
  background: #020617;
  border-radius: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 1.2rem 1.1rem;
}

.metric-card h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.metric-card p {
  font-size: 0.9rem;
  color: #d1d5db;
}

/* UPLOAD PLACEHOLDER */

.upload-placeholder {
  margin-top: 0.9rem;
  border-radius: 0.9rem;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  padding: 0.9rem;
  text-align: center;
  font-size: 0.9rem;
  color: #9ca3af;
}

.upload-note {
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

/* PILLS */

.pill-row {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-pill {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.6);
  color: #e5e7eb;
}

/* MÉTRICAS */

.metric-row {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}

.metric-value {
  font-size: 1.1rem;
  font-weight: 600;
}

.metric-label {
  font-size: 0.8rem;
  color: #9ca3af;
}

.metric-note {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.7rem;
}

/* TIMELINE */

.timeline-placeholder {
  margin-top: 0.8rem;
}

.timeline-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.timeline-bar .segment {
  flex: 1;
}

.timeline-bar .segment.good {
  background: rgba(56, 189, 248, 0.9);
}

.timeline-bar .segment.average {
  background: rgba(56, 189, 248, 0.45);
}

.timeline-bar .segment.tack {
  background: rgba(248, 250, 252, 0.8);
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.4rem;
}

/* NOTES */

.notes-area {
  width: 100%;
  min-height: 120px;
  margin-top: 0.6rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #020617;
  color: #e5e7eb;
  font-size: 0.9rem;
  padding: 0.7rem;
  resize: vertical;
}

.notes-area:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 960px) {
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding-inline: 4vw;
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .login-box {
    margin-top: 1.5rem;
  }

  .hero-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-avatar {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding-inline: 4vw;
  }

  .nav a {
    margin-left: 0.8rem;
    font-size: 0.85rem;
  }

  .hero {
    padding-top: 4.5rem;
    padding-bottom: 3rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- LS CURRENT APP – MOBILE STYLE ---------- */

.phone-shell {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.phone-frame {
  width: min(420px, 100%);
  background: #020617;
  border-radius: 2rem;
  padding: 1.2rem 1.1rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.85);
  margin-top: 2rem;
}

/* Cabecera de la app */

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.phone-header h1 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.phone-header p {
  font-size: 0.85rem;
  color: #9ca3af;
}

.phone-location {
  text-align: right;
  font-size: 0.75rem;
  color: #9ca3af;
}

.phone-location .loc-name {
  display: block;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 0.1rem;
}

/* Segment control (Now / +1h / +3h) */

.segment-control {
  display: flex;
  background: #020617;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0.15rem;
  margin-bottom: 1.1rem;
}

.segment-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 0.8rem;
  padding: 0.45rem 0.4rem;
  border-radius: 999px;
  cursor: pointer;
}

.segment-btn.active {
  background: #38bdf8;
  color: #020617;
  font-weight: 600;
}

/* Grid simplificado para móvil */

.phone-grid {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

/* Mapita */

.map-card {
  margin-top: 0.5rem;
}

.current-map {
  position: relative;
  margin-top: 0.6rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.25), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(15, 118, 110, 0.3), transparent 55%),
    #020617;
  height: 150px;
  overflow: hidden;
}

.map-boat {
  position: absolute;
  left: 45%;
  top: 55%;
  transform: translate(-50%, -50%);
  font-size: 1.4rem;
}

.map-arrow {
  position: absolute;
  font-size: 1.1rem;
  color: #e5e7eb;
}

.map-arrow.arrow1 {
  left: 20%;
  top: 30%;
  transform: rotate(20deg);
}

.map-arrow.arrow2 {
  left: 60%;
  top: 20%;
  transform: rotate(40deg);
}

.map-arrow.arrow3 {
  left: 75%;
  top: 65%;
  transform: rotate(10deg);
}

.map-legend {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.legend-dot.strong {
  background: #38bdf8;
}

.legend-dot.medium {
  background: rgba(56, 189, 248, 0.6);
}

.legend-dot.weak {
  background: rgba(148, 163, 184, 0.7);
}

/* Vector row */

.vector-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.6rem;
}


.vector-item {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
}

/* ---------- FOILING ACADEMY ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pricing-card {
  background: #020617;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: #38bdf8;
}

.pricing-card.highlight {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.05);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.1);
}

.pricing-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #e5e7eb;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 0.5rem;
}

.pricing-period {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  text-align: left;
  font-size: 0.9rem;
  color: #9ca3af;
}

.pricing-features li {
  margin-bottom: 0.6rem;
  padding-left: 1.4rem;
  position: relative;
}

.pricing-features li::before {
  content: "✓";
  color: #38bdf8;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Course Catalog & Filters */
.filters-row {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: transparent;
  color: #cbd5f5;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: #1e293b;
  border-color: white;
  color: #fff;
}

.filter-btn.filter-beg:hover,
.filter-btn.filter-beg.active {
  border-color: #22c55e;
  color: #22c55e;
}

.filter-btn.filter-int:hover,
.filter-btn.filter-int.active {
  border-color: #eab308;
  color: #eab308;
}

.filter-btn.filter-adv:hover,
.filter-btn.filter-adv.active {
  border-color: #ef4444;
  color: #ef4444;
}

/* Course Cards */
.course-card {
  border-left: 5px solid #94a3b8;
  /* Default */
}

.course-card.level-beginner {
  border-left-color: #22c55e;
}

.course-card.level-intermediate {
  border-left-color: #eab308;
}

.course-card.level-advanced {
  border-left-color: #ef4444;
}

.course-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5f5;
  margin-bottom: 0.5rem;
}

.vector-label {
  color: #9ca3af;
  margin-bottom: 0.1rem;
}

.vector-value {
  font-weight: 600;
  font-size: 0.95rem;
}

.vector-sub {
  color: #9ca3af;
}

/* Mini chart timeline */

.mini-chart {
  position: relative;
  margin-top: 0.8rem;
  height: 70px;
  border-radius: 0.7rem;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.4);
  overflow: hidden;
}

.mini-chart-line {
  position: absolute;
  inset: 0;
  opacity: 0.8;
}

.mini-chart-line.boatspeed {
  background: linear-gradient(90deg,
      rgba(56, 189, 248, 0.05),
      rgba(56, 189, 248, 0.6),
      rgba(56, 189, 248, 0.1));
}

.mini-chart-line.current {
  background: linear-gradient(90deg,
      rgba(248, 250, 252, 0.02),
      rgba(248, 250, 252, 0.4),
      rgba(248, 250, 252, 0.08));
}

/* Bottom nav tipo app */

.phone-bottom-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 1rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.bottom-btn {
  flex: 1;
  background: transparent;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.5rem 0.2rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: #9ca3af;
}

.bottom-btn.active {
  border-color: rgba(56, 189, 248, 0.7);
  background: rgba(56, 189, 248, 0.15);
  color: #e5e7eb;
}

.bottom-label {
  display: block;
}

/* responsive: en pantallas muy pequeñas la “carcasa” ocupa toda la anchura */
@media (max-width: 480px) {
  .phone-frame {
    border-radius: 1.3rem;
    padding-inline: 0.9rem;
  }
}

/* ---------- LS CURRENT APP – ICON & MOCKUP ---------- */

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  flex-shrink: 0;
}

/* mockup tipo móvil */

.phone-preview {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 1rem;
}

.phone-screen {
  width: 260px;
  height: 520px;
  border-radius: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #020617;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.9);
  padding: 0.9rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.phone-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-app-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.phone-subtitle {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* “carta marina” simplificada */

.phone-chart {
  flex: 1;
  position: relative;
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
  border-radius: 1.2rem;
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.25), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(15, 118, 110, 0.4), transparent 55%),
    #020617;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.phone-grid-horizontal,
.phone-grid-vertical {
  position: absolute;
  inset: 0;
  background-size: 26px 26px;
  opacity: 0.35;
}

.phone-grid-horizontal {
  background-image: linear-gradient(#1f2937 1px, transparent 1px);
}

.phone-grid-vertical {
  background-image: linear-gradient(90deg, #1f2937 1px, transparent 1px);
}

.phone-boat {
  position: absolute;
  left: 48%;
  top: 55%;
  transform: translate(-50%, -50%);
  font-size: 1.4rem;
}

.phone-arrow {
  position: absolute;
  left: 48%;
  top: 55%;
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  transform-origin: left center;
  transform: translateY(-50%) rotate(-18deg);
  border-radius: 999px;
}

/* métricas abajo del mockup */

.phone-bottom {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.6rem 0.3rem 0.2rem;
}

.phone-metric {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.metric-label-small {
  font-size: 0.7rem;
  color: #9ca3af;
}

.metric-value-big {
  font-size: 0.95rem;
  font-weight: 600;
}

/* QR box */

.qr-box {
  width: 180px;
  height: 180px;
  border-radius: 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.6);
}

.qr-image {
  max-width: 160px;
  max-height: 160px;
  border-radius: 0.5rem;
}

/* responsive pequeño */

@media (max-width: 700px) {
  .phone-screen {
    margin-top: 0.8rem;
  }

  .app-icon {
    width: 80px;
    height: 80px;
  }
}

/* ---------- INTERNAL PAGE LAYOUT (Foiling Academy, About, etc.) ---------- */

.internal-page {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 6vw;
}

.internal-page h1 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: #e9f1ff;
}

.internal-page p {
  color: #cbd5f5;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.internal-card {
  background: #0c182e;
  border-radius: 1.2rem;
  padding: 1.5rem;
  margin-top: 1.6rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0px 8px 20px rgba(15, 23, 42, 0.5);
}

.internal-card h2 {
  color: #e9f1ff;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.internal-card ul {
  list-style: disc;
  padding-left: 1.1rem;
}

.internal-card li {
  margin-bottom: 0.4rem;
  color: #d1d9e8;
}

/* ---------- LANGUAGE SWITCH ---------- */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-switch img {
  width: 28px;
  height: 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s ease;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.lang-switch img:hover {
  transform: scale(1.05);
  border-color: #38bdf8;
}

/* ---------- INTERNAL PAGE NAV ---------- */

.internal-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.8rem;
  align-items: center;
}

.internal-nav a {
  color: #cbd5f5;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.internal-nav a:hover {
  color: #38bdf8;
}

.section-note {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-top: 1rem;
  color: #9ca3af;
}
/* User Profile Dropdown */
.user-menu-container {
  position: relative;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  min-width: 220px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  padding: 0.5rem 0;
  z-index: 4000;
}

.user-dropdown.active {
  display: flex;
}

.user-dropdown-header {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
  font-size: 0.85rem;
  color: #94a3b8;
}

.user-dropdown-header span {
  display: block;
  color: #e2e8f0;
  font-weight: 600;
  margin-top: 2px;
  word-break: break-all;
}

.user-dropdown a, .user-dropdown .logout-btn {
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: #cbd5e1;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.user-dropdown a:hover, .user-dropdown .logout-btn:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
}

.user-dropdown .logout-btn {
  color: #fca5a5;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
  cursor: pointer;
  width: 100%;
  border-left: none;
  border-right: none;
  border-bottom: none;
  background: transparent;
  justify-content: flex-start;
  font-family: inherit;
  margin: 0;
}

.user-dropdown .logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}
