/* 
ESTILOS COMPLETOS PARA PLANTILLA DE CV 
===============================================================
👨‍💻 Solo cambia LOS COLORES  para personalizar tu CV.
🚫 No toques nada más para evitar que algo se desconfigure.
*/

:root {
  /* 🎨 Colores principales del diseño */
  --color-primario: #03a29e;         /* Color principal: se usa en encabezados, botones y títulos importantes */
  --color-secundario: #2c3e50;       /* Color secundario: usado en el pie de página y detalles menos destacados */

  /* ✍️ Colores para el texto */
  --color-texto: #333;               /* Color para el texto normal que lees */
  --color-texto-claro: #777;         /* Color para textos menos importantes o secundarios */
  --color-texto-blanco: #fff;        /* Color para texto sobre fondos oscuros */

  /* 🖼️ Colores para los fondos */
  --color-fondo: #fff;               /* Fondo principal, generalmente blanco o muy claro */
  --color-fondo-secundario: #f9f9f9;/* Fondo para áreas secundarias, un tono muy suave */
  --color-fondo-terciario: #f2f2f2; /* Fondo para secciones más sutiles o divisiones */

  /* 📐 Colores para los bordes */
  --color-borde: #ddd;               /* Color para bordes claros de cajas y secciones */
  --color-borde-oscuro: #bbb;        /* Color para bordes un poco más oscuros */

  /* ✨ Colores para efectos */
  --color-hover: #f1f1f1;            /* Color para cuando pasas el mouse sobre botones o elementos */
  --color-sombra: rgba(0, 0, 0, 0.1);/* Sombra suave para dar profundidad a cajas y elementos */

 /* 🚫 Recuerda: No cambies nada fuera de esta sección para que todo siga funcionando bien. */
 
 
  --ancho-maximo: 1200px;
  --radio-borde: 10px;
  --separacion-secciones: 80px;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  color: var(--color-texto);
  background-color: var(--color-fondo);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ESTRUCTURA PRINCIPAL */
.contenedor {
  width: 90%;
  max-width: var(--ancho-maximo);
  margin: 0 auto;
  padding: 0 15px;
}

/* HEADER SIMPLE */
.header-simple {
  background-color: var(--color-primario);
  color: var(--color-texto-blanco);
  padding: 30px 0 100px;
  position: relative;
  text-align: center;
  box-shadow: 0 4px 12px var(--color-sombra);
}

.menu {
  padding: 20px 0;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.menu a {
  margin: 0 15px;
  padding-bottom: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.menu a:hover {
  color: var(--color-hover);
  border-bottom-color: currentColor;
}

.contenedor-texto {
  padding: 40px 0;
}

.texto {
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radio-borde);
  padding: 30px 60px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  display: inline-block;
  box-shadow: 0 10px 30px var(--color-sombra);
  transition: all 0.3s ease;
}

.texto:hover {
  transform: scale(1.05);
  backdrop-filter: blur(8px);
}

.name {
  font-size: 3rem;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.texto p {
  font-size: 1.5rem;
  opacity: 0.9;
}

/* SECCIÓN ACERCA DE */
.acercade {
  padding: var(--separacion-secciones) 0;
  background-color: var(--color-fondo-secundario);
  position: relative;
}

.foto {
  position: absolute;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.foto img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--color-fondo);
  box-shadow: 0 5px 15px var(--color-sombra);
  transition: all 0.3s ease;
}

.foto img:hover {
  transform: translateX(-50%) scale(1.1) rotate(5deg);
}

.cajaAcerca {
  margin-top: 60px;
  background: var(--color-fondo);
  padding: 40px;
  border-radius: var(--radio-borde);
  box-shadow: 0 5px 15px var(--color-sombra);
}

.conte-princi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.conte-parrafo {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.conte-parrafo p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.img-acerca img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radio-borde);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px var(--color-sombra);
}

.img-acerca img:hover {
  transform: scale(1.02);
}

/* TÍTULOS DE SECCIÓN */
.titulo {
  font-size: 2.5rem;
  color: var(--color-primario);
  margin: 40px 0;
  position: relative;
  padding-bottom: 10px;
  text-align: center;
}

.titulo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--color-primario);
}

/* SECCIÓN EXPERIENCIA */
.experiencia {
  padding: var(--separacion-secciones) 0;
  background-color: var(--color-fondo);
}

.seccion-exp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  background: var(--color-fondo);
  padding: 30px;
  border-radius: var(--radio-borde);
  box-shadow: 0 5px 15px var(--color-sombra);
}

.titulo-Experiencia {
  flex: 1;
  min-width: 300px;
}

