
:root {
  --navy: #101b33;
  --blue: #1d3567;
  --pink: #d81b7d;
  --cyan: #00d5ee;
  --ink: #19243a;
  --muted: #63718a;
  --bg: #f6f8fc;
  --line: #e2e8f2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1180px;
  margin: auto;
  padding: 0 26px;
}

/* ==========================================
   HEADER
========================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #e9edf5;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand img {
  width: 134px;
  height: auto;
}

.brand > span {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 850;
  color: var(--blue);
  border-left: 1px solid #dbe2ed;
  padding-left: 16px;
  line-height: 1.45;
}

.brand small {
  display: block;
  font-size: 10px;
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav a {
  font-size: 13px;
  font-weight: 650;
  color: #44516a;
}

nav a:hover {
  color: var(--pink);
}

nav .navcta {
  padding: 12px 17px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
}

.menu {
  display: none;
  border: 0;
  background: none;
  font-size: 25px;
  cursor: pointer;
}

/* ==========================================
   HERO
========================================== */

.hero {
  background:
    radial-gradient(
      ellipse at 80% 20%,
      #203c78 0,
      transparent 46%
    ),
    var(--navy);
  color: #fff;
  padding: 100px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.24fr .76fr;
  gap: 62px;
  align-items: center;
}

.eyebrow {
  color: #a3f3fc;
  font-size: 11px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  font-weight: 750;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  margin-right: 8px;
}

.hero h1 {
  font-size: clamp(39px, 4.8vw, 67px);
  letter-spacing: -2.7px;
  line-height: 1.08;
  margin: 24px 0;
}

.hero h1 em {
  font-style: normal;
  color: #72e2f1;
}

.hero p {
  font-size: 17px;
  color: #cbd6ea;
  max-width: 610px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 14px 22px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  border: 0;
}

.primary {
  background: var(--cyan);
  color: #0b223a;
}

.primary:hover {
  background: #71e9f5;
}

.ghost {
  border: 1px solid #7586a7;
  color: #fff;
}

.hero-foot {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 52px;
  color: #aabbd5;
  font-size: 11px;
}

/* ==========================================
   VISUAL HERO
========================================== */

