/* FORMULARIO */

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

.hidden {
    display: none;
}

button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.alert {
    position: relative;
}

.alert-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 20px;
    font-weight: bold;
    line-height: 28px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.alert-close:hover {
    background: rgba(0,0,0,0.25);
    opacity: 1;
}

/* CHECKBOX */
.checkbox-group {
    margin-top: 12px;
    text-align: left;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-item input[type="checkbox"] {
    margin-top: 3px; /* alinea visualmente con la primera línea del texto */
    flex-shrink: 0;
}

.checkbox-item span {
    display: block;
}

@media (max-width: 768px) {
    #maximage_single {
        display: none !important;
    }
}

.hero_fullscreen {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero_fullscreen h1 {
    color: #6b83d1;      
    opacity: 1;     
    text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.hero_fullscreen h6 {
    color: #85bef7f8;
    opacity: 1;
}


/* Fondo */
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../images/home_background_01.jpg') center center / cover no-repeat;
    z-index: 0;
}

/* Contenido */
.hero-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* FOOTER LAYOUT */

/* FOOTER GRID */

.footer-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    text-align: left;
    flex-wrap: wrap;
}

.footer-col {
    text-align: left;
}

/* TITULOS */

.footer-title {
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* INFO */

.footer-info {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}


/* LINKS */

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #e6f0e1;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* REDES */

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
    color: #1e90ff;           /* azul hover */
    transform: translateY(-2px); /* micro efecto elegante */
}

/* FOOTER BOTTOM */

.footer-bottom {
    margin-top: 40px;
    text-align: center;
}

/* DATA FISCAL  */

.footer-fiscal img {
    width: 80px;
    height: auto;
}

/*  MODAL  */
#modal-overlay {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* el cartel del template debe quedar arriba */
#message {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 9999;
}

/* opcional: bloquear scroll */
body.modal-open {
    overflow: hidden;
}


/* INDEX BACK BUTTON */

.back-button {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1000;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 8px 12px;
    border-radius: 20px;

    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-decoration: none;
    font-size: 14px;

    transition: background 0.2s ease;
}

.back-button:hover {
    background: rgba(0, 0, 0, 0.8);
}


/* SECCION VIDEO */

.inline-video {
    width: 100%;
    aspect-ratio: 9 / 16;   /* vertical */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.inline-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;      /* o contain */
    display: block;
    opacity: 1;
}

#video-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;
}

#video-overlay.hidden {
    display: none;
}

/* CONTENEDOR DEL VIDEO */
.video-modal {
    position: relative;
    width: 90vw;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    max-height: 90vh;

    background: #000;
    border-radius: 12px;
    overflow: hidden;
}


/* VIDEO */
.video-modal video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    aspect-ratio: 16 / 9;

    display: block;
    background: #000;

    opacity: 1;
}

#video-overlay.fade-out {
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

#skip-video {
    position: absolute;
    bottom: 80px;        
    right: 16px;

    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;

    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border: none;
    cursor: pointer;

    z-index: 10;      /* por encima del video */

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}


#skip-video.visible {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .video-modal {
        width: 95vw;
        max-height: 85vh;
    }
}

/* WHATSAPP FLOAT */

.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    transition: transform 0.25s ease, filter 0.25s ease;
}

.whatsapp-float img {
    width: 80px;      /* tamaño grande */
    height: 80px;

    display: block;

    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
    transition: transform 0.25s ease;
}

.whatsapp-float:hover img {
    transform: scale(1.4) rotate(15deg);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.45));
}



/* COOKIE BANNER */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    z-index: 9999;

    padding: 16px;
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    font-size: 14px;
}

.cookie-content a {
    color: #4fc3f7;
    text-decoration: underline;
}

.cookie-content .btn {
    white-space: nowrap;
}

.cookie-banner.hidden {
    display: none;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
}
