/* =================================================================== 
 * Hero Modern Styles - Fingeralizados
 * Mejoras visuales sin romper el layout base de main.css
 * ------------------------------------------------------------------- */

/* Hero con imagen de fondo */
#home {
  background-image: url('/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay oscuro mejorado */
.hero-bg {
  background: linear-gradient(
    135deg,
    rgba(14, 14, 18, 0.88) 0%,
    rgba(14, 14, 18, 0.80) 50%,
    rgba(14, 14, 18, 0.88) 100%
  ) !important;
}

/* Contenedor de animación flotante */
.floating-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* Elemento flotante base */
.float-element {
  position: absolute;
  display: block;
}

/* === SOBRES DE INVITACIÓN === */
.envelope {
  width: 40px;
  height: 28px;
  position: relative;
}

.envelope::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 28px;
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  border-radius: 2px;
  opacity: 0.2;
}

.envelope::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 14px solid rgba(46, 204, 113, 0.3);
  top: 0;
  left: 0;
}

.e1 { left: 8%; transform: scale(0.9); animation: floatUp 18s linear infinite, sway 5s ease-in-out infinite alternate; }
.e2 { left: 45%; transform: scale(0.7); animation: floatUp 22s linear infinite, sway 6s ease-in-out infinite alternate; }
.e3 { left: 78%; transform: scale(0.85); animation: floatUp 20s linear infinite, sway 4s ease-in-out infinite alternate; }

/* === CORAZONES === */
.heart {
  width: 24px;
  height: 24px;
  position: relative;
}

.heart::before,
.heart::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 20px;
  background: rgba(231, 76, 60, 0.25);
  border-radius: 20px 20px 0 0;
}

.heart::before {
  left: 12px;
  transform: rotate(-45deg);
  transform-origin: 0 100%;
}

.heart::after {
  left: 0;
  transform: rotate(45deg);
  transform-origin: 100% 100%;
}

.h1 { left: 15%; transform: scale(0.8); animation: floatUp 16s linear infinite, pulse 3s ease-in-out infinite, drift 7s ease-in-out infinite alternate; }
.h2 { left: 38%; transform: scale(0.6); animation: floatUp 24s linear infinite, pulse 4s ease-in-out infinite, drift 5s ease-in-out infinite alternate; }
.h3 { left: 62%; transform: scale(0.9); animation: floatUp 19s linear infinite, pulse 3.5s ease-in-out infinite, drift 6s ease-in-out infinite alternate; }
.h4 { left: 85%; transform: scale(0.7); animation: floatUp 21s linear infinite, pulse 4.5s ease-in-out infinite, drift 8s ease-in-out infinite alternate; }

/* === ANILLOS === */
.ring {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(52, 152, 219, 0.2);
  border-radius: 50%;
  position: relative;
}

.ring::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(52, 152, 219, 0.3);
  border-radius: 50%;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
}

.r1 { left: 25%; transform: scale(0.8); animation: floatUp 17s linear infinite, spin 8s linear infinite, drift 5s ease-in-out infinite alternate; }
.r2 { left: 70%; transform: scale(0.9); animation: floatUp 23s linear infinite, spin 10s linear infinite, drift 6s ease-in-out infinite alternate; }

/* === ESTRELLAS === */
.star {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20px solid rgba(241, 196, 15, 0.25);
  position: relative;
}

.star::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 20px solid rgba(241, 196, 15, 0.25);
  top: 6px;
  left: -12px;
}

.s1 { left: 20%; transform: scale(0.7); animation: floatUp 15s linear infinite, twinkle 2s ease-in-out infinite, drift 4s ease-in-out infinite alternate; }
.s2 { left: 52%; transform: scale(0.9); animation: floatUp 19s linear infinite, twinkle 2.5s ease-in-out infinite, drift 5s ease-in-out infinite alternate; }
.s3 { left: 82%; transform: scale(0.8); animation: floatUp 21s linear infinite, twinkle 3s ease-in-out infinite, drift 6s ease-in-out infinite alternate; }

/* === CONFETI === */
.confetti {
  width: 8px;
  height: 16px;
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.3) 0%, rgba(142, 68, 173, 0.3) 100%);
  border-radius: 2px;
}

