/* =========================================================
   ESTILOS EXCLUSIVOS: INVITACIONES DIGITALES
========================================================= */

/* ================== ANIMACIONES DE SCROLL ================== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================== HERO CON VIDEO ================== */
.hero-invitaciones {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 5%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); z-index: 2;
}

.hero-content {
    position: relative; z-index: 3;
}

.hero-content h1 {
    font-size: 3.5rem; font-weight: 800; margin-bottom: 20px;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.5); line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem; margin-bottom: 45px; max-width: 650px;
    margin-left: auto; margin-right: auto; color: #f4f4f4;
}

/* ================== CARACTERÍSTICAS ================== */
.caracteristicas-invitaciones {
    padding: 80px 5%;
    background-color: var(--color-secundario);
}

.grid-caracteristicas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; max-width: 1200px; margin: 0 auto;
}

.card-caract {
    background: white; padding: 40px 30px; border-radius: 15px;
    text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
}

.card-caract:hover {
    transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.card-caract i {
    font-size: 2.5rem; color: var(--color-acento);
    margin-bottom: 20px; transition: transform 0.3s ease;
}

.card-caract:hover i { transform: scale(1.1); }
.card-caract h3 { margin-bottom: 15px; font-weight: 700; font-size: 1.3rem; color: var(--color-primario); }
.card-caract p { color: #555; font-size: 1rem; line-height: 1.6; }

/* ================== PAQUETES ================== */
.paquetes-invitaciones {
    padding: 80px 5%; background-color: #fcfcfc;
}

.grid-paquetes {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; max-width: 1200px; margin: 0 auto; align-items: stretch; 
}

.card-paquete {
    display: flex; flex-direction: column; background: #ffffff;
    border: 1px solid #000000; border-radius: 16px; padding: 30px 25px;
    text-align: center; position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; 
}

.card-paquete:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.06); transform: translateY(-5px);
}

.card-paquete.destacado {
    border: 2px solid var(--color-acento); box-shadow: 0 10px 25px rgba(0, 112, 224, 0.08);
}

.etiqueta-popular {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--color-acento); color: white; padding: 6px 20px;
    border-radius: 20px; font-size: 0.8rem; font-weight: 800; letter-spacing: 1px;
}

.card-paquete h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--color-primario); }
.img-paquete {
    width: 50%; aspect-ratio: 4 / 4.5; height: auto; object-fit: cover;
    border-radius: 8px; margin-bottom: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    align-self: center;
}

.precio { font-size: 1.8rem; font-weight: 800; color: var(--color-primario); margin-bottom: 20px; }

.lista-incluye { list-style: none; text-align: left; margin-bottom: 30px; flex-grow: 1; }
.lista-incluye li {
    margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.9rem; color: #555; transition: transform 0.2s ease;
}
.lista-incluye li:hover { transform: translateX(5px); color: var(--color-primario); }
.lista-incluye i { color: var(--color-acento); margin-top: 3px; font-size: 1rem; min-width: 20px; }

/* ================== BOTONES DE PAQUETES ================== */
.botones-paquete { display: flex; flex-direction: column; gap: 15px; margin-top: auto; width: 100%; }
.btn-demo, .btn-comprar, .btn-comprar-destacado {
    appearance: none; display: flex; align-items: center; justify-content: center;
    gap: 8px; width: 100%; padding: 14px 20px; border-radius: 8px;
    font-family: 'Montserrat', sans-serif; font-size: 0.9rem; text-transform: uppercase;
    cursor: pointer; transition: all 0.3s ease; margin: 0; box-sizing: border-box; line-height: 1.2;
}

