
body {
  height: 100%;
  font-family: "Comfortaa", sans-serif;
  font-weight: 400;
  background-color: #ffffff;
  color: #0a0a0a;
  margin: 0;
  overflow-x: hidden;
  transition: background 0.5s ease-in-out, color 0.5s ease-in-out;
}
body::-webkit-scrollbar { display: none; }
*{
  animation: fadeIn 0.7s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.btn {
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.4s ease;
  background: linear-gradient(135deg, #ff5f6d, #ffc371);
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.25);
  transform: skewX(-25deg);
  transition: left 0.5s ease;
  z-index: -1;
}
.btn:hover::before {
  left: 120%;
}
.btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.heroSection {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  perspective: 1000px;
}
.heroSection::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('img/eventos/20.webp');
  background-size: cover;
  background-position: center;
  animation: zoomBackground 20s ease-in-out infinite alternate;
  transform: scale(1.05) translateZ(-50px);
  z-index: 0;
}
@keyframes zoomBackground {
  from { transform: scale(1); }
  to { transform: scale(1.2); }
}
.heroText {
  text-align: center;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  animation: fadeIn 1.2s ease;
}
.heroHead { font-size: 55px; margin-bottom: 10px; transition: text-shadow 0.4s ease; }
.heroHead:hover { text-shadow: 0 4px 15px rgba(255,95,109,0.5); }
.heroDescription { font-size: 18px; opacity: 0.85; }
.card {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card img {
  border-radius: 20px 20px 0 0;
  transition: transform 0.5s ease;
}
.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}
.card:hover img { transform: scale(1.08); }
.img-departamento {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
}
.img-departamento:hover {
  transform: scale(1.07) rotate(1deg);
  filter: brightness(1.1) contrast(1.05);
  box-shadow: 0 10px 28px rgba(0,0,0,0.5);
}
.modal-img {
  display: none;
  position: fixed; inset: 0;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
}
.modal-img-content {
  margin: auto;
  display: block;
  max-width: 85%;
  max-height: 80%;
  border-radius: 15px;
  animation: zoomIn 0.5s ease;
}
@keyframes zoomIn {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.close-btn, .prev-btn, .next-btn {
  position: absolute;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  user-select: none;
}
.close-btn { top: 20px; right: 30px; }
.prev-btn { left: 20px; top: 50%; transform: translateY(-50%); padding: 10px; }
.next-btn { right: 20px; top: 50%; transform: translateY(-50%); padding: 10px; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; bottom: 20px; right: 20px;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2ee074, #1ebe57);
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.45), 0 0 12px rgba(37, 211, 102, 0.35) inset;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 1050;
  animation: whatsapp-pulse 2.5s infinite ease-in-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.18) rotate(8deg);
  box-shadow: 0 12px 28px rgba(37,211,102,0.65), 0 0 18px rgba(255,255,255,0.4) inset;
}
.whatsapp-float img { width: 34px; height: 34px; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35)); }
@keyframes whatsapp-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.map-container {
  position: relative;
  width: 100%; max-width: 900px;
  margin: 40px auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.map-container iframe {
  width: 100%; height: 450px; border: 0;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.map-container:hover iframe {
  transform: scale(1.02); filter: brightness(1.1);
}
.video-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}
.video-section video {
  width: 100%; height: 700px;
  object-fit: cover;
}
.video-overlay { position: absolute; top:0; left:0; width:100%; height:100%; }
.terraza-card { background: #ffffff; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.terraza-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15); }
.terraza-icon { width: 80px; height: 80px; object-fit: contain; margin: 0 auto; }
.terraza-card img {
  width: 80%;        /* Ocupa la mayoría del ancho de la card */
  max-width: none;   /* Quita el límite máximo fijo */
  height: auto;      /* Mantiene la proporción */
  margin: 0 auto 1rem;
  display: block;
  object-fit: cover;
}
@media (max-width: 1024px) {
  .heroHead { font-size: 42px; padding: 0 15px; }
  .heroDescription { font-size: 16px; padding: 0 20px; }
}
@media (max-width: 768px) {
  .heroHead { font-size: 32px; line-height: 1.3; padding: 0 10px; }
  .heroDescription { font-size: 14px; padding: 0 15px; }
  .heroText { width: 90%; }
}
@media (hover: none) {
  .btn:hover, .card:hover, .img-departamento:hover, .whatsapp-float:hover {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
  }
}

@media (prefers-color-scheme: dark) {
  .bg-light {
    background-color: #1a1a1a !important; /* más oscuro para contraste */
    color: #eaeaea; /* texto claro */
  }
}
img[data-src] { opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease; transform: translateY(10px); }
img.loaded { opacity: 1; transform: translateY(0); }
.social-section {
  text-align: center;
  padding: 60px 20px;
  background: #f8f8f8; /* Fondo neutro para destacar tarjetas */
}
.social-section h2 {
  font-size: 32px;
  font-weight: bold;
  background: linear-gradient(90deg, #ff5f6d, #ffc371);
  -webkit-text-fill-color: transparent;
  margin-bottom: 50px;
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px;
  border-radius: 25px;
  background: #ffffff; /* Fondo sólido para más limpieza */
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  text-decoration: none;
  color: #333;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.social-card img {
  width: 100px;  /* Más grande que antes */
  height: auto;
  margin-bottom: 15px;
}

.social-card span {
  font-size: 18px;
  font-weight: 600;
}
.social-card:hover {
  transform: translateY(-8px) scale(1.08);
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}
@media (max-width: 768px) {
  .social-grid { gap: 20px; }
  .social-card { padding: 25px; }
  .social-section h2 { font-size: 28px; }
  .social-card img { width: 50px; height: 50px; }
}

    .card {
        position: relative;
        overflow: hidden;
        border-radius: 20px;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .card-img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .card:hover .card-img {
        transform: scale(1.1); /* Zoom al pasar el mouse */
    }

    .card-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 15px;
        font-size: 1.3rem;
        font-weight: bold;
        background: rgba(0, 0, 0, 0.6);
        text-align: center;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    .card:hover {
        transform: translateY(-5px); /* Efecto de elevar la tarjeta */
        box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    }
.navbar-toggler {
  border: none; 
}
.navbar-toggler-icon {
  filter: invert(0.9);
}
@media (prefers-color-scheme: dark) {
  body {
    background-color: #0d0d0d; /* fondo base oscuro */
    color: #eaeaea; /* texto claro */
  }

  .bg-light {
    background-color: #1a1a1a !important;
    color: #eaeaea;
  }
  .text-muted {
    color: #b0b0b0 !important; 
  }
  .small {
    color: #c9c9c9 !important; 
  }
}
@media (prefers-color-scheme: dark) {
  .card {
    background-color: #1e1e1e !important; 
    color: #eaeaea !important;            
  }
  .card-title, 
  .card-text {
    color: #eaeaea !important; /* fuerza texto visible */
  }
}
