/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Montserrat",  sans-serif;
  --nav-font: "Inter",  sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #040500; /* Background color for the entire website, including individual sections */
  --default-color: rgba(255, 255, 255, 0.8); /* Default color used for the majority of the text content across the entire website */
  --heading-color: #ffffff; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #FACC10; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #1f1f23; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #000000; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: rgba(255, 255, 255, 0.8);  /* The default color of the main navmenu links */
  --nav-hover-color: #FACC10; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #1f1f23; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #1f1f23; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: rgba(255, 255, 255, 0.8); /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #FACC10; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #1d1d1e;
  --surface-color: #37373e;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  min-height: 100vh;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: #070708;
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 15px 0;
  transition: all 0.5s;
  z-index: 997;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 80px;
  margin-right: 12px;
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 400;
  color: var(--heading-color);
}

.header .header-social-links {
  padding-right: 15px;
}

.header .header-social-links a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding-left: 6px;
  display: inline-block;
  transition: 0.3s;
  font-size: 16px;
}

.header .header-social-links a:hover {
  color: var(--accent-color);
}

.header .header-social-links a i {
  line-height: 0px;
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .header-social-links {
    order: 2;
  }

  .header .navmenu {
    order: 3;
  }
}

.scrolled .header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
}

/* Global Header on Scroll
------------------------------*/
.scrolled .header {
  --background-color: rgba(7, 7, 8, 0.8);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 16px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;

    top: 60px;
    left: 20px;
    right: 20px;

    bottom: auto;
    max-height: calc(100dvh - 100px);

    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

.mobile-nav-active .navmenu {
  position: fixed;
  inset: 0;
  background: rgba(33, 37, 41, 0.8);
  height: 100dvh;
}

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  padding: 40px 0 0 0;
  position: relative;
}

.footer .icon {
  color: var(--accent-color);
  margin-right: 15px;
  font-size: 24px;
  line-height: 0;
}

.footer h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer .address p {
  margin-bottom: 0px;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.footer .copyright {
  padding: 25px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 5px;
  font-size: 13px;
}

/*--------------------------------------------------------------
# Preloader (contenedor)
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color); /* tu color de fondo */
  display: flex;
  flex-direction: column; /* apila texto arriba y loader abajo */
  align-items: center;
  justify-content: center;
  transition: all 0.6s ease-out;
}

/* Texto del preloader */
.preloader-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent-color); /* usa tu color principal */
  margin-bottom: 20px; /* espacio entre texto y loader */
  text-align: center;
  animation: fadeText 1.5s ease-in-out infinite; /* efecto animado opcional */
}

@keyframes fadeText {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* Loader estilo Shoh2008 */
.loader {
  width: 96px;
  height: 48px;
  display: inline-block;
  position: relative;
  background: #5e5e5e;
  border-radius: 48px 48px 0 0;
  box-sizing: border-box;
  overflow: hidden;
}

.loader::after {
  content: '';
  box-sizing: border-box;
  position: absolute;
  width: 24px;
  height: 12px;
  border-radius: 24px 24px 0 0;
  background: yellow;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
}

.loader::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 32px;
  left: 0;
  right: 0;
  margin: auto;
  bottom: 0;
  background: yellow;
  transform-origin: 50% 100%;
  box-sizing: border-box;
  animation: animloader 2s linear infinite alternate;
}

@keyframes animloader {
  0% { transform: rotate(-70deg); }
  10% { transform: rotate(-40deg); }
  20%, 35%, 45% { transform: rotate(-10deg); }
  30%, 40% { transform: rotate(-30deg); }
  50%, 60% { transform: rotate(20deg); }
  55%, 65%, 75% { transform: rotate(40deg); }
  70% { transform: rotate(45deg); }
  85%, 90% { transform: rotate(50deg); }
  93%, 100% { transform: rotate(70deg); }
}



/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 25px 0;
  position: relative;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 700;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 90px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding: 30px 0;
  margin-bottom: 30px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 0;
  position: relative;
  z-index: 2;
}

.section-title span {
  position: absolute;
  top: 4px;
  color: color-mix(in srgb, var(--heading-color), transparent 95%);
  left: 0;
  right: 0;
  z-index: 1;
  font-weight: 700;
  font-size: 52px;
  text-transform: uppercase;
  line-height: 1;
}

.section-title p {
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 575px) {
  .section-title h2 {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .section-title span {
    font-size: 38px;
  }
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px;
  overflow: hidden;
}

.hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color), transparent 95%) 0%, color-mix(in srgb, var(--heading-color), transparent 97%) 100%);
  z-index: -2;
}

.hero .hero-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/bg/abstract-bg-3.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: -1;
}

.hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent-color), transparent 90%) 0%, transparent 50%);
  z-index: -1;
}

.hero .hero-content {
  margin-bottom: 4rem;
}

.hero .hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 2rem;
  line-height: 1.1;
  color: var(--heading-color);
  letter-spacing: -0.02em;
}

@media (max-width: 992px) {
  .hero .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .hero .hero-content h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .hero .hero-content h1 {
    font-size: 2rem;
  }
}

.hero .hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .hero .hero-content p {
    font-size: 1.1rem;
  }
}

.hero .hero-content .hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

@media (max-width: 576px) {
  .hero .hero-content .hero-btns {
    flex-direction: column;
    gap: 1rem;
  }
}

