/* misa.css */

:root {
  --pink: #ffdcee;
  --light-pink: #fff0f6;
  --accent: #ffe285;
  --gold: #b88a33;
  --purple-text: rgb(111, 40, 158);
}

/* Global */
body {
  margin: 0;
  font-family: 'Rubik', sans-serif;
  color: #000000;
  background: url("imagenes/tangled_wedding.jpg") center/cover fixed;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== HEADER ========== */
header#main-header {
  top: 0%;
  width: 100%;
  height: 150px;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

header#main-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#sacramento-img { 
  display: block; 
  max-width: clamp(80px, 15%, 150px);
  width: 30%;
  margin: auto; 
}

/* ========== CONTENEDOR Y BURBUJAS ========== */
.main-content {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.content-section {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  padding: 3rem 2rem;
  margin-bottom: 4rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  backdrop-filter: blur(5px);
  position: relative;
  box-sizing: border-box;

  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.content-section.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ========== IMAGEN TANGLED_SUN ALTERNADA ========== */
.content-section::before {
  content: "";
  position: absolute;
  top: -20px;
  width: clamp(60px, 8vw, 100px);
  height: clamp(60px, 8vw, 100px);
  background: url('imagenes/tangled_sun.png') no-repeat center/contain;
  z-index: 2;
}

.content-section:nth-child(odd)::before {
  left: -20px;
}

.content-section:nth-child(even)::before {
  right: -20px;
}

/* ========== TEXTO ========== */
.content-section p {
  max-width: 85%;
  margin: 0 auto 1.5rem;
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
  color: #333;
  text-align: center;
}

#h1-banquete, h2 {
  font-family: 'Tangerine', cursive;
  color: var(--purple-text);
  text-align: center;
}

#h1-banquete { font-size: clamp(2.2rem, 8vw, 4rem); }
h2 { font-size: clamp(1.8rem, 6vw, 3rem); border: none; }

/* ========== COLUMNAS VESTIMENTA ========== */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.column {
  flex: 1;
  min-width: 250px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  padding: 10px;
  box-sizing: border-box;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 900px) {
  .content-section::before {
    width: 70px;
    height: 70px;
    top: -15px;
  }
  .content-section:nth-child(odd)::before  { left: -15px; }
  .content-section:nth-child(even)::before { right: -15px; }
}

@media (max-width: 768px) {
  header#main-header { height: 100px; }

  .content-section {
    padding: 2rem 1.2rem;
    margin-bottom: 2.5rem;
    border-radius: 20px;
  }

  #h1-banquete { font-size: clamp(2rem, 9vw, 3rem); }
  h2 { font-size: clamp(1.6rem, 7vw, 2.5rem); }

  .column {
    min-width: 200px;
  }
}

@media (max-width: 600px) {
  header#main-header { height: 80px; }

  .main-content {
    padding: 1.2rem 0.8rem;
  }

  .content-section {
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
    border-radius: 16px;
    margin-left: 20px;
    margin-right: 20px;
  }

  .content-section::before {
    width: 45px;
    height: 45px;
    top: -12px;
  }

  .content-section:nth-child(odd)::before  { left: -12px; }
  .content-section:nth-child(even)::before { right: -12px; }

  .content-section p {
    max-width: 100%;
    font-size: 0.95rem;
  }

  .row {
    flex-direction: column;
    gap: 12px;
  }

  .column {
    min-width: unset;
    width: 100%;
  }

  #sacramento-img {
    width: 50%;
    max-width: 180px;
  }
}

@media (max-width: 400px) {
  header#main-header { height: 65px; }

  .content-section {
    padding: 1.2rem 0.8rem;
    border-radius: 12px;
    margin-left: 15px;
    margin-right: 15px;
  }

  .content-section::before {
    width: 38px;
    height: 38px;
    top: -10px;
  }

  .content-section:nth-child(odd)::before  { left: -10px; }
  .content-section:nth-child(even)::before { right: -10px; }

  #h1-banquete { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .content-section p {
    font-size: 0.88rem;
  }
}