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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111;
  background: #000;
}

/* ===== GENERAL ===== */
img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container.narrow {
  max-width: 800px;
}

.center {
  text-align: center;
}

.top-space {
  margin-top: 2rem;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(10, 10, 10, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f5f5f7;
}

.logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  font-size: 0.9rem;
}

.menu a {
  color: #f5f5f7;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.menu a:hover,
.menu a.active {
  opacity: 1;
}

/* ===== HERO HOME ===== */
.hero-home{
  min-height: 92vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #f5f5f7;
}

.hero-home::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.10) 100%),
    url("../img/fotografia_boda_templo_sud-2.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
}

.hero-inner{
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-text{
  max-width: 560px;          /* limita el ancho del texto */
  padding-left: 11rem;        /* separa del borde izquierdo */
  padding-right: 1.5rem;
}

.hero-text h1{
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.05;
  margin: .8rem 0 1rem;
}

.hero-subtitle{
  max-width: 48ch;
  opacity: .9;
}


/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.15s ease;
}

.btn-primary {
  background: #f5bf3c;
  color: #1a1a1a;
}

.btn-primary:hover {
  background: #ffd362;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #f5f5f7;
  border-color: #f5f5f7;
}

.btn-ghost:hover {
  background: #f5f5f7;
  color: #000;
}

/* ===== SECTIONS ===== */
.section {
  padding: 4.5rem 0;
}

.section-light {
  background: #f5f5f7;
  color: #111;
}

.section-dark {
  background: #111;
  color: #f5f5f7;
}

.section-gray {
  background: #e5e5ea;
  color: #111;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

.section-subtitle {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.section-text {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #3a3a3c;
}

.section-text-muted {
  color: #4c4c4c;
}

/* textos dentro de secciones oscuras */
.section-dark .section-text {
  color: #d2d2d7;
}
.section-dark .section-text-muted {
  color: #b0b0b5;
}

/* ===== UNIFICAR BLOQUE BODAS (texto + paquetes) ===== */
/* Solo aplica si en bodas.html pones: <body class="page-bodas"> */
.page-bodas .section-light {
  background: #e5e5ea; /* mismo gris */
  padding-bottom: 2rem;
}

.page-bodas .section-gray {
  padding-top: 0; /* pega los paquetes al bloque superior */
}

.page-bodas .section-light .container {
  text-align: center;
}

.page-bodas .section-light .section-title {
  margin-bottom: 0.6rem;
}

/* ===== SOBRE MÍ LAYOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
  gap: 2.5rem;
  align-items: center;
}

.about-photo img {
  border-radius: 26px;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.18);
  object-fit: cover;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border-radius: 22px;
  padding: 0;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.card-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.4s ease;
}

.card-body {
  padding: 1.4rem 1.4rem 1.6rem;
}

.card-body h3 {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.card-body p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #3a3a3c;
}

.card-cta {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: #0071e3;
}

.card-link:hover .card-media img {
  transform: scale(1.05);
}

/* ===== PAGE HERO (PÁGINAS INTERNAS) ===== */
.page-hero {
  padding: 4.5rem 0 3.5rem;
  background: #000;
  color: #f5f5f7;
}

.page-hero-bodas {
  background: radial-gradient(circle at top, #333 0, #000 60%);
}

.page-hero-xv {
  background: radial-gradient(circle at top, #3b0b4f 0, #050009 60%);
}

.page-hero-sesiones {
  background: radial-gradient(circle at top, #003b4b 0, #02070b 60%);
}

.page-hero-contacto {
  background: radial-gradient(circle at top, #1f1f1f 0, #000 60%);
}

.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-hero-inner h1 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

/* ===== GALLERY (GRANDE) ===== */
.gallery-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  transition: z-index 0s 0s;
}

.gallery-item:hover {
  z-index: 100;
}

.gallery-item img {
  border-radius: 18px;
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease, border-radius 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.8);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border-radius: 12px;
}

.gallery-grid::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 99;
}

.gallery-grid:has(.gallery-item:hover)::before {
  opacity: 1;
}

/* ===== PRICING (Paquetes) ===== */
.pricing-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Contenedor clickable */
.pricing-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.10);
}

.pricing-card-link:focus {
  outline: 2px solid rgba(0, 0, 0, 0.25);
  outline-offset: 4px;
}

/* Card base */
.pricing-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.06);
  color: #111;
  overflow: hidden;
}

/* Si agregaste imagen arriba del paquete */
.pricing-card-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111;
}

.pricing-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.35s ease;
}

