@import url("https://fonts.googleapis.com/css2?family=Gothic+A1:wght@300;400;500&display=swap");

@font-face {
    font-family: "CenturyGothic";
    font-weight: bold;
    src: url("../fonts/CenturyGothic-Bold.ttf") format("truetype");
}

@font-face {
    font-family: "MyriadPro";
    font-weight: normal;
    src: url("../fonts/MyriadPro-Regular.otf") format("opentype");
}

:root {
    --navbar-height: 64px;
    --navbar-bg-color: #a8343a;
    --navbar-text-color: hsl(0, 0%, 85%);
    --navbar-text-color-focus: white;
    --navbar-bg-contrast: #89292e;
    --link-color: #a8343a;
    --error-color: #cd232c;
    --help-color: #e2e2e2;
    --btn-bg-color: #004cd3;
    --btn-bg-contrast: #003a9e;
    --font-primary: "CenturyGothic";
    --font-secondary: "Gothic A1";
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    line-height: 1.6;
    font-family: var(--font-primary), Arial, Helvetica, sans-serif;
    overflow: hidden;
}

.btn,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "MyriadPro";
    font-weight: normal;
}

.hero {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: white;
    font-weight: 300;
    font-family: var(--font-secondary);

    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)),
        url("../img/background.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    position: relative;
    overflow: auto;
    padding-top: var(--navbar-height);
}

.hero-certificados {
    justify-content: start !important;
    margin: 10px 0px !important;
}

.hero-contacto {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    overflow: auto;
}

.hero .hero-inner {
    max-width: 80%;
}

.hero.hero-jumbotron .hero-inner,
.hero.hero-jumbotron .alert {
    max-width: 60%;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 1rem;
}

.hero.hero-jumbotron .hero-subtitle {
    width: 80%;
    margin: 0 auto;
}

.hero .hero-title img {
    max-width: 60%;
    margin: 0 auto 50px;
}

.btn,
.hero .btn {
    display: block;

    padding: 0.75em 1.5em;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;

    color: white;
    text-decoration: none;
    font-size: 1em;
    text-transform: uppercase;
    font-weight: 500;

    border: 1px solid transparent;
    border-radius: 10px;

    background-color: var(--btn-bg-color);

    box-shadow: 3px 3px 10px 2px #535353;
}

.btn-contacto,
.hero .btn-contacto {
    position: fixed;
    bottom: 0;
    right: 0;
    margin: 2rem;
    background-color: var(--navbar-bg-color);
}

.btn-enviar {
    background-color: var(--navbar-bg-color) !important;
    float: right;
}

.btn-contacto.btn-contacto-mobile {
    bottom: 25px;
    right: 25px;
}

.btn-contacto.btn-contacto-mobile img {
    width: 50px;
    height: auto;
}

.hero .btn:active,
.hero .btn:hover {
    cursor: pointer;
    background-color: var(--btn-bg-contrast);

    box-shadow: 3px 3px 10px 2px #8c8c8c;
}

.btn-enviar:active,
.btn-enviar:hover,
.btn-contacto:active,
.btn-contacto:hover,
.hero .btn-contacto:active,
.hero .btn-contacto:hover {
    cursor: pointer;
    background-color: var(--navbar-bg-contrast) !important;
    box-shadow: 3px 3px 10px 2px #8c8c8c;
}

.hero p {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 0;
}

.hero a,
.text-link {
    color: var(--link-color);
}

.hero a.link-unirse {
    color: white;
    font-weight: 700;
}
.hero a.link-unirse:hover {
    color: var(--link-color);
}

.hero a:not(.btn):hover,
.hero a:not(.btn):active {
    color: var(--error-color);
}

.hero:not(.hero-jumbotron) form {
    margin: 50px auto;
}

.hero form .control-group {
    margin-bottom: 0.5em;
    font-size: 20px;
}

.hero form .form-error,
.hero form .control-group.with-error .control-error,
.recaptcha-error {
    font-family: var(--font-primary);
    color: var(--error-color);
    font-size: 20px;
    font-weight: 500;
}

