/* =========================================
   Author: Isidro Antonio Cuadrado Diaz
   Description: Global styles for the application
   ========================================= */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter_18pt-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter_18pt-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter_18pt-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter_18pt-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter_18pt-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Variables */
:root {
  /* Colores principales */
  --primary-color: #007bff;
  --accent-color: #0f2b57;

  /* Colores neutrales */
  --background-color: #F8FAFC;
  --surface-color: #ffffff;
  --border-color: #E2E8F0;
  --text-color: #212529;

  /* Colores complementarios */
  --success-color: #10B981;
  --warning-color: #F59E0B;
  --error-color: #EF4444;
  --info-color: #06B6D4;

  /* Tipografía */
  --font-family: 'Inter', Arial, sans-serif;
}

.logo--dark {
  display: none;
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --background-color: #3f3b3b;
    --text-color: #ffffff;

    /* Colores neutrales */
    --background-color: #121212;
    --surface-color: #282828;
    --border-color: #3f3f3f;
    --text-color: #F1F5F9;

    /* Colores complementarios */
    --success-color: #10B981;
    --warning-color: #FBBF24;
    --error-color: #F87171;
    --info-color: #22D3EE;
  }

  body {
    background-color: var(--background-color);
  }

  .header {
    background-color: var(--background-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
  }

  .header--scrolled {
    background-color: rgba(22, 22, 23, .8) !important;
  }

  .footer {
    background-color: var(--background-color) !important;
    border-top: 1px solid var(--border-color) !important;
  }

  /* Dark mode specific styles for the logo SVG */
  .logo {
    filter: none;
  }

  .logo--light {
    display: none;
  }

  .logo--dark {
    display: block;
  }
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.5;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

input,
textarea {
  background-color: var(--surface-color);
  font-family: var(--font-family);
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
}

button {
  font-family: var(--font-family);
  border: none;
  cursor: pointer;
}

/* Typography */
h1 {
  font-size: 2.986rem;
}

h2 {
  font-size: 2.488rem;
}

h3 {
  font-size: 2.074rem;
}

h4 {
  font-size: 1.728rem;
  /* 27.648px */
}

h5 {
  font-size: 1.44rem;
  /* 23.04px */
}

h6 {
  font-size: 1.2rem;
}

p {
  font-size: 1rem;
}

small {
  font-size: 0.833rem;
}

.smaller {
  font-size: 0.694rem;
}


/* Escala tipográfica para móviles y tablets */
@media (max-width: 992px) {
  h1 {
    font-size: 2.027rem;
    /* ~32.4px */
  }

  h2 {
    font-size: 1.802rem;
    /* ~28.8px */
  }

  h3 {
    font-size: 1.602rem;
    /* ~25.6px */
  }

  h4 {
    font-size: 1.424rem;
    /* ~22.8px */
  }

  h5 {
    font-size: 1.266rem;
    /* ~20.3px */
  }

  h6 {
    font-size: 1.125rem;
    /* ~18px */
  }

  p {
    font-size: 1rem;
    /* ~16px */
  }

  small {
    font-size: 0.889rem;
    /* ~14.2px */
  }

  .smaller {
    font-size: 0.79rem;
    /* ~12.6px */
  }
}


h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family);
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

body.no-scroll {
  overflow: hidden;
}

img {
  display: block;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.233rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: .688rem 1rem;
  font-size: 1rem;
  line-height: normal;
  transition: all 0.3s ease-in-out;
}

.btn:hover {
  text-decoration: none;
  opacity: 0.9;
}

.btn--small {
  background-color: var(--primary-color);
  color: #fff !important;
  border-radius: .188rem;
  font-size: 1rem;
}

.btn--small:hover {
  color: #fff !important;
}

.btn--primary {
  background-color: var(--primary-color);
  color: #fff;
  border-radius: .375rem;
  border: 1px solid var(--primary-color);
  padding: .688rem 1.5rem;
  line-height: 1.7;
}

/* Card Component */
.card {
  width: 100%;
  background-color: var(--surface-color);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  max-width: 480px;
}

