/* =========================================================
   PRO CSS - Bootstrap + Mobile First
   FIX LOGOS:
   - Navbar logo sin corte (contain)
   - Hero logo sin romperse (max-height + contain + wrap)
   ========================================================= */

* {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
}

:root {
  --mint: #9ef2d7;
  --lav: #b8a2ff;

  --text: #12131a;
  --muted: #5a5e6b;

  --border: rgba(18, 19, 26, 0.1);
  --shadow: 0 18px 50px rgba(18, 19, 26, 0.1);

  --radius: 18px;
  --radius-lg: 26px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* Navbar blur */
.backdrop-blur {
  backdrop-filter: blur(10px);
}

/* =========================================================
   NAVBAR (logo SIN recorte + no empuja toggler)
   ========================================================= */

/* Logo del navbar: nunca se recorta */
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;

  display: block;
  object-fit: contain; /* CLAVE */
  object-position: center;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(18, 19, 26, 0.08);
  padding: 4px; /* ayuda si el PNG tiene bordes raros */
}

/* Texto brand */
.brand-text {
  line-height: 1.15;
  min-width: 0;
}

.brand-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--text);

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46vw;
}

.brand-subtitle {
  font-size: 13px;
  color: #6b7280;
}

@media (max-width: 576px) {
  .navbar .container {
    gap: 8px;
  }
  .navbar-brand {
    max-width: 78%;
  }
  .brand-title {
    font-size: 15px;
    max-width: 52vw;
  }

  .navbar-nav .nav-link {
    padding: 10px 8px;
    border-radius: 12px;
  }
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn-brand {
  border: 1px solid var(--border);
  background: linear-gradient(
    135deg,
    rgba(158, 242, 215, 0.95),
    rgba(184, 162, 255, 0.9)
  );
  color: #0b0c10;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(18, 19, 26, 0.1);
}
.btn-brand:hover {
  transform: translateY(-1px);
}

.btn-outline-soft {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}
.btn-outline-soft:hover {
  background: rgba(184, 162, 255, 0.12);
}

/* helper */
@media (min-width: 992px) {
  .w-lg-auto {
    width: auto !important;
  }
}

/* =========================================================
   HERO (capas PRO)
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: -220px -220px auto -220px;
  height: 560px;
  z-index: 0;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 12% 38%,
      rgba(158, 242, 215, 0.45),
      transparent 56%
    ),
    radial-gradient(
      circle at 68% 22%,
      rgba(184, 162, 255, 0.45),
      transparent 58%
    ),
    radial-gradient(
      circle at 50% 92%,
      rgba(158, 242, 215, 0.18),
      transparent 55%
    );

  opacity: 0.95;
}

.hero .container,
.hero .row {
  position: relative;
  z-index: 2;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  font-size: 13px;
  color: rgba(18, 19, 26, 0.75);
}

/* =========================================================
   PANEL DE MARCA (Logo hero SIN romperse)
   ========================================================= */

.brand-panel {
  position: relative;
  z-index: 3;
  width: min(460px, 100%);
  border-radius: calc(var(--radius-lg) + 8px);
  border: 1px solid var(--border);

  background:
    radial-gradient(
      circle at 15% 25%,
      rgba(158, 242, 215, 0.22),
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(184, 162, 255, 0.22),
      transparent 55%
    ),
    rgba(255, 255, 255, 0.88);

  box-shadow: var(--shadow);
}

.brand-panel-inner {
  padding: 22px;
  text-align: center;
}

/* Contenedor del logo hero: limita tamaño y evita que se “desborde” */
.brand-hero-logo-wrap {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(18, 19, 26, 0.08);

  padding: 14px;
  overflow: hidden; /* evita cualquier corte raro hacia afuera */
}

/* Logo hero: SIEMPRE contain y con límites (para que no explote en servidor) */
.brand-hero-logo {
  display: block;
  margin: 0 auto;

  width: 100%;
  max-width: 320px; /* no más grande que esto en desktop */
  height: auto;

  max-height: 180px; /* CLAVE: evita que tome toda la pantalla */
  object-fit: contain;
  object-position: center;

  /* por si el PNG trae bordes raros */
  background: transparent;
}

/* Ajuste extra en pantallas grandes */
@media (min-width: 1200px) {
  .brand-hero-logo {
    max-width: 300px;
    max-height: 160px;
  }
}

/* En mobile, un poquito más compacto */
@media (max-width: 576px) {
  .brand-hero-logo {
    max-width: 260px;
    max-height: 150px;
  }
}

/* Stamp */
.stamp {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(18, 19, 26, 0.1);
  background: rgba(255, 255, 255, 0.74);
}

.stamp-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint), var(--lav));
}

/* Note */
.note {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(184, 162, 255, 0.12);
  border: 1px solid rgba(184, 162, 255, 0.3);
  color: rgba(18, 19, 26, 0.85);
  font-size: 14px;
  text-align: left;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section-alt {
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(158, 242, 215, 0.18),
      transparent 55%
    ),
    radial-gradient(
      circle at 90% 15%,
      rgba(184, 162, 255, 0.18),
      transparent 55%
    );
}

/* =========================================================
   CARDS
   ========================================================= */

.card-soft {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px rgba(18, 19, 26, 0.07);
  padding: 18px;
}

/* Mini cards */
.mini-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
}

.mini-title {
  font-size: 12px;
  color: var(--muted);
  font-weight: 900;
}

.mini-text {
  font-weight: 900;
  margin-top: 4px;
}

/* =========================================================
   MODE ROWS
   ========================================================= */

.mode {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.mode-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    rgba(158, 242, 215, 0.7),
    rgba(184, 162, 255, 0.6)
  );
  border: 1px solid rgba(18, 19, 26, 0.08);
}

/* =========================================================
   TIMELINE
   ========================================================= */

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px rgba(18, 19, 26, 0.07);
}

.time {
  font-size: 13px;
  font-weight: 900;
  color: var(--muted);
  padding-top: 4px;
}

/* resumen 1 línea (mobile friendly) */
.exp-summary {
  color: rgba(90, 94, 107, 0.95);
  font-size: 14px;
  margin: 0;

  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;

  overflow: hidden;
}

/* Timeline mobile */
@media (max-width: 768px) {
  .timeline-item {
    grid-template-columns: 1fr;
  }
  .time {
    padding-top: 0;
  }
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  padding: 18px;
  border-radius: calc(var(--radius-lg) + 6px);
  border: 1px solid var(--border);

  background:
    radial-gradient(
      circle at 10% 30%,
      rgba(158, 242, 215, 0.25),
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 10%,
      rgba(184, 162, 255, 0.25),
      transparent 55%
    ),
    rgba(255, 255, 255, 0.86);

  box-shadow: var(--shadow);
}

.contact-badges {
  display: grid;
  gap: 10px;
  align-content: start;
}

.badge-soft {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
}

.badge-title {
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
}

.badge-value {
  margin-top: 4px;
  font-weight: 900;
}

@media (max-width: 992px) {
  .contact-card {
    grid-template-columns: 1fr;
  }
}
