:root { 
  --primary-color: #1D4E89;  /* Color principal (titulos, navbar, hover botones) */
  --accent-color: #4DAFFF;   /* Color de resalte */
  --light-bg: #A3C4E0;       /* Fondos suaves */
  --font-main: 'Work Sans', sans-serif;
  --border-radius-btn: 10px; /* Bordes de todos los botones */
  --border-radius-card: 12px; /* Bordes de cards e imágenes */
  --text-color: #1D4E89;     /* Texto principal unificado */
}

/* ====== GLOBAL ====== */
body {
  font-family: var(--font-main);
  color: var(--text-color);
  scroll-behavior: smooth;
}

h1, h2, h3 {
  font-weight: 700;
  color: var(--primary-color); /* Unifica todos los títulos */
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

section {
  padding-top: 80px;
}

/* ====== NAVBAR ====== */
.navbar {
  background-color: var(--primary-color);
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
}

.navbar a {
  color: white;
  font-weight: 600;
}

.navbar a:hover {
  color: var(--accent-color);
}

.logo-img {
  height: 45px;
  width: auto;
}

/* ====== HERO ====== */
.hero {
  height: 100vh;
  background: linear-gradient(180deg, var(--light-bg) 0%, #D7E6F5 100%),
              url('../img/bg-hero.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  color: var(--primary-color);
}

.hero-content .highlight {
  color: var(--accent-color);
}


/* ====== HERO ====== */
.hero {
  position: relative;
  height: 100vh;
  background: linear-gradient(180deg, #A3C4E0 0%, #D7E6F5 100%);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center; /* centra verticalmente */
  text-align: center;
  padding: 0 1rem; /* evita que el contenido toque los bordes en móviles */
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* detrás del contenido */
}

.hero-content {
  position: relative;
  z-index: 1; /* por encima del canvas */
  max-width: 800px;
  color: var(--primary-color);
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-content .highlight {
  color: var(--accent-color);
}

.hero-content p.lead {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.hero-content .btn {
  background-color: var(--accent-color);
  border: none;
  border-radius: 20px; /* coherente con los otros botones */
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  color: white;
  transition: all 0.3s ease;
}

.hero-content .btn:hover {
  background-color: var(--primary-color);
  transform: scale(1.05);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p.lead {
    font-size: 1rem;
  }

  .hero-content .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}



/* ====== BOTONES UNIFICADOS ====== */
.btn,
.btn-linkedin,
.contact-box button,
.project-card .btn {
  border-radius: var(--border-radius-btn);
  padding: 0.6rem 1.5rem;
  border: none;
  background-color: var(--accent-color);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover,
.btn-linkedin:hover,
.contact-box button:hover,
.project-card .btn:hover {
  background-color: var(--primary-color);
  transform: scale(1.05);
}

/* ====== SOBRE MÍ ====== */
.about-section {
  background-color: var(--light-bg);
  color: var(--primary-color);
}

.text-highlight {
  color:#fff;
}

.custom-input {
  max-width: 300px;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius-btn);
  padding: 0.5rem 1rem;
  color: var(--primary-color);
}

.about-photo img {
  width: 100%;
  border-radius: var(--border-radius-card);
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}


/* ====== CONTACT BOX ====== */
.contact-box {
  background-color: #fff;
  border-radius: var(--border-radius-card);
  padding: 20px;
  margin: 20px auto 0 auto;
  width: 85%;
  max-width: 350px;
  text-align: center;
  position: relative;
}

/* ====== SOCIAL LINKS ====== */
.social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 10px;
}

.social-link i {
  font-size: 2rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.social-link:hover i {
  color: var(--accent-color);
  transform: scale(1.2);
}

/* ====== PROYECTOS ====== */
.project-card {
  background-color: #fff;
  border-radius: var(--border-radius-card);
  transition: all 0.3s ease;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ====== SECCIÓN SKILLS ====== */
#skills {
  background: transparent;
  color: var(--primary-color);
  padding-top: 60px;
  padding-bottom: 60px;
}

.skill-card {
  background: #fff;
  border-radius: var(--border-radius-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(13, 40, 80, 0.08);
}

/* ====== BARRA DE PROGRESO ====== */
.skill-bar {
  width: 100%;
  height: 8px;
  background: #eef6ff;
  border-radius: 999px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  border-radius: 999px;
  transition: width 0.8s ease;
}

.skill-name i {
  font-size: 1.1rem;
  color: var(--accent-color);
}

/* ====== CONTACTO ====== */
.contact-section {
  background: linear-gradient(180deg, var(--light-bg) 0%, #D7E6F5 100%);
}

/* ====== FOOTER ====== */
footer {
  background-color: var(--primary-color);
  color: white;
}

footer i:hover {
  color: var(--accent-color);
  transition: color 0.3s;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  section:not(.about-section),
  .hero-content,
  .contact-section,
  #skills {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .project-card,
  .skill-card {
    margin-left: 0;
    margin-right: 0;
  }

  .about-section {
    padding-left: 0;
    padding-right: 0;
  }

  .about-photo img,
  .contact-box {
    margin-left: auto;
    margin-right: auto;
  }

  
}