.hero .recaptcha-error,
.recaptcha-error {
    font-size: 18px;
}

.hero form .control-group .control-labelWrapper {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 0.5em;
}

.hero form .control-group .control-icon {
    width: 32px;
    height: auto;

    margin-right: 0.5em;
}

.hero form .control-group .controls input {
    width: 250px;
    padding: 5px 8px;
    font-size: 18px;
    border-radius: 2px;
    border: 0;
}

/* pongo el input fecha de nacimiento centrado */
.hero form .control-group .controls input#id_user-date_birth {
    text-align: center;
}

.hero form .control-group.with-error .controls input {
    border: 2px solid var(--error-color);
}

.hero form .control-group .controls input:disabled {
    background-color: rgba(190, 190, 190, 1);
    color: black;
    cursor: not-allowed;
}

.hero form .control-group .control-help {
    font-family: var(--font-primary);
    color: var(--help-color);
    font-size: 14px;
    font-weight: 500;
}

.hero form .control-group .control-help ul,
ul.errorlist {
    list-style: none;
}

.hero h2 {
    text-transform: uppercase;
}

.hero b {
    font-weight: 600;
}

/* RECAPTCHA */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* NAVBAR */
#navbar {
    position: fixed;
    height: var(--navbar-height);
    background-color: var(--navbar-bg-color);
    left: 0;
    right: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

.navbar-container {
    display: flex;
    justify-content: center;
    height: 100%;
    align-items: center;
}
.navbar-item {
    margin: 0.4em;
}

.navbar-right {
    flex: 1;
}

.navbar-right .navbar-links {
    justify-content: end;
    padding-right: 15px;
}

.home-link,
.navbar-link {
    color: var(--navbar-text-color);
    text-decoration: none;
    display: flex;
    font-weight: 400;
    align-items: center;
}

.background-logo {
    background-color: var(--navbar-bg-contrast);
    padding: 1rem;
    height: 100%;
}

.home-link {
    flex: 1;
    height: 100%;
    color: var(--navbar-text-color-focus);
}

.home-link:is(:focus, :hover) {
    color: var(--navbar-text-color-focus);
}

.navbar-link {
    justify-content: center;
    width: 100%;
    padding: 0.4em 1.2em;
    border-radius: 5px;
    text-align: center;
}

.navbar-link.nowrap {
    white-space: nowrap;
}