.card h3 {
  font-size: 1.44rem;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .card h3 {
    font-size: 1.266rem;
  }
}

.card__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.card__header h1 {
  margin-bottom: 0.5rem;
}

.card__header p {
  color: var(--secondary-color);
  font-size: 1rem;
}

.card button {
  margin-top: 1rem;
  width: 100%;
}

/* Form Group */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-color);
  background-clip: padding-box;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Error Message */
.error-message {
  color: #dc3545;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 0.25rem;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* Utility Classes */

/* Loader */
.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 89vh;
}

.loader__spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border-left-color: var(--primary-color);
  animation: spin 1s ease infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.section {
  padding: 80px 0;
}

.section--small {
  padding: 48px 0;
}

.text-center {
  text-align: center;
}

.paragraph {
  font-size: 1.2rem;
  ;
}

@media (max-width: 768px) {
  .paragraph {
    font-size: 1.125rem;
  }
}

.subtitle {
  font-size: 1.602rem;
}

.mb-1x {
  margin-bottom: 10px;
  /* 0.625rem */
}

.mb-2x {
  margin-bottom: 20px;
  /* 1.25rem */
}

.mb-3x {
  margin-bottom: 30px;
  /* 1.875rem */
}

.mb-4x {
  margin-bottom: 40px;
  /* 2.5rem */
}

.mb-5x {
  margin-bottom: 50px;
  /* 3.125rem */
}

.mt-1x {
  margin-top: 10px;
  /* 0.625rem */
}

.mt-2x {
  margin-top: 20px;
  /* 1.25rem */
}

.mt-3x {
  margin-top: 30px;
  /* 1.875rem */
}

.mt-4x {
  margin-top: 40px;
  /* 2.5rem */
}

.mt-5x {
  margin-top: 50px;
  /* 3.125rem */
}

.logo {
  height: 28px;
  /* Specific height as requested by user */
  width: auto;
  /* Maintains aspect ratio */
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  /* background-color: rgba(250, 250, 252, 0.8); */
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.4s ease-in-out;
}

.header--scrolled {
  backdrop-filter: blur(8px);
}

.header--scrolled .header__nav a {
  color: var(--text-color);
}

.header--scrolled .header__menu-toggle span {
  background-color: var(--text-color);
}


.header__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.header__nav a {
  color: var(--text-color);
  letter-spacing: normal;
  cursor: pointer;
}

.header__nav a:hover {
  color: var(--primary-color);
}

.header__menu-toggle {
  display: none;
  /* Hidden by default on larger screens */
  cursor: pointer;
}

@media (max-width: 768px) {
  .header {
    padding: 1rem 0;
  }

  .logo {
    height: 24px;
  }

  .header__menu-toggle {
    display: block;
    /* Show on smaller screens */
    z-index: 1001;
  }

  .header__menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
  }

  .header__menu-toggle.open span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }

  .header__menu-toggle.open span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .header__nav ul {
    flex-direction: column;
    position: absolute;
    align-items: flex-start;
    gap: 1.125rem;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--background-color);
    padding: 4rem 3rem;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
  }

  .header__nav ul.open {
    transform: translateY(0);
  }

  .header__nav ul li {
    margin: 0;
  }

  /*   .header__nav ul li:last-child {
    border-top: 1px solid #3f3b3b;
    padding-top: 24px;
    width: 100%;
  } */

  .header__nav a {
    font-size: 1.602rem;
    font-weight: 600;
  }
}

/* Footer */

.footer {
  padding: 48px 0;
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer__row:last-child {
  margin-top: 96px;
}

.footer__column {
  flex: 1;
}

.footer__column p {
  font-size: 14px;
  color: #807e7e !important;
}

.footer__nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 2.5rem;
  align-items: center;
  padding: 0;
}

.footer__nav a {
  color: var(--text-color);
  font-weight: 500;
  cursor: pointer;
}

.footer__nav a:hover {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .footer__row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__row:last-child {
    margin: 24px 0 0 0;
  }

  .footer__nav {
    margin-top: 24px;
  }

  .footer__nav ul {
    gap: 1.5rem;
  }
}



