:root {
    --primary-color: #020024;
    --secondary-color: #00d4ff;
    --tertiary-color: #094b80;
    --button-bg-color: #000;
    --button-hover-bg-color: #333;
    --button-text-color: #fff;
    --input-focus-border-color: #65cbff;
    --error-bg-color: #e74c3c;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


*,
*::before,
*::after {
    box-sizing: border-box;
}

body, html {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: rgb(2,0,36);
    background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(0,212,255,1) 0%, rgba(9,75,128,1) 100%);
    /*background: var(--primary-color);
    background-color: linear-gradient(90deg, var(--primary-color) 0, var(--secondary-color) 0, var(--tertiary-color) 100%);*/
}

h1 {
    margin-top: 20px;
    color: #222;
    text-align: center;
}

form {
    display: flex;
    justify-content: center;
    margin: 20px;
    flex-wrap: nowrap;
}

input[type=text] {
    padding: 10px;
    margin-right: 0;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    width: 100%;
    max-width: 600px;
    font-size: 16px;
}

.button, input[type=submit] {
    padding: 10px 15px;
    max-width: 150px;
    width: 100%;
    cursor: pointer;
    color: var(--button-text-color);
    background-color: var(--button-bg-color);
    border: none;
    border-radius: 4px;
    transition: background-color .3s;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.button:hover, input[type=submit]:hover {
    background-color: var(--button-hover-bg-color);
}

input[type="text"]:focus {
    border-color:var(--input-focus-border-color);
    outline: none;
    box-shadow: 0 0 5px var(--input-focus-border-color);
}

.loader {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background:  radial-gradient(farthest-side,#ffa516 94%, #0000) top/8px 8px no-repeat,
    conic-gradient(#0000 30%, #ffa516);
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 8px), #000 0);
    animation: l13 1s infinite linear;
}
@keyframes l13 {
    100% {
        transform: rotate(1turn);
    }
}

/* Estilos de la tabla */
#resultsTable {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
    max-height: 400px;
    border-radius: 10px;
    font-size: 18px;
    text-align: left;
    overflow: hidden;
}

#resultsTable th, #resultsTable td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

#resultsTable th {
    background-color: #f4f4f4;
    color: #333;
}

#resultsTable tr:nth-child(2n) {
    background-color: #f9f9f9;
}

#resultsTable tr:hover {
    background-color: #f1f1f1;
}

/* Ocultar la tabla inicialmente */
.hidden {
    display: none;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 4px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    transition: top 0.3s;
}

.logo img {
    height: 40px;
}

.scroll-to-top {
    position: fixed;
    bottom: 90px; /* Ajustar para que esté encima del botón de WhatsApp */
    right: 20px;
    background-color: rgba(255, 165, 0, 0.8);
    border-radius: 50%;
    padding: 10px;
    width: 60px; /* Mismo tamaño que el botón de WhatsApp */
    height: 60px; /* Mismo tamaño que el botón de WhatsApp */
    display: none;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    z-index: 1000;
}

.scroll-to-top img {
    height: 30px;
    width: 30px;
}

.scroll-to-top.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top.hide {
    opacity: 0;
    transform: translateY(20px);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 140, 0, .8);
}

/*.container {
    margin-top: 80px;
}*/

.main-container {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    width: 100%;
    height: 100vh;
}

.left-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.form-container {
    padding: 20px;
    height: 80vh;
    width: 100%;
}

.imagen-izq {
    width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 4px;
}


.right-container {
    margin-left: 20px;
    width: 100%;
    height: 100vh;
    flex: 1;
    padding-top: 73px;
    position: sticky;
    top: 45px;
    overflow: hidden;
}


.error-message {
    color: #fff;
    background-color: var(--error-bg-color);
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    position: relative;
    left: 0;
    width: 100%;
    animation: fadeIn 0.5s ease-in-out;
}

.error-message::before {
    content: "⚠️";
    margin-right: 10px;
}

.img-banner {
    width: 100%;
    height: 100%;
    max-height: 70vh
}

@media screen and (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        align-items: center;
        height: 100%;
    }
    .form-container, .left-container, .right-container {
        width: 100%;
        height: auto;
    }
    .right-container {
        margin-left: 0;
        padding-top: 0;
        position: static;
    }	
    .img-banner {
        max-height: 750px;
        margin-top: 0;
        max-width: 720px;
        object-fit: fill;
        border-radius: 10px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    .imagen-izq {
        display: none; /* Ocultar imagen izquierda en dispositivos móviles */
    }
    body {
        overflow-y: scroll;
    }
}









@media screen and (min-width: 1025px) {
    .main-container {
        flex-direction: row;
        justify-content: center;
    }
    .left-container {
        width: 66.67%; /* 2/3 de la anchura de la pantalla */
        height: auto;
    }
    .right-container {
        width: 33.33%; /* 1/3 de la anchura de la pantalla */
        height: 70vh;
        margin-left: 20px;
        position: sticky;
        top: 45px;
    }
    .img-banner {
        width: 100%;
        height: 100%;
        max-height: 70vh;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Estilos para el botón de WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
    animation: 2s ease-in-out infinite breathe;
}

.whatsapp-btn i {
    color: #fff;
    font-size: 24px;
    animation: 2s ease-in-out infinite beat;
    text-decoration: none;
}

.copied-message {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: #28a745;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    opacity: 1;
    transition: opacity 1s ease-out, transform 0.5s ease-out;
    transform: translateY(0);
}

@keyframes breathe {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, .5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

@keyframes beat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}