/* =========================================
   VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root {
    --bg-primario: #FBF9F6;
    --bg-secundario: #FFFFFF;
    --piedra: #E8E2D9;
    --texto-principal: #22201E;
    --texto-secundario: #6D6760;
    --acento: #A67C52;
    --blanco: #FFFFFF;

    --fuenteHeading: 'Cormorant Garamond', serif;
    --fuenteTexto: 'Plus Jakarta Sans', sans-serif;
}

html {
    box-sizing: border-box;
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    background-color: var(--bg-primario);
    color: var(--texto-principal);
    font-family: var(--fuenteTexto);
    font-size: 1.6rem;
    line-height: 1.7;
    margin: 0;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   UTILIDADES Y CONTENEDORES
   ========================================= */
.contenedor {
    max-width: 120rem;
    width: 90%;
    margin: 0 auto;
}

.seccion {
    padding: 8rem 0;
    border-top: 1px solid var(--piedra);
}

@media (min-width: 768px) {
    .seccion {
        padding: 11rem 0;
    }
}

.eyebrow {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--acento);
    margin: 0 0 1.5rem 0;
}

.titulo-seccion {
    font-family: var(--fuenteHeading);
    font-size: 3.6rem;
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 3rem 0;
}

@media (min-width: 768px) {
    .titulo-seccion {
        font-size: 4.8rem;
    }
}

.boton {
    display: inline-block;
    padding: 1.4rem 3rem;
    background-color: var(--texto-principal);
    color: var(--blanco);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid var(--texto-principal);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.boton:hover {
    background-color: var(--acento);
    border-color: var(--acento);
    color: var(--blanco);
}

.boton--secundario {
    background-color: transparent;
    color: var(--texto-principal);
}

.boton--secundario:hover {
    background-color: var(--texto-principal);
    border-color: var(--texto-principal);
    color: var(--blanco);
}

.boton--bloque {
    width: 100%;
}

/* =========================================
   HEADER Y NAVEGACIÓN
   ========================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(251, 249, 246, 0.95);
    border-bottom: 1px solid var(--piedra);
}

.header__contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2rem 0;
    gap: 1rem;
}

@media (min-width: 768px) {
    .header__contenido {
        flex-direction: row;
        justify-content: space-between;
        height: 8rem;
        padding: 0;
        gap: 2rem;
    }
}

.header__logo {
    font-size: 2rem; /* en móvil cabe en una sola línea */
    white-space: nowrap;
}

@media (min-width: 992px) {
    .header__logo {
        font-size: 2.6rem; /* recupera su tamaño amplio en escritorio */
    }
}




.logo {
    font-family: var(--fuenteHeading);
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.navegacion {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
}

@media (min-width: 768px) {
    .navegacion {
        flex-wrap: nowrap;
        gap: 1.8rem;
    }
}

@media (min-width: 992px) {
    .navegacion {
        gap: 3.5rem;
    }
}

.navegacion__enlace {
    font-size: 1.2rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--texto-secundario);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.navegacion__enlace:hover {
    color: var(--acento);
}

/* =========================================
   HERO
   ========================================= */
.hero {
    padding: 5rem 0 8rem 0;
}

.hero__grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .hero__grid {
        grid-template-columns: 1fr 1.15fr;
        gap: 6rem;
    }
}

.hero__titulo {
    font-family: var(--fuenteHeading);
    font-size: 4.4rem;
    font-weight: 400;
    line-height: 1.08;
    margin: 0 0 2.5rem 0;
}

@media (min-width: 768px) {
    .hero__titulo {
        font-size: 6.2rem;
    }
}

.hero__descripcion {
    color: var(--texto-secundario);
    margin: 0 0 3.5rem 0;
    max-width: 48rem;
    text-align: justify;
}

.hero__botones {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero__imagen {
    width: 100%;
    height: 45rem;
    object-fit: cover;
}

@media (min-width: 768px) {
    .hero__imagen {
        height: 58rem;
    }
}

/* =========================================
   ENFOQUE / SOBRE MÍ
   ========================================= */
.estudio__grid {
    display: grid;
    gap: 4rem;
}

@media (min-width: 768px) {
    .estudio__grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 6rem;
    }
}

.estudio__parrafo {
    color: var(--texto-secundario);
    font-size: 1.8rem;
    margin: 0 0 4rem 0;
}

.metricas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 3rem;
    border-top: 1px solid var(--piedra);
}

