/*
==============================================
MEDISCIENCE GROUP - MAIN STYLESHEET
==============================================
*/

/* ===== CUSTOM FONTS ===== */
@font-face {
    font-family: 'Heading Now Trial';
    src: url('../assets/Fonts/HeadingNowTrial-53Book.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Heading Now Trial';
    src: url('../assets/Fonts/HeadingNowTrial-54Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Heading Now Trial';
    src: url('../assets/Fonts/HeadingNowTrial-57Extrabold.ttf') format('truetype');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('../assets/Fonts/Metropolis-Regular.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('../assets/Fonts/Metropolis-Medium.otf') format('opentype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('../assets/Fonts/Metropolis-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('../assets/Fonts/Metropolis-Bold.otf') format('opentype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Phosphate';
    src: url('../assets/Fonts/Phosphate.ttc') format('truetype-collection');
    font-display: swap;
}

@font-face {
    font-family: 'PhosphateRR';
    src: url('../assets/Fonts/PhosphateSolid.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HeadingNow';
    src: url('../assets/Fonts/HeadingNowTrial-54Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/* ===== VARIABLES CSS ===== */
:root {
    --primary-color: #00BCD4;        /* Turquesa corporativo MediScience */
    --secondary-color: #8E44AD;      /* Púrpura corporativo */
    --accent-color: #E91E63;         /* Magenta de acento */
    --dark-color: #1f2937;           /* Gris oscuro */
    --light-color: #f8fafc;          /* Gris muy claro */
    --white-color: #ffffff;
    --text-color: #374151;
    --border-color: #e5e7eb;

    --labmark-purple-dark: rgb(94, 21, 108);
    --labmark-purple: rgb(153, 51, 166);
    --labmark-purple-light: rgb(203, 121, 248);
    --labmark-magenta: rgb(180, 89, 229);
    --labmark-magenta-light: rgb(217, 138, 248);
    --labmark-blue: rgb(26, 166, 183);
    --labmark-blue-dark: rgb(18, 134, 153);
    --labmark-blue-light: rgb(48, 179, 197);
    --labmark-navy: rgb(47, 54, 88);
    --labmark-gray-blue: rgb(86, 98, 130);
    
    --font-heading: 'Heading Now Trial', sans-serif;
    --font-body: 'Metropolis', sans-serif;
    --font-accent: 'Phosphate', display;

    /* Typography weights */
    --font-weight-book: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    --section-padding: 5rem 0;
    --border-radius: 0.75rem;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 78px;
    font-weight: var(--font-weight-regular);
}

/* Typography hierarchy */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-extrabold);
    line-height: 1.2;
}

h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-regular);
    line-height: 1.2;
}

p, li {
    font-family: var(--font-body);
    font-weight: var(--font-weight-regular);
}

.nav-link, .btn {
    font-family: var(--font-body);
    font-weight: var(--font-weight-medium);
}

.brand-accent, .special-text {
    font-family: var(--font-accent);
}

/* ===== UTILITY CLASSES ===== */
.section-padding {
    padding: var(--section-padding);
}

.about-section.section-padding {
    padding-top: 3rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn-custom {
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary-custom {
    background: var(--primary-color);
    color: var(--white-color);
}

.btn-primary-custom:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
    color: var(--white-color);
}

.btn-outline-custom {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

/* ===== NAVBAR - NUEVO ===== */
.navbar-custom {
    background-color: #ffffff;
    padding: 0.75rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1050;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
}

.navbar-custom .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar-brand {
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.navbar-logo {
    height: 50px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.03);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-collapse {
    justify-content: flex-end;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: #374151;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.nav-link:hover {
    color: #00BCD4;
}

.nav-link:focus {
    outline: none;
}

/* Navbar Scrolled State */
.navbar-custom.scrolled {
    padding: 0.6rem 0;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 1rem;
    }

    .navbar-nav {
        gap: 0;
    }

    .nav-link {
        padding: 0.75rem 1rem;
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    overflow: hidden;
    border: none;
    outline: none;
}


@keyframes bgSlideFromTop {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    /* text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8); */
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    max-width: 600px;
    /* text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6); */
}

.hero-illustration {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.hero-illustration i {
    font-size: 8rem;
    color: var(--white-color);
}

.hero-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ===== HERO CAROUSEL FULLSCREEN ===== */
.hero-carousel-fullscreen {
    height: 55vh;
    position: relative;
    transform: translateY(-100%);
    animation: heroSlideDown 1.5s ease-out forwards;
    margin-top: -78px;
    border: none;
    outline: none;
}

.hero-slide {
    height: 55vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    background-attachment: fixed;
    width: 100%;
    overflow: hidden;
    border: none;
    outline: none;
}

.carousel,
.carousel-inner,
.carousel-item {
    border: none !important;
    outline: none !important;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Ajustes para móviles y tablets */
@media (max-width: 1024px) {
    .hero-slide {
        background-attachment: scroll !important;
    }
}

/* Animación de entrada desde arriba */
@keyframes heroSlideDown {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

/* Carousel Controls for Fullscreen */
.hero-carousel-fullscreen .carousel-control-prev,
.hero-carousel-fullscreen .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 3;
}

.hero-carousel-fullscreen .carousel-control-prev:hover,
.hero-carousel-fullscreen .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Carousel Indicators for Fullscreen */
.hero-carousel-fullscreen .carousel-indicators {
    bottom: 30px;
    z-index: 3;
}

.hero-carousel-fullscreen .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin: 0 6px;
    transition: var(--transition);
}

.hero-carousel-fullscreen .carousel-indicators button.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* Responsive Design */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-slide {
        height: 50vh;
        min-height: 350px;
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
        width: 100%;
        overflow: hidden;
    }

    .hero-carousel-fullscreen {
        height: 50vh;
        min-height: 350px;
        margin-top: -78px;
    }
}

@media (max-width: 767px) {
    .hero-slide {
        height: 40vh;
        min-height: 300px;
        max-height: 450px;
        background-size: 100% auto;
        background-position: center center;
        width: 100%;
        background-attachment: scroll;
        overflow: hidden;
    }

    .hero-carousel-fullscreen {
        height: 40vh;
        min-height: 300px;
        max-height: 450px;
        width: 100%;
        margin-top: -78px;
    }

    .hero-carousel-fullscreen .carousel-control-prev,
    .hero-carousel-fullscreen .carousel-control-next {
        width: 45px;
        height: 45px;
    }

    .hero-carousel-fullscreen .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
}

@media (max-width: 480px) {
    .hero-slide {
        height: 35vh;
        min-height: 250px;
        max-height: 350px;
        background-size: 100% auto;
        background-position: center center;
        width: 100%;
        background-attachment: scroll;
        overflow: hidden;
    }

    .hero-carousel-fullscreen {
        height: 35vh;
        min-height: 250px;
        max-height: 350px;
        width: 100%;
        margin-top: -60px;
    }

    .hero-carousel-fullscreen .carousel-control-prev,
    .hero-carousel-fullscreen .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .hero-carousel-fullscreen .carousel-indicators button {
        width: 6px;
        height: 6px;
        margin: 0 3px;
    }
}

/* ===== ABOUT SECTION ===== */
.about-section {
    /* background: var(--white-color); */
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/Bg_02.svg');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    /* opacity: 0.6; */
    /* transform: translateY(-100%) scaleX(-1);
    transition: transform 1.5s ease-out; */
    z-index: 0;
}

.about-section.bg-visible::before {
    transform: translateY(0) scaleX(-1);
}

.about-section .container {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    font-family: var(--font-body);
    font-weight: var(--font-weight-bold);
    color: #29b8ce;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    color: var(--text-color);
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== LABMARK STYLE GRID ===== */
.labmark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Grid responsive para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .labmark-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 160px;
        gap: 0.8rem;
    }

    /* Ajustar tamaños de tarjetas para tablet */
    .labmark-card.large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .labmark-card.wide {
        grid-column: span 2;
        grid-row: span 1;
    }

    .labmark-card.tall {
        grid-column: span 1;
        grid-row: span 2;
    }

    .labmark-card.medium {
        grid-column: span 1;
        grid-row: span 1;
    }

    .labmark-card.small {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.labmark-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--box-shadow);
}

.labmark-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Diferentes tamaños de tarjetas */
.labmark-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.labmark-card.wide {
    grid-column: span 2;
    grid-row: span 1;
}

.labmark-card.tall {
    grid-column: span 1;
    grid-row: span 2;
}

.labmark-card.medium {
    grid-column: span 1;
    grid-row: span 1;
}

.labmark-card.small {
    grid-column: span 1;
    grid-row: span 1;
}

.labmark-card-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.labmark-card-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.4s ease;
    background-color: #f8fafc;
}

/* Consolidated image styles - base styles already cover these cases */

.labmark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.labmark-card:hover .labmark-overlay {
    opacity: 1;
}

.labmark-card:hover .labmark-card-content img {
    opacity: 0;
}


/* ======= ESTILOS DE TARJETAS LABMARK ======= */

/* Overlay y texto */
.labmark-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .labmark-overlay:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  }
  
  .labmark-text h3 {
    color: var(--white-color);
    font-family: 'HeadingNow', sans-serif;
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
  }
  
  /* Palabras en negrita con PhosphateRR */
  .labmark-text h3 strong,
  .labmark-text h3 span {
    font-family: 'PhosphateRR', sans-serif;
    font-weight: 900;
  }

  /* Opcional: resaltar letras finales tipo "ING" */
  .labmark-text h3 span {
    display: inline-block;
    letter-spacing: 1px;
    text-align: left;
    font-size: 1.1em;
    vertical-align: baseline;
  }

  /* Centrar contenido pero mantener texto alineado a la izquierda */
  .labmark-text.text-centered {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .labmark-text.text-centered h3 {
    text-align: left;
  }


.labmark-text p {
    color: var(--white-color);
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}
.labmark-text h3 .small-text {
 
    font-size: 2rem;               /* más pequeño */
    font-weight: 400;    
    text-align: left;          /* más delgado */
    font-family: 'HeadingNow', sans-serif;

  }
  .labmark-text h3 .small-text2 {
    font-size: 0.9rem;
    font-weight: 400;
    text-align: left;
    font-family: 'HeadingNow', sans-serif;
  }

  /* ===== TAMAÑOS ESPECÍFICOS POR TARJETA ===== */
  /* Producción Audiovisual */
  a[href="#produccion-audiovisiual"] .labmark-text h3 {
    font-size: 4rem;
  }

  /* E-learning */
  a[href="#elearning"] .labmark-text h3 {
    font-size: 2.5rem;
  }
  a[href="#elearning"] .labmark-text h3 span {
    font-size: 2.8rem;
  }

  /* CLM */
  a[href="#clm"] .labmark-text h3 {
    font-size: 2.5rem;
  }

  /* Streaming */
  a[href="#streaming"] .labmark-text h3 {
    font-size: 2.5rem;
  }
  a[href="#streaming"] .labmark-text h3 span {
    font-size: 2.8rem;
  }

  /* E-mailing */
  a[href="#emailing"] .labmark-text h3 {
    font-size: 5rem;
  }
  a[href="#emailing"] .labmark-text h3 span {
    font-size: 5.5rem;
  }

  /* Apps */
  a[href="#apps"] .labmark-text h3 {
    font-size: 5rem;
  }

  /* IA */
  a[href="#ia"] .labmark-text h3 {
    font-size: 10rem;
  }

  /* E-book */
  a[href="#ebook"] .labmark-text h3 {
    font-size: 3.5rem;
  }

  /* GIF/POST */
  a[href="#gif"] .labmark-text h3 {
    font-size: 5rem;
  }

  /* Médicos */
  a[href="#medicos"] .labmark-text h3 {
    font-size: 2.5rem;
  }
  a[href="#medicos"] .labmark-text h3 .small-text {
    font-size: 2rem;
  }

  /* BTL */
  a[href="#btl"] .labmark-text h3 {
    font-size: 2.5rem;
  }
  a[href="#btl"] .labmark-text h3 strong {
    font-size: 3rem;
  }

  /* Pacientes */
  a[href="#pacientes"] .labmark-text h3 {
    font-size: 1.5rem;
  }

  /* ===== RESPONSIVE PARA TARJETAS - TABLET ===== */
  @media (max-width: 1024px) and (min-width: 768px) {
    a[href="#produccion-audiovisiual"] .labmark-text h3 {
      font-size: 3rem;
    }

    a[href="#elearning"] .labmark-text h3 {
      font-size: 2rem;
    }
    a[href="#elearning"] .labmark-text h3 span {
      font-size: 2.2rem;
    }

    a[href="#clm"] .labmark-text h3 {
      font-size: 2rem;
    }

    a[href="#streaming"] .labmark-text h3 {
      font-size: 2rem;
    }
    a[href="#streaming"] .labmark-text h3 span {
      font-size: 2.2rem;
    }

    a[href="#emailing"] .labmark-text h3 {
      font-size: 3.5rem;
    }
    a[href="#emailing"] .labmark-text h3 span {
      font-size: 4rem;
    }

    a[href="#apps"] .labmark-text h3 {
      font-size: 3.5rem;
    }

    a[href="#ia"] .labmark-text h3 {
      font-size: 7rem;
    }

    a[href="#ebook"] .labmark-text h3 {
      font-size: 2.5rem;
    }

    a[href="#gif"] .labmark-text h3 {
      font-size: 3.5rem;
    }

    a[href="#medicos"] .labmark-text h3 {
      font-size: 2rem;
    }
    a[href="#medicos"] .labmark-text h3 .small-text {
      font-size: 1.5rem;
    }

    a[href="#btl"] .labmark-text h3 {
      font-size: 2rem;
    }
    a[href="#btl"] .labmark-text h3 strong {
      font-size: 2.5rem;
    }

    a[href="#pacientes"] .labmark-text h3 {
      font-size: 1.3rem;
    }
  }

  /* ===== ANIMACIÓN AUTOMÁTICA PARA MÓVIL/TABLET ===== */
  @keyframes overlayPulse {
    0%, 100% {
      opacity: 0;
      visibility: hidden;
    }
    40%, 60% {
      opacity: 1;
      visibility: visible;
    }
  }

  /* Aplicar animación automática en dispositivos sin hover (móvil/tablet) */
  @media (hover: none) and (pointer: coarse) {
    .labmark-overlay {
      animation: overlayPulse 8s ease-in-out infinite;
    }

    /* Cada tarjeta con delay diferente para efecto escalonado */
    .labmark-card:nth-child(1) .labmark-overlay {
      animation-delay: 0s;
    }
    .labmark-card:nth-child(2) .labmark-overlay {
      animation-delay: 0.5s;
    }
    .labmark-card:nth-child(3) .labmark-overlay {
      animation-delay: 1s;
    }
    .labmark-card:nth-child(4) .labmark-overlay {
      animation-delay: 1.5s;
    }
    .labmark-card:nth-child(5) .labmark-overlay {
      animation-delay: 2s;
    }
    .labmark-card:nth-child(6) .labmark-overlay {
      animation-delay: 2.5s;
    }
    .labmark-card:nth-child(7) .labmark-overlay {
      animation-delay: 3s;
    }
    .labmark-card:nth-child(8) .labmark-overlay {
      animation-delay: 3.5s;
    }
    .labmark-card:nth-child(9) .labmark-overlay {
      animation-delay: 0.3s;
    }
    .labmark-card:nth-child(10) .labmark-overlay {
      animation-delay: 0.8s;
    }
    .labmark-card:nth-child(11) .labmark-overlay {
      animation-delay: 1.3s;
    }
    .labmark-card:nth-child(12) .labmark-overlay {
      animation-delay: 1.8s;
    }
  }

  /* ===== RESPONSIVE PARA TARJETAS - MÓVIL ===== */
  @media (max-width: 767px) {
    a[href="#produccion-audiovisiual"] .labmark-text h3 {
      font-size: 2rem;
    }

    a[href="#elearning"] .labmark-text h3 {
      font-size: 1.5rem;
    }
    a[href="#elearning"] .labmark-text h3 span {
      font-size: 1.7rem;
    }

    a[href="#clm"] .labmark-text h3 {
      font-size: 1.5rem;
    }

    a[href="#streaming"] .labmark-text h3 {
      font-size: 1.5rem;
    }
    a[href="#streaming"] .labmark-text h3 span {
      font-size: 1.7rem;
    }

    a[href="#emailing"] .labmark-text h3 {
      font-size: 2.5rem;
    }
    a[href="#emailing"] .labmark-text h3 span {
      font-size: 2.8rem;
    }

    a[href="#apps"] .labmark-text h3 {
      font-size: 2.5rem;
    }

    a[href="#ia"] .labmark-text h3 {
      font-size: 5rem;
    }

    a[href="#ebook"] .labmark-text h3 {
      font-size: 2rem;
    }

    a[href="#gif"] .labmark-text h3 {
      font-size: 2.5rem;
    }

    a[href="#medicos"] .labmark-text h3 {
      font-size: 1.5rem;
    }
    a[href="#medicos"] .labmark-text h3 .small-text {
      font-size: 1.2rem;
    }

    a[href="#btl"] .labmark-text h3 {
      font-size: 1.5rem;
    }
    a[href="#btl"] .labmark-text h3 strong {
      font-size: 2rem;
    }

    a[href="#pacientes"] .labmark-text h3 {
      font-size: 1.1rem;
    }
    a[href="#pacientes"] .labmark-text h3 .small-text2 {
      font-size: 0.8rem;
    }
  }

/* Variaciones de color para diferentes tarjetas */
.labmark-card:nth-child(1) .labmark-overlay {
    background: linear-gradient(135deg, var(--labmark-purple-dark), var(--labmark-purple));
  }
  
  .labmark-card:nth-child(2) .labmark-overlay {
    background: linear-gradient(135deg, var(--labmark-blue-dark), var(--labmark-blue));
  }
  
  .labmark-card:nth-child(3) .labmark-overlay {
    background: linear-gradient(135deg, var(--labmark-blue), var(--labmark-blue-light));
  }
  
  .labmark-card:nth-child(4) .labmark-overlay {
    background: linear-gradient(135deg, var(--labmark-blue-dark), var(--labmark-blue));
  }
  
  .labmark-card:nth-child(5) .labmark-overlay {
    background: linear-gradient(135deg, var(--labmark-blue-light), var(--labmark-purple));
  }
  
  .labmark-card:nth-child(6) .labmark-overlay {
    background: linear-gradient(135deg, var(--labmark-magenta), var(--labmark-purple));
  }
  
  .labmark-card:nth-child(7) .labmark-overlay {
    background: linear-gradient(135deg, var(--labmark-purple), var(--labmark-magenta-light));
  }
  
  .labmark-card:nth-child(8) .labmark-overlay {
    background: linear-gradient(135deg, var(--labmark-blue-dark), var(--labmark-blue-light));
  }
  
  .labmark-card:nth-child(9) .labmark-overlay {
    background: linear-gradient(135deg, var(--labmark-blue), var(--labmark-blue-light));
  }
  
  .labmark-card:nth-child(10) .labmark-overlay {
    background: linear-gradient(135deg, var(--labmark-magenta), var(--labmark-magenta-light));
  }
  
  .labmark-card:nth-child(11) .labmark-overlay {
    background: linear-gradient(135deg, var(--labmark-blue-dark), var(--labmark-blue));
  }
  
  .labmark-card:nth-child(12) .labmark-overlay {
    background: linear-gradient(135deg, var(--labmark-navy), var(--labmark-gray-blue));
  }
  

/* Legacy feature card styles (para mantener compatibilidad) */
.feature-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--white-color);
}

/* ===== SPEAKERS SECTION ===== */
.speakers-section {
    /* background: var(--light-color); */
    position: relative;
    overflow: hidden;
}

.speakers-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/Bg_01.svg');
    /* background-size: cover; */
    /* background-position: bottom; */
    background-repeat: no-repeat;
    opacity: 0.8;
    transform: scaleX(1);
    z-index: 0;
}

.speakers-section .container {
    position: relative;
    z-index: 1;
}

.speaker-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: none;
}