.hero .hero-content .hero-btns .btn {
  padding: 15px 35px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 576px) {
  .hero .hero-content .hero-btns .btn {
    width: 100%;
    max-width: 280px;
  }
}

.hero .hero-content .hero-btns .btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
  box-shadow: 0 8px 25px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.hero .hero-content .hero-btns .btn-primary:hover {
  background-color: color-mix(in srgb, var(--accent-color), #000 15%);
  border-color: color-mix(in srgb, var(--accent-color), #000 15%);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px color-mix(in srgb, var(--accent-color), transparent 60%);
}

.hero .hero-content .hero-btns .btn-outline {
  background-color: transparent;
  border: 2px solid var(--default-color);
  color: var(--default-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero .hero-content .hero-btns .btn-outline i {
  font-size: 1.2rem;
}

.hero .hero-content .hero-btns .btn-outline:hover {
  transform: translateY(-2px);
}

.hero .hero-image-container {
  margin-bottom: 4rem;
  position: relative;
}

.hero .hero-image-container .hero-image {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 25px 60px color-mix(in srgb, var(--default-color), transparent 85%);
}

.hero .hero-image-container .hero-image img {
  width: 100%;
  height: auto;
  border-radius: 25px;
  transition: transform 0.6s ease;
}

.hero .hero-image-container .hero-image img:hover {
  transform: scale(1.05);
}

.hero .hero-image-container .hero-image .image-decoration {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #fff 30%));
  border-radius: 50%;
  opacity: 0.8;
  z-index: 1;
}

.hero .hero-image-container .hero-image .image-decoration::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid var(--contrast-color);
  border-radius: 50%;
}

@media (max-width: 768px) {
  .hero .hero-image-container .hero-image .image-decoration {
    width: 60px;
    height: 60px;
    top: -15px;
    right: -15px;
  }

  .hero .hero-image-container .hero-image .image-decoration::before {
    width: 30px;
    height: 30px;
  }
}

.hero .hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

@media (max-width: 768px) {
  .hero .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero .hero-stats {
    grid-template-columns: 1fr;
  }
}

.hero .hero-stats .stat-item {
  padding: 2rem 1rem;
  background-color: var(--surface-color);
  border-radius: 15px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--default-color), transparent 90%);
  transition: all 0.3s ease;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.hero .hero-stats .stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px color-mix(in srgb, var(--default-color), transparent 85%);
}

.hero .hero-stats .stat-item .stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #fff 20%));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.hero .hero-stats .stat-item .stat-icon i {
  font-size: 1.5rem;
  color: var(--contrast-color);
}

.hero .hero-stats .stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .hero .hero-stats .stat-item h3 {
    font-size: 2rem;
  }
}

.hero .hero-stats .stat-item p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-weight: 500;
}

@media (max-width: 992px) {
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero .hero-content {
    margin-bottom: 3rem;
  }

  .hero .hero-content h1 {
    margin-bottom: 1.5rem;
  }

  .hero .hero-content p {
    margin-bottom: 2rem;
  }

  .hero .hero-image-container {
    margin-bottom: 3rem;
  }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .image-wrapper {
  position: relative;
}

.about .image-wrapper .image-box {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.about .image-wrapper .image-box img {
  transition: 0.5s transform;
}

.about .image-wrapper .image-box:hover img {
  transform: scale(1.05);
}

.about .image-wrapper .experience-box {
  position: absolute;
  bottom: -30px;
  right: 30px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.about .image-wrapper .experience-box .years {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  font-family: var(--heading-font);
}

.about .image-wrapper .experience-box .text {
  font-size: 0.9rem;
  margin-top: 5px;
  line-height: 1.2;
}

.nosotros-text {
  max-width: 700px;   /* limita el ancho del párrafo */
  margin: 0 auto;     /* centra horizontalmente */
  text-align: center; /* opcional: centra el texto */
}

.about .content {
  padding-left: 2rem;
}

@media (max-width: 991.98px) {
  .about .content {
    padding-left: 0;
    margin-top: 10px;
  }
}

.about .content .section-header {
  margin-bottom: 2rem;
}

.about .content .section-header .subtitle {
  display: inline-block;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.about .content .section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .about .content .section-header h2 {
    font-size: 2rem;
  }
}

.about .content .highlight-text {
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--heading-color), transparent 20%);
  margin-bottom: 2rem;
  font-weight: 500;
}

.about .content .features-list {
  margin-bottom: 2.5rem;
}

.about .content .features-list .feature-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.about .content .features-list .feature-item:last-child {
  margin-bottom: 0;
}

.about .content .features-list .feature-item .icon-box {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 92%);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: 0.3s;
}

.about .content .features-list .feature-item .icon-box:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-5px);
}

.about .content .features-list .feature-item .text h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.about .content .features-list .feature-item .text p {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.about .content .cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.about .content .cta-buttons .btn-get-started {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 500;
  transition: 0.3s;
  display: grid;
  place-items: center;
}

.about .content .cta-buttons .btn-get-started:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  transform: translateY(-3px);
}

.about .content .cta-buttons .btn-learn-more {
  background-color: transparent;
  color: var(--accent-color);
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 500;
  border: 2px solid color-mix(in srgb, var(--accent-color), transparent 80%);
  transition: 0.3s;
}

