/* =====================================================
   PÁGINA: PERFIL
   Diseño individual para cada miembro del equipo.
   ===================================================== */

/* =====================================================
   HERO PRINCIPAL
   ===================================================== */
.perfil-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  min-height: 80vh;
}

.perfil-content {
  max-width: 600px;
  padding-left: 40px;
}

/* =====================================================
   BADGE Y CONTENIDO
   ===================================================== */
.perfil-badge {
  display: inline-block;
  background: #7bc4b4;
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.perfil-content h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--text-dark);
}

.perfil-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* =====================================================
   BOTONES DEL PERFIL
   ===================================================== */
.perfil-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-download {
  background: #7bc4b4;
  color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-base);
  border: none;
  cursor: pointer;
}

.btn-download:hover {
  background: #68b0a0;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(123, 196, 180, 0.3);
}

.btn-contact {
  background: transparent;
  color: var(--text-dark);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 2px solid var(--border);
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-contact:hover {
  border-color: #7bc4b4;
  color: #7bc4b4;
}

/* =====================================================
   IMAGEN DEL PERFIL
   ===================================================== */
.perfil-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 65vh;
  max-height: 550px;
}

.perfil-image img {
  width: 100%;
  max-width: 420px;
  height: 100%;
  object-fit: cover;
  object-position: center;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
  position: relative;
  z-index: 2;
}

/* Fondo decorativo con recorte diagonal */
.perfil-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, #d4d4d4 0%, #e8e8e8 100%);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

/* Overlay oscuro sobre la imagen */
.perfil-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.15));
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 3;
  pointer-events: none;
}

/* =====================================================
   SECCIÓN "EXPERTO EN"
   ===================================================== */
.experto-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.experto-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 15px;
}

.experto-section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background: #7bc4b4;
}

.experto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

/* Los estilos de .experto-card están en tarjetas.css */

/* =====================================================
   FORMACIÓN Y EXPERIENCIA
   ===================================================== */
.formacion-experiencia {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 80px 0;
}

.formacion-col h2,
.experiencia-col h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
}

.formacion-col h2::before {
  content: '🎓';
  font-size: 1.8rem;
}

.experiencia-col h2::before {
  content: '💼';
  font-size: 1.8rem;
}

/* =====================================================
   TIMELINE ITEMS
   ===================================================== */
.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-circle);
  background: var(--white);
  border: 3px solid #7bc4b4;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 28px;
  width: 2px;
  height: calc(100% + 10px);
  background: var(--border);
}

.timeline-item:last-child::after {
  display: none;
}

.timeline-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.timeline-item .institution {
  font-size: 0.95rem;
  color: #7bc4b4;
  margin-bottom: 2px;
}

.timeline-item .year {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.timeline-item .company {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.timeline-item .actualidad {
  display: inline-block;
  background: #7bc4b4;
  color: var(--white);
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 8px;
  text-transform: uppercase;
}

.timeline-item ul {
  margin-top: 10px;
  padding-left: 20px;
}

.timeline-item ul li {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 6px;
  line-height: 1.5;
}

/* =====================================================
   SECCIÓN DE SKILLS
   ===================================================== */
.skills-section {
  padding: 80px 0;
  background: var(--bg-light);
  color: var(--text-dark);
  text-align: center;
}

.skills-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 3rem;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}

.skill-badge {
  background: var(--bg-dark);
  color: var(--white);
  backdrop-filter: blur(10px);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.skill-badge:hover {
  background: var(--secondary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.skill-badge .icon {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 992px) {
  .perfil-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    min-height: auto;
    padding: 60px 0;
  }

  .perfil-content {
    max-width: 100%;
    padding-left: 0;
  }

  .perfil-image {
    justify-content: center;
    height: 450px;
    max-height: none;
  }

  .perfil-image img {
    margin: 0 auto;
    max-width: 350px;
  }

  .perfil-image::before {
    width: 80%;
  }

  .perfil-image::after {
    max-width: 350px;
  }

  .perfil-actions {
    justify-content: center;
  }

  .formacion-experiencia {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 768px) {
  .perfil-badge {
    font-size: 0.85rem;
    padding: 10px 20px;
  }

  .btn-download,
  .btn-contact {
    padding: 12px 20px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .perfil-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .perfil-image {
    height: 380px;
  }

  .perfil-image img {
    max-width: 300px;
  }

  .perfil-image::after {
    max-width: 300px;
  }
  
  .skills-grid {
    gap: 10px;
  }
  
  .skill-badge {
    font-size: 0.85rem;
    padding: 10px 18px;
  }
}