:root {
  --primary: #2563eb;
  --secondary: #f43f5e;
  --text: #0f172a;
  --text-light: #383838;
  --glass: rgba(255, 255, 255, 0.75);
  --border: rgba(255, 255, 255, 0.4);
  --card-bg: rgba(255, 255, 255, 0.85);
  --bg-gradient: linear-gradient(180deg, #d3e6f5 0%, #8cd2f8 50%, #065ed1 100%);
}

.dark {
  --text: #f8fafc;
  --text-light: #000000;
  --glass: rgba(15, 23, 42, 0.75);
  --border: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(30, 41, 59, 0.8);
  --bg-gradient: linear-gradient(180deg, #020617 0%, #1e1b4b 50%, #312e81 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-gradient);
  background-attachment: scroll;
  background-size: 100% 100%;
  color: var(--text);
  min-height: 100vh;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}

nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  padding: 12px 25px;
  background: var(--glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border);
  border-radius: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand img {
  width: 35px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.7;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--primary);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  padding: 160px 20px 80px;
  text-align: center;
}

.badge {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: inline-block;
}

h1 {
  font-size: clamp(2.2rem, 8vw, 4rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 40px;
  margin-bottom: 30px;
}

.valentine-banner {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 2px dashed var(--secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dark .valentine-banner {
  background: linear-gradient(135deg, #4c0519 0%, #881337 100%);
}

.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 20px;
}

.gallery-grid img:hover {
  transform: scale(1.04);
}

.map-container {
  width: 100%;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 20px;
}

footer {
  background-color: rgb(255, 255, 255);
  padding: 80px 5% 40px;
  border-top: 1px solid var(--border);
  margin-top: 100px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
}

.modal {
  display: none; 
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 85%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 20px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s;
}

.close-modal:hover {
  transform: scale(1.2);
}

.enlaces {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: all 0.3s ease;
}

.enlaces:hover {
    color: #2563eb !important;
    transform: scale(1.1);
}

@media (max-width: 768px) {
  nav {
    width: 95%;
    padding: 10px 20px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 120px 10px 50px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .card {
    padding: 25px 15px;
    margin-bottom: 20px;
    width: 100%;
  }



  .stats {
    flex-direction: column;
    gap: 25px;
  }

  .stat-item h3 {
    font-size: 2rem;
  }

  .valentine-banner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .gallery-grid img {
    height: 140px;
  }

  footer {
    padding: 50px 20px 30px;
    margin-top: 50px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: center;
  }

  .modal-content {
    max-width: 92%;
    max-height: 75vh;
  }

  .close-modal {
    top: 15px;
    right: 20px;
    font-size: 35px;
  }
}