.titulo-Experiencia h3 {
  color: var(--color-secundario);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.titulo-Experiencia h4 {
  color: var(--color-primario);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.opaco {
  color: var(--color-texto-claro);
  font-style: italic;
  margin-bottom: 15px;
}

.exp-parrafo {
  line-height: 1.8;
}

.exp-imag {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.exp-imag img {
  border-radius: var(--radio-borde);
  box-shadow: 0 5px 15px var(--color-sombra);
  transition: all 0.3s ease;
}

.exp-imag img:hover {
  transform: scale(1.02);
}

/* SECCIÓN HABILIDADES */
.habilidades {
  padding: var(--separacion-secciones) 0;
  background-color: var(--color-fondo-secundario);
}

.hab-desktop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card-progress {
  background: var(--color-fondo);
  padding: 25px;
  border-radius: var(--radio-borde);
  box-shadow: 0 5px 15px var(--color-sombra);
  transition: all 0.3s ease;
}

.card-progress:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--color-sombra);
}

.card-progress h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--color-secundario);
}

progress {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background-color: #eee;
  border: none;
}

progress::-webkit-progress-bar {
  background-color: #eee;
  border-radius: 5px;
}

progress::-webkit-progress-value {
  background-color: var(--color-primario);
  border-radius: 5px;
}

/* SECCIÓN CERTIFICACIONES */
/* Estilos para la sección de certificaciones */
.certificaciones {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.contenedor-certificados {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.card-certificado {
  width: 300px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.card-certificado:hover {
  transform: translateY(-10px);
}

.img-certificado {
  width: 100%;
  height: auto;
  display: block;
}

.overlay-certificado {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.card-certificado:hover .overlay-certificado {
  transform: translateY(0);
}

.texto-overlay h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.btn-ver {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 15px;
  background: #4CAF50;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

/* SECCIÓN CONTACTO - ACTUALIZADO */
.contac {
  padding: var(--separacion-secciones) 0;
  background-color: var(--color-fondo-secundario);
  text-align: center;
}

.casillas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: var(--color-fondo);
  padding: 40px 30px; /* Aumenté el padding vertical */
  border-radius: var(--radio-borde);
  box-shadow: 0 5px 15px var(--color-sombra);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--color-borde);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--color-sombra);
}

.icono-contacto {
  font-size: 2.5rem; /* Aumenté el tamaño */
  color: var(--color-primario);
  margin-bottom: 20px; /* Más espacio debajo del icono */
  transition: transform 0.3s ease;
}

.card:hover .icono-contacto {
  transform: scale(1.1); /* Efecto de escala al hacer hover */
}

.enlace-contacto {
  color: var(--color-texto);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  font-weight: 500;
}

.card:hover .enlace-contacto {
  color: var(--color-primario);
  text-decoration: underline;
}

/* FOOTER */
.footer {
  background-color: var(--color-secundario);
  color: var(--color-texto-blanco);
  padding: 40px 0;
  text-align: center;
}

.contenido-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer .menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.footer .menu a {
  margin: 0 15px;
  color: var(--color-texto-blanco);
}

.footer .menu a:hover {
  color: var(--color-hover);
}

.dev-erick h4 {
  margin-top: 20px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ESTILOS RESPONSIVOS */
@media (max-width: 992px) {
  .img-cert {
    width: 100%;
    margin: 10px 0;
  }
}

@media (max-width: 768px) {
  :root {
    --separacion-secciones: 60px;
  }
  
  .header-simple {
    padding-bottom: 80px;
  }
  
  .texto {
    padding: 20px 40px;
  }
  
  .name {
    font-size: 2.5rem;
  }
  
  .texto p {
    font-size: 1.2rem;
  }
  
  .conte-princi, .seccion-exp {
    flex-direction: column;
  }
  
  .titulo {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .menu a {
    margin: 5px 10px;
    font-size: 1rem;
  }
  
  .name {
    font-size: 2rem;
  }
  
  .texto {
    padding: 20px 30px;
  }
  
  .foto img {
    width: 150px;
    height: 150px;
  }
  
  .card {
    padding: 20px;
  }
  
  .hab-desktop {
    grid-template-columns: 1fr;
  }
}

/* Selector de idioma */
.language-selector {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 5px;
  background: rgba(255, 255, 255, 0.9);
  padding: 5px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lang-btn {
  border: none;
  background: none;
  padding: 5px 10px;
  border-radius: 15px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.lang-btn.active {
  background: var(--color-primario);
  color: white;
}

.lang-btn:not(.active):hover {
  background: var(--color-fondo-terciario);
}


#activador-licencia {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            font-family: Arial, sans-serif;
        }

        .activador-contenido {
            background: white;
            padding: 30px;
            border-radius: 10px;
            text-align: center;
            max-width: 350px;
            width: 90%;
        }

        #input-licencia {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            margin-bottom: 15px;
            text-align: center;
        }

        .btn-activar {
            background: #007cba;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            width: 100%;
        }

        #mensaje-activacion {
            margin-top: 15px;
            padding: 10px;
            border-radius: 5px;
            display: none;
        }

        .mensaje-exito { background: #e8f5e8; color: #2e7d32; }
        .mensaje-error { background: #ffebee; color: #c62828; }

        #contenido-principal {
            display: none;
        }