/* ==================================================
   VARIABLES BASE
================================================== */
:root {
  --color-primary: #0066cc;
  --color-primary-dark: #004a99;
  --color-primary-light: #5ec0f8;
  --color-primary-lightest: #80d3f9;
  --color-text: #333;
  --color-text-soft: #555;
}

/* ==================================================
   RESET Y BODY
================================================== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text);
  line-height: 1.6;
  background: linear-gradient(160deg, #eaf4ff 0%, #ffffff 100%);
}

/* ==================================================
   HEADER / NAV
================================================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: rgba(0, 102, 204, 0.9);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-weight: bold;
  font-size: 1.3em;
}

.nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav ul li {
  margin-left: 20px;
}

.nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
  padding: 6px 10px;
  border-radius: 6px;
}

.nav ul li a:hover {
  background-color: rgba(255,255,255,0.15);
}

.nav ul li a.active {
  background-color: #fff;
  color: #0066cc;
}


.hamburger {
  font-size: 1.8em;
  cursor: pointer;
  display: none;
}

/* ==================================================
   HERO QUIEN SOY
================================================== */
.hero-quien-soy {
  width: 100%;
  min-height: 400px;
  background-image: url('images/foto_perfil_wide.jpeg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin: 20px 0 40px 0;
}

.hero-overlay {
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* ==================================================
   FOTO PERFIL
================================================== */
.foto-section {
  text-align: center;
  margin: 20px 0 40px 0;
}

.foto-perfil {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 20px auto;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.foto-section h2 {
  color: var(--color-primary);
  margin: 10px 0 5px 0;
}

.foto-section p {
  font-size: 1rem;
  color: var(--color-text-soft);
  margin: 0;
}

/* ==================================================
   SECCIONES GENERALES
================================================== */
.contenido {
  background-color: rgba(255,255,255,0.85);
  padding: 25px 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ==================================================
   TITULOS
================================================== */
h1 {
  font-size: 2em;
  color: var(--color-primary);
  margin: 20px 0;
}

/* ==================================================
   ACORDEÓN
================================================== */
h3.accordion-toggle {
  background-color: #f4f7fb;
  padding: 12px 15px;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-bottom: 5px;
}

h3.accordion-toggle:hover {
  background-color: #e6eef9;
}

h3.accordion-toggle::after {
  content: "▼";
  position: absolute;
  right: 15px;
  transition: transform 0.3s ease;
}

h3.accordion-toggle.active::after {
  transform: rotate(90deg);
}

.accordion-content {
  display: block;
  margin-top: 10px;
}

/* ==================================================
   LISTAS
================================================== */
ul {
  padding-left: 25px;
  margin: 0;
}

.precios li {
  margin-bottom: 12px;
}

.precio {
  color: var(--color-primary);
  font-weight: bold;
}

/* ==================================================
   BOTONES CTA
================================================== */
.cta-container {
  text-align: center;
  margin: 40px 0;
}

.cta {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 15px 25px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.cta:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* ==================================================
   EXPERIENCE BANNER
================================================== */
.experience-banner {
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: url('images/fondo_experiencia.png') center/cover no-repeat;
  padding: 60px 20px;
}

.experience-banner_recuadro {
  background: rgba(0,0,0,0.5);
  padding: 40px 20px;
  border-radius: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.experience-banner h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--color-primary-lightest);
}

.experience-banner h3 {
  font-size: 1.1rem;
  margin-bottom: 35px;
  line-height: 1.5;
}

/* ==================================================
   FLEX BLOQUES
================================================== */
.flex-wrapper {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.flex-wrapper .flex {
  flex: 1 1 200px;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0,0,0,0.3);
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flex-wrapper .flex img {
  width: 55px;
  height: 55px;
  margin-bottom: 15px;
}

.flex-wrapper .flex h3 {
  font-size: 1rem;
  line-height: 1.4;
  color: #fff;
}

.flex-wrapper .flex h3 span {
  display: block;
  font-weight: bold;
  margin-top: 5px;
  color: var(--color-primary-light);
}

/* Iconos experiencia */
.flex img {
  filter: invert(48%) sepia(81%) saturate(2700%) hue-rotate(182deg)
          brightness(95%) contrast(92%);
}

/* ==================================================
   MAPA
================================================== */
.map-section {
  margin-top: 50px;
}

/* ==================================================
   SOCIAL
================================================== */
.social-links-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 50px 0;
    flex-wrap: wrap;
}

/* .social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 30px;
    text-decoration: none;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    color: white;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
} */

.social-btn, .copy-btn {
    display: flex;
    align-items: center;
    justify-content: center; /* Centra el contenido horizontalmente */
    gap: 12px;
    padding: 14px 0; /* Quitamos el padding lateral para que mande el width */
    width: 150px;    /* O el ancho que prefieras, pero que sea el mismo para ambos */
    text-decoration: none;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    border: none;    /* Para que el botón de copiar no tenga bordes raros */
    cursor: pointer;
}

.social-btn{
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

}

/* Asegúrate de que el botón de copiar tenga el mismo gradiente o estilo base */
.copy-btn {
    background: linear-gradient(135deg, #636e72 0%, #2d3436 100%); /* Un color neutro */
}

/* Degradado para X (Twitter) - Negro elegante a Gris oscuro */
.social-btn.twitter {
    background: linear-gradient(135deg, #000000 0%, #2d3436 100%);
}

/* Degradado para Gmail - Rojo Google a Naranja vibrante */
.social-btn.email {
    background: linear-gradient(135deg, #f3e526 0%, #ff6b6b 100%);
}

/* Efecto de brillo al pasar el ratón */
.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.social-btn i {
    font-size: 1.3rem;
}

/* El botón pequeño de copiar */
/* Estilo para que el botón de copiar tenga texto */
/* .copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: #f0f0f0;
    color: #555;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
    position: relative; 
    transition: all 0.3s ease;
} */

.copy-btn:hover { background: #0e6a7aab; }

/* El mensajito flotante (Tooltip) */
.tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 125%; /* Aparece arriba del botón */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

/* Flechita del mensajito */
.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Clase que activaremos con JS */
.tooltip.show {
    visibility: visible;
    opacity: 1;
}

/* Color verde para el botón al copiar */
.copy-btn.success {
    background-color: #27ae60 !important;
    color: white !important;
}

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

  /* NAV */
  .nav {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: rgba(0, 102, 204, 0.95);
    width: 200px;
    display: none;
    flex-direction: column;
    padding: 10px 0;
    border-radius: 0 0 5px 5px;
  }

  .nav ul {
    flex-direction: column;
  }

.nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
  padding: 6px 10px;
  border-radius: 6px;
}

.nav ul li a:hover {
  background-color: rgba(255,255,255,0.15);
}

.nav ul li a.active {
  background-color: #fff;
  color: #0066cc;
}


  .hamburger {
    display: block;
  }

  /* FOTO */
  .foto-perfil {
    width: 160px;
    height: 160px;
  }

  /* FLEX */
  .flex-wrapper {
    flex-direction: column;
  }

  .flex-wrapper .flex {
    max-width: 100%;
  }

  /* TITULOS */
  h1 {
    font-size: 1.5em;
  }

  h3.accordion-toggle {
    font-size: 1rem;
  }

  /* CTA */
  .cta {
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  /* EXPERIENCE MOBILE BG */
  .experience-banner {
    background: url('images/fondo_experiencia_movil_2.png') center/cover no-repeat;
  }

  .experience-banner h2 {
    font-size: 1.8rem;
  }

  .experience-banner h3 {
    font-size: 1rem;
  }

  /*HERO QUIEN SOY  */
.hero-quien-soy {
    width: 100%;
    /* Define la proporción exacta 3:2 */
    aspect-ratio: 3 / 2; 
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Centrado total del contenido */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-overlay {
    /* Ya no necesita ser absoluto, el flex del padre lo centra */
    padding: 20px;
    color: white; /* Ajusta según necesites */
}

.hero-quien-soy h2 {
    margin: 0;
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    /* Tamaño para móvil */
    font-size: 7vw; 
    padding: 0 5%;
}
  
}
