﻿/* =====================================
   Unified Styles: styles.css
   ===================================== */

/* ---- Variables (sólo para carousel) ---- */
:root {
    --color-bg: #f0f5fa;
    --color-text: #334155;
    --font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
}

/* ---- General ---- */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* ---- Barra superior ---- */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo img {
    margin-left: -15px;
    width: 130px;
    height: 35px;
    margin-top: 7px;
}

.top-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .top-icons .icon {
        width: 24px;
        height: 24px;
        fill: #00aef0;
        cursor: pointer;
    }
/* íconos específicos */
#icon-menu {
    fill: #f89420;
}

/* ---- Contenido principal ---- */
.center-logo {
    text-align: center;
    margin: 20px 0;
}

    .center-logo img {
        max-width: 45%;
        height: auto;
        margin-bottom: -30px;
    }

.logocentrado {
    max-width: 172px;
    margin-top: 200px;
    position: initial
}



/* ---- Animación de imagen de carro / headings ---- */
.car-image {
    text-align: center;
    margin: 20px 0;
}

    .car-image img {
        max-width: 90%;
        height: auto;
        animation: car-image-fade 1.5s ease-out forwards;
        opacity: 0;
    }

h2 {
    text-align: center;
    color: #00aef0;
    animation: text-fade 1.5s ease-out forwards;
    opacity: 0;
    animation-delay: 1s;
}

p {
    text-align: center;
    color: #8b8b8b;
    animation: text-fade 1.5s ease-out forwards;
    opacity: 0;
    animation-delay: 1.3s;
}

@keyframes car-image-fade {
    from {
        transform: translateZ(50px);
        opacity: 0;
    }

    to {
        transform: translateZ(0);
        opacity: 1;
    }
}

@keyframes text-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ---- Formulario ---- */
.formulario {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding-bottom: 160px;
}

.form-fields-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.col-20 {
    flex: 1 1 calc(20% - 20px);
}

.col-25 {
    flex: 1 1 calc(25% - 20px);
}

.col-30 {
    flex: 1 1 calc(30% - 20px);
}

.col-100 {
    flex: 1 1 100%;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
    font-size: 1rem;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    margin-bottom: 20px;
}

    .form-group input:focus,
    .form-group select:focus {
        border-color: #f89420;
        outline: none;
    }

.form-group button {
    padding: 12px 20px;
    background-color: #f89420;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .form-group button:hover {
        background-color: #264e72;
    }

/* ---- Ocultar / Overlay / Spinner ---- */
.hidden {
    display: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(255 255 255 / 53%);
    display: flex;
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
    opacity: 0;
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
    pointer-events: none; /* Permite interactuar con elementos bajo el overlay */
}

    .overlay.visible {
        opacity: 1;
        backdrop-filter: blur(10px) brightness(0.98);
        pointer-events: auto; /* Permite interacciones cuando está visible */
    }

/* Nuevo diseño de spinner */
.spinner {
    width: 80px;
    height: 80px;
    position: relative;
    animation: breath 2s ease-in-out infinite;
}

    .spinner::before,
    .spinner::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
    }

    .spinner::before {
        border: 3px solid transparent;
        border-top-color: #439ff4;
        border-bottom-color: #26e6e7;
        animation: rotate 1.5s cubic-bezier(0.85, -0.38, 0.58, 1) infinite;
    }

    .spinner::after {
        width: 60%;
        height: 60%;
        background: linear-gradient(45deg, #000000 0%, #000000 100%);
        filter: blur(1px);
        opacity: 0.4;
        animation: pulse 2s ease-out infinite;
    }

@keyframes breath {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.2;
    }
}

.spinner-container #loadingMessage,
.spinner-container #authenticatingMessage {
    position: absolute;
    top: -0px; /* Ajustamos esta valor */
    left: 50%;
    transform: translateX(-50%);
    color: #123d7c;
    font-size: 18px;
    text-align: center;
    width: 100%; /* Añadimos esto */
    white-space: nowrap; /* Evita salto de línea */
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5); /* Mejor contraste */
}

/* Añade esto para el contenedor */
.spinner-container {
    position: relative;
    min-height: 150px; /* Espacio para los mensajes */
    padding-top: 70px; /* Espacio superior para el mensaje */
    margin: 20px;
}

@keyframes textFlow {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-3px);
    }
}

/* ---- Mensajes de error y éxito ---- */
.error-text {
    color: red;
    margin-top: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

    .error-text.visible {
        opacity: 1;
    }

#successMessage {
    display: none;
    animation: loadAnimation 1s ease-out forwards;
}

