﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--green3Dark);
    background-image: url('../imgs/Ellipse-65.png');
    background-repeat: no-repeat;
    background-size: 90%;
    background-position: right top;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    background-attachment: fixed;
}

a:hover {
    text-decoration: none;
}

* {
    box-sizing: border-box;
}

header, section, footer {
    max-width: 1366px;
    width: 90%;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

header {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    header .logo {
        display: flex;
        align-items: center;
    }

        header .logo img {
            height: 70px;
            margin-left: 0px;
        }

    header nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        float: right;
        margin-right: 30px;
    }

        header nav ul li a {
            display: inline-flex;
            align-items: center;
            text-decoration: none;
            color: #FFF;
            font-size: 1em;
            gap: 8px;
        }

.magic-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: solid 1px #FFF;
    border-radius: 20px;
    line-height: 40px;
    transition: 0.3s;
}

.magic-nav-label {
    font-size: 0.9em;
    color: #FFF;
    transition: 0.3s;
}

header nav ul li a:hover .magic-nav-icon {
    background-color: var(--green2);
    color: var(--green3Dark);
}

header nav ul li a:hover .magic-nav-label {
    color: var(--green2);
}


footer {
    color: var(--green2);
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.8em;
}

    footer small {
        color: #FFF;
    }

    footer a {
        color: var(--green2);
    }

        footer a:hover {
            color: #FFF;
            transition: 0.3s;
            text-decoration: none;
        }

section {
    font-size: 1em;
    min-height: calc(100vh - 140px);
}

.magic-home-row {
    width: 100%;
    margin: 0 auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

.magic-home-block {
    color: #FFF;
}

    .magic-home-block h1 {
        font-size: 2em;
        font-weight: 500;
    }

    .magic-home-block p {
        font-size: 0.9em;
    }

.magic-columns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 10px;
}

.magic-column {
    background-color: var(--green4Dark);
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    /*max-width: 700px;*/
    color: #FFF;
    box-shadow: 0px 0px 10px 8px rgba(0, 0, 0, 0.1);
}

    .magic-column h2 {
        font-size: 1.5em;
        font-weight: 300;
        margin-bottom: 30px;
    }

    .magic-column p {
        font-size: 0.8em;
        margin-bottom: 15px;
    }

.magic-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .magic-input-group input,
    .magic-input-group select {
        flex: 1;
        padding: 10px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        background-color: transparent;
        color: #FFF;
        font-size: 0.9em;
        min-width: 120px;
        cursor: pointer;
        appearance: auto;
    }

        .magic-input-group select option {
            background-color: var(--green3Dark);
            color: #FFF;
        }

        .magic-input-group input::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }

    .magic-input-group select {
        cursor: pointer;
    }

    .magic-input-group button {
        flex-shrink: 0;
        padding: 12px 20px;
        font-size: 1em;
    }

.magic-btn {
    background-color: var(--green2);
    color: var(--green3Dark);
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

    .magic-btn:hover {
        background-color: #ffffff;
    }

/* Contenedor del resultado de la simulación */
.magic-simulator-box {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

/* Encabezado con título y botón */
.magic-simulator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: 200;
    margin-bottom: 15px;
}

/* Tabla de resultados */
.magic-simulator-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8em;
    margin-bottom: 15px;
}

    .magic-simulator-table td {
        padding: 5px 10px;
        vertical-align: middle;
        color: #FFF;
    }

        /* Resaltar valores importantes */
        .magic-simulator-table td b {
            font-size: 1em;
            color: var(--green2);
            font-weight: 400;
        }

.magic-btn-secondary {
    background-color: transparent;
    color: var(--green2);
    padding: 10px 15px;
    border: 1px solid var(--green2);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 300;
    transition: 0.3s;
    font-size: 0.7em;
}

    .magic-btn-secondary:hover {
        background-color: var(--green2);
        color: var(--green3Dark);
        text-decoration: none;
    }

.magic-simulator-footer {
    display: flex;
    justify-content: flex-end;
}