.navbar-link:is(:focus, :hover),
.navbar-item.active > .navbar-link {
    color: var(--navbar-text-color-focus);
    background-color: var(--navbar-bg-contrast);
}
.navbar-logo {
    width: 156px;
    height: 30px;

    background-color: transparent;

    background-image: url("../img/realtag_logo.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
#navbar-toggle {
    cursor: pointer;
    border: none;
    background-color: transparent;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.icon-bar {
    display: block;
    width: 25px;
    height: 4px;
    margin: 2px;
    background-color: var(--navbar-text-color);
}
.login-logo {
    background-color: transparent;

    background-image: url("../img/username_icon.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    border-radius: 50%;
    width: 30px;
    height: 30px;
    margin-left: 0.5em;
}
#navbar-toggle:is(:focus, :hover) .icon-bar {
    background-color: var(--navbar-text-color-focus);
}
#navbar-toggle[aria-expanded="true"] .icon-bar:is(:first-child, :last-child) {
    position: absolute;
    margin: 0;
    width: 30px;
}
#navbar-toggle[aria-expanded="true"] .icon-bar:first-child {
    transform: rotate(45deg);
}
#navbar-toggle[aria-expanded="true"] .icon-bar:nth-child(2) {
    opacity: 0;
}
#navbar-toggle[aria-expanded="true"] .icon-bar:last-child {
    transform: rotate(-45deg);
}
#navbar-menu {
    position: fixed;
    top: var(--navbar-height);
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    left: 0;
    right: 0;
}
#navbar-toggle[aria-expanded="true"] + #navbar-menu {
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 1;
    visibility: visible;
}
.navbar-links {
    list-style: none;
    position: absolute;
    background-color: var(--navbar-bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    left: 0;
    right: 0;
    margin: 1.4rem;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

#navbar-toggle[aria-expanded="true"] + #navbar-menu .navbar-links {
    padding: 1em;
}

/* dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    white-space: nowrap;
    cursor: pointer;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.dropdown-menu {
    position: absolute;
    top: 45px;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0;
    font-size: 1rem;
    color: var(--navbar-text-color);
    text-align: left;
    list-style: none;
    background-color: var(--navbar-bg-color);
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
}

.dropdown-menu.show {
    display: block;
    margin-top: 0.125rem;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1rem;
    clear: both;
    font-weight: 400;
    color: var(--navbar-text-color);
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.dropdown-item:focus,
.dropdown-item:hover {
    color: var(--navbar-text-color-focus);
    background-color: var(--navbar-bg-contrast);
}

.dropdown .dropdown-divider {
    height: 1px;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    color: inherit;
    background-color: currentColor;
    border: 0;
    opacity: 0.25;
}

.descarga {
    text-align: center;
}

.badge-container {
    display: inline-block;
    padding: 2%;
    margin-top: 5px;
}

.data-section {
    margin-bottom: 15px;
}

.badge {
    cursor: pointer;
}

.unirse {
    text-align: right;
}

.unirse .btn {
    display: inline-block !important;
}

.login form {
    margin-bottom: 25px !important;
}

.login form .control-group + .control-group {
    margin-top: 2.5em;
}

.hero-register {
    justify-content: start;
    padding-top: 100px;
}

.hero-register .hero-inner {
    max-width: 60% !important;
}

.hero-register .flex-grid {
    display: flex;
    flex-wrap: wrap;
}

.hero-register .col--half {
    flex: 0 0 50%;
}

.hero-register .col--full {
    flex: 0 0 100%;
}

.hero-register #legal,
.hero-register #persona_juridica,
.hero-register #personal_profile,
.hero-register #autos {
    margin-top: 30px;
}

.hero-register #autos .autos-title {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-register #autos .autos-title .btn {
    margin-left: 10px;
}

.hero-register #autos .controls {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-register #autos .controls .btn {
    position: absolute;
    right: 15px;
}

.hero-register #autos .btn-remove {
    margin: 0;
    padding: 0.75em 1em;
    font-size: 12px;
    line-height: 1;
}
.hero-register #autos .btn-add {
    margin: 0;
    padding: 0.75em 1em;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-register #autos .btn-add img {
    height: 20px;
    width: 20px;
}

.hero-register #autos .btn-add-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.hero-register #autos .btn-remove {
    background-color: var(--navbar-bg-color);
}

.hero-register #autos .btn-remove:hover,
.hero-register #autos .btn-remove:active {
    background-color: var(--navbar-bg-contrast);
}

.hero-register #autos .btn-remove img,
.hero-register #autos .btn-add img {
    height: 20px;
}

.hero-register .control-deleteWrapper {
    display: none;
}

.row {
    margin: 15px auto;
    display: flex;
    justify-content: space-between;
}

.center-column {
    flex: 1 1 auto;
    text-align: left;
}

.left-column,
.right-column {
    flex: 0 0 300px;
}
.tick-icon {
    width: 32px;
    margin-left: 14rem;
    background-image: url("/static/img/tick.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: transparent;
}

.hero .right-column form {
    margin-right: 10rem;
    margin: 0;
}

.hero .center-column a {
    color: white;
}

.subtitle {
    margin-bottom: 4rem !important;
}

.checkbox {
    -webkit-transform: scale(1.3, 1.3);
    transform: scale(1.3, 1.3);
    margin-right: 0.8rem;
    margin-left: 6rem;
    margin-top: 3rem;
}

.mensaje-confirmacion {
    font-size: unset !important;
}

.hero .btn[disabled] {
    background-color: rgba(239, 239, 239, 0.3);
    color: rgba(16, 16, 16, 0.9);
    border-color: rgba(118, 118, 118, 0.3);
}

.action-buttons {
    display: flex;
    justify-content: space-between;
}

.action-buttons.single-button {
    justify-content: end;
}

.btn-custom {
    margin-left: unset !important;
    margin-right: unset !important;
}

.alert-persona-juridica-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.alert-persona-juridica {
    max-width: 500px;
    text-align: center;
    display: none;
}

/** ALERT **/
.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    padding-right: 5rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    width: 100%;
    max-width: 80%;
    font-size: 1rem;
}

