/* ───────────────────────────────────────
   VARIABLES Y RESET BÁSICO
   ─────────────────────────────────────── */

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

:root {
  --font: 'Inter', sans-serif;
  --color-text: #000;
  --color-bg: #fff;
  --color-accent: #000;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

/* ───────────────────────────────────────
   HEADER Y NAVEGACIÓN
   ─────────────────────────────────────── */

header {
  padding: var(--spacing-md) var(--spacing-md) 0;
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-weight: 600;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  gap: var(--spacing-sm);
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 400;
  font-size: 0.9rem;
}

/* Menú hamburguesa (solo en móviles) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 21px;
  justify-content: space-between;
}

.menu-toggle span {
  height: 2px;
  width: 100%;
  background: var(--color-text);
  transition: 0.3s;
}

/* ───────────────────────────────────────
   ESTILOS GENERALES DEL CONTENIDO
   ─────────────────────────────────────── */

main {
  padding: var(--spacing-lg) var(--spacing-md);
  max-width: 1200px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 300;
  max-width: 600px;
  line-height: 1.3;
}

section {
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: var(--spacing-md);
}

/* Footer */
footer {
  text-align: center;
  padding: var(--spacing-md);
  font-size: 0.85rem;
  color: #888;
  border-top: 1px solid #eee;
}

/* ───────────────────────────────────────
   GRID DE PROYECTOS (PORTAFOLIO)
   ─────────────────────────────────────── */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0; /* Sin márgenes para unión perfecta */
  margin-bottom: var(--spacing-lg);
}

/* Tarjeta de proyecto */
.project-item {
  position: relative;
  display: block;
  height: 300px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  touch-action: manipulation;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Aparece al hacer scroll */
.project-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-item:hover img {
  transform: scale(1.03);
}

/* Fondo del overlay (fijo, sin movimiento) */
.overlay-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}

.project-item:hover .overlay-bg {
  background: rgba(0, 0, 0, 0.45);
}

/* Contenido del overlay: solo fade-in con opacidad */
.overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-item:hover .overlay-content {
  opacity: 1;
}

.overlay-content h3 {
  margin-bottom: 0.25rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-item:hover .overlay-content h3 {
  opacity: 1;
}

.overlay-content p {
  margin-bottom: 0.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  transition-delay: 0.12s;
}

.project-item:hover .overlay-content p {
  opacity: 1;
}

/* Icono de candado */
.lock-icon {
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-top: 0.5rem;
}

.project-item:hover .lock-icon {
  opacity: 1;
}

/* Soporte táctil (móviles) */
@media (hover: none) {
  .project-item.active .overlay-bg {
    background: rgba(0, 0, 0, 0.45);
  }

  .project-item.active .overlay-content {
    opacity: 1;
  }

  .project-item.active .overlay-content h3,
  .project-item.active .overlay-content p {
    opacity: 1;
  }
}

/* ───────────────────────────────────────
   RESPONSIVE: AJUSTE DE COLUMNAS
   ─────────────────────────────────────── */

@media (max-width: 768px) {
  /* Menú móvil */
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md);
    gap: var(--spacing-sm);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* Contenido */
  .hero h1 {
    font-size: 1.75rem;
  }

  main {
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
  }

  h2 {
    font-size: 1.25rem;
  }

  /* Grid: 2 columnas en tablets */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-item {
    height: 250px;
  }
}

@media (max-width: 480px) {
  /* Grid: 1 columna en móviles */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-item {
    height: 200px;
  }

  .overlay-content h3 {
    font-size: 1rem;
  }

  .overlay-content p {
    font-size: 0.8rem;
  }
}

/* ───────────────────────────────────────
   PÁGINA "COMING SOON" (CONTRASEÑA)
   ─────────────────────────────────────── */

.coming-soon {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  padding: var(--spacing-md);
  text-align: center;
}