.magic-country-sel {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8em;
    color: #FFF;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
}

    .magic-country-sel a {
        background-color: transparent;
        color: var(--green2);
        padding: 4px 8px;
        border: 1px solid var(--green2);
        border-radius: 5px;
        font-size: 0.8em;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        text-decoration: none;
        font-weight: 500;
        transition: 0.3s;
    }

        .magic-country-sel a:hover {
            background-color: var(--green2);
            color: var(--green3Dark);
        }

.magic-country-sel-popup {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--green1);
    width: 90%;
    max-width: 400px;
    padding: 20px;
    border-radius: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
}

    .magic-country-sel-popup strong {
        color: var(--green1);
        font-size: 1.4em;
        margin-bottom: 10px;
    }

.magic-select-inverse {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #000;
    background-color: #FFF;
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.9em;
    cursor: pointer;
    appearance: auto;
    margin-bottom: 15px;
}

    .magic-select-inverse option {
        background-color: #FFF;
        color: #000;
    }

/* Botón inverso */
.magic-btn-inverse {
    background-color: var(--green2);
    color: var(--green1);
    padding: 10px 15px;
    border: 0px solid #000;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    width: 100%;
}

    .magic-btn-inverse i {
        padding-right: 10px;
    }

    .magic-btn-inverse:hover {
        background-color: var(--green1);
        color: var(--green2);
    }

.magic-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--red1);
    font-size: 1.2em;
    cursor: pointer;
    transition: 0.3s;
}

    .magic-popup-close:hover {
        color: var(--green1);
    }


.magic-error-holder {
    display: block;
    background-color: #C5057E;
    padding: 20px;
    border-radius: 5px;
    max-width: 100%;
    min-height: 10px;
}

.magic-tab-holder ul {
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

    .magic-tab-holder ul li {
        flex: 1 1 30%;
        min-width: 120px;
        display: flex;
    }

        .magic-tab-holder ul li a {
            display: block;
            width: 100%;
            padding: 12px 15px;
            text-align: center;
            background-color: var(--green2);
            color: var(--green3Dark);
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.9em;
            transition: 0.3s;
            text-decoration: none;
            line-height: 1.3;
        }

            .magic-tab-holder ul li a:hover {
                background-color: #ffffff;
                color: var(--green3Dark);
                text-decoration: none;
            }

            .magic-tab-holder ul li a i {
                margin-right: 7px;
            }

            .magic-tab-holder ul li a small {
                display: block;
                font-weight: 400;
                font-size: 0.75em;
                color: rgba(0, 0, 0, 0.7);
                margin-top: 6px;
            }

.magic-solicitud-header {
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

    .magic-solicitud-header article {
        color: #FFF;
        font-size: 1em;
        border: solid 1px rgba(255, 255, 255, 0.5);
        padding: 5px 10px;
        border-radius: 10px;
    }

.magic-simulator-header span {
    margin-bottom: 0px !important;
}

.magic-login-holder {
    width: 100%;
    padding: 20px 0;
}

.magic-split-col {
    flex: 1 1 48%;
    background-color: var(--green4Dark);
    border-radius: 12px;
    padding: 30px;
    color: #FFF;
    box-shadow: 0px 0px 10px 6px rgba(0, 0, 0, 0.08);
    min-width: 280px;
    max-width: 600px;
}

    .magic-split-col h2 {
        font-size: 1.6em;
        font-weight: 500;
        margin-bottom: 10px;
    }

    .magic-split-col h3 {
        font-size: 1em;
        font-weight: 300;
        color: rgba(255, 255, 255, 0.85);
    }





.magic-block-holder-tm1, .magic-block-holder-tm2, .magic-block-holder-tm2-sb {
    margin: 0 auto;
    border: solid 1px rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 10px;
}

.magic-block-holder-tm1 {
    width: 50%;
}

.magic-block-holder-tm2 {
    width: 100%;
}

.magic-block-holder-tm2-sb {
    width: 100%;
    border: none!important;
}




    .magic-login-holder-lonely {
        width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }

    .magic-login-holder-lonely img {
        max-width: 170px;
    }

.magic-validation-box-ok, .magic-validation-box-bd {
    border-radius: 10px;
    background-color: var(--green4Dark);
    padding: 30px;
    width: 100%;
    color: #FFF;
}

    .magic-validation-box-ok i, .magic-validation-box-bd i {
        text-align: center;
        display: block;
        font-size: 3em;
        padding-bottom: 20px;
    }

    .magic-validation-box-ok i {
        color: var(--green2);
    }

    .magic-validation-box-bd i {
        color: var(--red1);
    }

.magic-validation-box-ok a, .magic-validation-box-bd  a {

    float: right;
    background-color: var(--green2);
    padding: 5px 10px;
    border-radius: 10px;
    color: var(--green1);
}


.magic-validation-box-ok {
    border: solid 1px var(--green2);
}

.magic-validation-box-bd {
    border: solid 1px var(--red1);
}

.magic-validation-box-ok h3 {
    color: var(--green2);
    text-align: center;
}

.magic-validation-box-bd h3 {
    color: var(--red1);
    text-align: center;
}



@media (max-width: 768px) {
    .magic-block-holder-tm1 {
        width: 100%;
    }

    .magic-solicitud-header article {
        font-size: 0.7em;
    }

    .magic-columns {
        flex-direction: column;
        align-items: center;
    }

    .magic-column {
        width: 100%;
    }

    .magic-input-group {
        flex-direction: column;
        align-items: stretch;
    }

        .magic-input-group input,
        .magic-input-group select,
        .magic-input-group button {
            width: 100%;
            min-width: unset;
        }
}



.magic-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.magic-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Tamaños personalizados por clase */
.magic-w-33 {
    flex: 1 1 33%;
    min-width: 180px;
}

.magic-w-50 {
    flex: 1 1 48%;
    min-width: 240px;
}

.magic-w-100 {
    flex: 1 1 100%;
}

/* Estilo visual para inputs y selects */
.magic-form input,
.magic-form select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: transparent;
    color: #FFF;
    font-size: 0.9em;
    width: 100%;
    box-sizing: border-box;
}

    .magic-form input::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }

    .magic-form select option {
        background-color: var(--green3Dark);
        color: #FFF;
    }