.speaker-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.speaker-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 3rem;
}

.speaker-info {
    padding: 1.5rem;
}

.speaker-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.speaker-specialty {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.speaker-description {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ===== MODERN ABOUT SECTION ===== */
.about-modern-section {
    background: var(--white-color);
    position: relative;
    overflow: hidden;
}

/* Video de fondo */
.about-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* Responsive video de fondo para tablets */
@media (max-width: 1024px) and (min-width: 768px) {
    .about-video-background {
        object-fit: cover;
        object-position: center center;
    }
}

/* Responsive video de fondo para móviles */
@media (max-width: 767px) {
    .about-video-background {
        object-fit: cover;
        object-position: center center;
        min-width: 100%;
        min-height: 100%;
    }
}

/* Fondo de imagen (comentado para usar video, descomentar para usar imagen estática) */
/* .about-modern-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/bg8.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 1;
} */

.about-modern-section .container {
    position: relative;
    z-index: 1;
}

/* About Intro */
.about-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.about-intro .section-title {
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-shadow: none;
}

.about-text-wide {
    width: 100%;
    margin: 0 auto;
}

.about-text-wide p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark-color);
    margin: 0;
    text-align: center;
    text-shadow: none;
}

/* Team Header */
.team-header {
    margin-bottom: 2rem;
}