.about .content .cta-buttons .btn-learn-more:hover {
  border-color: var(--accent-color);
  background-color: color-mix(in srgb, var(--accent-color), transparent 95%);
  transform: translateY(-3px);
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .services-container {
  margin-bottom: 60px;
}

.services .services-container .service-item {
  display: flex;
  background-color: var(--surface-color);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent-color), transparent 92%);
  transition: all 0.4s ease;
  height: 100%;
}

.services .services-container .service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px color-mix(in srgb, var(--accent-color), transparent 85%);
}

.services .services-container .service-item:hover .service-icon {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.services .services-container .service-item:hover .service-link {
  color: var(--accent-color);
}

.services .services-container .service-item:hover .service-link i {
  transform: translateX(5px);
}

.services .services-container .service-item .service-icon {
  flex: 0 0 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  font-size: 2rem;
  transition: all 0.3s ease;
}

.services .services-container .service-item .service-content {
  padding: 30px;
  position: relative;
}

.services .services-container .service-item .service-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 4rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--heading-color), transparent 90%);
  line-height: 1;
  opacity: 0.5;
  z-index: 1;
}

.services .services-container .service-item .service-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--heading-color);
  position: relative;
  z-index: 2;
}

.services .services-container .service-item .service-text {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  position: relative;
  z-index: 2;
}

.services .services-container .service-item .service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--accent-color), transparent 20%);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.services .services-container .service-item .service-link i {
  transition: transform 0.3s ease;
}

.services .cta-wrapper .cta-box {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color), transparent 15%), color-mix(in srgb, var(--accent-color), transparent 5%));
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px color-mix(in srgb, var(--default-color), transparent 85%);
}

.services .cta-wrapper .cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("assets/img/bg/dotted-world-1.webp");
  background-size: cover;
  opacity: 0.05;
  z-index: 1;
}

.services .cta-wrapper .cta-box .cta-image {
  position: relative;
  z-index: 2;
}

.services .cta-wrapper .cta-box .cta-image img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 5px solid color-mix(in srgb, var(--contrast-color), transparent 15%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
  .services .cta-wrapper .cta-box .cta-image img {
    margin-bottom: 30px;
  }
}

.services .cta-wrapper .cta-box .cta-content {
  position: relative;
  z-index: 2;
}

.services .cta-wrapper .cta-box .cta-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--contrast-color);
}

.services .cta-wrapper .cta-box .cta-content p {
  color: color-mix(in srgb, var(--contrast-color), transparent 15%);
  margin-bottom: 25px;
  font-size: 1rem;
  line-height: 1.6;
}

.services .cta-wrapper .cta-box .cta-content .primary-btn {
  display: inline-block;
  background-color: var(--contrast-color);
  color: var(--accent-color);
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.services .cta-wrapper .cta-box .cta-content .primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 991px) {
  .services .cta-wrapper .cta-box .cta-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .services {
    padding: 60px 0;
  }

  .services .services-container .service-item {
    flex-direction: column;
  }

  .services .services-container .service-item .service-icon {
    flex: 0 0 auto;
    height: 80px;
    width: 100%;
  }

  .services .cta-wrapper .cta-box {
    padding: 30px 20px;
  }
}

/*--------------------------------------------------------------
# Steps Section
--------------------------------------------------------------*/
.steps .process-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.steps .process-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-bottom: 2.5rem;
}

.steps .process-item:last-child {
  padding-bottom: 0;
}

.steps .process-item .content {
  width: 100%;
  position: relative;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent-color), transparent 95%), var(--surface-color));
  border: 2px solid color-mix(in srgb, var(--accent-color), transparent 85%);
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.steps .process-item .content:hover {
  transform: translateX(10px);
  box-shadow: -8px 8px 25px rgba(0, 0, 0, 0.1);
}

.steps .process-item .content:hover .step-icon {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color), transparent 15%), var(--accent-color));
  transform: rotate(10deg);
}

.steps .process-item .content:hover .step-number {
  transform: translateX(-5px);
  opacity: 1;
}