.magic-form label i {
    color: var(--green2);
    padding-right: 10px;
    font-size: 0.8em;
}

.magic-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    background-color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    min-height: 120px; /* o puedes usar `height` si quieres un valor fijo */
}

    .magic-form-group textarea:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
        outline: none;
    }


/* Botón separado */
.magic-form .magic-form-submit {
    flex: 1 1 100%;
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

    .magic-form .magic-form-submit button {
        width: auto;
        min-width: 120px;
        background-color: var(--green2);
        color: var(--green3Dark);
        padding: 12px 20px;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        font-size: 1em;
        transition: 0.3s;
    }

        .magic-form .magic-form-submit button:hover {
            background-color: #ffffff;
        }


.magic-form-helper {
    width: 100%;
    display: flex;
    align-items: center;
}

.magic-form-helper a {
    color: #FFF;
    font-size: 0.8em;
}

    .magic-form-helper a:hover {
        color: var(--green2);
        transition: 0.3s;
    }



.magic-validator {
    color: #ff5f5f;
    font-size: 0.8em;
    margin-top: 4px;
    display: block;
}

.magic-password-checklist {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 0.8em;
    color: #FFF;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

    .magic-password-checklist ul {
        list-style: none;
        padding-left: 0;
        margin: 0;
    }

    .magic-password-checklist li {
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .magic-password-checklist .icon-valid {
        color: #4CAF50;
    }

    .magic-password-checklist .icon-invalid {
        color: #FF5F5F;
    }


/* Responsive: todo al 100% en móviles */
@media (max-width: 768px) {
    .magic-w-33,
    .magic-w-50,
    .magic-w-100 {
        flex: 1 1 100%;
    }
}

.magic-small-lonely-link {
    display: block;
    width: 100%;
    text-align: right;
}
.magic-small-lonely-link {
    color: var(--green2);
}

.magic-small-lonely-link:hover {
    color: #FFF;
    text-decoration: none;
    transition: 0.3s;
}