@keyframes loadAnimation {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* ---- Secciones adicionales ---- */
.section {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    height: 400px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .section h2,
    .section p {
        text-align: center;
        margin-bottom: 20px;
    }

/* ---- Validating / Authenticating Sections ---- */
#validatingInfoSection,
#authenticatingSection {
    display: none;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

    #validatingInfoSection h2,
    #authenticatingSection p {
        color: #54ad4d;
        font-size: 1.5em;
    }

    #validatingInfoSection .spinner-container,
    #authenticatingSection .spinner-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

/* ---- Footer ---- */
.footer {
    background-color: #264e72;
    padding: 20px;
}

    .footer .divider {
        border-top: 1px solid #ccc;
        margin: 20px 0;
    }

    .footer h3 {
        text-align: center;
        color: #ffffff;
        margin-bottom: 20px;
    }

    .footer .icon-list {
        list-style: none;
        padding: 0;
        margin: 0 auto 20px;
        max-width: 600px;
        text-align: left;
    }

        .footer .icon-list li {
            display: flex;
            align-items: center;
            margin: 10px 0;
        }

        .footer .icon-list .icon {
            width: 24px;
            height: 24px;
            margin-right: 10px;
            fill: #00aef0;
        }

    .footer .social-icons {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin: 20px 0;
    }

        .footer .social-icons a .icon {
            width: 32px;
            height: 32px;
            fill: #00aef0;
        }

    .footer .footer-images {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        gap: 20px;
        align-items: center;
    }

        .footer .footer-images img {
            max-width: 150px;
            height: auto;
        }

/* ---- Carousel (styles-carousel) ---- */
.carousel-section {
    width: 100%;
    background: white;
    padding: 2rem 1rem;
    box-sizing: border-box;
    margin-top: -190px;
    margin-bottom: -110px;
}

.carousel-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.carousel-item {
    flex: 1 1 300px;
    max-width: 400px;
    margin: 0 auto;
}

    .carousel-item img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        border-radius: 6px;
    }

    .carousel-item .image-stack {
        position: relative;
        width: 100%;
        height: auto;
    }

        .carousel-item .image-stack .bg {
            display: block;
            margin-bottom: -190px;
            width: 100%;
            height: auto;
            border-radius: 6px;
        }

        .carousel-item .image-stack .overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 10;
            width: 100%;
            height: auto;
            pointer-events: none;
        }

.carousel-text {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    margin-top: -70px;
}

    .carousel-text h2 {
        margin: 0;
        font-family: var(--font-family);
        font-weight: 600;
        font-size: 1.875rem;
        line-height: 1.3;
        color: var(--color-text);
    }

    .carousel-text .subtitle {
        margin: 0;
        font-family: var(--font-family);
        font-weight: 400;
        font-size: 1rem;
        line-height: 1.5;
        color: var(--color-text);
    }

.animate__fadeIn {
    --animate-duration: 1s;
}

.animate__zoomInUp {
    --animate-duration: 1s;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .carousel-container {
        flex-direction: column;
    }

    .top-bar {
        align-items: flex-start;
    }

    .top-icons {
        margin-top: 10px;
    }

    .form-fields-wrapper {
        flex-direction: column;
    }

    .col-20, .col-25, .col-30 {
        flex: 1 1 100%;
    }

    .footer .icon-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer .icon-list .icon {
        margin-bottom: 5px;
    }
}

@media (max-width: 544px) {
    :root {
        font-size: 91.2%;
    }
}


/* Contenedor principal del footer */
.elementor-location-footer {
    background-color: #343434
}

/* Sección de copyright */
.site-below-footer-wrap[data-section="section-below-footer-builder"] {
    background-color: var(--ast-global-color-5);
    border-top: 1px solid var(--ast-global-color-7); /* Borde superior */
    padding-top: 20px;
    padding-bottom: 20px;
}

.ast-footer-copyright {
    color: var(--ast-global-color-3); /* Color de texto gris */
    font-size: 1rem;
    text-align: center;
}

/* Lista de enlaces de múltiples columnas */
.multi-column-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

    .multi-column-list p {
        margin: 5px 0;
        color: white;
    }

/* Social Icons */
.elementor-social-icons-wrapper {
    display: flex;
    gap: 0px;
    margin: 55px;
}

.elementor-social-icon {
    color: #ffffff00;
    transition: all 0.3s ease;
}

    .elementor-social-icon:hover {
        color: var(--ast-global-color-0); /* Color primario azul */
    }

    .elementor-social-icon svg {
        width: 24px;
        height: 24px;
        fill: rgb(255 255 255);
    }

/* Imágenes del footer */
.elementor-widget-image img {
    max-width: 30%;
    height: auto;
    margin-left: 15px;
    padding-bottom: 35px;
}

/* Responsive */
@media (max-width: 921px) {
    .elementor-location-footer {
        padding: 1.5em 0;
    }

    .multi-column-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 544px) {
    .multi-column-list {
    }

    .elementor-social-icons-wrapper {
        justify-content: center;
    }
}

