/* ================================
   VARIABLES
================================ */
:root {
  --bg-main: #0e0e0e;
  --bg-card: #1a1a1a;
  --bg-card-soft: #202020;
  --border-card: rgba(255,255,255,0.08);

  --text-main: #eaeaea;
  --text-soft: #b5b5b5;

  --accent: #ff5a00;

  --radius: 16px;
  --radius-small: 12px;

  --space-xs: 8px;
  --space-s: 16px;
  --space-m: 32px;
  --space-l: 48px;
}

/* ================================
   ENLACES
================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
  background: linear-gradient(180deg, #2b2b2b 0%, #1e1e1e 100%);
  color: var(--text-main);
}

a,
a:visited {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}


/* ================================
   TOPBAR
================================ */
.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(
    to bottom,
    #0f1e2e,
    #0b1623
  );
  border-bottom: 1px solid rgba(80,140,255,0.45);
  z-index: 1000;
}


.topbar__inner {
  max-width: 1200px;
  margin: auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}


.topbar__subtitle {
  font-size: 14px;
  color: rgba(200,220,255,0.85);
  margin-top: 4px;
}

/* ================================
   BOTONES
================================ */
.btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
}

.btn-accent {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-accent:hover {
  background: rgba(255,179,0,0.1);
}

/* ================================
   WRAP
================================ */
.wrap {
  max-width: 1200px;
  margin: auto;
  padding: 140px 32px 80px;
}


/* ================================
   CARDS GENERALES
================================ */
.card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-card-soft));
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: var(--space-m);
  margin-bottom: var(--space-l);
  position: relative;
}

/* Línea naranja SOLO para títulos grandes */
.card h2::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 32px;
  width: 32px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

/* ================================
   TÍTULOS
================================ */
h2 {
  margin: 0 0 var(--space-s);
  font-size: 24px;
}

h3 {
  margin: 0 0 var(--space-s);
  font-size: 18px;
}

/* ❌ quitar línea naranja de h3 */
h3::before {
  content: none !important;
}

/* ================================
   PRESENTACIÓN
================================ */
.presentacion > p {
  margin-bottom: var(--space-m);
  max-width: none;
  text-align: justify;
  text-wrap: pretty;
}

.presentacion .card {
  margin-bottom: 0;
}

.presentacion p {
  text-align: justify;
  text-justify: inter-word;
}


/* ================================
   DOBLE BLOQUE
================================ */
.doble {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-m);
  margin-bottom: var(--space-m);
}

/* ================================
   SKILLS / CONTACTO / OBJETIVO
   (mismo estilo lateral)
================================ */
.skills,
.contacto,
.objetivo {
  background: var(--bg-card-soft);
  border-left: 4px solid var(--accent);
  padding-left: 28px;
}

/* ================================
   LISTAS
================================ */
.bullets {
  list-style: none;
  padding: 0;
}

.bullets li {
  padding-left: 18px;
  margin-bottom: 10px;
  position: relative;
}

.bullets li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* ================================
   CONTACTO
================================ */
.contact-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #2a2a2a;
}

.contact-row:last-of-type {
  border-bottom: none;
}

.contact-label {
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}

.contact-value {
  color: var(--accent);
  font-weight: 600;
  text-align: right;
}

.contact-note {
  margin-top: var(--space-s);
  font-size: 14px;
  color: var(--text-soft);
}

/* ================================
   OBJETIVO
================================ */
.objetivo {
  margin-top: var(--space-m);
}

/* ================================
   CURRÍCULUM
================================ */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-s);
  margin-bottom: 0;
}

.pdf-viewer iframe {
  width: 100%;
  height: 800px;
  border: none;
  border-radius: var(--radius-small);
}

/* ================================
   FOOTER
================================ */
footer {
  text-align: center;
  margin-top: 80px;
  font-size: 14px;
  color: var(--text-soft);
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
  .doble {
    grid-template-columns: 1fr;
  }

  .topbar__inner {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
