:root {
  --primary: #A67C52;      /* Marrón claro principal */
  --secondary: #D4A76A;    /* Marrón dorado */
  --accent: #E8C39E;       /* Beige claro */
  --dark: #5D4037;         /* Marrón oscuro */
  --light: #F5F1E8;        /* Beige muy claro */
  --gold: #D4AF37;         /* Dorado suave */
  --success: #8D6E63;      /* Terracota */
  --pastel-pink: #F8BBD0;  /* Rosa pastel */
  --pastel-green: #C8E6C9; /* Verde pastel */
  --pastel-blue: #B3E5FC;  /* Azul pastel */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #F5F1E8 0%, #E8D5C4 100%);
  overflow-x: hidden;
  line-height: 1.6;
  transition: background 0.5s ease;
  color: #5D4037;
}

.elegant-font {
  font-family: 'Playfair Display', serif;
}

.glass-effect {
  background: rgba(245, 241, 232, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 167, 106, 0.3);
}

.gradient-text {
  background: linear-gradient(45deg, var(--primary), var(--success));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: all 0.5s ease;
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% { transform: translate(0, 0px); }
  50% { transform: translate(0, -15px); }
  100% { transform: translate(0, -0px); }
}

/* Pantalla inicial con nuevos colores */
.start-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #A67C52 0%, #8D6E63 100%);
  color: #F5F1E8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  text-align: center;
  padding: 2rem;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.start-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Contenido principal */
.main-content {
  position: relative;
  z-index: 1;
}

.main-content:not(.hidden) {
  z-index: 2;
}

.hidden {
  display: none !important;
}

/* Mensaje de rotación */
.rotate-message {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #5D4037;
  color: #F5F1E8;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  text-align: center;
}

/* Control de audio */
.audio-control {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.audio-btn {
  background: rgba(245, 241, 232, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(93, 64, 55, 0.2);
  color: #A67C52;
}

.audio-btn:hover {
  transform: scale(1.1);
  background: #F5F1E8;
  color: #8D6E63;
}

/* Secciones generales */
.section-content {
  position: relative;
  z-index: 10;
  padding: 2rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #E8D5C4 url('../img/fondo1.jpg') center/cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(93, 64, 55, 0.3);
}

/* Título principal en BLANCO */
.hero-title {
  color: #F5F1E8 !important;
  text-shadow: 2px 2px 8px rgba(93, 64, 55, 0.7);
}

.countdown-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.countdown-item {
  background: rgba(245, 241, 232, 0.9);
  border-radius: 12px;
  padding: 1rem;
  min-width: 80px;
  box-shadow: 0 10px 20px rgba(93, 64, 55, 0.1);
  border: 1px solid #E8C39E;
}

.countdown-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.countdown-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--dark);
  margin-top: 5px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #F5F1E8;
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* Separadores */
.separator {
  width: 100%;
  display: block;
  margin: 0;
}

.separator img {
  width: 100%;
  height: auto;
  display: block;
}

/* Welcome Section */
.welcome-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  background: #E8D5C4 url('../img/fondo2.jpg') center/cover;
}

.section-overlay {
  position: absolute;
  inset: 0;
  background: rgba(245, 241, 232, 0.85);
}

.welcome-section .text-content {
  max-width: 600px;
}

/* SLIDER CORREGIDO */
.gallery-section {
  padding: 3rem 0;
  background: #5D4037;
  position: relative;
}

.gallery-section .container {
  max-width: 100%;
  padding: 0;
}

.slideshow-container {
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  height: 70vh;
  min-height: 500px;
  background: #5D4037;
}

.slideshow-track {
  display: flex;
  height: 100%;
  width: 100%;
  position: relative;
}

/* CORRECCIÓN COMPLETA DEL SLIDE */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}

/* Foto activa - VISIBLE */
.slide.active {
  opacity: 1;
  z-index: 2;
}

/* CORRECCIÓN: Las imágenes ocupan todo el espacio y se ven completas */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  margin-top: 25px;
  gap: 12px;
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 20;
}

