/* Resetear margen y padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilos generales */
body {
  font-family: 'Roboto', sans-serif;
  color: #343a40;
  background-color: #f8f9fa;
  padding-bottom: 60px;
}

header.hero {
  background-image: url('https://img.freepik.com/free-photo/programming-background-with-person-working-with-codes-computer_23-2150010125.jpg?semt=ais_items_boosted&w=740');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

header.hero.hero-big {
  min-height: 100vh;
}

header.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}


header {
  background-color: #1b263b;
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}
/* Header enhancements */
.header-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.nav-links {
  margin-top: 20px;
}

.nav-links a {
  margin: 0 10px;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background 0.3s;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.tagline {
  font-size: 1.2em;
  margin: 10px 0 20px;
  font-weight: 300;
}


h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8em;
  margin-bottom: 10px;
}

p {
  font-size: 1.2em;
  font-weight: 300;
}

main {
  padding: 20px;
  max-width: 900px;
  margin: 20px auto;
}

.content-section {
  margin: 40px 0;
  text-align: center;
}

.alt-bg {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 10px;
}

#contact p {
  margin: 10px 0;
}

#contact .button {
  margin-top: 10px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2em;
  margin-bottom: 20px;
}

footer {
  background-color: #1b263b;
  color: white;
  padding: 20px;
  text-align: center;
}

footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2em;
  }

  main {
    padding: 10px;
  }

  .content-section {
    margin: 20px 0;
  }
}


.projects-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.projects-list li {
  margin: 10px;
}

.project-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 250px;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.project-card h3 {
  margin-bottom: 10px;
  font-size: 1.3em;
  color: #343a40;
}

.project-card p {
  font-size: 0.9em;
  color: #6c757d;
}

.project-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.button {
  background: linear-gradient(45deg, #0069d9, #0053a4);
  color: #fff;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin: 20px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  border: none;
}

.button.small {
  padding: 4px 10px;
  font-size: 0.8em;
}

.button:hover {
  background-color: #0053a4;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Fade-in animation for sections */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1.1s ease-out, transform 1.1s ease-out;
}

/* Scroll to top button */
.to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #0069d9;
  color: #fff;
  font-size: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* Scroll indicator arrow */
.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: #fff;
  animation: arrow-blink 1.5s infinite;
  z-index: 1;
}

@keyframes arrow-blink {
  0%, 100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 0.4;
    transform: translate(-50%, 10px);
  }
}

/* Date cards */
.date-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.date-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex: 1 1 200px;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Confirmations lists */
.list {
  margin: 30px 0;
  text-align: center;
}
.list h3 {
  margin-bottom: 15px;
  font-size: 1.4em;
  display: flex;
  justify-content: center;
  align-items: center;
}
.list h3 .count {
  font-size: 0.8em;
  color: #0069d9;
  margin-left: 8px;
}
.list ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.list li {
  background-color: rgba(0, 0, 0, 0.05);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.9em;
}

@media (max-width: 600px) {
  .date-cards {
    flex-direction: column;
    align-items: center;
  }

  .date-card {
    flex: 0 0 auto;
    padding: 12px 16px;
    width: 90%;
    max-width: 350px;
  }

  header {
    position: relative;      /* la referencia para la flecha */
  }

  .scroll-down {
    position: absolute;
    /* 100dvh = alto dinámico del viewport.
       40px = aprox. alto de la flecha; ajustalo a gusto. */
    top: calc(100dvh - 70px);
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
  }
}

