/* ================================================
   LAYOUT & NAVIGATION STYLES
   ================================================ */

/* NAV & HEADER */
header {
  background-color: #007A3D;
  /* Verde Italia oscurecido para contraste de links */
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  box-shadow: 0 2px 8px rgba(0, 80, 40, 0.25);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  width: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.logo span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: var(--transition-fast);
  position: relative;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

/* Ítem Contacto como CTA rojo */
.nav-menu li:last-child a {
  background: var(--primary);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.nav-menu li:last-child a:hover {
  background: var(--primary-hover);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
}

/* HERO SECTION */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background: var(--secondary);
  /* fallback azul si la imagen no carga */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 20%;
  z-index: 1;
  animation: zoomIn 20s ease infinite;
}

@keyframes zoomIn {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(29, 59, 132, 0.8), rgba(29, 59, 132, 0.1), transparent);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xxl);
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  color: var(--white);
  font-size: var(--fs-h1);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 6px 16px rgba(15, 23, 42, 0.45);
}

.hero p {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
  text-shadow: 0 6px 16px rgba(15, 23, 42, 0.35);
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

/* Activity card styles → ver main.css (.activity-card-*) */

/* TIMELINE */
.timeline {
  position: relative;
  padding: var(--spacing-xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--secondary), var(--accent));
}

.timeline-items {
  display: grid;
  gap: var(--spacing-xl);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  margin: var(--spacing-lg) 0;
}

.timeline-item:nth-child(odd) .timeline-content {
  grid-column: 1;
}

.timeline-item:nth-child(even) .timeline-content {
  grid-column: 2;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--secondary);
  border: 3px solid var(--white);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 0 3px var(--secondary);
}

.timeline-content {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow);
}

.timeline-content h4 {
  color: var(--secondary);
  margin-top: 0;
}

/* TWO-COLUMN LAYOUT */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.two-col-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.two-col-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.two-col-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.two-col-image:hover img {
  transform: scale(1.05);
}

/* GALLERY GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  margin: var(--spacing-xl) 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(29, 59, 132, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-icon {
  color: var(--white);
  font-size: 2.5rem;
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-sm);
  margin: var(--spacing-xl) 0;
}

.pagination button,
.pagination a {
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition-fast);
}

.pagination button:hover,
.pagination a:hover {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.pagination button.active {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

/* FOOTER */
footer {
  background-color: #005C2E;
  /* Verde Italia más oscuro para que los textos blancos tengan contraste 8:1 */
  color: var(--white);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xxl);
  border-top: 4px solid transparent;
  /* Franja Italia / Uruguay simbólica en el borde superior del footer */
  border-image: linear-gradient(to right,
      #009246 0%, #009246 16.5%,
      #f0f0f0 16.5%, #f0f0f0 33%,
      #ce2b37 33%, #ce2b37 49.5%,
      rgba(255, 255, 255, 0.4) 49.5%, rgba(255, 255, 255, 0.4) 50.5%,
      #5B9BD5 50.5%, #5B9BD5 60%,
      #f0f0f0 60%, #f0f0f0 70%,
      #5B9BD5 70%, #5B9BD5 80%,
      #f0f0f0 80%, #f0f0f0 90%,
      #5B9BD5 90%, #5B9BD5 100%) 1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  margin-bottom: var(--spacing-sm);
}

.footer-section a:hover {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.footer-info {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  align-items: flex-start;
}

.footer-info-icon {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
  min-width: 20px;
}

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--spacing-lg);
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* BREADCRUMB */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text);
}