/* ========================================
   Fuentes locales
   ======================================== */
@font-face {
  font-family: 'Playfair Display SC';
  src: url('../fonts/PlayfairDisplaySC-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display SC';
  src: url('../fonts/PlayfairDisplaySC-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display SC';
  src: url('../fonts/PlayfairDisplaySC-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display SC';
  src: url('../fonts/PlayfairDisplaySC-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display SC';
  src: url('../fonts/PlayfairDisplaySC-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display SC';
  src: url('../fonts/PlayfairDisplaySC-BlackItalic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Great Vibes';
  src: url('../fonts/GreatVibes-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ========================================
   Variables — Paleta botánica wildflower
   ======================================== */
:root {
  --color-mauve: #7B5E7B;
  --color-mauve-light: #9B7F9B;
  --color-mauve-dark: #5C3D5C;
  --color-blush: #F7F0F3;
  --color-blush-dark: #EDE3E8;
  --color-white: #ffffff;
  --color-text: #4A3A4A;
  --color-text-light: #7B6B7B;
  --color-coral: #E8837C;
  --color-orange: #E8A44A;
  --color-lavender: #9B8EC4;
  --color-sage: #7BA07B;
  --color-pink: #E8A0B4;
  --color-yellow: #E8C84A;
  --font-heading: 'Playfair Display SC', serif;
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Playfair Display SC', serif;
}

/* ========================================
   Loading Screen
   ======================================== */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-floral {
  width: 120px;
  height: 120px;
  animation: loaderSpin 8s linear infinite;
}

.loader-dot {
  animation: loaderPulse 1.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.2s);
  transform-origin: center;
}

@keyframes loaderSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

.loader-text {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--color-mauve);
  margin-top: 1.5rem;
  animation: loaderFade 1.5s ease-in-out infinite alternate;
}

@keyframes loaderFade {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

/* ========================================
   Base
   ======================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  color: var(--color-mauve-dark);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-coral), var(--color-mauve), var(--color-lavender));
  margin: 0.5rem auto 0;
}

section {
  padding: 4rem 0;
  position: relative;
}

section:nth-child(even) {
  background-color: var(--color-blush);
}

/* ========================================
   Floral Divider decoration
   ======================================== */
.floral-divider {
  width: 100%;
  text-align: center;
  padding: 1rem 0;
  overflow: hidden;
}

.floral-divider svg {
  max-width: 400px;
  width: 80%;
  height: auto;
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
  background-color: rgba(247, 240, 243, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(123, 94, 123, 0.08);
  font-family: var(--font-heading);
}

.navbar-brand {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--color-mauve) !important;
}

.nav-link {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--color-text) !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--color-mauve) !important;
}

/* ========================================
   Hero — Arch + Botanical Frame
   ======================================== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--color-blush) 0%, var(--color-white) 50%, var(--color-blush) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(123, 94, 123, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* Hero floral corners */
.hero-corner {
  position: absolute;
  width: 160px;
  height: 160px;
  pointer-events: none;
  z-index: 1;
}

.hero-corner-tl {
  top: 60px;
  left: 0;
}

.hero-corner-tr {
  top: 60px;
  right: 0;
}

.hero-corner-bl {
  bottom: 0;
  left: 0;
}

.hero-corner-br {
  bottom: 0;
  right: 0;
}

.hero-arch {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem 2rem 3rem;
  z-index: 2;
}


.hero-photo {
  width: 300px;
  height: 300px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  border: 4px solid var(--color-blush-dark);
  box-shadow: 0 8px 30px rgba(123, 94, 123, 0.15);
  margin-bottom: 2rem;
}

.hero-script {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--color-mauve);
  margin-bottom: 0.5rem;
}

.hero-names {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--color-mauve-dark);
  display: block;
  margin-bottom: 0.5rem;
}

.hero-ampersand {
  font-family: var(--font-script);
  font-size: 4rem;
  color: var(--color-mauve);
  display: block;
  margin: 0.3rem 0;
}

.hero-date {
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--color-text);
  margin-bottom: 0.3rem;
}

.hero-location {
  font-size: 1.3rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.hero-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-mauve-light), transparent);
  margin: 1.5rem auto;
}