.lock-container {
  max-width: 500px;
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.lock-container .lock-icon-large {
  font-size: 3rem;
  color: #aaa;
  margin-bottom: var(--spacing-md);
}

.lock-container h1 {
  font-size: 2.25rem;
  color: #555;
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.lock-container p {
  margin-bottom: var(--spacing-md);
  color: #333;
}

.password-form {
  display: flex;
  gap: var(--spacing-sm);
  max-width: 300px;
  margin: 0 auto;
}

.password-form input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.9rem;
}

.password-form button {
  background: transparent;
  border: 1px solid #ddd;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.password-form button:hover {
  background: #f5f5f5;
}

/* ───────────────────────────────────────
   PÁGINA DE CASO DE ESTUDIO
   ─────────────────────────────────────── */

.case-study .hero {
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
}

.case-study .hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.case-study .hero p {
  font-size: 1.1rem;
  color: #666;
}

.overview .content {
  max-width: 800px;
  margin: 0 auto;
}

.overview .challenge-solution {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.overview .box {
  flex: 1;
  padding: var(--spacing-md);
  background: #f9f9f9;
  border-radius: 4px;
}

.methodologies,
.archetypes,
.model,
.concepts,
.prototypes,
.screens {
  display: grid;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.method,
.archetype,
.pillar,
.concept,
.prototype,
.screen {
  background: #fff;
  padding: var(--spacing-md);
  border: 1px solid #eee;
  border-radius: 4px;
}

.method h3,
.archetype h4,
.pillar h4,
.concept h3,
.prototype h3,
.screen h3 {
  margin-bottom: 0.5rem;
}

.method blockquote {
  font-style: italic;
  margin: 0.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid #000;
}

.case-footer {
  text-align: center;
  padding: var(--spacing-md);
  font-size: 0.85rem;
  color: #888;
  border-top: 1px solid #eee;
  margin-top: var(--spacing-lg);
}

/* Responsive - caso de estudio */
@media (max-width: 768px) {
  .overview .challenge-solution {
    flex-direction: column;
  }

  .case-study .hero h1 {
    font-size: 2rem;
  }
}

/* === Case Study Page Styles === */
.case-study .hero {
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
}

.case-study .hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.case-study .hero p {
  font-size: 1.1rem;
  color: #666;
}

.overview .content {
  max-width: 800px;
  margin: 0 auto;
}

.overview .challenge-solution {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.overview .box {
  flex: 1;
  padding: var(--spacing-md);
  background: #f9f9f9;
  border-radius: 4px;
}

.methodologies,
.wireframes,
.prototypes,
.screens,
.learnings {
  display: grid;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.method,
.wireframe,
.prototype,
.screen {
  background: #fff;
  padding: var(--spacing-md);
  border: 1px solid #eee;
  border-radius: 4px;
}

.method h3,
.wireframe h3,
.prototype h3,
.screen h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.method blockquote {
  font-style: italic;
  margin: 0.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid #000;
}

.case-footer {
  text-align: center;
  padding: var(--spacing-md);
  font-size: 0.85rem;
  color: #888;
  border-top: 1px solid #eee;
  margin-top: var(--spacing-lg);
}

/* Responsive */
@media (max-width: 768px) {
  .overview .challenge-solution {
    flex-direction: column;
  }

  .case-study .hero h1 {
    font-size: 2rem;
  }
}

/*------------------------------*/
/* === Animaciones al hacer scroll === */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* === Parallax suave (opcional para fondos) === */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  margin: var(--spacing-lg) 0;
}

.parallax-bg h2 {
  font-size: 2.5rem;
  font-weight: 300;
  background: rgba(0,0,0,0.5);
  padding: 1rem 2rem;
  border-radius: 4px;
}
/*  === cambio de color candado === */ 
.lock-icon.unlocked {
  color: #4CAF50 !important;
  font-size: 1.1rem;
}


/* === Hero de caso === */
.hero-case {
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Parallax básico */
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.hero-case .container {
  max-width: 800px;
  padding: 0 var(--spacing-md);
}

.hero-case h1 {
  font-size: 2.8rem;
  font-weight: 300;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-case .subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* === Divisores con parallax === */
.parallax-divider {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  margin: var(--spacing-lg) 0;
}

.parallax-divider h2 {
  font-size: 2.2rem;
  font-weight: 300;
  background: rgba(0,0,0,0.5);
  padding: 1rem 2rem;
  border-radius: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* === Secciones generales === */
.section {
  padding: var(--spacing-lg) 0;
}

.bg-light {
  background: #f9f9f9;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-lg-8, .col-lg-4, .col-md-4, .col-md-6 {
  padding: 0 15px;
}

@media (max-width: 768px) {
  .col-lg-8, .col-lg-4, .col-md-4, .col-md-6 {
    flex: 100%;
    max-width: 100%;
  }
}

/* === Tarjetas de método y escenario === */
.method-card, .scenario-card {
  background: white;
  padding: var(--spacing-md);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: var(--spacing-md);
}

.scenario-card h3 {
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

/* === Challenge/Solution === */
.challenge-solution {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.box {
  background: #f0f0f0;
  padding: var(--spacing-md);
  border-radius: 8px;
}

/* === Footer del caso === */
.case-footer {
  text-align: center;
  padding: var(--spacing-md);
  font-size: 0.85rem;
  color: #888;
  border-top: 1px solid #eee;
  margin-top: var(--spacing-lg);
}

/*----------------------------------*/

/* === Grid 2xN (como en tu imagen) === */
.section-grid {
  padding: var(--spacing-lg) 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

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

.card {
  background: #fff;
  border-radius: 8px;
  padding: var(--spacing-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card-light {
  background: #f9f9f9;
}

.card-highlight {
  background: #e6f4ea;
  border-left: 4px solid #4CAF50;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75
}
/*----------------------------------*/
    
.hero-bg {
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3)), url('assets/images/prospectiva/woman-s-hands-with-water-splash.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 30vh;   /* 👈 Reducido de 80vh → 50vh */
  max-height: 720px;  /* 👈 Límite máximo para pantallas muy grandes */
  /*display: flex;*/
  align-items: center;
  margin: 0 auto;        /* centra horizontalmente */
  text-align: center;  
  justify-content: center;
  color: white;
  display: grid;
  place-items: center;
}

    .hero-content h1 {
      font-size: 2.8rem;
      font-weight: 700;
      line-height: 1.2;
      margin-bottom: 1rem;
    }

    .hero-content p {
      font-size: 1.2rem;
      opacity: 0.9;
      max-width: 600px;
      margin-bottom: 1.5rem;
    }
.hero-content,
.hero-content * {
  text-align: center !important;
}

    .btn-accent {
      background: var(--color-accent);
      border: none;
      padding: 0.75rem 1.5rem;
      font-weight: 600;
      transition: background 0.3s ease;
    }
    .btn-accent:hover {
      /*background: #b0005a;*/
      background: #24A79F;
    }

    .card {
      border-radius: 8px;
      border: none;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

    .card-icon {
      width: 48px;
      height: 48px;
      background: #fff;/*#24A79F;*//*#fdf2f7;*/
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1rem;
      /*color: var(--color-accent);*/
      color: #24A79F;
      font-size: 1.5rem;
    }

    .section-title {
      text-align: center;
      margin-bottom: 2rem;
    }
    .section-title h2 {
      font-size: 2.2rem;
      font-weight: 600;
      position: relative;
    }
    .section-title h2::after {
      content: "";
      position: absolute;
      bottom: -12px;
      left: 50%;
      transform: translateX(-50%);
      width: 60px;
      height: 3px;
      background: var(--color-accent);
    }

    .divider {
      height: 1px;
      background: #eee;
      margin: 2rem 0;
    }

    .highlight-card {
      background: #e6f4ea;
      border-left: 4px solid var(--color-success);
    }

    /* Responsive */
    @media (max-width: 768px) {
      .hero-bg {
        height: 70vh;
      }
      .hero-content h1 {
        font-size: 2.2rem;
      }
      .grid-2 {
        grid-template-columns: 1fr;
      }
    }
/*------------------------------------------*/


@font-face {
  font-family: 'ITC Avant Gard Book';
  src: url('../fonts/ITCAvantGardeStd-Bk.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

.logo {
  font-family: 'ITC Avant Gard Book', 'Open Sans', sans-serif;
  font-weight: 500;
  color: #24A79F;
  background-color: #FFFFFF;
}

/*-------------------EEG---------------------------------*/

/* Easter Egg Modal Styles */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: #1a1a2e;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.3);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 10;
}

.close-btn:hover {
    transform: rotate(90deg);
    color: #ff6b6b;
}

.game-info {
    text-align: center;
    color: #fff;
    margin-top: 15px;
    font-family: 'Courier New', monospace;
}

#gameContainer {
    border: 3px solid #4a4a6a;
    border-radius: 8px;
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Forzar tamaño fijo del canvas de Phaser */
#gameContainer canvas {
    width: 340px !important;
    height: 520px !important;
    max-width: 340px !important;
    max-height: 520px !important;
    min-width: 340px !important;
    min-height: 520px !important;
    transform: none !important;
    transform-origin: center center !important;
    image-rendering: pixelated;
    display: block;
    margin: 0 auto;
}

/* Contenedor del juego con tamaño fijo */
#gameContainer {
    width: 340px !important;
    height: 520px !important;
    max-width: 340px !important;
    max-height: 520px !important;
    overflow: hidden;
    position: relative;
}

/* Prevenir que CSS global afecte el juego */
.game-modal * {
    box-sizing: content-box;
}

.game-modal canvas,
.game-modal div,
.game-modal rect {
    all: revert;
    box-sizing: content-box;
}
/*----------------------------------------------------------*/
/* Botón personalizado - Ver más proyectos */
.btn-custom-outline {
  color: #24A79F !important;
  border-color: #24A79F !important;
  background-color: transparent !important;
}

.btn-custom-outline:hover {
  background-color: #24A79F !important;
  border-color: #24A79F !important;
  color: #FFFFFF !important;
}


/*-----------------------------------------*/
/* === Formulario de contraseña - locked.html === */
.password-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 2rem auto; /* ← Cambiar: auto para centrar horizontalmente */
  flex-wrap: wrap;
  max-width: 500px; /* ← Agregar: limitar ancho máximo */
  width: 100%; /* ← Agregar: ocupar ancho disponible */
}

.password-form input[type="password"] {
  padding: 14px 20px;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  min-width: 220px;
  flex: 1; /* ← Agregar: para que sea flexible */
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: 'Inter', sans-serif;
}

.password-form input[type="password"]:focus {
  outline: none;
  border-color: #24A79F;
  box-shadow: 0 0 0 4px rgba(36, 167, 159, 0.15);
}

/* Botón de submit - PRIMARIO (destacado) */
.password-form button[type="submit"] {
  background-color: #24A79F;
  color: #FFFFFF;
  border: 2px solid #24A79F;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(36, 167, 159, 0.3);
  white-space: nowrap; /* ← Agregar: evitar que el texto se rompa */
}

.password-form button[type="submit"]:hover {
  background-color: #1d8a83;
  border-color: #1d8a83;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(36, 167, 159, 0.4);
}

.password-form button[type="submit"]:active {
  transform: translateY(0);
}

/* Contenedor del lock - asegurar centrado */
.lock-container {
  max-width: 600px; /* ← Ajustar si es necesario */
  margin: 0 auto;
  padding: 2rem;
  text-align: center; /* ← Asegurar que todo el texto esté centrado */
}

/* Responsive - Móvil */
@media (max-width: 768px) {
  .password-form {
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
  }
  
  .password-form input[type="password"],
  .password-form button[type="submit"] {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* Desktop - Ajuste fino */
@media (min-width: 769px) {
  .password-form {
    /* Asegurar que en desktop se mantenga centrado */
    margin-left: auto;
    margin-right: auto;
  }
}
/*---------------------------------*/
/* Separador visual sutil */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #ddd, transparent);
  margin: 1.5rem auto;
  max-width: 200px;
}

/*-----------------------------------*/
/* === Sección Sobre mí - Diseño mejorado === */
.about {
  padding: 5rem 2rem;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(36, 167, 159, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.about .container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.about h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #24A79F;
  border-radius: 2px;
}

.about p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4a4a4a;
  margin-bottom: 1.5rem;
  max-width: 650px;
}

/* Badge de habilidades */
.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0;
}

.about-skills .skill-badge {
  background: #f0f9f8;
  color: #24A79F;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(36, 167, 159, 0.2);
  transition: all 0.3s ease;
}

.about-skills .skill-badge:hover {
  background: #24A79F;
  color: #fff;
  transform: translateY(-2px);
}

/* Cita destacada */
.about-quote {
  background: #fff;
  border-left: 4px solid #24A79F;
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
  font-style: italic;
  color: #555;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.about-quote strong {
  color: #1a1a1a;
  font-style: normal;
}

/* === Sección Contacto - Diseño mejorado === */
.contact {
  padding: 5rem 2rem;
  background: #ffffff;
  position: relative;
}

.contact .container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.contact h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #24A79F;
  border-radius: 2px;
}

.contact p {
  font-size: 1.15rem;
  color: #4a4a4a;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Enlace de email estilizado */
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #24A79F;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  background: #f0f9f8;
  border-radius: 30px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.contact-email:hover {
  background: #24A79F;
  color: #fff;
  border-color: #24A79F;
  transform: translateY(-2px);
}

.contact-email i {
  font-size: 1.2rem;
}

/* Botones de contacto alternativos */
.contact-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #fff;
  color: #333;
  text-decoration: none;
  border: 2px solid #e0e0e0;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  border-color: #24A79F;
  color: #24A79F;
  transform: translateY(-2px);
}

.contact-btn i {
  font-size: 1.1rem;
}

/* Separador sutil entre secciones */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #e0e0e0, transparent);
  margin: 0 auto;
  max-width: 600px;
}

/* Responsive */
@media (max-width: 768px) {
  .about, .contact {
    padding: 4rem 1.5rem;
  }
  
  .about h2, .contact h2 {
    font-size: 1.75rem;
  }
  
  .about p, .contact p {
    font-size: 1.05rem;
  }
  
  .about-skills {
    justify-content: center;
  }
  
  .contact-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/*---------------------------------------*/


/*-----------------------------------------*/
/* === Sección de Proceso === */
.process-section {
  padding: 5rem 0;
}

.process-phase {
  margin-bottom: 4rem;
}

.phase-icon i {
  color: #24A79F;
  transition: transform 0.3s ease;
}

.phase-icon:hover i {
  transform: scale(1.1);
}

.process-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.process-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
}

.process-list li i {
  margin-top: 0.25rem;
}

/* Timeline */
.timeline-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 2rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, #24A79F, #4ecdc4);
  transform: translateY(-50%);
  z-index: 0;
}

.timeline-item {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
}

.timeline-marker {
  width: 50px;
  height: 50px;
  background: #24A79F;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin: 0 auto 1rem;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(36, 167, 159, 0.3);
}

.timeline-content h5 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: #1a1a1a;
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.tool-item {
  background: white;
  border-radius: 12px;
  padding: 2rem 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .timeline-container {
    flex-direction: column;
  }
  
  .timeline-container::before {
    display: none;
  }
  
  .timeline-item {
    margin-bottom: 2rem;
  }
  
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
/*-----------------------------------------*/

/* === Ajustes Responsivos para Sección de Contacto === */

@media (max-width: 768px) {
  
  /* 1. Contenedor del botón de email */
  .contact-email {
    width: 100%;           /* Ocupa todo el ancho disponible */
    max-width: 320px;      /* Límite para que no se estire demasiado */
    font-size: 0.9rem;     /* Reduce ligeramente el tamaño de letra */
    padding: 0.75rem 1rem; /* Ajusta el relleno */
    
    /* CLAVE: Permite que el texto se parta en dos líneas si no cabe */
    white-space: normal;   
    word-break: break-all; 
    
    /* Centrado perfecto */
    display: inline-flex;  
    justify-content: center;
    align-items: center;
    margin: 0 auto;        /* Centra el bloque */
    gap: 8px;              /* Espacio entre icono y texto */
  }

  /* 2. Botones secundarios (LinkedIn, Ver proyectos) */
  .contact-btn {
    width: 100%;           /* Botones full width para fácil toque con el dedo */
    max-width: 320px;
    justify-content: center;
    margin-bottom: 0.75rem; /* Espacio entre botones */
  }

  /* 3. Ajuste del contenedor general */
  .contact .container {
    padding: 0 1.5rem;     /* Da un poco más de aire a los lados */
  }
}

/*----------------------------------------------*/


/*-----------------------------------------------*/
/* === Sección de Impacto y Métricas === */
.impact-section {
  background-color: #f8f9fa; /* Fondo sutil */
  border-top: 1px solid #e9ecef;
}

.metric-card {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease;
  height: 100%;
}

.metric-card:hover {
  transform: translateY(-5px);
}

.metric-icon {
  font-size: 2.5rem;
  color: #24A79F; /* Tu color de acento */
  margin-bottom: 1rem;
}

.metric-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 1rem;
  color: #555;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.metric-description {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.4;
}
/*-----------------------------------------------*/

/*-------------------------------------------------*/
/* === Logos de Universidades - Emeritus === */
.university-card {
  background: #fff;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border: 1px solid #f0f0f0;
}

.university-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.university-logo {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(0%);
  transition: filter 0.3s ease;
}

.university-card:hover .university-logo {
  filter: grayscale(20%);
}

/* Ajuste para logos muy grandes o con mucho espacio en blanco */
.university-logo {
  max-height: 80px;
  width: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .university-logo {
    max-height: 60px;
  }
  
  .university-card {
    padding: 1.5rem !important;
  }
}
/*--------------------------------------------------*/

/*-----------------------------------------*/
.hero-bg {
  background-size: cover;
  background-position: center 40%; /* Ajusta el % vertical */
  /* center top, center center, center bottom */
  /* 50% 50% = centro exacto */
  /* 50% 30% = centro horizontal, 30% desde arriba */
}

@media (max-width: 768px) {
  .hero-bg {
    background-position: center 50%; /* En móvil, centrar verticalmente */
  }
}
/*-----------------------------------------*/