.steps .process-item .step-number {
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent-color);
  font-family: var(--heading-font);
  line-height: 1;
  opacity: 0.2;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.steps .process-item .card-body {
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.steps .process-item .step-icon {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  background-color: var(--accent-color);
  border-radius: 15px;
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px color-mix(in srgb, var(--accent-color), transparent 70%);
}

.steps .process-item .step-icon i {
  font-size: 2rem;
  color: var(--contrast-color);
}

.steps .process-item .step-content h3 {
  color: var(--heading-color);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.steps .process-item .step-content p {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.steps .process-item .arrow {
  color: color-mix(in srgb, var(--accent-color), transparent 50%);
  margin: 1rem 0;
  width: 100px;
  height: 100px;
  opacity: 0.7;
}

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

  .steps .process-item {
    padding-bottom: 2rem;
  }

  .steps .process-item .content {
    border-width: 1px;
  }

  .steps .process-item .content:hover {
    transform: translateY(-5px);
  }

  .steps .process-item .step-number {
    font-size: 3rem;
    left: 50%;
    top: -1.5rem;
    transform: translateX(-50%);
  }

  .steps .process-item .step-number:hover {
    transform: translateX(-50%);
  }

  .steps .process-item .card-body {
    padding: 2rem 1.5rem 1.5rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .steps .process-item .step-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
  }

  .steps .process-item .step-icon i {
    font-size: 1.75rem;
  }

  .steps .process-item .step-content h3 {
    font-size: 1.25rem;
  }

  .steps .process-item .arrow {
    height: 60px;
    margin: 0.5rem 0;
  }
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .swiper-wrapper {
  height: auto !important;
}

.testimonials .testimonial-card {
  background: var(--surface-color);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: 0.3s;
}

.testimonials .testimonial-card:hover {
  border-color: var(--accent-color);
}

.testimonials .testimonial-content {
  padding: 40px 30px 30px;
  position: relative;
  flex-grow: 1;
}

.testimonials .testimonial-content p {
  font-size: 16px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 10%);
}

.testimonials .testimonial-content .quote-icon {
  position: absolute;
  top: 15px;
  left: 30px;
  font-size: 42px;
  color: color-mix(in srgb, var(--accent-color), transparent 85%);
  z-index: 0;
  opacity: 0.8;
}

.testimonials .testimonial-profile {
  padding: 20px 30px;
  background-color: color-mix(in srgb, var(--heading-color), transparent 95%);
  border-top: 1px solid color-mix(in srgb, var(--heading-color), transparent 90%);
}

.testimonials .rating {
  margin-bottom: 15px;
}

.testimonials .rating i {
  color: #ffc107;
  margin-right: 3px;
  font-size: 14px;
}

.testimonials .profile-info {
  display: flex;
  align-items: center;
}

.testimonials .profile-info img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--background-color);
  margin-right: 15px;
}

.testimonials .profile-info div {
  flex: 1;
}

.testimonials .profile-info h3 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 700;
  color: var(--heading-color);
}

.testimonials .profile-info h4 {
  margin: 0;
  font-size: 13px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-weight: 500;
}

.testimonials .swiper-pagination {
  margin-top: 30px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 60%);
  opacity: 1;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
  width: 25px;
  border-radius: 5px;
}

@media (max-width: 767px) {
  .testimonials .testimonial-content {
    padding: 30px 20px 20px;
  }

  .testimonials .testimonial-content p {
    font-size: 15px;
  }

  .testimonials .testimonial-content .quote-icon {
    font-size: 36px;
    left: 20px;
  }

  .testimonials .testimonial-profile {
    padding: 15px 20px;
  }

  .testimonials .profile-info img {
    width: 45px;
    height: 45px;
  }
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-filters-wrapper {
  text-align: center;
  margin-bottom: 80px;
}

.portfolio .portfolio-filters {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding: 0;
  margin: 0;
  list-style: none;
  position: relative;
}

.portfolio .portfolio-filters::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
}

.portfolio .portfolio-filters li {
  position: relative;
  cursor: pointer;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  transition: all 0.4s ease-out;
  letter-spacing: 0.5px;
}

.portfolio .portfolio-filters li::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all 0.4s ease-out;
  transform: translateX(-50%);
}

.portfolio .portfolio-filters li:hover {
  color: var(--default-color);
}

.portfolio .portfolio-filters li.filter-active {
  color: var(--default-color);
}

.portfolio .portfolio-filters li.filter-active::after {
  width: 100%;
}

@media (max-width: 768px) {
  .portfolio .portfolio-filters {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }
}

.portfolio .portfolio-card {
  background: var(--surface-color);
  transition: all 0.4s ease-out;
  overflow: hidden;
}

.portfolio .portfolio-card:hover {
  transform: translateY(-8px);
}

.portfolio .portfolio-card:hover .image-container img {
  transform: scale(1.05);
}

.portfolio .portfolio-card:hover .overlay {
  opacity: 1;
  visibility: visible;
}

.portfolio .portfolio-card:hover .content h3 {
  color: var(--accent-color);
}

.portfolio .image-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  border-radius: 8px;
}

.portfolio .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease-out;
}

.portfolio .image-container .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--accent-color), transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease-out;
  backdrop-filter: blur(2px);
}

.portfolio .image-container .overlay-content {
  display: flex;
  gap: 20px;
  transform: translateY(20px);
  transition: transform 0.4s ease-out 0.1s;
}

.portfolio-card:hover .portfolio .image-container .overlay-content {
  transform: translateY(0);
}

.portfolio .image-container .overlay-content a {
  width: 50px;
  height: 50px;
  background: var(--surface-color);
  color: var(--heading-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 18px;
}

.portfolio .image-container .overlay-content a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  transform: scale(1.1);
}

.portfolio .content {
  padding: 30px 0;
  text-align: center;
}

.portfolio .content h3 {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 8px;
  transition: color 0.3s ease;
  letter-spacing: 0.5px;
}

.portfolio .content p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  letter-spacing: 0.3px;
}

@media (min-width: 992px) {
  .portfolio .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .portfolio .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
  }
}

/*--------------------------------------------------------------
# Team Section
--------------------------------------------------------------*/
.team .team-member {
  position: relative;
  background-color: var(--surface-color);
  border-radius: 20px;
  overflow: hidden;
  transition: 0.4s;
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 90%);
  height: 100%;
}

.team .team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px color-mix(in srgb, var(--accent-color), transparent 80%);
  border-color: var(--accent-color);
}

.team .team-member:hover .member-image:before {
  opacity: 1;
}

.team .team-member:hover .member-image img {
  transform: scale(1.1);
}