.c1 { left: 12%; animation: floatUp 14s linear infinite, spin 3s linear infinite, drift 3s ease-in-out infinite alternate; }
.c2 { left: 48%; animation: floatUp 18s linear infinite, spin 4s linear infinite, drift 4s ease-in-out infinite alternate; }
.c3 { left: 75%; animation: floatUp 16s linear infinite, spin 3.5s linear infinite, drift 3.5s ease-in-out infinite alternate; }

/* === NOTAS MUSICALES === */
.music {
  width: 16px;
  height: 20px;
  position: relative;
}

.music::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(155, 89, 182, 0.25);
  border-radius: 50%;
  bottom: 0;
  left: 0;
}

.music::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 16px;
  background: rgba(155, 89, 182, 0.25);
  bottom: 8px;
  left: 8px;
}

.m1 { left: 32%; transform: scale(0.8); animation: floatUp 20s linear infinite, sway 4s ease-in-out infinite alternate; }
.m2 { left: 65%; transform: scale(0.9); animation: floatUp 17s linear infinite, sway 5s ease-in-out infinite alternate; }

/* === ANIMACIONES === */
@keyframes floatUp {
  0% { top: 110%; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.6; }
  100% { top: -10%; opacity: 0; }
}

@keyframes sway {
  0% { margin-left: 0; }
  100% { margin-left: 60px; }
}