.team-title {
    font-size: 1.75rem;
    font-family: var(--font-body);
    font-weight: var(--font-weight-bold);
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.team-subtitle {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.85;
    margin: 0;
}

/* Modern Team Cards with Slow Flip Effect */
.team-card {
    perspective: 1000px;
    height: 320px;
}

.team-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 1s ease;
    transform-style: preserve-3d;
}

.team-card:hover .team-card-inner {
    transform: rotateY(180deg);
}

.team-card-front,
.team-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.team-card-front {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid var(--border-color);
}

.team-overlay {
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: 2rem 1.5rem;
    text-align: center;
}

.team-overlay h5 {
    font-size: 1.25rem;
    font-family: var(--font-body);
    font-weight: var(--font-weight-bold);
    color: var(--white-color);
    margin: 0;
}

.team-role {
    display: none;
}

.team-card-back {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    transform: rotateY(180deg);
    padding: 2rem 1.5rem;
    justify-content: center;
    align-items: center;
}

.team-card-back h5 {
    font-size: 2.5rem;
    font-family: 'HeadingNow', sans-serif;
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    color: var(--white-color);
    text-align: left;
}

/* Palabras en negrita con PhosphateRR en team-card-back */
.team-card-back h5 strong {
    font-family: 'PhosphateRR', sans-serif;
    font-weight: 900;
}

