/* RESET */

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

/* BODY */
body {
font-family: Arial, sans-serif;
color: white;

background:
url("fondo.jpg") center / cover no-repeat,
radial-gradient(circle at 20% 30%, #020617, #020617);

background-attachment: fixed;
}

/* OVERLAY */
body::before {
content: "";
position: fixed;
inset: 0;
background: linear-gradient(
90deg,
rgba(2,6,23,0.95) 10%,
rgba(2,6,23,0.85) 30%,
rgba(2,6,23,0.6) 50%,
rgba(2,6,23,0.25) 70%,
transparent 90%
);
pointer-events: none;
z-index: 0;
}

/* CAPAS */
.hero,
.section,
.nav {
position: relative;
z-index: 1;
}

/* NAV */
.nav {
  position: fixed;   /* 👈 clave */
  top: 0;
  left: 0;
  width: 100%;

  z-index: 1000;     /* 👈 que esté encima de todo */

  padding: 20px 40px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
}

.nav.scrolled {
  background: rgba(0,0,0,0.7);
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

body {
  padding-top: 80px; /* 👈 ajusta según altura del nav */
}

.menu a {
margin-left: 20px;
color: #aaa;
text-decoration: none;
}

.menu a:hover {
color: white;
}



/* HERO */
.hero {
min-height: 100vh;
display: flex;
align-items: center;
padding: 120px 80px;
}

/* IMAGEN */
.hero-image {
position: fixed;
right: 2%;
bottom: -25%;
pointer-events: none;
}

.hero-image img {
height: 120vh;
filter: drop-shadow(0 0 25px rgba(168,85,247,0.4));

}

/* TEXTO */
.hero-content {
max-width: 800px;
}

.hero-title span {
display: block;
opacity: 0;
transform: translateY(20px);
animation: fadeUp 0.8s ease forwards;
}

.hero-title span:nth-child(1) { animation-delay: 0.2s; }
.hero-title span:nth-child(2) { animation-delay: 0.4s; }
.hero-title span:nth-child(3) { animation-delay: 0.6s; }

.hero h1 {
font-size: 64px;
line-height: 1.05;
margin-bottom: 20px;
}

/* GRADIENT + GLOW */
.highlight {
background: linear-gradient(90deg, #4facfe, #a855f7);
-webkit-background-clip: text;
color: transparent;

text-shadow:
0 0 10px rgba(79,172,254,0.5),
0 0 20px rgba(168,85,247,0.4);

animation: glowPulse 2.5s infinite;
}

@keyframes glowPulse {
0%,100% {
text-shadow:
0 0 10px rgba(79,172,254,0.5),
0 0 20px rgba(168,85,247,0.4);
}
50% {
text-shadow:
0 0 20px rgba(79,172,254,0.8),
0 0 35px rgba(168,85,247,0.7);
}
}

/* ANIMACIÓN */
@keyframes fadeUp {
to {
opacity: 1;
transform: translateY(0);
}
}

.hero p {
color: #aaa;
margin-bottom: 20px;
}

/* BOTONES */
.buttons {
display: flex;
gap: 10px;
scroll-behavior: smooth;
}

.btn-primary {
background: linear-gradient(90deg, #4facfe, #a855f7);
padding: 12px 20px;
border-radius: 8px;
border: none;
color: white;
}

.btn-secondary {
background: transparent;
border: 1px solid #555;
padding: 12px 20px;
border-radius: 8px;
color: white;
}

/* SECCIONES */
.section {
padding: 100px 80px;
}

/* CARDS */
.cards {
display: flex;
gap: 20px;
}

.card {
padding: 20px;
border-radius: 15px;
background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,255,255,0.1);
}

/* RESPONSIVE */
@media (max-width: 768px) {

.hero-image {
display: none;
}

.hero {
padding: 120px 20px;
}

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

.buttons {
flex-direction: column;
}
}

/* ===================== */
/* ABOUT */
/* ===================== */

.about-content {
  max-width: 700px;
}

.about-content p {
  margin-bottom: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

.about-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 38px;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 580px;
}

.about-text p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
  line-height: 1.7;
  max-width: 580px;
}

.highlight-text {
  color: white;
  font-weight: 600;
  font-size: 18px;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat {
  padding: 25px 30px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);


  display: flex;
  flex-direction: column;
  align-items: center;     /* centra horizontal */
  justify-content: center; /* centra vertical */
  text-align: center;      /* centra el texto */

}

.stat {
  transition: 0.3s;
}

.stat:hover {
  transform: translateY(-4px);
}

.stat h3 {
  font-size: 28px;
  background: linear-gradient(90deg, #4facfe, #a855f7);
  -webkit-background-clip: text;
  color: transparent;
}

.stat p {
  color: #aaa;
}



/* ===================== */
/* EXPERIENCE */
/* ===================== */

.experience {
  margin-top: 60px;
}

.experience h2 {
  font-size: 28px;
  margin-bottom: 30px;
}

/* GRID */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/* CARD */
  .exp-card {
  padding: 25px;
  border-radius: 16px;
  align-items: start;

  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.08);

  transition: 0.3s;
  cursor: pointer;
  height: auto; /* evita que se estiren */
}

.exp-card {
  min-height: 220px;
}

/* HOVER */
.exp-card:hover {
  transform: translateY(-6px);
  border-color: #a855f7;
  box-shadow: 0 0 25px rgba(168,85,247,0.25);
}

/* TEXTO */
.exp-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: white;
}

.exp-card p {
  font-size: 14px;
  color: #aaa;
  line-height: 1.6;
}

.modal {
  display: flex;
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);

  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;

  z-index: 999;
}

