/* Estilos base y variables */
:root {
    --azul-oscuro: #1e40af;
    --azul-hover: #1a3a8a;
    --azul-fondo: #0f172a;
}

@font-face {
    font-family: 'headings';
    src: url('/assets/fonts/cooper-bt-light.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* Estilos generales */
body {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    background-color: #C6CBDF !important;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Estructura principal */
.main-container {
    background-image: url('/assets/img/main.webp');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--azul-fondo);
}

.overlay {
    flex: 1;
    padding: 2vh 4vw;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Encabezados */
header > h1 {
    font-family: 'headings' !important;
}

.main-header {
    margin-bottom: 5vh;
}

.main-title {
    font-size: calc(1.6rem + 2.6vw);
    font-weight: 300;
    color: white;
    margin-bottom: 1vh;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: calc(1rem + 1.5vw);
    font-weight: 300;
    color: white;
    margin-top: -0.5rem;
    line-height: 1.2;
}

.instruction {
    font-size: calc(0.9rem + 0.8vw);
    font-weight: 300;
    color: white;
    margin-bottom: 5vh;
    text-align: center;
}

/* Pasos del proceso */
.steps-container {
    display: flex;
    justify-content: center;
    position: relative;
    margin: 2vh auto 5vh;
    max-width: 600px;
    gap: 2rem;
    width: 100%;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
    flex: 1;
}

.step-circle {
    width: calc(30px + 0.5vw);
    height: calc(30px + 0.5vw);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: calc(0.8rem + 0.2vw);
    border-radius: 50%;
    margin-bottom: 0.5rem;
    background: var(--azul-oscuro);
    color: white;
}

.step-line {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    height: 2px;
    background-color: white;
    z-index: 1;
    width: 3rem;
}

.step-line.left {
    left: -2rem;
}

.step-line.right {
    right: -2rem;
}

.step-label {
    text-align: center;
    font-size: calc(0.6rem + 0.3vw);
    font-weight: 400;
    color: white;
    white-space: nowrap;
}

/* Opciones de entidades */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1vh 1vw;
    width: 100%;
}

.entity-option {
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2vh 2vw;
    background: var(--azul-oscuro);
    color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-height: calc(40px + 1.5vh);
    border: none;
    outline: none;
}

.entity-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: var(--azul-hover);
}

.entity-option span {
    font-size: calc(0.7rem + 0.3vw);
    font-weight: 500;
}

.option-arrow {
    margin-left: 0.5rem;
    color: white;
    font-size: calc(1rem + 0.3vw);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
}

.modal-content {
    position: relative;
    background: white;
    margin: 2% auto;
    padding: 25px;
    width: 95%;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow: hidden;
    padding-right: 30px;
}

.close-modal {
    position: absolute;
    right: 60px;
    top: 25px;
    font-size: 35px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10000;
}

.close-modal:hover {
    color: #333;
}

#iframeContainer {
    height: 80vh;
    overflow-y: auto;
    padding-right: 5px;
}

#iframeContainer::-webkit-scrollbar {
    width: 8px;
}

#iframeContainer::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#iframeContainer::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#iframeContainer::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Cards */
.card {
    min-width: 300px;
    flex: 0 0 calc(100% - 1rem);
    margin: 0 0.5rem;
}

/* Utilidades */
.shadow-lg {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.rounded-lg {
    border-radius: 0.5rem;
}

/* Media queries */
@media (min-width: 640px) {
    .card {
        min-width: 400px;
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (min-width: 768px) {
    .options-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 870px) {
    .options-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1024px) {
    .card {
        min-width: 500px;
        flex: 0 0 calc(33.333% - 1rem);
    }
}

@media (min-width: 1280px) {
    .card {
        flex: 0 0 calc(25% - 1rem);
    }
}

@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        padding: 15px;
    }
    .close-modal {
        right: 15px;
        top: 5px;
        font-size: 30px;
    }
}



