@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #F48A00;
    --secondary-color: #052F65;
    --font-family: 'Poppins', sans-serif;
}

/* Reset acotado — solo afecta el área del formulario, NO el footer */
.page-main *,
.container * {
    box-sizing: border-box;
}

html {
    margin: 0 !important;
    padding: 0 !important;
    background-color: #021a3a !important;
    /* El fondo del html del mismo color que la base del footer para que si hay hueco se camufle */
}

body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

body {
    background-color: #08122e;
    font-family: var(--font-family);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Corrección de z-index y color para menú móvil */
.main-header {
    z-index: 1000 !important;
}
.mobile-toggle {
    z-index: 1001 !important;
}
.mobile-toggle i {
    color: #fff !important;
}


/* ===== FOOTER: restaurar estilos correctos ===== */
.main-footer {
    background-color: #052F65 !important;
    padding: 0 !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    min-height: auto;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    box-sizing: border-box !important;
}

.footer-content {
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: auto;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px 5% 40px 5%;
    box-sizing: border-box;
    background-color: #052F65;
    position: relative;
}

.footer-main-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.footer-logo {
    flex: 0 1 300px;
    margin-right: 20px;
    align-self: center;
}

.footer-logo img {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
}

.footer-links-container {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 150px;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: underline;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-contactanos p {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.4;
}

.footer-contactanos p.email-footer {
    color: var(--primary-color) !important;
    font-weight: 500;
    margin-top: 15px;
    text-decoration: underline;
}

.footer-col-social-reclamaciones {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 200px;
}

.footer-social-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
}

.footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    color: #ffffff;
    border-radius: 50%;
    font-size: 18px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: transparent;
    border-color: #ffffff;
    transform: translateY(-5px);
}

.reclamaciones {
    width: 100%;
    display: flex;
    justify-content: center;
}

.reclamaciones h3 {
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: underline;
}

.reclamaciones img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-bottom-bar {
    font-family: 'Poppins', sans-serif;
    background-color: #021a3a;
    padding: 15px 40px;
    color: rgba(255, 255, 255, 0.75);
    width: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.footer-bottom-content {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.footer-bottom-content p {
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 1100px) {
    .footer-main-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer-logo {
        flex: 0 0 auto;
        margin-bottom: 20px;
    }

    .footer-links-container {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        padding-left: 0;
    }

    .footer-column {
        flex: 0 0 calc(50% - 30px);
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        padding: 50px 5% 30px 5%;
    }

    .footer-main-row {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px 10px;
        justify-content: space-between;
    }

    .footer-column {
        flex: 0 0 calc(50% - 10px);
        /* Obliga a 2 columnas exactas */
        min-width: 0;
        /* Quita el min-width para que no pase a 1 columna en pantallas muy chicas */
        text-align: left;
        /* Alineado a la izquierda para mejor lectura en 2 columnas */
    }

    .footer-col-social-reclamaciones {
        flex: 0 0 calc(50% - 10px);
        text-align: left;
        margin-top: 0;
    }

    .footer-social {
        justify-content: flex-start;
    }
}

/* Fix para resetear márgenes de los párrafos en la barra inferior (evita el hueco abajo) */
.footer-bottom-bar p {
    margin: 0;
    padding: 0;
}

/* Blobs animados de fondo (igual que reach-section) */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
    animation: reachDrift 12s ease-in-out infinite alternate;
}

body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #1e5ccc, #0a2a6e);
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

body::after {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #3a7bd5, #0d2e6b);
    top: 40%;
    left: 45%;
    animation-delay: -8s;
}

@keyframes reachDrift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 35px) scale(1.1);
    }
}

/* Centra el contenido principal (sin afectar el footer) */
.page-main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 120px 16px 60px;
    flex-grow: 1;
    /* ocupa todo el espacio disponible → footer al fondo */
    position: relative;
    z-index: 1;
    background-color: transparent;
}

/* ===== TÍTULO PRINCIPAL ===== */
.main-title {
    margin-bottom: 28px;
    color: #FFFFFF;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.container {
    background: transparent;
    /* Glassmorphism */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid transparent;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 8px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    min-height: 600px;
    flex-grow: 1;
    transition: transform 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
}

/* ===== PANELES DE FORMULARIO ===== */
.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.container.right-panel-active .sign-in-container {
    transform: translateX(100%);
    opacity: 0;
    z-index: 1;
}

.sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

@keyframes show {

    0%,
    49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%,
    100% {
        opacity: 1;
        z-index: 5;
    }
}

/* ===== FORMULARIOS ===== */
form {
    background-color: transparent;
    /* Permite ver el glassmorphism del contenedor */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 15px;
    align-content: center;
    padding: 40px 48px;
    height: 100%;
    overflow-y: auto;
}

/* Elementos que deben ocupar todo el ancho (2 columnas) */
form h1,
form span.subtitle,
form textarea,
form button,
form .btn-whatsapp,
form .file-upload,
form select,
form input[name="ciudad"] {
    grid-column: span 2;
}

form::-webkit-scrollbar {
    display: none;
}

form {
    scrollbar-width: none;
}

form h1 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: -4px;
    margin-top: 45px;
}