.team-card-back p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--white-color);
    opacity: 0.95;
    text-align: left;
}

/* Responsive About Section */
@media (max-width: 992px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-card {
        height: 300px;
    }

    .team-card-back h5 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .team-card-back h5 {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .about-hero-card {
        padding: 2rem 1.5rem;
    }

    .about-hero-title {
        font-size: 1.5rem;
    }

    .about-hero-text {
        font-size: 1rem;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .about-stat-item {
        padding: 1rem;
    }

    .about-stat-item i {
        font-size: 2rem;
    }

    .team-card {
        height: 280px;
    }

    .team-icon-wrapper {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

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

    .team-card-front h5,
    .team-card-back h5 {
        font-size: 1.6rem;
    }

    .team-card-back p {
        font-size: 0.9rem;
    }
}

/* ===== SERVICES SECTION ===== */
.services-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/bg1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* opacity: 0.1; */
    z-index: 0;
}

.services-section .container {
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 188, 212, 0.15);
    border-color: var(--primary-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1.5rem;
    color: var(--white-color);
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.3);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 188, 212, 0.4);
}

.service-info {
    padding: 0 2rem 2rem;
    text-align: center;
}

.service-name {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.service-category {
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-description {
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ===== EVENTS SECTION ===== */
.events-section {
    background: var(--white-color);
}

.event-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.event-date {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.event-content {
    padding: 1.5rem;
}

.event-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.event-location {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.event-location i {
    margin-right: 0.5rem;
}

.event-description {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

/* ===== CLIENTS SECTION ===== */
.clients-section {
    background: var(--white-color);
    position: relative;
    overflow: hidden;
}

.clients-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/bg8.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.clients-section .container-fluid {
    position: relative;
    z-index: 1;
}

/* Map Section with Carousel Integrated */
.map-section-with-carousel {
    background: transparent;
    padding: 1rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 2rem auto 0;
}

.interactive-map,
.fallback-map {
    width: 100%;
    height: auto;
    display: block;
}

.interactive-map {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

/* Country Labels Overlay */
.country-labels-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.country-badge-wrapper {
    position: absolute;
}

.country-badge {
    background: var(--white-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.country-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.3);
}

.country-badge-wrapper:hover .country-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.country-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    margin-top: 0.5rem;
    background: var(--white-color);
    padding: 0.75rem;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    min-width: 350px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.country-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--white-color);
}

.popup-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

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

.popup-item i {
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.popup-item span {
    color: var(--text-color);
    line-height: 1.4;
}

.flag-container {
    width: 32px;
    height: 22px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.flag-icon {
    width: 100%;
    height: 100%;
    display: block;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: var(--font-weight-bold);
    color: var(--dark-color);
    white-space: nowrap;
}

.mexico-badge {
    top: 15%;
    left: 25%;
    animation-delay: 0s;
    cursor: default;
    pointer-events: none;
}

.mexico-badge:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.colombia-badge {
    top: 45%;
    left: 30%;
    animation-delay: 0.5s;
    cursor: default;
    pointer-events: none;
}

.colombia-badge:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.chile-badge {
    bottom: 12%;
    left: 20%;
    animation-delay: 1s;
    cursor: default;
    pointer-events: none;
}

.chile-badge:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Clients Carousel Integrated */
.clients-carousel-integrated {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
}

.clients-carousel-track-container {
    overflow: hidden;
    position: relative;
    padding: 0.5rem 0 0.5rem;
}

.clients-carousel-track {
    display: flex;
    gap: 4rem;
    animation: scroll-left 50s linear infinite;
    width: max-content;
}

.clients-carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-slide {
    flex-shrink: 0;
    width: 220px;
    height: 120px;
    background: transparent;
    border-radius: 0;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.client-slide:hover {
    transform: scale(1.1);
}

.client-carousel-logo {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0);
    transition: all 0.3s ease;
}

.client-slide:hover .client-carousel-logo {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 991px) {
    .map-section-with-carousel {
        padding: 1rem 1.5rem 2rem;
    }

    .map-container {
        max-width: 500px;
        margin: 1.5rem auto 0;
    }

    .country-label {
        padding: 0.5rem 1rem;
    }

    .country-label h4 {
        font-size: 0.85rem;
    }

    .client-slide {
        width: 180px;
        height: 100px;
        padding: 1rem;
    }

    .client-carousel-logo {
        max-height: 75px;
    }

    .clients-carousel-track {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .map-section-with-carousel {
        padding: 1rem 1rem 1.5rem;
    }

    .map-container {
        max-width: 420px;
        margin: 1rem auto 0;
    }

    .country-label {
        padding: 0.4rem 0.8rem;
    }

    .country-flag {
        font-size: 1.2rem;
    }

    .country-label h4 {
        font-size: 0.75rem;
    }

    .client-slide {
        width: 160px;
        height: 90px;
        padding: 0.8rem;
    }

    .client-carousel-logo {
        max-height: 65px;
    }

    .clients-carousel-track {
        gap: 2.5rem;
    }
}

.mexico-wrapper {
    top: 8%;
    left: 10%;
}

.mexico-badge {
    animation-delay: 0s;
}

.colombia-wrapper {
    top: 28%;
    left: 32%;
}

.colombia-badge {
    animation-delay: 0.5s;
}

.chile-wrapper {
    bottom: 28%;
    left: 35%;
}

.chile-badge {
    animation-delay: 1s;
}

@media (max-width: 991px) {
    .mexico-wrapper {
        top: 8%;
        left: 8%;
    }

    .colombia-wrapper {
        top: 28%;
        left: 30%;
    }

    .chile-wrapper {
        bottom: 28%;
        left: 33%;
    }
}

@media (max-width: 768px) {
    .mexico-wrapper {
        top: 7%;
        left: 5%;
    }

    .colombia-wrapper {
        top: 27%;
        left: 28%;
    }

    .chile-wrapper {
        bottom: 27%;
        left: 30%;
    }
}

@media (max-width: 576px) {
    .mexico-wrapper {
        top: 6%;
        left: 3%;
    }

    .colombia-wrapper {
        top: 26%;
        left: 26%;
    }

    .chile-wrapper {
        bottom: 26%;
        left: 28%;
    }
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--white-color);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/bg4.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-section .section-title {
    color: var(--white-color);
}

.contact-section .section-subtitle {
    color: var(--white-color);
}

.contact-form {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.contact-info {
    padding: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--white-color);
    font-size: 1.25rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 3rem 0 1rem;
}

.footer-logo {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.footer-logo:hover {
    filter: brightness(0) invert(1) sepia(1) hue-rotate(180deg) saturate(5);
}

.footer h5 {
    color: var(--white-color);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* ===== MODAL STYLES ===== */
.modal.fade .modal-dialog {
    transition: transform 0.15s ease-out;
}

.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

/* Office Info Modal Styles */
.office-info {
    padding: 1rem 0;
}

.office-info .info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.office-info .info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.office-info .info-item i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.office-info .info-item h6 {
    font-weight: var(--font-weight-bold);
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.office-info .info-item p {
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

.speaker-modal-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 3rem;
}

/* ===== ALERT SYSTEM ===== */
.custom-alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-section {
        background-size: cover;
        background-position: center bottom;
    }

    /* .hero-section::before {
        background: rgba(248, 250, 252, 0.9);
    } */

    .hero-illustration {
        width: 300px;
        height: 300px;
    }

    .hero-illustration i {
        font-size: 6rem;
    }

    .hero-gif {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Labmark Grid Responsive - SOLO MÓVIL */
    .labmark-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
        gap: 0.75rem;
    }

    .labmark-card.large,
    .labmark-card.wide,
    .labmark-card.tall,
    .labmark-card.medium,
    .labmark-card.small {
        grid-column: span 1;
        grid-row: span 1;
    }

    .labmark-text h3 {
        font-size: 1.25rem;
    }

    .labmark-text p {
        font-size: 0.9rem;
    }

    .labmark-overlay {
        padding: 1rem;
    }
}

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

    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
    
    .hero-illustration {
        width: 250px;
        height: 250px;
    }
    
    .hero-illustration i {
        font-size: 4rem;
    }
    
    .hero-gif {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* ===== ANIMATIONS ===== */

/* Animación para el contenido del hero que se ejecuta después del fondo */
.hero-content.fade-in {
    animation-delay: 0.8s;
}

/* Animación para la ilustración del hero */
.hero-illustration {
    animation: heroIllustrationFloat 3s ease-in-out infinite;
}

@keyframes heroIllustrationFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===== PORTFOLIO MODAL RESPONSIVE ===== */

/* Móvil por defecto */
.modal-portfolio {
    max-width: 96%;
    width: 96%;
    max-height: 95vh;
    margin: 0.5rem auto;
}

.modal-portfolio .modal-content {
    max-height: 95vh;
    overflow: hidden;
    padding: 0;
    border-radius: 0.75rem;
}

.modal-portfolio .modal-body {
    overflow: hidden;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.modal-portfolio .modal-body img {
    max-height: 65vh;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
}

.modal-portfolio .modal-footer {
    padding: 0.75rem;
    border-top: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.98);
}

.modal-portfolio .modal-footer .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    min-height: 52px;
}

/* Tablets (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .modal-portfolio {
        max-width: 90%;
        width: 90%;
        margin: 1rem auto;
    }

    .modal-portfolio .modal-body {
        padding: 0.75rem;
        min-height: 60vh;
    }

    .modal-portfolio .modal-body img {
        max-height: 75vh;
    }

    .modal-portfolio .modal-footer {
        flex-direction: row;
        justify-content: flex-end;
        gap: 1rem;
        padding: 1rem 1.5rem;
    }

    .modal-portfolio .modal-footer .btn {
        width: auto;
        min-width: 140px;
        padding: 0.875rem 1.75rem;
        min-height: 48px;
    }
}

/* Desktop (1024px+) - Modal ajustado al tamaño de la imagen */
@media (min-width: 1024px) {
    .modal-portfolio {
        max-width: fit-content;
        width: auto;
        max-height: 95vh;
        margin: 1.5rem auto;
    }

    .modal-portfolio .modal-content {
        max-height: 95vh;
        width: fit-content;
    }

    .modal-portfolio .modal-body {
        padding: 0.3rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-portfolio .modal-body img {
        max-height: 82vh;
        max-width: 85vw;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .modal-portfolio .modal-footer {
        flex-direction: row;
        justify-content: flex-end;
        gap: 1rem;
        padding: 1rem 1.5rem;
    }

    .modal-portfolio .modal-footer .btn {
        width: auto;
        padding: 0.75rem 2rem;
        min-height: 44px;
    }
}

/* ===== MODAL VIDEO SOBRE FONDO ===== */

/* Móvil por defecto */
.modal-body-video {
    position: relative;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== MODAL VIDEO AL LADO IZQUIERDO SOBRE IMAGEN ===== */
.modal-body-video-side {
    position: relative;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body-video-side img {
    max-height: 65vh;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
}

.modal-body-video-side .video-left-container {
    position: absolute;
    left: 4%;
    top: 45%;
    transform: translateY(-50%);
    width: 55%;
    max-width: 440px;
    z-index: 100;
}

.modal-body-video-side .video-left-container video {
    width: 100%;
    height: auto;
    max-height: 25vh;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

/* Responsive para video lateral */
@media (max-width: 768px) {
    .modal-body-video-side .video-left-container {
        width: 45%;
        left: 3%;
    }
}

@media (max-width: 576px) {
    .modal-body-video-side .video-left-container {
        width: 60%;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
}

.modal-body-video img {
    max-height: 65vh;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
}

.video-overlay {
    display: none;
}

.video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 88%;
    z-index: 100;
}

.modal-video {
    width: 100%;
    max-height: 65vh;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

/* Tablets (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .modal-body-video {
        padding: 0.75rem;
    }

    .modal-body-video img {
        max-height: 75vh;
    }

    .video-container {
        width: 80%;
    }

    .modal-video {
        max-height: 68vh;
        border-radius: 0.75rem;
    }
}

/* Desktop (1024px+) - Video flotante sobre imagen */
@media (min-width: 1024px) {
    .modal-body-video {
        position: relative;
        padding: 0.3rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-body-video img {
        max-height: 82vh;
        max-width: 85vw;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .video-container {
        position: absolute;
        top: 55%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 95%;
        z-index: 100;
    }

    .modal-video {
        max-height: 70vh;
        width: 100%;
        border-radius: 0.5rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    }
}