/* Fuentes importadas en HTML: Montserrat y Special Elite */

/*--------------------------------------------------------------
# General Styles
--------------------------------------------------------------*/
*{
  margin: 0;
  padding: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}


html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  color: #4B2E0D; /* Marrón oscuro mejorado para legibilidad */
  background-color: #FAF5EF; /* Beige claro ajustado */
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
}

a {
  color: #6B3E1D; /* Marrón medio */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #3E1F0D; /* Marrón oscuro */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Special Elite', cursive;
  color: #4B2E0D; /* Marrón oscuro */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  margin-bottom: 1rem;
  line-height: 1.2;
}

/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
.header {
  background-color: rgba(107, 62, 29, 0.95); /* Sienna semi-opaco ajustado */
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 999;
}

.header .navbar-brand h1 {
  text-align: center;
  font-family: 'Special Elite', cursive;
  font-size: 2rem;
  color: #FFF9F0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: #F5DEB3;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .active {
  color: #FFF9F0;
  text-shadow: 0 0 5px #A9744F;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  background: 
              url('https://images.unsplash.com/photo-1583174301983-4631b7b12974?q=80&w=1474&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #FFF9F0;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
  padding: 0 1rem; /* Añadido para evitar overflow lateral en móvil */
}

.hero-section h1 {
  font-size: 3rem;
  font-family: 'Special Elite', cursive;
  font-weight: 400;
  max-width: 90%;
  margin-bottom: 1.5rem;
  color: white;
  word-wrap: break-word;
}

.hero-section p.lead {
  font-size: 1.25rem;
  max-width: 600px;
  word-wrap: break-word;
}

/* Botones */
.btn-primary {
  background-color: #6B3E1D;
  border-color: #6B3E1D;
  font-weight: 600;
  padding: 0.75rem 2rem;
  box-shadow: 3px 3px 8px rgba(0,0,0,0.35);
  border-width: 3px;
  border-style: double;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #4B2E0D;
  border-color: #4B2E0D;
  color: #FFF9F0;
}

/*--------------------------------------------------------------
# Section Titles
--------------------------------------------------------------*/
.section-title h2 {
  font-family: 'Special Elite', cursive;
  font-size: 2.5rem;
  color: #4B2E0D;
  margin-bottom: 1rem;
  position: relative;
  word-wrap: break-word;
}

/* Eliminada la pseudo clase ::after con estrellas */

/*--------------------------------------------------------------
# Cards
--------------------------------------------------------------*/
.card {
  background-color: #F5DEB3;
  border-radius: 15px;
  border: 2px solid #A9744F;
  box-shadow: 3px 3px 8px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
  overflow-x: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 5px 8px 15px rgba(0,0,0,0.25);
}

.card-body {
  padding: 2rem;
  text-align: center;
  max-width: 100%;
  overflow-x: hidden;
}

.icon-box i {
  color: #6B3E1D;
  font-size: 3rem;
  margin-bottom: 1rem;
}

/*--------------------------------------------------------------
# Imagenes
--------------------------------------------------------------*/
.img-fluid.object-fit-cover {
  border: 5px double #A9744F;
  border-radius: 15px;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
  width: 100%;
  height: auto;
}

/* Imagen Ricardo responsiva */
.img-ricardo {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  border: 5px double #A9744F;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
  object-fit: cover;
}

/*--------------------------------------------------------------
# RSVP Formulario
--------------------------------------------------------------*/
.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  background: #FFF9F0;
  border: 2px solid #A9744F;
  border-radius: 6px;
  font-size: 1.1rem;
  padding: 0.8rem 1rem;
  transition: border-color 0.3s ease;
  color: #4B2E0D;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: #6B3E1D;
  outline: none;
  box-shadow: 0 0 8px rgba(107,62,29,0.7);
}

.btn-brown, .btn-primary {
  font-family: 'Special Elite', cursive;
  font-weight: 700;
}

/*--------------------------------------------------------------
# Secciones con fondo marrón oscuro (Padrinos)
--------------------------------------------------------------*/


#padrinos .card {
  background-color: #F5DEB3 !important;
  border: 2px solid #A9744F;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.15);
  max-width: 100%;
  overflow-x: hidden;
}

#padrinos .card-title {
  font-family: 'Special Elite', cursive;
  font-size: 1.75rem;
  color: #4B2E0D;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  background-color: #4B2E0D;
  color: #FFF9F0;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  font-family: 'Montserrat', sans-serif;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
    text-align: center !important;
    width: 100%;
  }
  .section-title h2 {
    font-size: 1.8rem;
  }
  .card-body {
    padding: 1.25rem;
  }
  .hero-section {
    padding: 0 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .centrar{
        display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
[data-aos] {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.aos-init:not(.aos-animate) {
  opacity: 0;
  transform: translateY(20px);
}
@media (max-width: 768px) {
  /* Ya tienes esto */
  .hero-section h1 {
    font-size: 2rem;
  }
  .section-title h2 {
    font-size: 1.8rem;
  }
  .card-body {
    padding: 1.25rem;
  }
  .hero-section {
    padding: 0 0.5rem;
  }

  /* CENTRAR TEXTOS EN MÓVIL */
  body, 
  h1, h2, h3, h4, h5, h6, 
  p, 
  .card-body, 
  .section-title, 
  .hero-section {
    text-align: center;
  }
}
.toggle-cont {
  width: 100px;
  height: 50px;
  border-radius: 9999px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}


.toggle-cont .toggle-input {
  display: none;
}

.toggle-cont .toggle-label {
  cursor: pointer;
  position: relative;
  display: inline-block;
  padding: 6px;
  width: 100%;
  height: 100%;
  background: #272727;
  border-radius: 9999px;
  box-sizing: content-box;
  box-shadow: 0px 0px 16px -8px #fefefe;
}

.toggle-cont .toggle-label .cont-label-play {
  position: relative;
  width: 50px;
  aspect-ratio: 1 / 1;
  background: #5e5e5e;
  border-radius: 9999px;
  transition: all 0.5s cubic-bezier(1, 0, 0, 1);
}

.toggle-cont .toggle-input:checked + .toggle-label .cont-label-play {
  background: #f43f5e;
  transform: translateX(50px);
}

.toggle-cont .toggle-label .label-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-block;
  width: 24px;
  aspect-ratio: 1 / 1;
  background: #fefefe;
  border-radius: 4px;
  clip-path: polygon(25% 0, 75% 50%, 25% 100%, 25% 51%);
  transition: all 0.5s cubic-bezier(1, 0, 0, 1);
}

.toggle-cont .toggle-input:checked + .toggle-label .label-play {
  width: 20px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}


@media (max-width: 768px) {
  .hero-section h1 {
    display: block;
    width: 100%;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