.metrica__numero {
    display: block;
    font-family: var(--fuenteHeading);
    font-size: 3.6rem;
    line-height: 1;
    margin-bottom: 0.8rem;
}

.metrica__texto {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--texto-secundario);
}

/* =========================================
   GALERÍA Y FILTROS 100% CSS
   ========================================= */
.proyectos__cabecera {
    margin-bottom: 2rem;
}

.filtro-radio {
    display: none; /* Ocultamos los bolitos del radio input */
}

.filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4.5rem;
}

.filtro {
    border-bottom: 1px solid transparent;
    padding: 0.5rem 0;
    font-size: 1.2rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--texto-secundario);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filtro:hover {
    color: var(--texto-principal);
}

/* Iluminar el filtro activo */
#filtro-todos:checked ~ .filtros label[for="filtro-todos"],
#filtro-bodas:checked ~ .filtros label[for="filtro-bodas"],
#filtro-xv:checked ~ .filtros label[for="filtro-xv"],
#filtro-comunion:checked ~ .filtros label[for="filtro-comunion"],
#filtro-eventos:checked ~ .filtros label[for="filtro-eventos"] {
    color: var(--texto-principal);
    border-bottom-color: var(--acento);
    font-weight: 600;
}

/* Lógica de filtrado sin JavaScript */
#filtro-bodas:checked ~ .proyectos__grid .proyecto:not(.proyecto--bodas),
#filtro-xv:checked ~ .proyectos__grid .proyecto:not(.proyecto--xv),
#filtro-comunion:checked ~ .proyectos__grid .proyecto:not(.proyecto--comunion),
#filtro-eventos:checked ~ .proyectos__grid .proyecto:not(.proyecto--eventos) {
    display: none;
}

.proyectos__grid {
    display: grid;
    gap: 4rem;
}

@media (min-width: 768px) {
    .proyectos__grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 4rem;
        row-gap: 6rem;
    }
}

.proyecto__imagen-box {
    overflow: hidden;
    margin-bottom: 1.6rem;
    background-color: var(--piedra);
}

.proyecto__imagen {
    width: 100%;
    height: 42rem;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.proyecto:hover .proyecto__imagen {
    transform: scale(1.04);
}

.proyecto__info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.proyecto__titulo {
    font-family: var(--fuenteHeading);
    font-size: 2.6rem;
    font-weight: 500;
    margin: 0 0 0.4rem 0;
}

.proyecto__ubicacion {
    font-size: 1.3rem;
    color: var(--texto-secundario);
    margin: 0;
}

.proyecto__anio {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--acento);
}

/* =========================================
   PAQUETES (ACORDEÓN NATIVO CON <details>)
   ========================================= */
.acordeon {
    border-top: 1px solid var(--piedra);
}

.acordeon__item {
    border-bottom: 1px solid var(--piedra);
}

.acordeon__cabecera {
    padding: 2.8rem 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    list-style: none; /* Quita la flechita por defecto */
}

.acordeon__cabecera::-webkit-details-marker {
    display: none; /* Quita la flechita en Safari/Chrome */
}

.acordeon__numero {
    font-size: 1.3rem;
    color: var(--acento);
    width: 5rem;
}

.acordeon__titulo {
    font-family: var(--fuenteHeading);
    font-size: 2.6rem;
    flex: 1;
}