/* cuando se activa */
.modal.active {
  opacity: 1;
  visibility: visible;
}

/* contenido */
.modal-content {
  background: rgba(20,20,40,0.85);
  border: 1px solid rgba(255,255,255,0.1);

  padding: 30px;
  border-radius: 18px;

  width: 500px;
  max-width: 90%;

  color: white;

  transform: scale(0.9);
  transition: all 0.3s ease;
}

/* animación entrada */
.modal.active .modal-content {
  transform: scale(1);
}

/* botón cerrar */
.close {
  position: absolute;
  top: 15px;
  right: 20px;

  font-size: 22px;
  cursor: pointer;
  color: #aaa;
}

.close:hover {
  color: white;
}



/* Contacto */
.contact-actions {
  margin-top: 25px;
  display: flex;
  gap: 15px;
}

.contact-actions a {
  min-width: 180px; /* 👈 clave */
}

/* BASE para ambos */
.contact-actions a {
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: all 0.3s ease;
}

/* BOTÓN CORREO */

.btn-secondary {
  color: white;
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* BOTÓN WHATSAPP */
.btn-whatsapp {
  color: white;
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.contact-info h2 {
  margin-bottom: 15px;
}

.contact-info p {
  margin-bottom: 12px;
  line-height: 1.6;
}

.contact-info strong {
  display: block;
  margin-top: 10px;
}

/* BOTÓN DESCARGAR */
.cv-download {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.btn-download {
  padding: 14px 28px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.btn-download:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
}

.cv-download {
  display: flex;
  justify-content: center; /* centra horizontal */
  align-items: center;
  gap: 16px; /* espacio entre botones */
  margin-top: 30px;
}

.cv-download {
  width: 100%;
}

/* interacción cards */
.card-experience {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-experience:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(138, 43, 226, 0.35);
}

/* glow */
.card-experience::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(138,43,226,0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-experience:hover::after {
  opacity: 1;
}

/* footer CTA */
.card-footer {
  margin-top: 15px;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.card-experience:hover .card-footer {
  opacity: 1;
  transform: translateX(5px);
}

/* badge */
.card-badge {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 0.7rem;
  opacity: 0.6;
}

/* modal animación */
.modal {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.modal.active .modal-content {
  transform: scale(1);
}

.card-experience.active {
  transform: scale(1.05);
  box-shadow: 0 25px 50px rgba(138, 43, 226, 0.5);
  z-index: 5;
}

.card-experience.active::after {
  opacity: 1;
}

/* ===== MEJORAS MODAL UI ===== */

.modal-content {
  padding: 30px 35px;
  max-width: 500px;
}

.modal-content h2 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.modal-content h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 1rem;
  opacity: 0.9;
  position: relative;
}

.modal-content h3:not(:first-of-type) {
  margin-top: 25px;
}

.modal-content h3::after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: rgba(138, 43, 226, 0.6);
  margin-top: 6px;
}

.modal-content p {
  margin-bottom: 12px;
  line-height: 1.5;
}

.modal-content ul {
  margin-bottom: 16px;
  padding-left: 18px;
}

.modal-content li {
  margin-bottom: 6px;
}

.gradient-text {
  background: linear-gradient(90deg, #4facfe, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
}

.impact-text {
  background: linear-gradient(90deg, #ff4ecd, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 78, 205, 0.4);
}


/* ===================== */
/* SKILLS SECTION        */
/* ===================== */

.skills-section {
  padding: 100px 80px;
}

.skills-header {
  margin-bottom: 50px;
}

.skills-header h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.skills-subtitle {
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  max-width: 480px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.skill-card {
  padding: 28px 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(79, 172, 254, 0.08), transparent 65%),
              radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.08), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.skill-card:hover::before { opacity: 1; }

.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.18);
}

.skill-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: inline-block;
  filter: drop-shadow(0 0 8px rgba(79, 172, 254, 0.35));
  transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
  transform: scale(1.12) rotate(-4deg);
}

.skill-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: white;
}

.skill-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 18px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-tags span {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.25s ease;
}

.skill-card:hover .skill-tags span {
  border-color: rgba(168, 85, 247, 0.4);
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .skills-section { padding: 80px 20px; }
  .skills-grid { grid-template-columns: 1fr; }
}

/* ===================== */
/* ABOUT REDESIGN        */
/* ===================== */

.about-section {
  padding: 100px 80px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 60px;
  align-items: start;
  margin-top: 10px;
}

/* TEXTO */
.about-intro {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 36px;
}

.about-intro strong {
  color: white;
  font-weight: 600;
}

/* PILLARS */
.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.about-pillar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  transition: all 0.3s ease;
}

.about-pillar:hover {
  border-color: rgba(168,85,247,0.35);
  background: rgba(168,85,247,0.05);
  transform: translateX(6px);
}

.pillar-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-pillar h4 {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 6px;
}

.about-pillar p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin: 0;
}