.visual {
  height: 405px;
  border: 1px solid #60749a;
  background: linear-gradient(150deg, #21396d, #142341);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 24px 60px #070f2555;
}

.visual:before,
.visual:after {
  content: "";
  position: absolute;
  border: 1px solid #6c87ba33;
  border-radius: 50%;
  width: 380px;
  height: 380px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.visual:after {
  width: 280px;
  height: 280px;
}

.visual-top,
.visual-bottom {
  position: relative;
  z-index: 2;
}

.visual-top {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #b7c9e7;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.orb {
  position: absolute;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
  font-size: 170px;
  font-weight: 850;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 50px #37ddf155;
}

.visual-bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.visual-bottom strong {
  font-size: 18px;
}

.visual-bottom span {
  font-size: 12px;
  color: #a8bad6;
}

/* ==========================================
   SECCIONES GENERALES
========================================== */

section:not(.hero) {
  padding: 90px 0;
}

.kicker {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 2px;
  color: var(--pink);
  margin-bottom: 17px;
}

.kicker.light {
  color: #6fe2ee;
}

h2 {
  font-size: clamp(29px, 3.5vw, 44px);
  line-height: 1.14;
  letter-spacing: -1.2px;
  margin: 0 0 22px;
}

h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.two p {
  color: var(--muted);
  font-size: 16px;
  margin-top: 0;
}

.note {
  border-left: 3px solid var(--pink);
  background: #f3f5fa;
  padding: 19px 22px;
  font-size: 13px;
  color: #4a5970;
  margin-top: 26px;
}

/* ==========================================
   DIRECTORIO
========================================== */

.profiles {
  background: var(--bg);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.section-head p {
  color: var(--muted);
}

.status {
  white-space: nowrap;
  border: 1px solid #dce4f1;
  border-radius: 100px;
  padding: 9px 13px;
  color: var(--blue);
  font-size: 12px;
  background: #fff;
}

.cards {
  margin-top: 27px;
}

.empty {
  padding: 55px 25px;
  text-align: center;
  border: 1px dashed #bfcce1;
  border-radius: 16px;
  background: #fff;
}

.empty-icon {
  font-size: 50px;
  color: var(--pink);
}

.empty p {
  max-width: 490px;
  margin: 10px auto 20px;
  color: var(--muted);
}

.empty a {
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
}

.small {
  color: #7c899b;
  font-size: 12px;
}

/* ==========================================
   TARJETAS DE PERFILES PUBLICADOS
========================================== */

.public-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  align-items: start;
}

.public-profile-card {
  background: #fff;
  border: 1px solid #dce5f2;
  border-radius: 18px;
  padding: 25px;
  min-width: 0;
  box-shadow: 0 8px 25px rgba(16, 27, 51, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}

.public-profile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(16, 27, 51, .09);
}

.public-profile-header {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 20px;
}

.public-profile-photo {
  width: 105px;
  height: 105px;
  flex-shrink: 0;
  border-radius: 14px;
  object-fit: cover;
  background: #f1f5f9;
  border: 1px solid var(--line);
}

.public-profile-identity {
  min-width: 0;
}

.public-profile-identity h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.public-profile-slogan {
  margin: 0;
  color: #607394;
  font-size: 14px;
  line-height: 1.5;
}

.public-profile-logo {
  display: block;
  max-width: 135px;
  max-height: 65px;
  object-fit: contain;
  object-position: left center;
  margin: 10px 0 20px;
}

.public-profile-section {
  border-top: 1px solid #e7edf5;
  padding: 16px 0;
}

.public-profile-section h4 {
  margin: 0 0 8px;
  color: #607394;
  font-size: 12px;
  font-weight: 800;
}

.public-profile-text {
  margin: 0;
  color: #263650;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.public-profile-link {
  display: inline-block;
  margin-top: 12px;
  color: #087eaa;
  font-size: 13px;
  font-weight: 750;
}

.public-profile-link:hover {
  text-decoration: underline;
}

.public-profile-date {
  color: #8794a8;
  font-size: 11px;
  margin: 18px 0 0;
}

/* ==========================================
   METODOLOGÍA
========================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 38px;
}

.steps > div {
  border-top: 2px solid #dce3f0;
  padding-top: 22px;
}

.steps b {
  color: var(--pink);
  font-size: 14px;
}

.steps h3 {
  margin-top: 18px;
}

.steps p {
  color: var(--muted);
  font-size: 13px;
}

/* ==========================================
   REGISTRO
========================================== */

.register {
  background: var(--navy);
  color: #fff;
}

.reggrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  align-items: start;
}

.reggrid > div > p {
  color: #c4d0e5;
}

.reg-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 30px 0;
  color: #a9f1fa;
  font-size: 13px;
}

.fine {
  font-size: 12px !important;
  color: #9eacc5 !important;
}

.form {
  background: #fff;
  color: var(--ink);
  border-radius: 15px;
  padding: 32px;
  box-shadow: 0 24px 55px #030b2055;
}

.form-sub {
  font-size: 13px;
  color: var(--muted);
}

.form label:not(.check) {
  display: block;
  font-size: 12px;
  font-weight: 750;
  margin: 17px 0 7px;
}

.form label span {
  font-weight: 400;
  color: var(--muted);
}

.form input:not([type=checkbox]),
.form textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 13px;
  border: 1px solid #d9e0ec;
  border-radius: 8px;
  padding: 12px;
  background: #f7f9fc;
}

.form .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  margin: 17px 0;
}

.check input {
  margin-top: 4px;
  flex-shrink: 0;
}

.inactive {
  width: 100%;
  background: #dbe1ec;
  color: #65718a;
  border: 0;
  cursor: not-allowed;
}

.form-small {
  font-size: 11px;
  color: #8b97aa;
  text-align: center;
}

/* ==========================================
   PREGUNTAS FRECUENTES
========================================== */

.faqlist {
  max-width: 850px;
}

.faqlist details {
  border-bottom: 1px solid #e1e6ef;
  padding: 19px 0;
}

.faqlist summary {
  cursor: pointer;
  font-weight: 750;
}

.faqlist details p {
  color: var(--muted);
  font-size: 14px;
}

/* ==========================================
   FOOTER
========================================== */

footer {
  background: #0b1427;
  color: #bdc9dc;
  padding: 55px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 60px;
}

.footer-grid img {
  width: 150px;
}

.footer-grid p,
.footer-grid a {
  font-size: 12px;
}

.footer-grid strong {
  color: #fff;
  font-size: 13px;
}