.acordeon__icono {
    font-size: 2.4rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.acordeon__item[open] .acordeon__icono {
    transform: rotate(45deg);
}

.acordeon__contenido p {
    margin: 0 0 2.8rem 5rem;
    color: var(--texto-secundario);
    max-width: 72rem;
}

/* =========================================
   CONTACTO Y FORMULARIO
   ========================================= */
.contacto__grid {
    display: grid;
    gap: 5rem;
}

@media (min-width: 768px) {
    .contacto__grid {
        grid-template-columns: 1fr 1.15fr;
        gap: 6rem;
    }
}

.contacto__texto {
    color: var(--texto-secundario);
    margin-bottom: 3rem;
}

.contacto__datos p {
    margin: 0.8rem 0;
    font-size: 1.5rem;
}

.formulario {
    background-color: var(--bg-secundario);
    padding: 3.5rem;
    border: 1px solid var(--piedra);
}

@media (min-width: 768px) {
    .formulario__fila {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.formulario__campo {
    margin-bottom: 2.2rem;
}

.formulario__label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.8rem;
    color: var(--texto-secundario);
}

.formulario__input {
    width: 100%;
    padding: 1.2rem 1.4rem;
    background-color: var(--bg-primario);
    border: 1px solid var(--piedra);
    font-family: var(--fuenteTexto);
    font-size: 1.5rem;
    color: var(--texto-principal);
}

.formulario__input:focus {
    outline: none;
    border-color: var(--acento);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    border-top: 1px solid var(--piedra);
    padding: 4rem 0;
    padding-bottom: 5rem;
}

.footer__contenido {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer__contenido {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer__copy {
    font-size: 1.3rem;
    color: var(--texto-secundario);
    margin: 0;
}

.footer__redes {
    display: flex;
    gap: 2.5rem;
}

.footer__enlace {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--texto-secundario);
}

.footer__enlace:hover {
    color: var(--acento);
}

/* =========================================
   LIGHTBOX / MODAL 100% CSS (con :target)
   ========================================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background-color: rgba(34, 32, 30, 0.85);
    padding: 2rem;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
}

/* Se muestra cuando el enlace apunta a su ID (#lightbox-1, etc.) */
.modal:target {
    display: flex;
}

.modal__contenido {
    background-color: var(--bg-secundario);
    max-width: 78rem;
    width: 100%;
    position: relative;
    border: 1px solid var(--piedra);
}

.modal__cerrar {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 3.6rem;
    height: 3.6rem;
    background-color: var(--bg-secundario);
    border: 1px solid var(--piedra);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__imagen {
    width: 100%;
    height: 44rem;
    object-fit: cover;
}

.modal__cuerpo {
    padding: 3.5rem;
}

.modal__titulo {
    font-family: var(--fuenteHeading);
    font-size: 3.4rem;
    font-weight: 500;
    margin: 0 0 1.2rem 0;
}

.modal__descripcion {
    color: var(--texto-secundario);
    margin: 0;
}
/* From Uiverse.io by wilsondesouza */ 

.example-2 {
    list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.example-2 .icon-content {
  margin: 0 10px;
  position: relative;
}
.example-2 .icon-content .tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: #FBF9F6;
  padding: 6px 10px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  font-size: 14px;
  transition: all 0.3s ease;
}
.example-2 .icon-content:hover .tooltip {
  opacity: 1;
  visibility: visible;
  top: -50px;
}
.example-2 .icon-content a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #4d4d4d;
  background-color: #FBF9F6;
  transition: all 0.3s ease-in-out;
}
.example-2 .icon-content a:hover {
  box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
}
.example-2 .icon-content a svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
}
.example-2 .icon-content a:hover {
  color: white;
}
.example-2 .icon-content a .filled {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #000;
  transition: all 0.3s ease-in-out;
}
.example-2 .icon-content a:hover .filled {
  height: 100%;
}

.example-2 .icon-content a[data-social="whatsapp"] .filled,
.example-2 .icon-content a[data-social="whatsapp"] ~ .tooltip {
  background-color: #128c7e;
}

.example-2 .icon-content a[data-social="facebook"] .filled,
.example-2 .icon-content a[data-social="facebook"] ~ .tooltip {
  background-color: #3b5998;
}
.example-2 .icon-content a[data-social="instagram"] .filled,
.example-2 .icon-content a[data-social="instagram"] ~ .tooltip {
  background: linear-gradient(
    45deg,
    #405de6,
    #5b51db,
    #b33ab4,
    #c135b4,
    #e1306c,
    #fd1f1f
  );
}

.texto-justify {
  text-align: justify;
  margin-inline: auto; /* centra también el bloque si tiene max-width */
}

/* =========================================
   PÁGINA DE GRACIAS
   ========================================= */
.gracias {
    min-height: calc(100vh - 8rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
    text-align: center;
}

.gracias__contenido {
    max-width: 60rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gracias__etiqueta {
    font-size: 1.2rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--acento);
    margin-bottom: 1.5rem;
}

.gracias__titulo {
    font-family: var(--fuenteHeading);
    font-size: 4rem;
    font-weight: 400;
    line-height: 1.12;
    margin: 0 0 2rem 0;
}

@media (min-width: 768px) {
    .gracias__titulo {
        font-size: 5.4rem;
    }
}

.gracias__texto {
    color: var(--texto-secundario);
    line-height: 1.7;
    margin: 0 0 3.5rem 0;
}