.pricing-card-link:hover .pricing-card-media img {
  transform: scale(1.05);
}

/* Contenido del paquete */
.pricing-card-body {
  padding: 1.8rem 1.6rem;
}

.pricing-card-body h4 {
  margin-bottom: 0.6rem;
}

.pricing-card-body p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #3a3a3c;
}

.price {
  margin-top: 0.8rem;
  font-weight: 600;
  color: #111;
}

/* ===== MINI GALLERY (PAQUETES) ===== */
.mini-gallery {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.mini-gallery-item {
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
  aspect-ratio: 3 / 4; /* vertical */
}

.mini-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.35s ease;
}

.mini-gallery-item:hover img {
  transform: scale(1.04);
}

/* Mobile: carrusel horizontal tipo swipe */
@media (max-width: 700px) {
  .mini-gallery {
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    grid-template-columns: unset;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.6rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .mini-gallery::-webkit-scrollbar {
    height: 6px;
  }

  .mini-gallery-item {
    scroll-snap-align: start;
  }
}

/* ===== CONTACT FORM ===== */
.contact-form {
  margin-top: 0.5rem;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid #d2d2d7;
  font: inherit;
  background: #fff;
}

/* ===== FOOTER ===== */
.footer {
  background: #000;
  color: #86868b;
  padding: 1.6rem 0;
  border-top: 1px solid #1c1c1e;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.footer-copy {
  font-size: 0.8rem;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== CORRECCIÓN DE COLORES EN SECTION-DARK (cards) ===== */
.section-dark .card-body h3 {
  color: #000;
  font-weight: 700;
}

.section-dark .card-body p {
  color: #000;
  font-weight: 600;
}

/* ===== RESPONSIVE GENERAL ===== */
@media (max-width: 900px) {
  .cards-grid,
  .gallery-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav {
    padding-inline: 1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .menu {
    gap: 0.8rem;
    font-size: 0.8rem;
  }

  .hero-inner {
    padding-top: 4rem;
  }

  .cards-grid,
  .gallery-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== GRID CENTRADO PARA 2 PAQUETES ===== */
.cards-grid.two-cards {
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;           /* centra el bloque */
  gap: 1.6rem;                       /* un poco más aire */
  margin-top: 1.8rem;                /* sube un poquito las cards */
}

/* Ajuste fino para que el bloque no quede tan “abajo” en Sesiones */
.packages-section {
  padding-top: 3.6rem;               /* antes: 4.5rem */
  padding-bottom: 4.2rem;
}

.packages-section .section-title {
  margin-bottom: 0.6rem;
}

.packages-section .section-subtitle {
  margin-top: 2.2rem;                /* controla la separación del título “Paquetes…” */
}

/* Responsive */
@media (max-width: 900px) {
  .cards-grid.two-cards {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===== BOTONES: que el "ghost" no se pierda en fondos claros ===== */

/* En secciones claras, el ghost debe ser oscuro */
.section-light .btn-ghost,
.section-gray  .btn-ghost {
  color: #111;
  border-color: #111;
}

.section-light .btn-ghost:hover,
.section-gray  .btn-ghost:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* En secciones oscuras (y hero), el ghost se queda claro */
.section-dark .btn-ghost,
.page-hero   .btn-ghost,
.hero-home   .btn-ghost {
  color: #f5f5f7;
  border-color: rgba(245, 245, 247, 0.95);
}

.section-dark .btn-ghost:hover,
.page-hero   .btn-ghost:hover,
.hero-home   .btn-ghost:hover {
  background: #f5f5f7;
  color: #000;
}

/* ===== CAROUSEL CONTROLS (solo móvil) ===== */
@media (max-width: 700px){

  /* aplica a mini-gallery y gallery-grid como carrusel */
  .mini-gallery,
  .gallery-grid{
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    grid-template-columns: unset;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding-bottom: .8rem;
  }

  .mini-gallery-item,
  .gallery-item{
    scroll-snap-align: start;
  }

  .carousel-wrap{
    position: relative;
  }

  .carousel-btn{
    position:absolute;
    top: 50%;
    transform: translateY(-50%);
    width:42px;
    height:42px;
    border-radius:999px;
    border:1px solid rgba(0,0,0,.18);
    background: rgba(245,245,247,.92);
    color:#111;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    z-index: 5;
  }

  .carousel-btn.prev{ left: 10px; }
  .carousel-btn.next{ right: 10px; }

  .carousel-btn:active{
    transform: translateY(-50%) scale(.98);
  }
}