.team .team-member:hover .social-overlay {
  transform: translateY(0);
  opacity: 1;
}

.team .team-member:hover .member-info h4 {
  color: var(--accent-color);
}

.team .member-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.team .member-image:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-color) 0%, color-mix(in srgb, var(--accent-color), transparent 50%) 100%);
  opacity: 0;
  transition: 0.4s;
  z-index: 1;
}

.team .member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team .social-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 30px 20px 20px;
  transform: translateY(100%);
  opacity: 0;
  transition: 0.4s;
  z-index: 2;
}

.team .social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.team .social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--contrast-color);
  font-size: 18px;
  transition: 0.3s;
}

.team .social-icons a:hover {
  background-color: var(--contrast-color);
  color: var(--accent-color);
  transform: scale(1.1);
}

.team .member-info {
  padding: 25px 20px 30px;
  text-align: center;
  position: relative;
}

.team .member-info:before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color) 0%, color-mix(in srgb, var(--accent-color), transparent 60%) 100%);
  border-radius: 2px;
}

.team .member-info h4 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--heading-color);
  transition: 0.3s;
}

.team .member-info span {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-color);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team .member-info p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

@media (max-width: 768px) {
  .team .team-member {
    margin-bottom: 30px;
  }

  .team .team-member .member-image {
    height: 250px;
  }

  .team .team-member .member-info {
    padding: 20px 15px 25px;
  }

  .team .team-member .member-info h4 {
    font-size: 20px;
  }

  .team .team-member .member-info p {
    font-size: 14px;
  }
}

/*--------------------------------------------------------------
# Pricing Section
--------------------------------------------------------------*/
.pricing .pricing-card {
  background-color: var(--surface-color);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
}

.pricing .pricing-card:hover {
  transform: translateY(-10px);
}

.pricing .pricing-card.featured {
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  border: 2px solid var(--accent-color);
}

.pricing .pricing-card.featured .pricing-header h3 {
  color: var(--accent-color);
}

.pricing .pricing-card .pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing .pricing-card .pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

.pricing .pricing-card .pricing-header .price {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--accent-color);
}

.pricing .pricing-card .pricing-header .price .currency {
  font-size: 1.5rem;
  vertical-align: super;
}

.pricing .pricing-card .pricing-header .price .period {
  font-size: 1rem;
  font-weight: 400;
  margin-left: -4px;
  color: var(--default-color);
  opacity: 0.7;
}

.pricing .pricing-card .features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.pricing .pricing-card .features-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.pricing .pricing-card .features-list li i {
  margin-right: 0.5rem;
  color: var(--accent-color);
}

.pricing .pricing-card .features-list li.disabled {
  opacity: 0.5;
}

.pricing .pricing-card .features-list li.disabled i {
  color: var(--default-color);
}

.pricing .pricing-card .btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 0.75rem 2rem;
  font-weight: bold;
  transition: all 0.3s ease;
  border-radius: 50px;
}

.pricing .pricing-card .btn-primary:hover {
  background-color: color-mix(in srgb, var(--accent-color), black 20%);
  border-color: color-mix(in srgb, var(--accent-color), black 20%);
}

/*--------------------------------------------------------------
# Faq Section
--------------------------------------------------------------*/
.faq .section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 1rem;
}

.faq .section-header .lead {
  font-size: 1.1rem;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  line-height: 1.6;
}

.faq .faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.faq .faq-item {
  border-left: 4px solid transparent;
  border-radius: 10px;
  background: var(--surface-color);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.faq .faq-item:last-child {
  margin-bottom: 0;
}

.faq .faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-left-color: color-mix(in srgb, var(--accent-color), transparent 50%);
}

.faq .faq-item.faq-active {
  border-left-color: var(--accent-color);
}

.faq .faq-item.faq-active .faq-header .faq-icon {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.faq .faq-item.faq-active .faq-header h4 {
  color: var(--accent-color);
}

.faq .faq-item.faq-active .faq-header .faq-toggle {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.faq .faq-item.faq-active .faq-header .faq-toggle i.bi-plus {
  display: none;
}

.faq .faq-item.faq-active .faq-header .faq-toggle i.bi-dash {
  display: block;
}

.faq .faq-item.faq-active .faq-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
}

.faq .faq-item:not(.faq-active) .faq-header .faq-toggle i.bi-plus {
  display: block;
}

.faq .faq-item:not(.faq-active) .faq-header .faq-toggle i.bi-dash {
  display: none;
}

.faq .faq-item .faq-header {
  display: flex;
  align-items: center;
  padding: 25px;
  cursor: pointer;
  gap: 20px;
}

.faq .faq-item .faq-header .faq-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 20px;
  transition: all 0.3s ease;
}

.faq .faq-item .faq-header h4 {
  flex: 1;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading-color);
  transition: color 0.3s ease;
  line-height: 1.4;
}

.faq .faq-item .faq-header .faq-toggle {
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--default-color), transparent 85%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--default-color);
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
}

.faq .faq-item .faq-header .faq-toggle i {
  position: absolute;
  transition: all 0.3s ease;
}

.faq .faq-item .faq-header .faq-toggle:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.faq .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.3s ease-in-out;
  visibility: hidden;
  opacity: 0;
}

.faq .faq-item .faq-content .content-inner {
  padding: 0 25px 25px 25px;
  overflow: hidden;
}