.alert:first-child {
    margin-top: 1rem;
}

.alert .close {
    cursor: pointer;
}

.hero.hero-jumbotron .alert {
    max-width: 60%;
    font-size: 1.3rem;
}

.alert-warning {
    color: #856404 !important;
    background-color: #fff3cd !important;
    border-color: #ffeeba !important;
}

.alert-error {
    color: #842029 !important;
    background-color: #f8d7da !important;
    border-color: #f5c2c7 !important;
}

.alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0px 10px 0px 4px;
    color: inherit;
    background: transparent;
    border: unset;
    font-size: x-large;
}

.alert-text {
    font-weight: 500;
}

.btn-document {
    margin-top: unset !important;
    background-color: var(--navbar-bg-color) !important;
    padding: 0.3rem 0.6rem !important;
}

/* START SPINNER */
.loading-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading-spinner {
    margin-bottom: 10px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
}

.loading-text {
    color: #fff;
}

.label-justify {
    text-align: justify;
    display: block;
}

.scroll-container {
    height: 450px;
    overflow: auto;
}

/* width */
.scroll-container::-webkit-scrollbar {
    width: 8px;
}

/* Track */
.scroll-container::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px #a8343a6e;
    border-radius: 10px;
}

/* Handle */
.scroll-container::-webkit-scrollbar-thumb {
    background: var(--navbar-bg-contrast);
    border-radius: 10px;
}