/* ===== Sections ===== */

/* login */
.login {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--background-color);
  min-height: 80vh;
}

.login h1 {
  font-size: 1.728rem;
}

.login__trust-device {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-color);
}

.login__trust-device input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--surface-color);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease-in-out;
}

.login__trust-device input[type="checkbox"]:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.login__trust-device input[type="checkbox"]:checked::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.login__trust-device input[type="checkbox"]:hover {
  border-color: var(--primary-color);
}

/* Not found */
.not-found {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 89vh;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 1rem;
  min-height: 600px;
  background: linear-gradient(rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.3) 100%),
    url(https://dmslog.ai/photos-containers-logistics-ai/2024/01/StarLink-Internet-satellite-maritime-feature-3d-scaled.jpg) no-repeat;
  background-size: cover;
  background-position: center;
  color: white;
}

/* Features section */
.features {
  background-color: var(--background-color);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* FAQ Section */
.faq {
  background-color: var(--background-color);
}

.faq-list {
  width: 100%;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

.faq-answer {
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}

.faq-answer p {
  padding-top: 1rem;
}

@media (max-width: 768px) {
  .faq-question h4 {
    font-size: 1.125rem;
  }
}

/* Accordion Section */
.accordion {
  width: 100%;
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

.accordion-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.accordion-title h3 {
  font-size: 1.44rem;
  font-weight: 600;
}

.accordion-content {
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
  max-height: 0;
}

.accordion-content>* {
  padding-top: 1rem;
}

.accordion-icon {
  font-size: 24px;
  /* Set icon size to 24x24px */
  font-weight: bold;
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .accordion-title h3 {
    font-size: 1.266rem;
  }
}

/* Privacy Policy Section */
.policy-content h2 {
  font-size: 1.44rem;
  font-weight: 700;
}

.policy-content p {
  line-height: 1.2;
}

.policy-content ul {
  list-style-position: inside;
  padding-left: 1rem;
}

.policy-content ul li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .policy-content h2 {
    font-size: 1.266rem;
  }
}

/* Contact page */

.contact-header {
  text-align: center;
  background-color: var(--background-color);
}

.contact-map {
  overflow: hidden;
}

/* Testimonial section */
.testimonial {
  background-color: var(--background-color);
}

.testimonial-slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.testimonial-slider__slide {
  max-width: 600px;
}

.testimonial-slider__logo {
  margin-bottom: 1.5rem;
}

.testimonial-slider__quote {
  font-size: 1.44rem;
  font-style: bold;
  margin-bottom: 1.5rem;
}

.testimonial-slider__author {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.testimonial-slider__title {
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.testimonial-slider__dots {
  display: flex;
  gap: 0.5rem;
}

.testimonial-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border-color);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.testimonial-slider__dot--active {
  background-color: var(--primary-color);
}

/* CTA Section */
.cta {
  background-color: var(--background-color);
}

.cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--surface-color);
  color: var(--text-color);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.cta-content {
  max-width: 50%;
  padding: 2rem;
}

.cta-text h2 {
  margin-bottom: 1.5rem;
}

.cta-action .button {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
}

.cta-.image {
  max-width: 50%;
}

.cta-image img {
  width: 100%;
  padding-top: 2rem;
}

@media (max-width: 768px) {
  .cta-card {
    flex-direction: column;
    text-align: center;
  }

  .cta-content {
    max-width: 100%;
    margin-bottom: 2rem;
    padding: 2rem;
  }

  .cta-text h2 {
    font-size: 2rem;
  }

  .cta-image {
    max-width: 100%;
    padding: 0;
  }
}

/* Courses Page */
.courses-header {
  text-align: center;
  background-color: var(--background-color);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.course-card {
  background-color: var(--surface-color);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
  text-decoration: none !important;
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.course-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.course-card h2 {
  font-size: 1.44rem;
  color: var(--text-color) !important;
  margin: 1rem 1.5rem;
}

.course-card p {
  font-size: 1rem;
  color: var(--text-color) !important;
  padding: 0 1.5rem 1.5rem;
}