.btn-demo { background-color: #ffffff; color: var(--color-primario); border: 2px solid var(--color-primario); font-weight: 700; padding: 4px 0; }
.btn-demo:hover { background-color: #f2f2f2; }
.card-paquete.destacado .btn-demo { border-color: var(--color-acento); color: var(--color-acento); }
.card-paquete.destacado .btn-demo:hover { background-color: #f0f8ff; }

.btn-comprar { background-color: var(--color-primario); color: #ffffff; border: 2px solid var(--color-primario); font-weight: 700; }
.btn-comprar:hover { background-color: #333333; border-color: #333333; }

.btn-comprar-destacado { background-color: var(--color-acento); color: #ffffff; border: 2px solid var(--color-acento); font-weight: 800; }
.btn-comprar-destacado:hover { background-color: #005bb5; border-color: #005bb5; box-shadow: 0 5px 15px rgba(0, 112, 224, 0.4); }

.btn-demo i, .btn-comprar i, .btn-comprar-destacado i { font-size: 1.15em; margin: 0; }

/* ================== ACORDEÓN "VER MÁS" ================== */
.lista-colapsable-container { flex-grow: 1; text-align: left; }
.elementos-ocultos { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.elementos-ocultos-inner { overflow: hidden; }
.elementos-ocultos-inner li { transition: opacity 0.3s ease, transform 0.3s ease; opacity: 0; transform: translateY(-10px); }
.lista-colapsable-container.expandida .elementos-ocultos { grid-template-rows: 1fr; }
.lista-colapsable-container.expandida .elementos-ocultos-inner li { opacity: 1; transform: translateY(0); }

.btn-ver-mas {
    background: transparent; border: none; color: var(--color-acento);
    font-size: 0.9rem; font-weight: 700; cursor: pointer; margin: 15px auto 25px auto;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: color 0.3s ease; width: 100%;
}
.btn-ver-mas:hover { color: #005bb5; text-decoration: underline; }
.btn-ver-mas i { transition: transform 0.4s ease; font-size: 0.9rem; }
.btn-ver-mas[aria-expanded="true"] i { transform: rotate(180deg); }

/* ================== LIGHTBOX ESPECÍFICO (MULTIMEDIA) ================== */
#lightbox-global {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.9); z-index: 100000; display: flex;
    justify-content: center; align-items: center; opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease; cursor: zoom-out;
}
#lightbox-global.activo { opacity: 1; visibility: visible; }

#lightbox-global .lightbox-contenido {
    width: 90%; max-width: 800px; cursor: default; display: flex;
    justify-content: center; align-items: center; transform: scale(0.9); transition: transform 0.3s ease;
}
#lightbox-global.activo .lightbox-contenido { transform: scale(1); }

#lightbox-global .lightbox-contenido img, 
#lightbox-global .lightbox-contenido video {
    max-width: 100%; max-height: 85vh; border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8); display: block; object-fit: contain;
}

/* ================== ECO-FRIENDLY ================== */
.seccion-promocional {
    padding: 80px 5%; background-color: #fcfcfc; display: flex;
    justify-content: center; position: relative; overflow: hidden;
}
.promo-contenedor { display: flex; align-items: center; max-width: 1100px; width: 100%; }
.promo-imagen { width: 60%; border-radius: 20px; overflow: hidden; position: relative; z-index: 1; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.promo-imagen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-texto {
    width: 45%; background-color: #ffffff; padding: 50px 40px; border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12); position: relative; z-index: 2;
    display: flex; flex-direction: column; justify-content: center;
}
.promo-invertido { flex-direction: row-reverse; }
.promo-invertido .promo-texto { margin-left: 0; margin-right: -80px; }
.promo-texto h3 { font-size: 0.9rem; color: #4caf50; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.promo-texto h2 { font-size: 2.3rem; font-weight: 800; color: var(--color-primario); margin-bottom: 15px; line-height: 1.15; }
.promo-texto p { font-size: 1.05rem; color: #555; line-height: 1.6; margin-bottom: 25px; }
.eco-lista { list-style: none; }
.eco-lista li { margin-bottom: 15px; font-size: 0.95rem; color: #444; display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; }
.eco-lista i { color: #4caf50; font-size: 1.2rem; margin-top: 2px; }

/* Decoración Floral */
.seccion-promocional::before, .seccion-promocional::after {
    content: ''; position: absolute; width: 250px; height: 250px;
    background-size: contain; background-repeat: no-repeat; opacity: 0;
    transform: scale(0.7); transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1s ease-out;
    pointer-events: none; z-index: 0;
}
.seccion-promocional::before {
    background-image: url('https://artesy.mx/invitacion/img/rama-izq.webp');
    top: -50px; left: -50px; transform: scale(0.7) rotate(-15deg); 
}
.seccion-promocional::after {
    background-image: url('https://artesy.mx/invitacion/img/rama-der.webp');
    bottom: -50px; right: -50px; transform: scale(0.7) rotate(15deg);
}
.seccion-promocional.visible::before, .seccion-promocional.visible::after {
    opacity: 0.2; transform: scale(1) rotate(0deg);
}
.seccion-promocional.visible::before { top: -10px; left: -10px; }
.seccion-promocional.visible::after { bottom: -10px; right: -10px; }

/* ================== GALERÍA ================== */
.galeria-ejemplos { padding: 80px 5%; background-color: var(--color-primario); }
.grid-ejemplos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }
.ejemplo-item { position: relative; border-radius: 15px; overflow: hidden; cursor: pointer; }
.ejemplo-item img { width: 100%; height: 380px; object-fit: cover; display: block; transition: transform 6s cubic-bezier(0.1, 0.7, 0.1, 1); }
.ejemplo-item:hover img { transform: scale(1.15); }
.ejemplo-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
    display: flex; align-items: flex-end; justify-content: center; padding-bottom: 30px;
    opacity: 0; transition: opacity 0.4s ease;
}
.ejemplo-item:hover .ejemplo-overlay { opacity: 1; }
.ejemplo-overlay span {
    color: white; font-size: 1.3rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; transform: translateY(20px); transition: transform 0.4s ease;
}
.ejemplo-item:hover .ejemplo-overlay span { transform: translateY(0); }

/* ================== RESOLVEMOS TUS DUDAS (FAQ) ================== */
.faq-seccion { padding: 80px 5%; background-color: #ffffff; }
.faq-contenedor { max-width: 800px; margin: 0 auto; border-top: 1px solid #eaeaea; }
.faq-item { border-bottom: 1px solid #eaeaea; }
.faq-pregunta {
    width: 100%; background: transparent; border: none; display: flex;
    justify-content: space-between; align-items: center; padding: 22px 0;
    font-size: 1.1rem; font-weight: 600; color: var(--color-primario);
    cursor: pointer; text-align: left; transition: color 0.3s ease; gap: 15px;
}
.faq-pregunta:hover { color: var(--color-acento); }
.faq-pregunta i { font-size: 1.2rem; color: var(--color-acento); transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); flex-shrink: 0; }
.faq-respuesta { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.faq-respuesta-inner { overflow: hidden; padding-bottom: 0; transition: padding-bottom 0.4s ease; }
.faq-respuesta-inner p { color: #555; font-size: 1rem; line-height: 1.6; margin: 0; }

.faq-item.activo .faq-pregunta { color: var(--color-acento); }
.faq-item.activo .faq-pregunta i { transform: rotate(45deg); }
.faq-item.activo .faq-respuesta { grid-template-rows: 1fr; }
.faq-item.activo .faq-respuesta-inner { padding-bottom: 22px; }

/* ================== RESPONSIVE ESCRITORIO (PC) ================== */
@media (min-width: 992px) {
    .faq-contenedor {
        display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 50px;
        row-gap: 0; max-width: 1000px; border-top: none; border-bottom: 1px solid #eaeaea;
    }
    .faq-item { align-self: start; border-top: 1px solid #eaeaea; border-bottom: none; }
}

/* ================== RESPONSIVE MÓVIL (INVITACIONES) ================== */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .caracteristicas-invitaciones, .paquetes-invitaciones { padding: 50px 5%; }
    .card-caract, .card-paquete { padding: 30px 20px; }
    .seccion-promocional::before, .seccion-promocional::after { display: none; }
    .promo-contenedor { flex-direction: column-reverse; align-items: center; }
    .promo-texto { width: 90%; margin-left: 0; margin-right: 0; margin-bottom: -40px; padding: 30px 20px; text-align: left; }
    .promo-invertido .promo-texto { margin-right: 0; }
    .promo-imagen { width: 100%; }
    .promo-texto h2 { font-size: 1.8rem; }
    .eco-lista li { text-align: left; }
}


