/*!
 * ============================================================================
 * Iglesia Alianza Cristiana y Misionera Los Olivos
 * Version: 7.0.0
 * ============================================================================*/

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;

}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 900px;
    animation: fadeInUp-co 1s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-text {
    font-size: var(--font-size-subtitle);
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn {
    display: inline-block;
    padding: 20px 32px;
    font-size: var(--font-size-small);
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    min-width: 180px;
    text-align: center;
}

.btn-main {
    background-color: var(--color-main);
    color: white;
    border-color: var(--color-main-hover);
}

.btn-main:hover {
    background-color: transparent;
    color: white;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-alt {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-alt:hover {
    background-color: white;
    color: var(--color-main);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-container {
    margin: 80px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.whatsapp-content {
    background: var(--bg-profile-wrapper);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.whatsapp-info {
    background: linear-gradient(135deg, var(--main-color-nets), var(--bg-valores-gradient));
    color: var(--text-body);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.whatsapp-titulo {
    color: var(--text-title);
    font-family: var(--font-heading);
    font-size: var(--font-size-h2);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.whatsapp-descripcion {
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
}

.whatsapp-beneficios {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.beneficio {
    align-items: center;
    display: flex;
    font-family: var(--font-body);
    font-size: 1rem;
    gap: 12px;
}

.beneficio-icono {
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    font-size: 1.4rem;
    height: 45px;
    justify-content: center;
    padding: 8px;
    width: 45px;
}

.whatsapp-caracteristicas {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
}

.whatsapp-caracteristicas h3 {
    color: var(--text-title);
    font-family: var(--font-heading);
    font-size: var(--font-size-h3);
    margin-bottom: 15px;
}

.whatsapp-caracteristicas ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.whatsapp-caracteristicas li {
    align-items: center;
    display: flex;
    font-family: var(--font-body);
    font-size: 0.95rem;
    gap: 10px;
    padding: 8px 0;
}

.whatsapp-formulario-container {
    background: var(--bg-soft);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.whatsapp-qr-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.qr-header {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.qr-header h3 {
    color: var(--text-title);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0;
}

.qr-icono {
    font-size: 2rem;
}

.qr-code-wrapper {
    align-items: flex-start;
    display: flex;
    gap: 30px;
}

.qr-code {
    flex-shrink: 0;
    height: 200px;
    position: relative;
    width: 200px;
}

.qr-code img {
    border: 3px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    width: 100%;
}

.qr-content {
    align-items: center;
    background: var(--bg-soft);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    height: 180px;
    justify-content: center;
    margin: 0 auto;
    width: 180px;
}

.qr-overlay {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.qr-logo {
    align-items: center;
    background: var(--bg-profile-wrapper);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    font-size: 24px;
    height: 50px;
    justify-content: center;
    width: 50px;
}

.qr-instructions {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 15px;
}

.instruccion {
    align-items: center;
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    gap: 15px;
    padding: 12px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.instruccion:hover {
    border-color: var(--main-color-nets);
    transform: translateX(5px);
}

.instruccion .num {
    align-items: center;
    background: var(--main-color-nets);
    border-radius: 50%;
    color: var(--text-white);
    display: flex;
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-weight: 300;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.instruccion span:last-child {
    color: var(--text-date-comu);
    font-family: var(--font-body);
}

.whatsapp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-whatsapp {
    align-items: center;
    background: #25D366;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    flex: 1;
    font-family: var(--font-button);
     font-size: var(--font-size-small);
    font-weight: 700;

    gap: 12px;
    justify-content: center;
    min-width: 200px;
    padding: 18px 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background: #1da851;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

.btn-copiar {
    align-items: center;
    background: var(--main-color-nets);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(7, 110, 254, 0.3);
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    flex: 1;
    font-family: var(--font-button);
    font-size: var(--font-size-small);
    font-weight: 200;
    gap: 12px;
    justify-content: center;
    min-width: 200px;
    padding: 18px 30px;
    transition: all 0.3s ease;
}

.btn-copiar:hover {
    background: var(--face-color-button-hover);
    box-shadow: 0 6px 15px rgba(7, 110, 254, 0.4);
    transform: translateY(-2px);
}

.btn-icono {
    font-size: 1.2rem;
}

.btn-texto {
    letter-spacing: 0.5px;
}

.whatsapp-mensajes {
    margin-top: 25px;
}

.mensaje {
    align-items: center;
    animation: fadeIn 0.5s ease forwards;
    border-radius: 10px;
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding: 18px;
}

.mensaje-icono {
    flex-shrink: 0;
    font-size: 1.8rem;
}

.mensaje-contenido h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.mensaje-contenido p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin: 0;
}

.mensaje-info {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #2980b9;
    display: flex !important;
}

.mensaje-exito {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #27ae60;
}

.mensaje-advertencia {
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.3);
    color: #d35400;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .whatsapp-content {
        gap: 0;
        grid-template-columns: 1fr;
    }

    .whatsapp-formulario-container,
    .whatsapp-info {
        padding: 30px;
    }

    .whatsapp-titulo {
        font-size: 2rem;
    }

    .qr-code-wrapper {
        align-items: center;
        flex-direction: column;
    }

    .whatsapp-actions {
        flex-direction: column;
    }

    .btn-copiar,
    .btn-whatsapp {
        width: 100%;
    }
}

.contenedor {
    margin: 18px auto;
    max-width: 2000px;
    padding: 20px 16px;
}

.titulo-publicaciones {
    color: var(--text-title);
    display: flex;
    font-family: var(--font-heading);
    font-size: var(--font-size-h1);
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    margin-bottom: 20px;
    padding: 20px;
}

.subtitulo-publicaciones {
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    line-height: 1.6;
    margin-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
    opacity: 0.95;
    text-align: center;
}

.barra-herramientas {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.titulo {
    color: var(--text-title);
    font-family: var(--font-titles);
    font-size: 20px;
}

.galeria {
    column-count: 4;
    column-gap: 16px;
}

.tarjeta {
    background: var(--color-white);
    border-radius: var(--border-radius-comu);
    box-shadow: var(--shadow);
    break-inside: avoid;
    cursor: pointer;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}

.tarjeta:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.tarjeta img,
.tarjeta video {
    display: block;
    height: auto;
    width: 100%;
}

.tarjeta-crear {
    align-items: center;
    background: linear-gradient(135deg, var(--color-main), var(--color-main-hover));
    border: 2px dashed rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    display: flex;
    font-family: var(--font-titles);
    font-size: 18px;
    height: 240px;
    justify-content: center;
}

.btn-cargar-mas:hover,
.tarjeta-crear:hover {
    background: linear-gradient(135deg, var(--color-main-hover), #0949a5);
    transform: none;
}

.overlay-tarjeta {
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.35));
    display: flex;
    gap: 10px;
    inset: 0;
    justify-content: center;
    opacity: 0;
    position: absolute;
    transition: opacity .22s ease;
}

.tarjeta:hover .overlay-tarjeta {
    opacity: 1;
}

.acciones-centro {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: center;
    transform: translateY(10px);
    transition: transform .22s ease;
}

.tarjeta:hover .acciones-centro {
    transform: translateY(0);
}

.boton-icono {
    align-items: center;
    backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-size: 18px;
    height: 46px;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    width: 46px;
}

.boton-icono:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
}

.acciones-centro span {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.barra-info {
    background: var(--color-white);
    padding: 12px;
}

.titulo-tarjeta {
    color: black;
    font-family: var(--font-titles);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fecha-tarjeta {
    color: var(--text-date-comu);
    font-size: 13px;
}

.btn-cargar-mas {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    display: block;
    font-size: 16px;
    grid-column: 1 / -1;
    margin: 30px auto;
    padding: 12px 20px;
    transition: background 0.3s;
    width: 200px;
}

.mensaje-error-simple {
    background: rgba(255, 71, 87, 0.1);
    border-radius: 4px;
    color: #ff4757;
    font-size: 14px;
    margin: 10px 0;
    padding: 10px;
    text-align: center;
    width: 100%;
}

@media(max-width:1200px) {
    .galeria {
        column-count: 3
    }
}

@media(max-width:900px) {
    .galeria {
        column-count: 2
    }
}

@media(max-width:520px) {
    .galeria {
        column-count: 1
    }
}



@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        height: 80vh;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .hero-text {
        font-size: 1.2rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn {
        width: 100%;
        min-width: auto;
        padding: 12px 24px;
    }


}

@media (max-width: 480px) {
    .hero {
        height: 70vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .btn {
        font-size: 1rem;
        padding: 10px 20px;
    }
}


@media (prefers-color-scheme: dark) {
    .video-overlay {
        background: linear-gradient(to bottom,
                rgba(0, 0, 0, 0.7) 0%,
                rgba(0, 0, 0, 0.5) 50%,
                rgba(0, 0, 0, 0.7) 100%);
    }
}

@media print {

    .hero-video {
        display: none;
    }

    .hero {
        height: auto;
        min-height: auto;
        background: white !important;
    }

    .hero-content {
        color: black !important;
        text-shadow: none !important;
    }
}

@media (max-width: 900px) {
    .suscripcion-content {
        grid-template-columns: 1fr;
    }

    .suscripcion-info {
        padding: 30px;
    }

    .suscripcion-titulo {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .suscripcion-container {
        margin: 30px 15px;
        padding: 0;
    }

    .suscripcion-formulario-container,
    .suscripcion-info {
        padding: 25px 20px;
    }

    .suscripcion-titulo {
        font-size: 1.8rem;
    }

    .btn-suscripcion {
        flex-direction: column;
        gap: 8px;
        padding: 15px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn-co {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp-co {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}