.faq .faq-item .faq-content .content-inner p {
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  line-height: 1.6;
  font-size: 0.95rem;
  overflow: hidden;
}

@media (max-width: 768px) {
  .faq .faq-item .faq-header {
    padding: 20px;
    gap: 15px;
  }

  .faq .faq-item .faq-header .faq-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .faq .faq-item .faq-header h4 {
    font-size: 1rem;
  }

  .faq .faq-item .faq-header .faq-toggle {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .faq .faq-item .faq-content .content-inner {
    padding: 0 20px;
  }

  .faq .faq-item.faq-active .faq-content .content-inner {
    padding-bottom: 20px;
  }
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .container {
  max-width: 1280px;
}

.contact .contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 992px) {
  .contact .contact-wrapper {
    grid-template-columns: 38% 62%;
    gap: 30px;
  }
}

.contact .contact-info-panel {
  background: linear-gradient(145deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #1a4372 40%));
  color: var(--contrast-color);
  border-radius: 20px;
  padding: 40px 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact .contact-info-panel .contact-info-header {
  margin-bottom: 30px;
}

.contact .contact-info-panel .contact-info-header h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--contrast-color);
}

.contact .contact-info-panel .contact-info-header p {
  font-size: 15px;
  opacity: 0.85;
  line-height: 1.6;
}

.contact .contact-info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: auto;
}

@media (min-width: 576px) and (max-width: 991px) {
  .contact .contact-info-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact .info-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.contact .info-card:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.contact .info-card .icon-container {
  width: 45px;
  height: 45px;
  flex-shrink: 0;
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact .info-card .icon-container i {
  font-size: 20px;
  color: var(--contrast-color);
}

.contact .info-card .card-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--contrast-color);
}

.contact .info-card .card-content p {
  font-size: 14px;
  margin-bottom: 0;
  opacity: 0.8;
}

.contact .social-links-panel {
  margin-top: 35px;
}

.contact .social-links-panel h5 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--contrast-color);
}

.contact .social-links-panel .social-icons {
  display: flex;
  gap: 12px;
}

.contact .social-links-panel .social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--contrast-color);
  font-size: 18px;
  transition: all 0.3s ease;
}

.contact .social-links-panel .social-icons a:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
}

.contact .contact-form-panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact .map-container {
  width: 100%;
  height: 280px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact .form-container {
  background-color: var(--surface-color);
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
}

.contact .form-container h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--heading-color);
  background: linear-gradient(
    120deg,
    var(--heading-color),
    color-mix(in srgb, var(--heading-color), var(--accent-color) 30%)
  );
  -webkit-background-clip: text;   /* recorta el fondo al texto */
  -webkit-text-fill-color: transparent; /* hace transparente el relleno */
  background-clip: text;           /* soporte adicional */
}


.contact .form-container p {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
  margin-bottom: 25px;
}

.contact .form-container .form-floating {
  margin-bottom: 20px;
}

.contact .form-container .form-floating .form-control {
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  padding: 24px 20px 8px 20px;
  height: calc(3.5rem + 3px);
  background-color: var(--surface-color);
  color: var(--default-color);
  transition: all 0.3s ease;
}

.contact .form-container .form-floating .form-control:focus {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-color), transparent 85%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 40%);
  background-color: var(--surface-color);
}

.contact .form-container .form-floating .form-control::placeholder {
  color: transparent;
}

.contact .form-container .form-floating label {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 1rem 1.25rem 2.5rem 1.25rem;
}

.contact .form-container .form-floating label::after {
  background-color: transparent;
}