.about-closing {
  font-size: 15px;
  font-style: italic;
  padding-left: 16px;
  border-left: 2px solid rgba(168,85,247,0.5);
}

/* STATS */
.about-stats-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 100px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-stats-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    position: static;
  }
  .about-section {
    padding: 80px 20px;
  }
}

/* ABOUT: sin stats, grid de una columna, tarjetas compactas */
.about-grid {
  grid-template-columns: 1fr !important;
  max-width: 780px;
}

.about-pillar {
  padding: 14px 16px !important;
  gap: 12px !important;
}

.pillar-icon {
  font-size: 20px !important;
}

.about-pillar h4 {
  font-size: 14px !important;
  margin-bottom: 3px !important;
}

.about-pillar p {
  font-size: 12.5px !important;
}

.about-pillars {
  gap: 12px !important;
}

.about-intro {
  font-size: 15px !important;
  margin-bottom: 24px !important;
}

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

.hero-tag {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(79, 172, 254, 0.8);
  margin-bottom: 20px;
  display: block;
}

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(79,172,254,0.3);
}

.btn-secondary-hero {
  display: inline-block;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  background: transparent;
}

.btn-secondary-hero:hover {
  border-color: rgba(168,85,247,0.6);
  background: rgba(168,85,247,0.1);
  transform: translateY(-2px);
}