.hero-guests {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-mauve);
  margin-top: 1.5rem;
  margin-bottom: 0;
  letter-spacing: 0.05em;
  border: 1px solid var(--color-blush-dark);
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  background-color: rgba(247, 240, 243, 0.6);
}

.btn-mauve {
  background-color: var(--color-mauve);
  color: var(--color-white);
  border: none;
  padding: 0.8rem 2.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.1em;
  border-radius: 30px;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-mauve:hover {
  background-color: var(--color-mauve-light);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(123, 94, 123, 0.3);
}

/* ========================================
   Detalles del evento
   ======================================== */
#detalles .detail-icon {
  font-size: 2rem;
  color: var(--color-mauve);
  margin-bottom: 1rem;
}

#detalles .btn-outline-secondary {
  border-color: var(--color-mauve-light);
  color: var(--color-mauve);
  border-radius: 20px;
  font-size: 0.85rem;
}

#detalles .btn-outline-secondary:hover {
  background-color: var(--color-mauve);
  border-color: var(--color-mauve);
  color: var(--color-white);
}

/* ========================================
   Itinerario
   ======================================== */
.itinerary-card {
  border: none;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
}

.itinerary-card .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-mauve-dark);
}

.itinerary-card .card-text {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.itinerary-card i {
  color: var(--color-mauve-light) !important;
}

/* ========================================
   Hospedaje
   ======================================== */
.hotel-card {
  border: none;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
}

.hotel-card .card-header {
  background: transparent;
  border-bottom: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-mauve-dark);
}

/* ========================================
   Cómo llegar
   ======================================== */
.destination-photo-wrapper {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(123, 94, 123, 0.12);
  border: 3px solid var(--color-blush-dark);
}

.destination-photo {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

#como-llegar .travel-info {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

#como-llegar i {
  color: var(--color-mauve-light) !important;
}

/* ========================================
   Dress code
   ======================================== */
#dresscode {
  text-align: center;
}

.dresscode-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-mauve-dark);
  letter-spacing: 0.05em;
}

#dresscode i {
  color: var(--color-mauve-light) !important;
}

/* ========================================
   FAQ Accordion
   ======================================== */
.accordion-item {
  border-color: var(--color-blush-dark);
}

.accordion-button {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  background-color: var(--color-white);
}

.accordion-button:not(.collapsed) {
  color: var(--color-mauve);
  background-color: var(--color-blush);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--color-blush-dark);
}

.accordion-button::after {
  filter: hue-rotate(270deg) saturate(0.5);
}

.accordion-body {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ========================================
   Footer
   ======================================== */
footer {
  background-color: var(--color-mauve-dark);
  color: var(--color-blush);
  padding: 3rem 0;
  text-align: center;
}

footer .footer-names {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--color-blush);
  margin-bottom: 0.5rem;
}

footer .footer-text {
  font-size: 0.9rem;
  color: var(--color-blush-dark);
}

footer .footer-contact {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-blush-dark);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 575.98px) {
  .hero-arch {
    padding: 2rem 1rem 1.5rem;
  }

  .hero-names {
    font-size: 2.5rem;
  }

  .hero-ampersand {
    font-size: 2.8rem;
  }

  .hero-corner {
    width: 100px;
    height: 100px;
  }

  .hero-corner-tl {
    top: 50px;
  }

  .hero-corner-tr {
    top: 50px;
  }

  .hero-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
  }

  .hero-arch {
    padding: 1.5rem 0.5rem 2rem;
  }

  .hero-divider {
    margin: 1rem auto;
  }
}

@media (min-width: 768px) {
  .hero-names {
    font-size: 5rem;
  }

  .hero-ampersand {
    font-size: 5.5rem;
  }

  .hero-script {
    font-size: 2.5rem;
  }

  .hero-date {
    font-size: 1.5rem;
  }

  .hero-location {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

@media (min-width: 992px) {
  .hero-names {
    font-size: 6rem;
  }

  .hero-ampersand {
    font-size: 6.5rem;
  }

  .hero-script {
    font-size: 2.8rem;
  }

  .hero-photo {
    width: 340px;
    height: 340px;
    border-radius: 50%;
  }

  .hero-corner {
    width: 220px;
    height: 220px;
  }

  .destination-photo {
    height: 320px;
  }
}