.contact .form-container .btn-submit {
  background: linear-gradient(145deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #1a4372 30%));
  color: var(--contrast-color);
  border: none;
  padding: 15px 25px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact .form-container .btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px color-mix(in srgb, var(--accent-color), transparent 75%);
}

.contact .form-container .btn-submit i {
  transition: transform 0.3s ease;
}

.contact .form-container .btn-submit:hover i {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .contact .contact-info-panel {
    padding: 30px 25px;
  }

  .contact .form-container {
    padding: 30px 25px;
  }
}

@media (max-width: 576px) {
  .contact .social-links-panel .social-icons {
    flex-wrap: wrap;
  }
}


/* ===== VARIABLES GLOBALES ===== */
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --heading-font: "Montserrat", sans-serif;
  --nav-font: "Inter", sans-serif;

  --background-color: #040500;
  --default-color: rgba(255, 255, 255, 0.8);
  --heading-color: #ffffff;
  --accent-color: #FACC10;
  --surface-color: #1f1f23;
  --contrast-color: #000000;

  --bg: var(--background-color);
  --surface: var(--surface-color);
  --surface2: #242840;
  --accent: var(--accent-color);
  --accent2: #3ecfcf;
  --danger: #e85b4b;
  --success: #4be876;
  --text: var(--default-color);
  --muted: #7b83a6;
  --border: #2e3250;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== MAIN WRAPPER ===== */
main {
  width: 100%;
  flex: 1;
}
.quiz-wrapper {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.q-image {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 15px 0;
}

/* ===== SCREENS ===== */
.screen { display: none; }
.screen.active { display: block; }

/* ===== INSTRUCCIONES ===== */
.section-title h2 {
  color: var(--accent);
  font-weight: 700;
}
.section-title p {
  color: var(--muted);
}

.exam-instructions .card {
  height: 100%;
}

.exam-instructions h3 {
  font-size: 1rem;   /* más chico que el default */
  color: #17a2b8;    /* mantiene el celeste */
  font-weight: 700;  /* sigue siendo bold */
  margin-bottom: 0.5rem;
}
.exam-instructions h4 { color: #ddd; }
.exam-instructions p { color: #aaa; }

.exam-instructions ul {
  list-style: none;
  padding: 0;
}

.exam-instructions ul li {
  position: relative;
  padding-left: 28px; /* espacio para el punto */
  margin-bottom: 10px;
  color: var(--text);
}

/* Punto fijo */
.exam-instructions ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--accent); /* dorado */
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
  z-index: 2; /* siempre visible encima */
}

/* Onda expansiva detrás */
.exam-instructions ul li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  z-index: 1;
  animation: pulse 3s infinite; /* más lenta */
}

/* Animación */
@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  70% {
    transform: scale(2.8);
    opacity: 0;
  }
  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}



  /* ── QUIZ ── */
  .quiz-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
  }

  /* ── QUIZ META EXTENDIDO ── */
  .q-score {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #f39c12; /* amarillo/naranja para la estrella */
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(243, 156, 18, 0.15);
    padding: 4px 10px;
    border-radius: 8px;
    margin-left: 8px;
  }

  .q-streak {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #e74c3c; /* rojo para la llama */
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(231, 76, 60, 0.15);
    padding: 4px 10px;
    border-radius: 8px;
    margin-left: 8px;
  }

  .q-timer {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #3498db; /* azul para el reloj */
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(52, 152, 219, 0.15);
    padding: 4px 10px;
    border-radius: 8px;
    margin-left: auto; /* empuja el timer a la derecha */
  }

  .q-counter {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .q-score {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .progress-bar {
    width: 100%;
    height: 5px;
    background: var(--border);
    border-radius: 99px;
    margin-bottom: 24px;
    overflow: hidden;
  }
  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    border-radius: 99px;
    transition: width .4s cubic-bezier(.4,0,.2,1);
  }

  .q-id-badge {
    display: inline-block;
    background: var(--surface2);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 99px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
  }

  .q-text {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.55;
    margin-bottom: 24px;
    color: var(--text);
  }

.opts-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.opts-list li {
    display: flex;
    justify-content: center;
}

.opt-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    display: flex;
    align-items: flex-start;
    gap: 14px;

    padding: 16px 18px;

    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);

    cursor: pointer;

    text-align: left;

    color: var(--text);
    font-family: 'Barlow', sans-serif;
    font-size: 0.97rem;
    line-height: 1.45;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .25s ease,
        filter .25s ease;
}

.opt-btn span:last-child {
    flex: 1;
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

.opt-btn:hover:not(:disabled) {
    border-color: var(--accent2);
    background: var(--surface2);
    box-shadow:
        0 0 10px rgba(0,212,255,.18),
        0 0 22px rgba(0,212,255,.08);
    filter: brightness(1.03);
}

  .opt-btn:disabled { cursor: default; }
  .opt-btn.correct {
    border-color: var(--success);
    background: rgba(75,232,118,.08);
  }
  .opt-btn.wrong {
    border-color: var(--danger);
    background: rgba(232,91,75,.08);
  }

  .opt-letter {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--muted);
    transition: background .13s, border-color .13s, color .13s;
    margin-top: 1px;
  }
  .opt-btn.correct .opt-letter {
    background: var(--success);
    border-color: var(--success);
    color: #0f1117;
  }
  .opt-btn.wrong .opt-letter {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
  }

  .feedback-box {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    display: none;
    animation: fadeIn .2s ease;
  }
  .feedback-box.show { display: block; }
  .feedback-box.ok {
    background: rgba(75,232,118,.1);
    border: 1.5px solid var(--success);
    color: var(--success);
  }
  .feedback-box.fail {
    background: rgba(232,91,75,.1);
    border: 1.5px solid var(--danger);
    color: var(--danger);
  }
  .feedback-box .correct-ans {
    margin-top: 6px;
    color: var(--success);
    font-size: 0.88rem;
  }
  
.nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 12px; /* espacio entre botones */
  margin-top: 20px;
}

/* Botón Anterior (rojo) */
.prev-btn {
  flex: 1;
  padding: 14px;
  background: transparent;
  color: #e74c3c;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: 1.5px solid #e74c3c;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s;
}
.prev-btn:hover { background: rgba(231,76,60,.12); }

/* Botón Saltar (amarillo) */
.skip-btn {
  flex: 1;
  padding: 14px;
  background: transparent;
  color: #f1c40f;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: 1.5px solid #f1c40f;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s;
}
.skip-btn:hover { background: rgba(241,196,15,.12); }

/* Botón Siguiente (verde) */
.next-btn {
  flex: 1;
  padding: 14px;
  background: #2ecc71;
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: 1.5px solid #27ae60;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s;
}
.next-btn:hover { background: #27ae60; }


.next-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* ===== RESULTADOS ===== */
.result-hero {
  text-align: center;
  padding: 36px 0 28px;
}
.result-emoji {
  font-size: 4rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 20px var(--accent));
}
.result-pct {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent);
}
.result-label { color: var(--muted); margin-top: 8px; }
.result-verdict { font-size: 1.2rem; font-weight: 600; margin-top: 14px; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.stat-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.stat-card .stat-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
}
.stat-card.green .stat-val { color: var(--success); }
.stat-card.red .stat-val { color: var(--danger); }

