/* === PALETA GLOBAL === */
:root {
  --bg: #0c1626;
  --card: #111f35;
  --muted: #9da8c0;
  --text: #f5f8ff;
  --brand: #2d8cff;
  --brand-2: #00b8ff;
  --accent: #3ddc97;
  --danger: #ff6b6b;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --ring: 0 0 0 3px rgba(45,140,255,.35);
}

/* === BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(circle at 30% 20%, #0e1b2e, #0a1423 70%);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; transition: .25s ease; }
a:hover { color: var(--brand-2); }

img { display: block; max-width: 100%; }

.container { width: min(1200px, 92vw); margin-inline: auto; }

/* === BOTONES === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.3rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(45,140,255,.3);
  transition: .25s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(45,140,255,.45);
}
.btn.outline {
  background: transparent;
  border: 1px solid rgba(45,140,255,.5);
  color: var(--brand);
}

/* === CHIP === */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: rgba(45,140,255,.12);
  color: var(--brand);
  font-size: .83rem;
  font-weight: 600;
  border: 1px solid rgba(45,140,255,.25);
}

/* === HEADER === */
header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10, 20, 40, 0.75);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
}
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; }

nav a { padding: .55rem .8rem; border-radius: 10px; color: var(--muted); font-weight: 600; }
nav a:hover { background: rgba(45,140,255,.12); color: var(--text); }
.nav-cta { display: flex; gap: .6rem; align-items: center; }
.menu-btn { display: none; }

/* LOGO HEADER */
.brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

/* LOGO FOOTER */
footer .brand img {
  height: 38px;
  opacity: 0.9;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === PRESENTACIÓN PERSONAL === */
.presentacion-personal {
  margin-top: 3rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #13264c, #0d1730);
  box-shadow: var(--shadow);
  padding: 3rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 2rem;
}
.perfil {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
/* === PERFIL / LOGO EN PRESENTACIÓN PERSONAL === */
.perfil-logo {
  width: 100px;       /* Mantiene el tamaño del contenedor */
  height: 100px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(45,140,255,.15);
  overflow: hidden;
}

.perfil-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.4);       /* 🔹 agranda el logo dentro sin modificar el bloque */
  transition: transform .3s ease, filter .3s ease;
}

.perfil-logo:hover img {
  transform: scale(1.5);       /* 🔹 sutil zoom al pasar el cursor */
  filter: drop-shadow(0 0 8px rgba(45,140,255,.35)); /* 🔹 halo azul profesional */
}
.perfil-foto {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
}
.perfil-info h2 { font-size: 2.4rem; margin-bottom: .5rem; color: #fff; }
.perfil-info p { color: var(--muted); font-size: 1.1rem; }

/* === HERO === */

.hero-text h1 {
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  line-height: 1.1;
  margin: .35rem 0 1rem;
}
.hero p { color: var(--muted); font-size: 1.08rem; }
.badges { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1rem 0; }
.cta-hero { display:flex; gap:.6rem; flex-wrap:wrap; margin-top:1rem; }
.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  background: #0f1d33;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.card h3 { color: var(--text); margin-bottom: .4rem; }
.muted { color: var(--muted); }


/* ULTIMA PARA hero */

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 4rem 0;
}

.hero-left {
  flex: 1;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-photo {
  max-width: 380px;
  width: 100%;
  border-radius: 16px;
}

.subtitle {
  font-weight: 500;
  opacity: 0.8;
  margin-top: .5rem;
  margin-bottom: 1.5rem;
}

/* MEJORA ACCESIBILIDAD GLOBAL (AGREGAR EN style.css) */
/* Mejora contraste enlaces */
a {
  text-decoration: none;
}

a:focus,
button:focus {
  outline: 2px solid #00B8D9;
  outline-offset: 2px;
}

/* Mejora lectura */
p {
  line-height: 1.7;
}

/* Evita CLS */
img {
  max-width: 100%;
  height: auto;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-right {
    order: -1;
  }

  .hero-photo {
    max-width: 280px;
    margin-bottom: 2rem;
  }
}


/* === SECCIONES === */
section { padding: 3.5rem 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.section-head h2 { font-size: clamp(1.6rem,2.5vw,2.2rem); margin: 0; }

/* === LISTAS === */
ul {
  list-style: none;
  margin: 1rem 0 1.5rem 0;
  padding: 0;
}
ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .6rem;
  color: var(--muted);
}
ul li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

/* === FAQ === */
details {
  border-bottom: 1px dashed rgba(255,255,255,0.08);
  padding: 1rem 0;
}
summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary span { color: var(--brand); font-weight: 800; }

/* === FOOTER === */
footer {
  padding: 3rem 0 4rem;
  color: var(--muted);
  background: #0a1222;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.foot { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 1.4rem; }

/* === WHATSAPP === */
.wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
}
.wa a {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: #25D366;
  color: #00310f;
  padding: .9rem 1.05rem;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(37,211,102,.35);
}

/* === RESPONSIVE === */
@media (max-width: 980px){
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero p { max-width: 100%; }
  .hero-card { margin-top: 2rem; }
  .perfil { flex-direction: column; text-align: center; }
  .foot { grid-template-columns: 1fr 1fr; text-align: center; }
}
@media (max-width: 680px){
  nav { display: none; }
  .menu-btn { display: inline-flex; }
  .grid-3, .foot { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }

  /* === FIX HEADER MOBILE === */
  .nav {
    flex-wrap: nowrap;
    gap: 0;
  }
  .brand {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }
  .brand span {
    display: none;
  }
  .brand img {
    height: 40px;
  }
  .nav-cta {
    flex-shrink: 0;
  }
  .nav-cta .btn.outline {
    display: none;
  }
  .menu-btn {
    padding: .6rem .9rem;
    font-size: .9rem;
  }
}


/* === PROCESO === */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.step {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(45,140,255,.25);
}

.step h3 {
  color: var(--text);
  margin-bottom: .6rem;
  font-weight: 700;
}

.step p {
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.5;
}

.step .n {
  position: absolute;
  top: .8rem;
  right: .9rem;
  background: rgba(45,140,255,.15);
  border: 1px solid rgba(45,140,255,.35);
  padding: .25rem .6rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--brand);
  font-size: .9rem;
}

/* Responsive */
@media (max-width: 980px){
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px){
  .steps { grid-template-columns: 1fr; }
}


/* === ESTILO VS CODE – BLOQUES PROFESIONALES === */
.vscode-section {
  background: #0b1425;
  padding: 3rem 2rem;
  border-radius: var(--radius);
  box-shadow: inset 0 0 25px rgba(0,0,0,0.35);
}
.vscode-section h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2rem;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: inline-block;
  padding-bottom: .3rem;
}

/* Contenedor de paneles */
.vscode-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

/* Panel individual */
.vscode-panel {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.25);
  transition: 0.3s ease;
}
.vscode-panel:hover {
  transform: translateY(-3px);
  border-color: var(--brand-2);
  box-shadow: 0 0 25px rgba(0,184,255,0.25);
}

/* Títulos tipo barra superior */
.vscode-panel h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-2);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: .5rem;
  margin-bottom: 1rem;
  letter-spacing: 0.2px;
}

/* Listas */
.vscode-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.vscode-panel ul li {
  position: relative;
  margin-bottom: .7rem;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.5;
}
.vscode-panel ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--brand-2);
  font-size: 1.2rem;
  line-height: 1;
}

/* Responsive */
@media (max-width: 980px) {
  .vscode-panels { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .vscode-panels { grid-template-columns: 1fr; }
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service ul {
  flex-grow: 1;
}

@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