.slideshow-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(232, 195, 158, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.slideshow-dot.active {
  background: var(--primary);
  transform: scale(1.3);
  border-color: #F5F1E8;
}

.slideshow-dot:hover {
  background: var(--secondary);
  transform: scale(1.2);
}

/* Flechas de navegación sobre las imágenes */
.slideshow-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 20;
  pointer-events: none;
}

.slideshow-nav-btn {
  background: rgba(245, 241, 232, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(93, 64, 55, 0.4);
  font-size: 1.2rem;
  color: var(--primary);
  z-index: 21;
  pointer-events: auto;
  border: 2px solid var(--primary);
}

.slideshow-nav-btn:hover {
  background: #F5F1E8;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(93, 64, 55, 0.5);
  color: var(--success);
}

/* Date Section */
.date-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  background: #D4A76A url('../img/fondo3.jpg') center/cover;
}

.date-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.info-item {
  text-align: center;
  padding: 1.5rem;
}

/* Location Section */
.location-section {
  padding: 4rem 0;
  background: #F5F1E8;
}

.location-card {
  max-width: 800px;
  margin: 0 auto;
  background: #F5F1E8;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(93, 64, 55, 0.1);
  border: 1px solid #E8C39E;
}

/* Mapa oculto inicialmente */
.map-container {
  height: 0;
  width: 100%;
  overflow: hidden;
  transition: height 0.5s ease;
}

.map-container.active {
  height: 300px;
}

.map-container iframe {
  border: none;
  width: 100%;
  height: 100%;
}

.location-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.location-address {
  font-size: 1.1rem;
  color: #5D4037;
}

/* Dress Code Section */
.dresscode-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  background: #E8C39E url('../img/fondo4.jpg') center/cover;
}

.dresscode-info {
  text-align: center;
}

/* Gift Section con fondo marrón oscuro */
.gift-section-black {
  padding: 4rem 0;
  background: #5D4037;
  color: #F5F1E8;
  text-align: center;
}

.btn-elegant-white {
  background: linear-gradient(45deg, #F5F1E8, #E8D5C4);
  color: #5D4037;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(245, 241, 232, 0.3);
  text-decoration: none;
  display: inline-block;
}

.btn-elegant-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(245, 241, 232, 0.4);
  background: linear-gradient(45deg, #E8D5C4, #F5F1E8);
}

/* Gift Popup */
.gift-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(93, 64, 55, 0.8);
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.gift-popup.active {
  display: flex;
}

.gift-box {
  background: #F5F1E8;
  padding: 2.5rem;
  border-radius: 1rem;
  text-align: center;
  max-width: 90%;
  width: 400px;
  box-shadow: 0 20px 40px rgba(93, 64, 55, 0.3);
  border: 1px solid #E8C39E;
}

.gift-icon {
  margin-bottom: 1rem;
  color: #A67C52;
}

.gift-info {
  margin: 1.5rem 0;
  text-align: left;
}

.info-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #E8C39E;
}

.label {
  font-weight: 600;
  color: #5D4037;
}

.value {
  font-family: monospace;
  color: var(--primary);
}

.copy-btn {
  background: var(--primary);
  color: #F5F1E8;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  margin-bottom: 1rem;
  width: 100%;
  transition: background 0.3s ease;
}

.copy-btn:hover {
  background: #8D6E63;
}

.close-gift-btn {
  background: #8D6E63;
  color: #F5F1E8;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  width: 100%;
}

.animate-bounce-slow {
  animation: bounce-slow 2s infinite;
}

@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Upload Section */
.upload-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  background: linear-gradient(135deg, #A67C52 0%, #8D6E63 100%);
  color: #F5F1E8;
}

.upload-options {
  text-align: center;
}

.upload-btn {
  background: #F5F1E8;
  color: #A67C52;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(93, 64, 55, 0.2);
  text-decoration: none;
  display: inline-block;
}

.upload-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(93, 64, 55, 0.3);
}

/* Confirmación con solo un botón */
.confirmation-section {
  padding: 4rem 0;
  background: #F5F1E8;
}