span.subtitle {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    display: block;
}

/* ===== INPUTS ===== */
input,
textarea,
select {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    padding: 12px 18px;
    margin: 0;
    width: 100%;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

input:hover,
textarea:hover,
select:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05), inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

input:focus,
textarea:focus,
select:focus {
    border-color: #1e5ccc;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(30, 92, 204, 0.15);
    transform: translateY(-2px);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

textarea {
    resize: vertical;
    min-height: 70px;
}

/* ===== FILE UPLOAD ===== */
.file-upload {
    width: 100%;
    margin: 5px 0;
}

.file-upload label {
    display: block;
    font-size: 11px;
    color: #777;
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.file-upload input[type="file"] {
    background-color: #f2f4f6;
    border: 1.5px dashed #ccc;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 12px;
    cursor: pointer;
    color: #555;
}

/* ===== BOTÓN PRINCIPAL ===== */
button.btn-primary {
    border-radius: 25px;
    border: none;
    background: linear-gradient(135deg, #F48A00, #d47700);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 13px 36px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: transform 80ms ease-in, box-shadow 0.2s;
    cursor: pointer;
    margin-top: 14px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(244, 138, 0, 0.35);
}

button.btn-primary:active {
    transform: scale(0.96);
    box-shadow: none;
}

button:focus {
    outline: none;
}

/* ===== BOTÓN WHATSAPP ===== */
.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    color: #25D366;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
    padding: 11px 20px;
    border: 1.5px solid #25D366;
    border-radius: 25px;
    width: 100%;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.btn-whatsapp:hover {
    background-color: #25D366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:active {
    transform: scale(0.96);
}

/* ===== OVERLAY BLOB (la parte teal con forma redondeada) ===== */
.overlay-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 100;
    transition: transform 0.6s ease-in-out;
    pointer-events: none;
}

.container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.overlay {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #052F65 0%, #041f44 100%);
    border-radius: 50% 0 0 50% / 50% 0 0 50%;
    display: flex;
    color: #fff;
    transition: border-radius 0.6s ease-in-out, transform 0.6s ease-in-out;
    pointer-events: all;
    position: relative;
}

.container.right-panel-active .overlay {
    border-radius: 0 50% 50% 0 / 0 50% 50% 0;
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    top: 0;
    height: 100%;
    width: 100%;
    transition: opacity 0.4s ease, transform 0.6s ease-in-out;
}

.overlay-left {
    left: 0;
    opacity: 0;
    padding: 0 80px 0 30px;
    /* Padding extra a la derecha para evadir la curva */
    transform: translateX(-20%);
    pointer-events: none;
}

.container.right-panel-active .overlay-left {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.overlay-right {
    right: 0;
    opacity: 1;
    padding: 0 30px 0 80px;
    /* Padding extra a la izquierda para evadir la curva */
    transform: translateX(0);
}

.container.right-panel-active .overlay-right {
    opacity: 0;
    transform: translateX(20%);
    pointer-events: none;
}

.overlay-panel h1 {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.overlay-panel p {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* ===== BOTÓN GHOST (en el overlay) ===== */
button.ghost {
    background-color: transparent;
    border: 2px solid #fff;
    border-radius: 25px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 12px 36px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 24px;
    transition: background-color 0.2s, transform 80ms ease-in;
    pointer-events: all;
}

button.ghost:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

button.ghost:active {
    transform: scale(0.96);
}

/* ========================================================
   RESPONSIVIDAD MÓVIL: APILAR FORMULARIOS (SIN ANIMACIÓN DE OVERLAY)
======================================================== */
@media (max-width: 850px) {
    .container {
        min-height: auto;
        height: auto;
        border-radius: 15px;
        margin: 20px 0;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        border: none;
    }

    .container:hover {
        transform: none;
    }

    .form-container {
        position: relative;
        width: 100%;
        height: auto;
        opacity: 1;
        z-index: 1;
        transition: none;
        transform: none !important;
        animation: none !important;
        margin-bottom: 30px;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        overflow: hidden;
    }

    .sign-in-container,
    .sign-up-container {
        width: 100%;
        left: 0;
    }

    .container.right-panel-active .sign-in-container,
    .container.right-panel-active .sign-up-container {
        transform: none !important;
        opacity: 1;
    }

    .overlay-container {
        display: none;
        /* Ocultar la capa superpuesta en móvil */
    }

    form {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 30px 20px;
        overflow-y: visible;
        height: auto;
    }

    .page-main {
        padding: 100px 16px 40px;
    }
}

/*POPUP PARA AVISO DE ENVIO EXITOSO O ERROR*/

.swal-compact {
    padding: 15px 10px !important;
}

.swal-compact .swal2-icon {
    transform: scale(0.6);
    margin: 0 auto !important;
}

.swal-compact .swal2-title {
    font-size: 1.2em !important;
    margin: 5px 0 !important;
}

.swal-compact .swal2-html-container {
    font-size: 0.9em !important;
    margin: 0 !important;
}

.swal-compact .swal2-actions {
    margin-top: 10px !important;
}

.swal-compact .swal2-confirm {
    padding: 5px 15px !important;
    font-size: 0.9em !important;
}