/* 
ESTILOS COMPLETOS PARA PLANTILLA DE CV 
===============================================================
👨‍💻 Solo puedes modificar: LOS COLORES.
🚫 Todo lo demás está bloqueado para evitar errores.
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 
Variables que controlan los colores y efectos principales de todo el sitio.
Solo cambia estos colores para darle tu toque personal.
*/

:root {
  --primary-color: #667eea;         
      /* Color principal: usado en botones, íconos y partes que quieres destacar */
  --secondary-color: #764ba2;       
      /* Color secundario: para detalles, fondos o elementos que acompañan */
  --accent-color: #5a3a87;          
      /* Color para efectos especiales, como cuando pasas el mouse (hover) */
  --text-color: #333;               
      /* Color del texto normal, para que sea fácil de leer */
  --light-text: #fff;               
      /* Color para texto claro, ideal para usar sobre fondos oscuros */
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      /* Fondo con degradado: usado en encabezados y áreas importantes */
  --card-shadow: 0px 8px 20px rgba(0,0,0,0.1);  
      /* Sombra suave para tarjetas y cajas, da profundidad y elegancia */
  --hover-shadow: 0px 12px 30px rgba(0,0,0,0.15); 
      /* Sombra más marcada para cuando pasas el cursor sobre botones o elementos */
}


body {
  font-family: 'Poppins', sans-serif;  
  background: linear-gradient(to right, #74ebd5, #acb6e5); /* Fondo con degradado azul claro */
  color: var(--text-color);             
  line-height: 1.6;                      
  min-height: 100vh;                    
  padding-bottom: 60px;                  
}

/* 🚫 Recuerda: No cambies nada fuera de esta sección para que todo siga funcionando bien. */
.header {
  background: var(--bg-gradient);
  color: var(--light-text);
  padding: 80px 20px;
  text-align: center;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.05)" d="M0,0 L100,0 L100,100 L0,100 Z" /></svg>');
  background-size: cover;
  opacity: 0.3;
}

.container-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.profile-img:hover {
  transform: scale(1.05);
}

.title {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(to right, #fff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.social-links {
  display: flex;
  gap: 20px;
  margin: 15px 0;
}

.social-icon {
  color: var(--light-text);
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.3s;
}

.social-icon:hover {
  background: var(--light-text);
  color: var(--secondary-color);
  transform: translateY(-3px);
}

.buttons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  text-decoration: none;
  background: var(--secondary-color);
  color: var(--light-text);
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-alt {
  background: transparent;
  border: 2px solid var(--light-text);
  color: var(--light-text);
}

.btn-alt:hover {
  background: var(--light-text);
  color: var(--secondary-color);
}

/* Main */
.main {
  max-width: 1200px;
  margin: 50px auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.card {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

h2 {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.4rem;
  color: var(--text-color);
  margin-bottom: 10px;
}

ul {
  list-style: none;
}

ul li {
  margin-bottom: 12px;
  font-size: 1.1rem;
  position: relative;
  padding-left: 25px;
}

ul li::before {
  content: "▹";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.timeline-item {
  position: relative;
  padding-left: 30px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  height: calc(100% - 20px);
  width: 2px;
  background: var(--primary-color);
}

.timeline-item:last-child::before {
  height: calc(100% - 40px);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--secondary-color);
  border: 3px solid var(--primary-color);
}

.company {
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.date {
  color: var(--secondary-color);
  font-weight: 500;
}

/* Skills */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.skill-category h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.skill-tags span {
  background: var(--primary-color);
  color: var(--light-text);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.skill-tags span:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.project-card {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 15px;
  transition: all 0.3s;
  border-left: 4px solid var(--primary-color);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.project-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.project-links a:hover {
  color: var(--accent-color);
}

/* Languages */
.language-levels {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.language {
  display: grid;
  grid-template-columns: 100px 1fr 100px;
  align-items: center;
  gap: 15px;
}

.level-bar {
  height: 10px;
  background: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
}

.level-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 5px;
  transition: width 1s ease-in-out;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.contact-card {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--primary-color);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.contact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: var(--bg-gradient);
  color: var(--light-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-card h3 {
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.contact-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  word-break: break-all;
}

.contact-link:hover {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px;
  font-size: 0.95rem;
  color: var(--text-color);
  margin-top: 60px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 60px 20px;
  }
  
  .title {
    font-size: 2.2rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
  
  .buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .language {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
/* 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;
  color: var(--primary-color);
}

.lang-btn.active {
  background: var(--primary-color);
  color: white;
}

.lang-btn:not(.active):hover {
  background: var(--light-color);
}



#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;
        }