/* Handle on hover */
.scroll-container::-webkit-scrollbar-thumb:hover {
    background: #b30000;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* END SPINNER */

/* CONTACTO */
form .control-group {
    margin-bottom: 15px;
}

.contacto-form .control-group .controls {
    display: flex;
    flex-direction: column;
}

form .control-group .controls textarea,
form .control-group .controls input {
    padding: 5px 8px;
    font-size: 18px;
    border-radius: 2px;
    border: 0;
}

.column {
    box-sizing: border-box;
    padding: 45px 50px;
    overflow-y: auto;
}

.left {
    width: 70%;
    margin-top: var(--navbar-height);
    background-color: #dcdcdc;
}

.right {
    width: 30%;
    margin-top: var(--navbar-height);
    background-color: #acacac;
}

.column-title {
    text-transform: uppercase;
    font-weight: 700;
    font-family: "CenturyGothic", Arial, Helvetica, sans-serif;
}

.bullet-icon {
    width: 15px;
    margin-right: 15px;
    background-image: url("/static/img/bullet.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: transparent;
}

.item {
    margin-top: 20px;
}

.pregunta {
    margin-bottom: 7px;
}

.respuesta {
    margin-left: 28px;
}

.contacto-form {
    margin-top: 20px;
}

/* POLÍTICA DE PRIVACIDAD */
.privacy-container {
    text-align: left;
    line-height: 1.8;
    font-size: 22px;
    padding: 20px;
}

.privacy-title {
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    color: white;
}

.privacy-section {
    margin-bottom: 25px;
}

.privacy-section-title {
    font-weight: bold;
    margin-bottom: 15px;
    color: white;
}

.privacy-list {
    margin-left: 20px;
    margin-bottom: 15px;
    list-style-type: none;
    padding-left: 0;
}

.privacy-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.privacy-list li:before {
    content: attr(data-marker);
    position: absolute;
    left: 0;
}

.privacy-highlight {
    font-weight: bold;
    color: white;
}

@media only screen and (max-width: 1200px) {
    .hero-contacto {
        flex-direction: row;
    }

    .column {
        width: 100% !important;
    }
    .right {
        margin-top: unset !important;
    }
}

@media only screen and (max-width: 991px) {
    .hero.hero-jumbotron .hero-inner,
    .hero .alert {
        max-width: 90%;
    }

    .hero.hero-jumbotron .hero-inner .hero-subtitle {
        width: 100%;
    }

    .hero.hero-register .hero-inner {
        max-width: 90% !important;
    }
    .hero.hero-register #autos .controls .btn {
        right: 0;
    }

    .hero .btn-contacto.btn-contacto-mobile {
        margin: 0;
        padding: 0.5em 1em 0.3em;
    }

    .container {
        padding-right: 1.4rem;
    }

    .navbar-right {
        flex: unset !important;
        display: none;
    }

    .show-lg {
        display: none !important;
    }

    .single-button {
        justify-content: center !important;
    }

    .action-buttons {
        display: flex;
        flex-direction: column;
        padding: 0rem 6rem;
    }
}

@media only screen and (max-width: 768px) {
    .hero .alert,
    .hero .hero-inner {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero.hero-jumbotron .alert {
        font-size: 0.7rem !important;
    }

    .hero.hero-jumbotron .hero-inner,
    .hero .alert {
        max-width: calc(100% - 30px) !important;
    }

    .hero .btn {
        padding: 0.5em 1em;
        margin-top: 35px;
        font-size: 1em;
    }

    .btn-contacto.btn-contacto-mobile img {
        width: 35px;
    }

    .container {
        padding-right: 1.4rem;
    }

    .hero .hero-title img {
        margin: 0 auto 10px !important;
    }

    .scroll-container {
        height: 300px !important;
        overflow: auto;
    }

    .hero p {
        font-size: 16px;
    }

    .hero.hero-register .hero-inner {
        max-width: 100% !important;
    }

    .hero.hero-register .flex-grid {
        display: block;
    }

    .hero.hero-register .flex-grid .controls {
        max-width: 360px;
        margin: 0 auto;
    }

    .hero.hero-register #legal,
    .hero.hero-register #persona_juridica,
    .hero.hero-register #personal_profile,
    .hero.hero-register #autos {
        margin-top: 20px;
    }
    .left-column,
    .right-column {
        flex: unset !important;
    }
    .tick-icon {
        margin-left: unset !important;
    }
    .checkbox {
        margin-left: unset !important;
    }
    .badge {
        max-height: 70px;
    }

    .single-button {
        justify-content: center !important;
    }

    .action-buttons {
        display: flex;
        flex-direction: column;
        padding: 0rem 6rem;
    }

    .privacy-container {
        font-size: 16px;
    }
}


@media only screen and (min-width: 991px) {
    #navbar-toggle,
    #navbar-toggle[aria-expanded="true"] {
        display: none;
    }

    #navbar-menu,
    #navbar-toggle[aria-expanded="true"] #navbar-menu {
        visibility: visible;
        opacity: 1;
        position: static;
        display: block;
        height: 100%;
    }

    .navbar-links,
    #navbar-toggle[aria-expanded="true"] #navbar-menu .navbar-links {
        margin: 0;
        padding: 0;
        box-shadow: none;
        position: static;
        flex-direction: row;
        width: 100%;
        height: 100%;
    }

    .hidden-lg {
        display: none !important;
    }

    .break-word {
        display: none;
    }

    .button-group {
        display: flex;
        column-gap: 15px;
    }
}

@media only screen and (min-width: 1440px) {
    .hero .hero-title img {
        max-width: 50%;
    }

    .hero.hero-register .flex-grid {
        max-width: 800px;
        margin: 0 auto;
    }

    .break-word {
        display: none;
    }
}

@media only screen and (max-height: 768px) and (orientation: landscape) {
    .hero {
        display: flex;
        justify-content: start;
        padding-top: calc(var(--navbar-height) + 25px);
        padding-bottom: 50px;
    }

    .hero.hero-home {
        padding: 0;
        justify-content: center;
    }

    .single-button {
        justify-content: center !important;
    }

    .action-buttons {
        display: flex;
        flex-direction: column;
        padding: 0rem 6rem;
    }

    .button-group {
        display: block;
    }
}
