/* 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;
  }
}
/* ===============================
   UPLOAD – CLASES AISLADAS
================================ */

.upload-section {
  width: 100%;
  min-height: 100dvh;
}

.upload-box {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Recuadro marrón (estado + preview) */
.upload-status {
  background: #6B3E1D;
  color: #FFF9F0;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* Texto estado */
.upload-status p {
  margin: 0;
  font-size: 14px;
}

/* Preview DENTRO del recuadro */
.preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 10px;
}

.preview img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px double #A9744F;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.25);
}

/* ===============================
   FIX LAYOUT UPLOAD
================================ */

/* Centrar todo el bloque */
.container-up {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 20px;
  gap: 25px;
}

/* Tarjeta visual */
.upload-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 30px 25px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
  align-items: center;
}

/* Forzar ocultar input nativo (Bootstrap fix) */
input[type="file"] {
  display: none !important;
}

/* Espaciado botones */

.upload-box button {
  margin-top: 10px;
}

/* Centrar texto */
.upload-section h2 {
  text-align: center;
}


#popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #b9947e;
  color: white;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  z-index: 9999;
  font-size: 14px;
}

#popup.show {
  display: flex;
  justify-content: center;
  align-items: center;
}


.gallery-link {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

p{
  margin-bottom: 0px !important;
}


.preview-item {
  position: relative;
}

.preview-item img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px double #A9744F;
}

.remove-image {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #b9947e;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: transform 0.2s;
}

.remove-image:hover {
  transform: scale(1.1);
  background: #6B3E1D;
}
/* ===============================
   GALERÍA – GRID CORRECTO
================================ */

.gallery-main {
  padding-top: 120px;
  padding-bottom: 40px;
}

.gallery-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 2rem;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

/* 🔑 CONTENEDOR CON ALTURA FIJA */
.gallery-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;   /* 🔥 CLAVE */
  overflow: hidden;
}

/* 🔑 IMAGEN RECORTADA, NO GIGANTE */
.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;    /* 🔥 CLAVE */
  display: block;
  transition: transform .3s ease;
}

.gallery-image:hover img {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-container {
    grid-template-columns: 1fr;
  }
}


    .btn{
        padding: 10px 15px;
        background: #6B3E1D;
        border-radius: 30px;
        color: #fff;
    }

    .btn:hover{
        border: 1px solid #6B3E1D;
    }

    .upload-box label{
        padding: 10px 15px;
        background: #6B3E1D;
        border-radius: 30px;
        color: #fff;
        margin-bottom: 0px;
    }

    label:hover{
        border: 1px solid #6B3E1D;
    }   
    
    
    
    
    /* ===============================
   UPLOAD – CLASES AISLADAS
================================ */

.upload-section {
  width: 100%;
  min-height: 100dvh;
}

.upload-box {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Recuadro marrón (estado + preview) */
.upload-status {
  background: #6B3E1D;
  color: #FFF9F0;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* Texto estado */
.upload-status p {
  margin: 0;
  font-size: 14px;
}

/* Preview DENTRO del recuadro */
.preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 10px;
}

.preview img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px double #A9744F;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.25);
}

/* ===============================
   FIX LAYOUT UPLOAD
================================ */

/* Centrar todo el bloque */
.container-up {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 20px;
  gap: 25px;
}

/* Tarjeta visual */
.upload-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 30px 25px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
  align-items: center;
}

/* Forzar ocultar input nativo (Bootstrap fix) */
input[type="file"] {
  display: none !important;
}

/* Espaciado botones */

.upload-box button {
  margin-top: 10px;
}

/* Centrar texto */
.upload-section h2 {
  text-align: center;
}


#popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #b9947e;
  color: white;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  z-index: 9999;
  font-size: 14px;
}

#popup.show {
  display: flex;
  justify-content: center;
  align-items: center;
}


.gallery-link {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

p{
  margin-bottom: 0px !important;
}


.preview-item {
  position: relative;
}

.preview-item img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px double #A9744F;
}

.remove-image {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #b9947e;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: transform 0.2s;
}

.remove-image:hover {
  transform: scale(1.1);
  background: #6B3E1D;
}
/* ===============================
   GALERÍA – GRID CORRECTO
================================ */

.gallery-main {
  padding-top: 120px;
  padding-bottom: 40px;
}

.gallery-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 2rem;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

/* 🔑 CONTENEDOR CON ALTURA FIJA */
.gallery-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;   /* 🔥 CLAVE */
  overflow: hidden;
}

/* 🔑 IMAGEN RECORTADA, NO GIGANTE */
.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;    /* 🔥 CLAVE */
  display: block;
  transition: transform .3s ease;
}

.gallery-image:hover img {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-container {
    grid-template-columns: 1fr;
  }
}