/* SCROLL HINT */
.scroll-hint {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.scroll-hint span {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.scroll-arrow {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(168,85,247,0.7), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ===================== */
/* SCROLL ANIMATIONS     */
/* ===================== */

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* delay helpers */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ===================== */
/* BACK TO TOP           */
/* ===================== */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;

  width: 44px;
  height: 44px;
  border-radius: 50%;

  background: linear-gradient(135deg, #4facfe, #a855f7);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;

  box-shadow: 0 4px 20px rgba(168,85,247,0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(168,85,247,0.6);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 10px;
  max-width: 820px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: white;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(79,172,254,0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-card:hover::before { opacity: 1; }

.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79,172,254,0.45);
  box-shadow: 0 0 30px rgba(79,172,254,0.15);
}

.contact-icon {
  font-size: 30px;
  margin-bottom: 14px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(79,172,254,0.4));
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.15);
}

.contact-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: white;
}

.contact-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

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

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

.footer {
  text-align: center;
  padding: 28px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-name {
  font-weight: 600;
  background: linear-gradient(90deg, #4facfe, #a855f7);
  -webkit-background-clip: text;
  color: transparent;
  font-size: 14px;
}

.footer-role,
.footer-year {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.footer-sep {
  color: rgba(255,255,255,0.2);
  font-size: 13px;
}

/* LinkedIn nav */
.nav-linkedin {
  padding: 6px 14px !important;
  border-radius: 8px;
  border: 1px solid rgba(79,172,254,0.4) !important;
  color: rgba(79,172,254,0.9) !important;
  font-size: 13px;
  transition: all 0.3s ease !important;
  margin-left: 8px;
}

.nav-linkedin:hover {
  background: rgba(79,172,254,0.1) !important;
  border-color: rgba(79,172,254,0.8) !important;
  color: white !important;
}

/* ===================== */
/* CERTIFICATION         */
/* ===================== */

.cert-section {
  padding: 80px 80px;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 36px 40px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 780px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at left, rgba(79,172,254,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-card:hover::before { opacity: 1; }

.cert-card:hover {
  border-color: rgba(79,172,254,0.35);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(79,172,254,0.12);
}

.cert-badge img {
  width: 110px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(79,172,254,0.25));
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.cert-card:hover .cert-badge img {
  transform: scale(1.05) rotate(-2deg);
}

.cert-issuer {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(79,172,254,0.8);
  margin-bottom: 8px;
}

.cert-info {
  position: relative;
  z-index: 2;
}

.cert-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

.cert-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 20px;
}

.cert-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid rgba(79,172,254,0.4);
  color: rgba(79,172,254,0.9);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.cert-btn:hover {
  background: rgba(79,172,254,0.1);
  border-color: rgba(79,172,254,0.8);
  color: white;
}

@media (max-width: 600px) {
  .cert-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }
  .cert-section { padding: 60px 20px; }
}

/* ===================== */
/* CERT GROUPS & PILLS   */
/* ===================== */

.cert-featured {
  margin-bottom: 40px;
}

.cert-card.featured {
  max-width: 700px;
}

.cert-group {
  margin-bottom: 28px;
  max-width: 820px;
}

.cert-group-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.cert-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cert-pills span {
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  transition: all 0.25s ease;
  cursor: default;
}

.cert-pills span:hover {
  border-color: rgba(168,85,247,0.5);
  color: white;
  background: rgba(168,85,247,0.08);
}

/* Pills como links */
.cert-pill {
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cert-pill::after {
  content: "↗";
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cert-pill:hover {
  border-color: rgba(168,85,247,0.5);
  color: white;
  background: rgba(168,85,247,0.08);
}

.cert-pill:hover::after {
  opacity: 1;
}


/* ================================ */
/* RESPONSIVE GLOBAL                */
/* ================================ */

/* TABLET: 768px */
@media (max-width: 768px) {

  /* NAV */
  .nav {
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .menu a {
    font-size: 12px;
    margin-left: 0;
  }

  .nav-linkedin {
    font-size: 11px !important;
    padding: 4px 10px !important;
  }

  body {
    padding-top: 100px;
  }

  /* HERO */
  .hero {
    padding: 80px 24px 60px;
    min-height: auto;
  }

  .hero h1,
  .hero-title {
    font-size: 36px !important;
  }

  .hero-tag {
    font-size: 11px;
  }

  .hero-sub {
    font-size: 14px;
  }

  .scroll-hint {
    margin-top: 36px;
  }

  /* SECCIONES */
  .section {
    padding: 60px 24px !important;
  }

  .skills-section,
  .cert-section,
  .about-section {
    padding: 60px 24px !important;
  }

  /* PM / ABOUT CONTAINER */
  .about-container {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  .about-text h2 {
    font-size: 26px !important;
  }

  .about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stat h3 {
    font-size: 22px;
  }

  /* EXPERIENCE GRID */
  .experience-grid {
    grid-template-columns: 1fr !important;
  }

  /* SKILLS GRID */
  .skills-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ABOUT GRID */
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  /* CERT */
  .cert-card {
    flex-direction: column !important;
    text-align: center;
    padding: 24px 20px !important;
    gap: 20px !important;
  }

  .cert-badge img {
    width: 90px;
  }

  /* CONTACT */
  .contact-grid {
    grid-template-columns: 1fr !important;
    max-width: 100%;
  }

  /* CV DOWNLOAD */
  .cv-download {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn-download {
    width: 100%;
    text-align: center;
  }

  /* FOOTER */
  .footer {
    flex-direction: column;
    gap: 6px;
    padding: 20px;
  }

  .footer-sep {
    display: none;
  }
}

/* MOBILE: 480px */
@media (max-width: 480px) {

  .hero-title {
    font-size: 28px !important;
    line-height: 1.2;
  }

  .skills-header h2,
  .about-text h2 {
    font-size: 24px !important;
  }

  .skills-grid {
    grid-template-columns: 1fr !important;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .cert-pills {
    gap: 8px;
  }

  .cert-pill {
    font-size: 12px;
    padding: 6px 12px;
  }

  .exp-card {
    padding: 18px !important;
  }

  .skill-card {
    padding: 20px 18px !important;
  }

  .buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary-hero {
    width: 100%;
    text-align: center;
  }

  /* back to top */
  .back-to-top {
    bottom: 20px;
    right: 16px;
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
}

/* Overlay móvil más oscuro y uniforme */
@media (max-width: 768px) {
  body::before {
    background: rgba(2, 6, 23, 0.85);
  }

  .hero-image {
    display: none;
  }
}

/* Pill sin link (educación) */
.cert-pill.no-link {
  cursor: default;
  color: rgba(255,255,255,0.6) !important;
}
.cert-pill.no-link:hover {
  border-color: rgba(255,255,255,0.15) !important;
  background: rgba(255,255,255,0.04) !important;
  color: rgba(255,255,255,0.6) !important;
}

/* ===================== */
/* MÁS ESPACIO / AIRE    */
/* ===================== */

/* Más padding general en secciones */
.section {
  padding: 100px 80px;
}

/* Hero más alto */
.hero {
  min-height: 100vh;
  padding: 140px 80px 80px;
}

/* Texto hero más ancho */
.hero-content {
  max-width: 680px;
}

.hero-sub {
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 36px;
}

/* PM section más espacio */
.about-container {
  gap: 80px;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Experience cards más altas */
.exp-card {
  min-height: 240px !important;
  padding: 28px !important;
}

/* Skill cards más holgadas */
.skill-card {
  padding: 32px 28px !important;
}

/* About pillars más espacio */
.about-pillar {
  padding: 22px 20px !important;
}

/* Sección sobre mí más ancha */
.about-grid {
  max-width: 900px !important;
}

/* Cert card más holgada */
.cert-card {
  padding: 40px 44px !important;
  gap: 48px !important;
}

/* Grupos de cert más espacio */
.cert-group {
  margin-bottom: 36px !important;
}

.cert-group-title {
  margin-bottom: 18px !important;
}

/* Contact cards más altas */
.contact-card {
  padding: 40px 28px !important;
}

/* Footer más espacio */
.footer {
  padding: 36px 40px !important;
}

/* Scroll hint más bajo */
.scroll-hint {
  margin-top: 80px;
}

/* Responsive: mantener proporciones en móvil */
@media (max-width: 768px) {
  .section {
    padding: 60px 24px !important;
  }

  .hero {
    padding: 100px 24px 60px !important;
  }

  .cert-card {
    padding: 28px 20px !important;
    gap: 20px !important;
  }

  .exp-card {
    min-height: auto !important;
  }
}

/* ===================== */
/* TEXTO MÁS ANCHO       */
/* ===================== */

.about-text {
  max-width: 100% !important;
}

.about-text p {
  max-width: 100% !important;
  text-align: justify;
}

.about-text h2 {
  max-width: 100% !important;
}

.about-content p {
  max-width: 100% !important;
  text-align: justify;
}

/* PM section - columna texto ocupa más */
.about-container {
  grid-template-columns: 1.6fr 0.4fr !important;
}

/* hero texto más ancho */
.hero-content {
  max-width: 780px !important;
}

.hero-sub {
  max-width: 680px !important;
  text-align: justify;
}

/* about section */
.about-intro {
  max-width: 100% !important;
  text-align: justify;
}

.about-pillar p {
  text-align: justify;
}

/* ===================== */
/* TEXTO ANCHO MODERADO  */
/* ===================== */

.about-container {
  grid-template-columns: 1.2fr 0.8fr !important;
}

.about-text p,
.about-text h2,
.about-intro,
.hero-sub {
  max-width: 560px !important;
  text-align: left !important;
}

.hero-content {
  max-width: 560px !important;
}

/* Hero: revertir a tamaño original */
.hero-content {
  max-width: 800px !important;
}

.hero-sub {
  max-width: 480px !important;
  text-align: left !important;
}

/* Subtitle sin límite de ancho */
.skills-subtitle {
  max-width: 100% !important;
}

/* Dos cards destacadas en grid */
.cert-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}

.cert-badge-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(79,172,254,0.15), rgba(168,85,247,0.15));
  border: 1px solid rgba(168,85,247,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cert-featured {
    grid-template-columns: 1fr !important;
  }
}