@keyframes drift {
  0% { transform: translateX(0) rotate(0deg); }
  33% { transform: translateX(-20px) rotate(-8deg); }
  66% { transform: translateX(15px) rotate(5deg); }
  100% { transform: translateX(0) rotate(0deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* Ocultar blobs */
.hero-blob {
  display: none;
}

/* Hero subtitle */
.hero-subtitle {
  font-family: "muli-regular", sans-serif;
  font-size: 1.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 3rem;
  margin-top: -6rem;
  max-width: 540px;
}

/* Features list */
.hero-features {
  list-style: none;
  margin: 0 0 3rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: "muli-regular", sans-serif;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  padding: 0;
}

.hero-features li i {
  color: #2ecc71;
  font-size: 1.6rem;
  flex-shrink: 0;
}

/* Botones mejorados para desktop */
.home-content-left .buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.home-content-left .button {
  font-family: "montserrat-medium", sans-serif;
  font-size: 1.5rem;
  height: 5.4rem;
  line-height: 1;
  padding: 0 3rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-width: 180px;
  white-space: nowrap;
  box-sizing: border-box;
  border: 2px solid transparent;
}

.home-content-left .button-primary {
  background: #2ecc71;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.home-content-left .button-primary:hover {
  background: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.home-content-left .button-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.home-content-left .button-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.home-content-left .button-secondary i {
  font-size: 1.8rem;
  line-height: 1;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

/* Scroll button */
.home-scrolldown {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7) !important;
  font-family: "montserrat-regular", sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.scroll-icon span {
  display: block;
}

.scroll-icon i {
  font-size: 2rem;
  transform: rotate(-90deg);
  animation: arrow-bounce 2s ease-in-out infinite;
}

.scroll-icon:hover {
  color: #2ecc71 !important;
}

.scroll-icon:hover i {
  animation-play-state: paused;
  transform: rotate(-90deg) translateX(5px);
}

@keyframes arrow-bounce {
  0%, 100% { transform: rotate(-90deg) translateX(0); }
  50% { transform: rotate(-90deg) translateX(8px); }
}

/* Responsive Tablet */
@media only screen and (max-width: 1024px) {
  .hero-subtitle {
    font-size: 1.7rem;
    margin-top: -4rem;
  }
  
  .hero-features {
    font-size: 1.4rem;
  }
  
  .home-content-left .button {
    min-width: 160px;
    padding: 0 2.5rem;
    font-size: 1.4rem;
  }
  
  /* Reducir elementos en tablet */
  .float-element.e3,
  .float-element.h4,
  .float-element.s3,
  .float-element.c3,
  .float-element.m2 {
    display: none;
  }
}

/* Responsive Móvil */
@media only screen and (max-width: 768px) {
  /* Hero móvil optimizado */
  #home {
    height: auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
  
  .home-content {
    display: block;
    width: 100%;
    padding: 120px 0 60px;
  }
  
  .home-content .contents {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .home-content-left {
    width: 100%;
    max-width: 100%;
    padding: 0 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .home-content-left h3 {
    order: 1;
    font-size: 1.3rem;
    letter-spacing: 0.05rem;
    margin-bottom: 1rem;
    text-align: center;
    opacity: 0.95;
  }
  
  .home-content-left h1 {
    order: 2;
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    text-align: center;
    max-width: 90%;
  }
  
  /* Mockup prominente */
  .home-image-right {
    position: relative;
    width: 100%;
    max-width: 400px;
    transform: none;
    top: auto;
    right: auto;
    padding: 0;
    margin: 0 auto 2.5rem;
    order: 3;
  }
  
  .home-image-right img {
    height: 500px;
    max-height: 60vh;
    width: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
  }
  
  .hero-subtitle {
    order: 4;
    font-size: 1.6rem;
    line-height: 1.65;
    margin: 0 0 2rem;
    text-align: center;
    max-width: 90%;
    color: rgba(255, 255, 255, 0.9);
  }
  
  .hero-features {
    order: 5;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin: 0 0 2.5rem;
    padding: 0;
    width: 100%;
    max-width: 340px;
  }
  
  .hero-features li {
    font-size: 1.5rem;
  }
  
  .hero-features li i {
    font-size: 1.8rem;
  }
  
  .home-content-left .buttons {
    order: 6;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    max-width: 340px;
    margin: 0 0 2rem;
  }
  
  .home-content-left .button {
    width: 100%;
    max-width: 100%;
    font-size: 1.6rem;
    height: 5.6rem;
    border-radius: 12px;
  }
  
  .home-social-list {
    display: none;
  }
  
  .whatsapp-float {
    width: 58px;
    height: 58px;
    bottom: 24px;
    right: 24px;
    font-size: 2.8rem;
  }
  
  .home-scrolldown {
    bottom: 24px;
  }
  
  .scroll-icon {
    font-size: 1rem;
    opacity: 0.8;
  }
  
  /* Reducir animaciones */
  .float-element.e2,
  .float-element.h3,
  .float-element.h4,
  .float-element.r2,
  .float-element.s2,
  .float-element.s3,
  .float-element.c2,
  .float-element.c3,
  .float-element.m2 {
    display: none;
  }
}

@media only screen and (max-width: 600px) {
  .home-content {
    padding: 100px 0 50px;
  }
  
  .home-content-left {
    padding: 0 20px;
  }
  
  .home-content-left h3 {
    font-size: 1.2rem;
  }
  
  .home-content-left h1 {
    font-size: 2.4rem;
  }
  
  .home-image-right {
    max-width: 350px;
  }
  
  .home-image-right img {
    height: 440px;
    max-height: 55vh;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .hero-features {
    max-width: 320px;
  }
  
  .hero-features li {
    font-size: 1.4rem;
  }
  
  .home-content-left .buttons {
    max-width: 320px;
  }
  
  .home-content-left .button {
    font-size: 1.5rem;
    height: 5.4rem;
  }
  
  .whatsapp-float {
    width: 54px;
    height: 54px;
    font-size: 2.6rem;
  }
  
  .float-element.h2,
  .float-element.r1,
  .float-element.m1 {
    display: none;
  }
}

@media only screen and (max-width: 400px) {
  .home-content-left h1 {
    font-size: 2.2rem;
  }
  
  .home-image-right {
    max-width: 300px;
  }
  
  .home-image-right img {
    height: 400px;
    max-height: 50vh;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  .hero-features li {
    font-size: 1.3rem;
  }
  
  .home-content-left .button {
    font-size: 1.4rem;
    height: 5.2rem;
  }
}


/* =================================================================== 
 * Gallery CTA Buttons - Corrección de alineación
 * ------------------------------------------------------------------- */

.gallery-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 4rem;
  padding: 0 20px;
}

.gallery-cta .button {
  font-family: "montserrat-medium", sans-serif;
  font-size: 1.5rem;
  height: 5.4rem;
  line-height: 1;
  padding: 0 3rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-width: 200px;
  white-space: nowrap;
  box-sizing: border-box;
  border: 2px solid transparent;
}

.gallery-cta .button-primary {
  background: #2ecc71;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.gallery-cta .button-primary:hover {
  background: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.gallery-cta .button.stroke {
  background: transparent;
  color: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.3);
}

.gallery-cta .button.stroke:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.gallery-cta .button i {
  font-size: 1.8rem;
  line-height: 1;
}

/* Responsive para botones de galería */
@media only screen and (max-width: 600px) {
  .gallery-cta {
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 3rem;
  }
  
  .gallery-cta .button {
    width: 100%;
    max-width: 320px;
    font-size: 1.5rem;
  }
}
