/*
Theme Name: Baidata
Author: CBT
Version: 1.0
*/

/* Fuentes */

/* =========================
   Bai Jamjuree - Regular
========================= */
@font-face {
    font-family: "Bai Jamjuree";
    src: url("assets/font/BaiJamjuree-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

/* Italic */
@font-face {
    font-family: "Bai Jamjuree";
    src: url("assets/font/BaiJamjuree-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
}

/* Light */
@font-face {
    font-family: "Bai Jamjuree";
    src: url("assets/font/BaiJamjuree-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Bai Jamjuree";
    src: url("assets/font/BaiJamjuree-LightItalic.ttf") format("truetype");
    font-weight: 300;
    font-style: italic;
}

/* ExtraLight */
@font-face {
    font-family: "Bai Jamjuree";
    src: url("assets/font/BaiJamjuree-ExtraLight.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: "Bai Jamjuree";
    src: url("assets/font/BaiJamjuree-ExtraLightItalic.ttf") format("truetype");
    font-weight: 200;
    font-style: italic;
}

/* Medium */
@font-face {
    font-family: "Bai Jamjuree";
    src: url("assets/font/BaiJamjuree-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Bai Jamjuree";
    src: url("assets/font/BaiJamjuree-MediumItalic.ttf") format("truetype");
    font-weight: 500;
    font-style: italic;
}

/* SemiBold */
@font-face {
    font-family: "Bai Jamjuree";
    src: url("assets/font/BaiJamjuree-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "Bai Jamjuree";
    src: url("assets/font/BaiJamjuree-SemiBoldItalic.ttf") format("truetype");
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: "Bai Jamjuree";
    src: url("assets/font/BaiJamjuree-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Bai Jamjuree";
    src: url("assets/font/BaiJamjuree-BoldItalic.ttf") format("truetype");
    font-weight: 700;
    font-style: italic;
}

/* =========================
   Roboto - Thin
========================= */
@font-face {
    font-family: "Roboto";
    src: url("assets/font/Roboto-Thin.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
}

/* ExtraLight */
@font-face {
    font-family: "Roboto";
    src: url("assets/font/Roboto-ExtraLight.ttf") format("truetype");
    font-weight: 200;
    font-style: normal;
}

/* Light */
@font-face {
    font-family: "Roboto";
    src: url("assets/font/Roboto-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
}

/* Regular */
@font-face {
    font-family: "Roboto";
    src: url("assets/font/Roboto-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

/* Medium */
@font-face {
    font-family: "Roboto";
    src: url("assets/font/Roboto-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}

/* SemiBold */
@font-face {
    font-family: "Roboto";
    src: url("assets/font/Roboto-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
}

/* Bold */
@font-face {
    font-family: "Roboto";
    src: url("assets/font/Roboto-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

/* ExtraBold */
@font-face {
    font-family: "Roboto";
    src: url("assets/font/Roboto-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
}

/* Black */
@font-face {
    font-family: "Roboto";
    src: url("assets/font/Roboto-Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
}


/* General */

main {
    padding-top: 85px;
    font-family: 'Roboto', serif;
}

h1. h2. h3, h4, h5, h6 {
    font-family: 'Bai Jamjuree', serif;
}

p, span, a {
    font-family: 'Roboto', serif;
}

.main-container {
    max-width: 1500px;
}

.text-container {
    max-width: 800px;
    width: 100%;
}

.color-purple-darker {
    color: #40008f;
}

.color-purple-dark {
    color: #7b4fb1;
}

.color-purple-light {
    color: #c8b2e5;
}

.color-purple-lighter {
    color: #ded2ef;
}

.bg-color-purple-darker {
    background-color: #40008f;
}

.bg-color-purple-dark {
    background-color: #7b4fb1;
}

.bg-color-purple-light {
    background-color: #c8b2e5;
}

.bg-color-purple-lighter {
    background-color: #ded2ef;
}

.bg-color-purple-white {
    background-color: #efe9f7;
}

.bg-color-purple-grey {
    background-color: #f6f6f6;
}

.header-home {
    font-size: 78px;
    max-width: 640px;
    line-height: 1.2;
}

.header-1 {
    font-size: 64px;
    line-height: 1;
    font-weight: 500;
    font-family: 'Bai Jamjuree', serif;
}

.header-2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Bai Jamjuree', serif;
}

.paragraph-1 {
    font-size: 18px;
    font-family: Roboto, sans-serif;
}

.paragraph-2 {
    font-size: 24px;
    font-weight: 400;
    font-family: Roboto, serif;
}

.subtitle-1 {
    font-size: 24px;
}

.authorized-training-card {
    border-radius: 30px;
    overflow: hidden;
    height: 480px;
    width: 308px;
}

.authorized-training-card > div {
    height: 50%;
}

.authorized-training-card > div:nth-of-type(1) {
    background-color: #EFE9F7;
}

.authorized-training-card > div:nth-of-type(2) {
    background-color: #fff;
}

.baidata-rounded-icon {
    width: 40px;
    height: 40px;
    background-color: #7B4FB1;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.baidata-rounded-icon:hover {
    transform: scale(1.1);
}

/* Baidata header */

.baidata-header {
    background: linear-gradient(to top, #ddd4e8 0%, #ddd4e8 65%, #F6F6F6 100%);
}

.baidata-header-image {
    border-radius: 130px;
    max-height: 550px;
}


/* Menú */

.baidata-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 10;
    height: 85px;
}

.baidata-submenu-links a {
    text-decoration: none;
    color: black;
}

.baidata-submenu-links > div {
    min-width: 180px;
}

.baidata-menu-container {
    max-width: 1700px;
}

.baidata-menu-link a {
    color: black;
    font-size: 18px;
}

.baidata-menu-section > .baidata-menu-link img {
    transition: transform 0.4s ease;
}

.baidata-menu-section:hover > .baidata-menu-link img {
    transform: rotate(-180deg);
}

.baidata-submenu {
    position: fixed;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: #00000026 0 2px 6px 1px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.baidata-submenu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.baidata-submenu-info {
    background-color: #f6f6f6;
}

.baidata-submenu-info > div {
    width: 350px;
}

.baidata-submenu-links a {
    white-space: nowrap;
}

.main-button {
    text-decoration: none;
    border-radius: 20px;
    padding: 7px 21px;
    background: #7b4fb1;
    color: white;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 400;
    font-size: 18px;
    transition: background 0.3s ease;
}

.main-button img {
    transition: transform 0.3s ease;
}

.main-button.light {
    background: white;
    color: #7b4fb1;
    font-weight: 700;
}

.main-button.light:hover {
    background: rgb(231, 225, 238);
}

.main-button:not(.light):hover {
    background: #7b4fb1;
}

.main-button:hover img {
    transform: translateX(3px);
}


/* Home */

.home-header {
    height: calc(100vh - 85px);
}

.home-header-carrousel {
    position: absolute;
    bottom: 60px;
    background: #7b4fb1;
    overflow: hidden;
}

.home-header-track {
    display: flex;
    gap: 80px;
    height: 60px;
    width: max-content;
    animation: scrollLogos 20s linear infinite;
}

.home-header-track img {
    flex: 0 0 auto;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.baidata-card {
    width: 240px;
    height: fit-content;
    border-radius: 32px;
    overflow: hidden;
    background: #cbb8e9;
    flex: 0 0 auto;
    text-decoration: none;
}

.baidata-cards-big .baidata-card {
    width: 330px;
}

.baidata-card-date {
    font-size: 12px;
}

.baidata-card-image {
    height: 280px;
    position: relative;
}

.baidata-card-image img {
    height: calc(100% + 60px) !important;
}

.baidata-card-content {
    position: relative;
    background: white;
    padding: 45px 26px 26px;
    margin-top: -40px;
    clip-path: polygon( 0 0, 100% 60px, 100% 100%, 0 100%);
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    z-index: 2;
}

.baidata-card-content h3 {
    max-width: 82%;
}

.baidata-card-2 .baidata-card-content {
    padding: 50px 26px 32px;
}

.baidata-card-2 .baidata-card-content h3 {
    font-size: 22px;
    font-weight: 400;
}

.baidata-card-2 .baidata-card-content p {
    font-size: 16px;
    line-height: 1.2;
}

.home-header-info {
    max-width: 648px;
}

.home-header-info p {
    font-size: 18px;
}

.baidata-card-link img {
    transition: transform 0.3s ease;
}

.baidata-card-link:hover img {
    transform: translateX(3px);
}

.home-actualidad-main .header-2 {
    max-width: 420px;
}

.home-actualidad-main {
    padding: 60px 50px;
}

.home-actualidad-secondary {
    border: 1px solid #b6b6b6;
}

.home-actualidad-secondary > img {
    transition: transform 0.3s ease;
}

.home-actualidad-secondary:hover > img {
    transform: translateX(5px);
}


/* Catálogo */

.catalogo-header {
    padding-top: 60px;
}


/* Únete */

.unete-header-pill {
    padding: 23px 50px;
    border-radius: 85px;
    background-color: #EFE9F7;
    box-shadow: 0 0 20px 5px #bf9ee4;
}

.unete-header-pill > div:nth-of-type(1) {
    font-size: 64px;
    font-weight: 700;
}

.unete-header-pill > div:nth-of-type(2) {
    font-size: 18px;
}



/* Formación - Espacios de datos */

.formacion-espacios-card {
    width: 416px;
    height: 717px;
    border-radius: 30px;
    overflow: hidden;
}

.formacion-espacios-card.higher > div:nth-of-type(1) {
    height: 50%;
}

.formacion-espacios-card.higher > div:nth-of-type(2) {
    height: 50%;
}

.formacion-espacios-card > div {
    padding: 37px 30px;
}

.formacion-espacios-card > div:nth-of-type(1) {
    height: 45%;
    background-color: #EFE9F7;
}

.formacion-espacios-card > div:nth-of-type(2) {
    height: 55%;
    background-color: #fff;
}


/* Formación - Profesionales certificados */


a.baidata-card span {
    color: black;
}

.baidata-card > div:nth-of-type(1) {
    height: 240px;
}

.baidata-card > div:nth-of-type(2) {
    background: white;
    height: 240px;
}

.baidata-card.baidata-card-junta > div:nth-of-type(2) {
    height: 180px;
}


/* Filtros */

.baidata-filters {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 220px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

.baidata-filter,
.baidata-filter-date {
    width: 100%;
    height: 48px;

    border: 1px solid #e5e5e5;
    border-radius: 14px;

    padding: 0 16px;
    font-size: 14px;

    background: #fff;
    color: #222;

    outline: none;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.baidata-filter:focus,
.baidata-filter-date:focus {
    border-color: #cfcfcf;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.baidata-filter {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23666' d='M5.5 7l4.5 5 4.5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 40px;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-range span {
    font-size: 14px;
    color: #777;
}

.baidata-filter-date {
    position: relative;
    padding-right: 16px;
}

.baidata-filter-date::-webkit-calendar-picker-indicator {
    opacity: 0.5;
    cursor: pointer;
}