.confirmation-options {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.confirm-btn-single {
  background: #8D6E63;
  color: #F5F1E8;
  border: none;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 6px 20px rgba(141, 110, 99, 0.4);
  min-width: 250px;
  justify-content: center;
}

.confirm-btn-single:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(141, 110, 99, 0.6);
  background: #5D4037;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #5D4037 0%, #3E2723 100%);
  color: #F5F1E8;
  padding: 3rem 0;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-info {
  margin: 2rem 0;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(232, 195, 158, 0.3);
}

/* Botón elegante */
.btn-elegant {
  background: linear-gradient(45deg, var(--primary), var(--success));
  color: #F5F1E8;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(166, 124, 82, 0.3);
  text-decoration: none;
  display: inline-block;
}

.btn-elegant:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(166, 124, 82, 0.4);
}

/* NUEVAS MEJORAS IMPLEMENTADAS */

/* Confetti con nuevos colores */
.confetti {
  position: fixed;
  width: 15px;
  height: 15px;
  background-color: var(--secondary);
  opacity: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
}

@keyframes confettiFall {
  0% { 
    transform: translateY(-100px) rotate(0deg) translateX(0); 
    opacity: 1; 
  }
  100% { 
    transform: translateY(100vh) rotate(360deg) translateX(100px); 
    opacity: 0; 
  }
}

/* Modal de Confirmación */
.confirmation-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(93, 64, 55, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  animation: modalFadeIn 0.3s ease;
}

.confirmation-modal .modal-content {
  background: #F5F1E8;
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  max-width: 90%;
  width: 400px;
  box-shadow: 0 20px 40px rgba(93, 64, 55, 0.3);
  animation: modalSlideIn 0.3s ease;
  border: 1px solid #E8C39E;
}

.confirmation-modal .fa-check-circle {
  font-size: 4rem;
  color: var(--success);
  margin-bottom: 1rem;
}

.confirmation-modal h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.confirmation-modal p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #5D4037;
}

.confirmation-modal button {
  background: var(--primary);
  color: #F5F1E8;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.confirmation-modal button:hover {
  background: var(--success);
  transform: translateY(-2px);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideIn {
  from { 
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
  }
  to { 
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Efectos de escritura */
.typewriter {
  border-right: 3px solid #F5F1E8;
  white-space: nowrap;
  overflow: hidden;
  animation: typing 2s steps(20, end), blink-caret 0.5s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #F5F1E8 }
}

/* Responsive */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .main-content { display: none !important; }
  .rotate-message { display: flex !important; }
}

@media screen and (min-width: 769px), (orientation: portrait) {
  .rotate-message { display: none !important; }
  .main-content { display: block !important; }
}

/* RESPONSIVE PARA SLIDER FULL-SCREEN */
@media (max-width: 768px) {
  .section-content {
    padding: 1.5rem;
  }
  
  .countdown-container {
    gap: 0.5rem;
  }
  
  .countdown-item {
    min-width: 70px;
    padding: 0.8rem;
  }
  
  .countdown-number {
    font-size: 1.5rem;
  }
  
  .date-info {
    gap: 1.5rem;
  }
  
  .slideshow-container {
    height: 60vh;
    min-height: 400px;
  }
  
  .slideshow-nav-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .slideshow-nav {
    padding: 0 15px;
  }
  
  .map-container.active {
    height: 250px;
  }
  
  .confirm-btn-single {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-width: 200px;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .countdown-container {
    gap: 0.3rem;
  }
  
  .countdown-item {
    min-width: 60px;
    padding: 0.6rem;
  }
  
  .countdown-number {
    font-size: 1.2rem;
  }
  
  .slideshow-container {
    height: 50vh;
    min-height: 350px;
  }
  
  .slideshow-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .slideshow-dots {
    margin-top: 20px;
    bottom: 15px;
  }
  
  .slideshow-dot {
    width: 10px;
    height: 10px;
  }
  
  .map-container.active {
    height: 200px;
  }
  
  .confirmation-modal .modal-content {
    padding: 2rem;
    margin: 1rem;
  }
}

@media (max-width: 400px) {
  .slideshow-container {
    height: 45vh;
    min-height: 300px;
  }
  
  .slideshow-nav-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .slideshow-nav {
    padding: 0 10px;
  }
}