.restart-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #0f1117;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 28px;
  transition: filter .15s;
}
.restart-btn:hover { filter: brightness(1.1); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .result-pct { font-size: 4rem; }
}

.card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center; /* centra verticalmente */
  align-items: center;     /* centra horizontalmente */
  height: 100%;            /* ocupa toda la altura de la card */
}

.card .card-title {
  margin-bottom: 6px;      /* separa título del texto */
  font-size: 1rem;
}

.card .card-text {
  font-size: 0.8rem;
  color: var(--default-color);
}

.text-secondary {
  font-size: 0.7rem;
}

.btn-quiz-animated {
  --main-size: 1.1rem;
  --color-text: #000;
  --color-background: #ffc107; /* amarillo oficial */
  --color-background-hover: #e0a800;
  --color-outline: #ffc10740;
  --color-shadow: #00000040;

  cursor: pointer;
  display: inline-flex; /* mantiene flex pero permite centrar */
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 50px;
  padding: 0.6em 1.2em;
  margin: 1.2rem auto; /* centra horizontal y da margen arriba/abajo */
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: var(--main-size);
  color: var(--color-text);
  background: var(--color-background);
  box-shadow: 0 0 0.2em 0 var(--color-background);
  transition: 0.5s;
}

.btn-quiz-animated span {
  margin-right: 0.3em;
  transition: 0.5s;
}

.btn-quiz-animated svg {
  height: 1em;
  fill: var(--color-text);
  margin-right: -0.16em;
  transition: 0.5s;
}

.btn-quiz-animated:hover {
  outline: 0.1em solid transparent;
  outline-offset: 0.2em;
  box-shadow: 0 0 1em 0 var(--color-background);
  animation: ripple 1.5s linear infinite, colorize 1.5s infinite;
}

.btn-quiz-animated:hover span {
  text-shadow: 2px 2px 4px var(--color-shadow);
}

.btn-quiz-animated:hover svg {
  margin-right: 0.66em;
  filter: drop-shadow(2px 2px 2px var(--color-shadow));
}

.btn-quiz-animated svg polygon:nth-child(1),
.btn-quiz-animated svg polygon:nth-child(2),
.btn-quiz-animated svg polygon:nth-child(3) {
  transition: 0.4s;
}

.btn-quiz-animated:hover svg polygon:nth-child(1) {
  transform: translateX(0%);
  animation: opacity 1.2s infinite 0.6s;
}
.btn-quiz-animated:hover svg polygon:nth-child(2) {
  transform: translateX(0%);
  animation: opacity 1.2s infinite 0.4s;
}
.btn-quiz-animated:hover svg polygon:nth-child(3) {
  animation: opacity 1.2s infinite 0.2s;
}

@keyframes opacity {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
@keyframes colorize {
  0%, 100% { background: var(--color-background); }
  50% { background: var(--color-background-hover); }
}
@keyframes ripple {
  0% { outline: 0em solid transparent; outline-offset: -0.1em; }
  50% { outline: 0.2em solid var(--color-outline); outline-offset: 0.2em; }
  100% { outline: 0.4em solid transparent; outline-offset: 0.4em; }
}



.exam-nav-divider{
    margin:35px 0 25px;
    border:none;
    border-top:1px solid #2a2a2a;
}

.exam-nav h3{
    text-align:center;
    font-size:.9rem;
    letter-spacing:.08em;
    color:#d8d8d8;
    margin-bottom:16px;
}

.exam-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(42px,48px));
    gap:8px;
    justify-content:center;
}

.exam-grid button{
    width:48px;
    height:48px;

    border-radius:8px;

    background:#222;
    color:#fff;

    border:1px solid #444;

    font-size:16px;
    font-weight:600;

    cursor:pointer;

    transition:
        transform .18s ease,
        filter .18s ease,
        background-color .18s ease,
        border-color .18s ease;
}

.exam-grid button:hover{
    transform:scale(1.08);
    filter:brightness(1.15);
}

.exam-grid button.actual{
    background:#4d9cff;
    border-color:#4d9cff;
}

.exam-grid button.correct{
    background:#28c76f;
    border-color:#28c76f;
}

.exam-grid button.wrong{
    background:#ea5455;
    border-color:#ea5455;
}

.exam-grid button.skipped{
    background:#ff9f43;
    border-color:#ff9f43;
}

.exam-grid button.pending{
    background:#222;
}

.exam-legend{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
    margin-top:18px;
    font-size:.9rem;
    justify-content:center;
}

.lg{
    width:12px;
    height:12px;
    display:inline-block;
    border-radius:50%;
    margin-right:6px;
}

.lg.actual{background:#4d9cff;}
.lg.correct{background:#28c76f;}
.lg.wrong{background:#ea5455;}
.lg.skipped{background:#ff9f43;}
.lg.pending{background:#555;}

/* Responsive */
@media (max-width: 768px) {

  .nav-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .prev-btn,
  .skip-btn,
  .next-btn {
    width: 100%;
    flex: none;
    font-size: 1rem;
    padding: 12px;
  }

}

.opt-btn > *:last-child{
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}