.footer-grid a {
  color: #71e5f3;
}

.copyright {
  font-size: 11px;
  border-top: 1px solid #24304a;
  padding-top: 20px;
  margin-top: 45px;
  color: #8797b2;
}

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

@media (max-width: 950px) {
  nav {
    gap: 12px;
  }

  nav a {
    font-size: 12px;
  }

  .hero-grid,
  .reggrid {
    gap: 32px;
  }

  .visual {
    height: 350px;
  }

  .public-profile-grid {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 760px) {
  .wrap {
    padding: 0 20px;
  }

  .nav {
    min-height: 70px;
  }

  .brand img {
    width: 115px;
  }

  .brand > span {
    font-size: 9px;
  }

  .menu {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: 0 15px 20px #09142a1c;
    flex-direction: column;
    align-items: stretch;
  }

  nav.open {
    display: flex;
  }

  .hero {
    padding: 65px 0;
  }

  .hero-grid,
  .two,
  .reggrid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    letter-spacing: -1.6px;
  }

  .visual {
    height: 300px;
  }

  .hero-foot {
    margin-top: 32px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 0;
  }

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

  section:not(.hero) {
    padding: 65px 0;
  }

  .form {
    padding: 24px;
  }

  .public-profile-card {
    padding: 20px;
  }
}

/* ==========================================
   MÓVILES PEQUEÑOS
========================================== */

@media (max-width: 480px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .visual-top {
    font-size: 8px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .public-profile-header {
    align-items: flex-start;
    gap: 12px;
  }

  .public-profile-photo {
    width: 78px;
    height: 78px;
  }

  .public-profile-identity h3 {
    font-size: 18px;
  }

  .public-profile-card {
    padding: 16px;
  }
}


/* ==========================================
   DIRECTORIO COMPACTO — actualización aislada
   ========================================== */
.profiles { padding-top: 56px; padding-bottom: 56px; }
.profiles .section-head { margin-bottom: 18px; }
.profiles .section-head h2 { margin-bottom: 10px; }
.profiles .section-head p { margin: 0; }
.profiles .cards { margin-top: 18px; }
.public-profile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.public-profile-card {
  padding: 17px;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(16, 27, 51, .055);
}
.public-profile-header { gap: 13px; margin-bottom: 12px; align-items: center; }
.public-profile-photo { width: 82px; height: 82px; border-radius: 12px; }
.public-profile-identity h3 { font-size: 17px; margin-bottom: 5px; }
.public-profile-slogan {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 12px; line-height: 1.45;
}
.public-profile-details { border-top: 1px solid var(--line); margin-top: 12px; }
.public-profile-toggle {
  list-style: none; cursor: pointer; padding: 11px 2px 2px;
  color: #087eaa; font-size: 12px; font-weight: 800;
}
.public-profile-toggle::-webkit-details-marker { display: none; }
.public-profile-toggle::after { content: '＋'; float: right; font-size: 16px; line-height: 1; }
.public-profile-details[open] > .public-profile-toggle::after { content: '−'; }
.public-profile-expanded { padding-top: 10px; }
.public-profile-expanded .public-profile-section { padding: 11px 0; }
.public-profile-expanded .public-profile-section h4 { margin-bottom: 5px; }
.public-profile-expanded .public-profile-text { font-size: 13px; line-height: 1.6; }
.public-profile-expanded .public-profile-logo { max-width: 110px; max-height: 54px; margin: 2px 0 10px; }
.public-profile-expanded .public-profile-date { margin-top: 10px; }
.public-profile-links { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.public-profile-social-list { display: flex; flex-wrap: wrap; gap: 7px; }
.public-profile-link, .public-profile-social-link {
  display: inline-flex; align-items: center; gap: 5px; margin: 0;
  border: 1px solid #dce5f2; border-radius: 7px; padding: 7px 10px;
  color: #087eaa; font-size: 12px; font-weight: 750; overflow-wrap: anywhere;
}
.public-profile-link::after, .public-profile-social-link::after { content: '↗'; }
@media (max-width: 950px) {
  .public-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .profiles { padding-top: 42px; padding-bottom: 42px; }
  .public-profile-grid { grid-template-columns: 1fr; gap: 12px; }
  .public-profile-card { padding: 15px; }
  .public-profile-photo { width: 72px; height: 72px; }
}
