/* Fuentes Gilroy */
@font-face {
    font-family: 'Gilroy';
    src: url('../assets/font/Gilroy-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

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

@font-face {
    font-family: 'Gilroy';
    src: url('../assets/font/gilroy-semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

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

/* Variables CSS personalizadas */
:root {
    --primary-color: #009AFA;
    --secondary-color: #00153A;
    --accent-color: #43D3FF;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-color: #334155;
    --text-light: #64748b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Estilos globales personalizados */
body {
    font-family: var(--font-family);
    font-weight: 400;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Aplicar Gilroy en todos los elementos */
* {
    font-family: var(--font-family);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-family);
    font-weight: 700;
}

.navbar-brand,
.nav-link,
.btn {
    font-family: var(--font-family);
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.fw-normal {
    font-weight: 400 !important;
}

.fw-light {
    font-weight: 300 !important;
}

html {
    scroll-behavior: smooth;
}

/* Header personalizado */
.custom-header .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

.custom-header .navbar-brand {
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition);
}

.custom-header .navbar-brand:hover {
    color: var(--secondary-color) !important;
}

.custom-header .nav-link {
    color: var(--text-color) !important;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.custom-header .nav-link:hover {
    color: var(--primary-color) !important;
}

.custom-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.custom-header .nav-link:hover::after {
    width: 100%;
}

/* Hero Section personalizado */
.hero {
    min-height: 100vh;
    background-image: url('../assets/font/img/Bg-Desktop-LFDS-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding-top: 80px;
}

.hero-logo-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    z-index: 10;
}
.text-3-home{
    font-style: italic;
}

.hero-logo {
    max-width: 100%;
    height: auto;
}

.hero-bottom-image {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    z-index: 10;
}

.hero-bottom-image img {
    max-width: 100%;
    height: auto;
}

.hero .container {
    margin-top: 15%;
}

.hero-title {
    animation: fadeInUp 1s ease;
    font-size: 7.5vh;
    font-weight: 700;
    line-height: 1.3;
}

/* Textos de la sección de servicios */
.services-text {
    color: white;
    line-height: 1.3;
}

.hero-subtitle {
    opacity: 0.9;
    font-weight: 400;
}

.custom-btn-primary {
    background: white;
    color: var(--primary-color);
    border: none;
    transition: var(--transition);
    font-weight: 600;
}

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

.custom-btn-secondary {
    border: 2px solid white;
    transition: var(--transition);
    font-weight: 600;
}

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

/* Botones de Bootstrap */
.btn {
    font-weight: 600;
}

/* Scroll indicator animation */
.scroll-indicator {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 25px;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% {
        top: 10px;
        opacity: 1;
    }
    50% {
        top: 30px;
        opacity: 0;
    }
}

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

/* About Section personalizado */
.custom-about {
    padding: 0;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.custom-about::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* Aspect ratio 16:9 */
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: opacity 0.5s ease;
}

.video-background-image.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-height: 100%;
    width: 100vw;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Botón de play centrado */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(128, 128, 128, 0.8);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
}

.video-play-button:hover {
    background-color: rgba(128, 128, 128, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button .video-icon {
    width: 40px;
    height: 40px;
    color: white;
    stroke: white;
    fill: none;
}

.video-play-button #play-icon {
    margin-left: 4px; /* Ajuste visual para centrar el icono de play */
}

.video-play-button.hidden {
    display: none;
}

.stat-item {
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}

.stat-number {
    font-weight: 700;
}

.stat-label {
    font-weight: 600;
}

/* Services Section personalizado */
.custom-hr {
    width: 10%;
    height: 3px;
    background-color: var(--primary-color);
    border: none;
    margin: 2rem auto;
    opacity: 1;
}

#services {
    background-image: url('../assets/font/img/Bg-Desktop-LFDS-3.png');
    background-size: 100% 100%;
    background-position: center top;
    background-repeat: no-repeat;
    min-height: fit-content;
    position: relative;
}


#services .text-black {
    color: white !important;
}

.services-bottom-image {
    width: 100%;
    text-align: center;
}

.mundo-img{
    height: auto;
    width: 60%;
}

.services-bottom-image img {
    max-width: 100%;
    height: auto;
}

.seccion-3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 5%;
}

.custom-card {
    background-color: rgba(0, 21, 58, 0.5);
    border: 3px solid rgba(0, 154, 250, 0.3);
    border-radius: 15px;
    margin: 6rem auto 0 auto;
    position: relative;
    overflow: visible; /* Permite que la imagen sobresalga */
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 154, 250, 0.15), 0 0 0 1px rgba(0, 154, 250, 0.1);
    transition: background-color 0.4s ease-out, border-color 0.4s ease-out, box-shadow 0.4s ease-out, transform 0.2s ease-out;
    transform: scale(1);
    transform-style: preserve-3d;
}

.custom-card:hover {
    background-color: rgba(0, 21, 58, 0);
    border-color: rgba(0, 154, 250, 0.7);
    box-shadow: 0 8px 32px rgba(0, 154, 250, 0.25), 0 0 0 1px rgba(0, 154, 250, 0.2);
    transform: scale(1.015);
}

/* Enlace de la card - Desktop */
.custom-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.custom-card-link:hover {
    text-decoration: none;
}

/* Enlace Ver más - Oculto por defecto */
.ver-mas-link {
    display: none;
    color: var(--primary-color) !important;
}
  
.card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    position: relative;
    gap: 2rem;
    flex-wrap: nowrap;
}

.card-content-2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    gap: 2rem;
    flex-wrap: nowrap;
}

.card-content-4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 91%;
    position: relative;
    gap: 2rem;
    flex-wrap: nowrap;
}

@media (max-width: 1400px) {
    .card-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 96%;
        position: relative;
        gap: 2rem;
        flex-wrap: nowrap;
    }

    .card-content-2 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 110%;
        position: relative;
        gap: 1.5rem;
        flex-wrap: nowrap;
    }

}
  .logo-section {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .logo-img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
  }
  
  .text-section {
    flex: 1 1 auto;
    text-align: left;
    padding: 0 1rem;
  }
  
  .card-title {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    line-height: 1.2;
    margin: 0;
    word-wrap: break-word;
  }
  
  .person-section {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
  }
  
  .person-img {
    max-height: 320px;
    height: auto;
    width: auto;
    object-fit: contain;
    position: relative;
    margin-top: -5rem;
    margin-bottom: -2rem;
  }
  .person-img-4 {
    max-height: 340px;
    height: auto;
    width: auto;
    object-fit: contain;
    position: relative;
    margin-top: -6rem;
    margin-bottom: -2.9rem;
  }
  
 
  
  /* Responsive */
  @media (max-width: 1000px) {

    .hero {
        min-height: auto;
    }

    .hero-title {
        animation: fadeInUp 1s ease;
        color: white;
        font-size: 4vw;
        width: 90%;
        font-weight: 700;
        line-height: 1.3;
        padding-bottom: 10rem;
    }

    .hero .container {
        margin-top: 10%;
        padding-bottom: 21%;
    }

    .services-text {
        color: white;
        font-size: 3.5vw;
        line-height: 1.3;
    }

    #services .col-md-11 {
      width: 100%;
      max-width: 100%;
      flex: 0 0 100%;
    }
    
    .custom-card {
        padding:4.5rem;
        width: 90% !important;
        margin: 1.5rem auto 0 auto;
        position: relative;
        overflow: hidden;
    }

    .card-content,
    .card-content-2,
    .card-content-4 {
      flex-direction: row;
      text-align: center;
      gap: 1rem;
      justify-content: center;
      align-items: center;
      position: relative;
      z-index: 2;
      width: 100%;
      min-height: 50%;
      padding-top: 1rem;
    }
    
    .logo-section {
      width: auto;
      flex: 0 0 auto;
    }
    
    .logo-img {
      max-height: 80px;
    }
    
    .text-section {
      padding: 0;
      width: auto;
      flex: 0 0 auto;
    }
    
    .card-title {
      font-size: 2rem;
      margin: 0;
    }
    
    .person-section {
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: auto;
      z-index: 1;
      pointer-events: none;
    }
    
    .person-img {
        max-height: 30vw;
        margin-top: 2px;
        margin-bottom: -38%;
        opacity: 0.25;
        object-fit: contain;
    }

    .person-img-4 {
        max-height: 32vw;
        margin-top: 2px;
        margin-bottom: -42%;
        opacity: 0.25;
        object-fit: contain;
    }
    
    /* Enlace de la card - No clickeable en mobile */
    .custom-card-link {
        pointer-events: none;
    }
    
    /* Enlace Ver más - Visible en mobile */
    .ver-mas-link {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        position: absolute;
        bottom: 1.5rem;
        right: 1.5rem;
        color: var(--primary-color) !important;
        text-decoration: underline;
        text-decoration-color: var(--primary-color) !important;
        font-weight: 400;
        font-size: 1rem;
        z-index: 10;
        transition: opacity 0.3s ease;
        pointer-events: auto;
        cursor: pointer;
    }
    
    .ver-mas-link:hover {
        opacity: 0.8;
        text-decoration: underline;
        color: var(--primary-color) !important;
    }
    
    .ver-mas-link svg {
        width: 20px;
        height: 20px;
        stroke: var(--primary-color) !important;
    }

    /* Botón de contacto personalizado */
    .btn-contact-custom {
        background-color: var(--primary-color) !important;
        color: white !important;
        border: none !important;
        border-radius: 55px !important;
        padding: .5rem 2rem !important;
        font-size: 1.6rem !important;
        font-weight: 600 !important;
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3) !important;
        transition: var(--transition) !important;
    }
    
    .btn-contact-custom:hover {
        background-color: var(--primary-color) !important;
        color: white !important;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4) !important;
        transform: translateY(-2px) !important;
    }

    .hero-logo {
        max-width: 75%;
        height: auto;
    }
  }
  
  @media (max-width: 480px) {
    .hero {
        min-height: 35vh;
    }

    .hero-title {
        animation: fadeInUp 1s ease;
        font-size: 3.5vh;
        font-weight: 700;
        line-height: 1.3;
    }

    .services-text {
        color: white;
        font-size: 2.6vh;
        line-height: 1.3;
    }

    #services .col-md-11 {
      width: 90%;
      max-width: 100%;
      flex: 0 0 100%;
    }
    
    .custom-card {
        padding: 4rem;
        width: 100% !important;
        position: relative;
        margin: 2.5rem auto 0 auto;
        overflow: hidden;
    }

    .card-content,
    .card-content-2,
    .card-content-4 {
      flex-direction: row;
      text-align: center;
      gap: 1rem;
      justify-content: center;
      align-items: center;
      position: relative;
      z-index: 2;
      width: 100%;
      min-height: 50%;
      padding-top: 1rem;
    }
    
    .logo-section {
      width: auto;
      flex: 0 0 auto;
    }
    
    .logo-img {
      max-height: 6vh;
    }
    
    .text-section {
      padding: 0;
      width: auto;
      flex: 0 0 auto;
    }
    
    .card-title {
      font-size: 1.5rem;
      margin: 0;
    }
    
    .person-section {
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: auto;
      z-index: 1;
      pointer-events: none;
    }
    
    .person-img {
        max-height: 26vh;
        margin-top: 2px;
        margin-bottom: -38%;
        opacity: 0.25;
        object-fit: contain;
    }

    .person-img-4 {
        max-height: 30vh;
        margin-top: 2px;
        margin-bottom: -42%;
        opacity: 0.25;
        object-fit: contain;
    }
    
    /* Enlace de la card - No clickeable en mobile */
    .custom-card-link {
        pointer-events: none;
    }
    
    /* Enlace Ver más - Visible en mobile */
    .ver-mas-link {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        position: absolute;
        bottom: 1rem;
        right: 1rem;
        color: var(--primary-color) !important;
        text-decoration: underline;
        text-decoration-color: var(--primary-color) !important;
        font-weight: 400;
        font-size: 0.9rem;
        z-index: 10;
        transition: opacity 0.3s ease;
        pointer-events: auto;
        cursor: pointer;
    }
    
    .ver-mas-link:hover {
        opacity: 0.8;
        text-decoration: underline;
        color: var(--primary-color) !important;
    }
    
    .ver-mas-link svg {
        width: 18px;
        height: 18px;
        stroke: var(--primary-color) !important;
    }

    /* Botón de contacto personalizado */
    .btn-contact-custom {
        background-color: var(--primary-color) !important;
        color: white !important;
        border: none !important;
        border-radius: 55px !important;
        padding: .5rem 2rem !important;
        font-weight: 600 !important;
        font-size: 1.6rem !important;
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3) !important;
        transition: var(--transition) !important;
    }
    
    .btn-contact-custom:hover {
        background-color: var(--primary-color) !important;
        color: white !important;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4) !important;
        transform: translateY(-2px) !important;
    }

    .hero-logo {
        max-width: 65%;
        height: auto;
    }
  }

.custom-card-click {
    background-color: var(--primary-color);
    border-radius: 24px;
    min-height: 250px;
    margin: 8rem auto 0 auto;
}

.service-card {
    transition: var(--transition);
    border-radius: 15px !important;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg) !important;
}

.service-icon {
    font-size: 3rem;
}

.service-card h3,
.service-card .card-title {
    font-weight: 700;
}

.service-card p,
.service-card .card-text {
    font-weight: 400;
}

/* Botón de contacto personalizado */
.btn-contact-custom {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 55px;
    padding: 1rem 3rem;
    font-weight: 600;
    font-size: 2.125rem;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
}

.btn-contact-custom:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

/* Botón Contáctanos */
.btn-contactanos {
    background-color: #009AFA !important;
    color: #00153A !important;
    border: none !important;
    border-radius: 50px;
    padding: 1rem 3rem;
    font-weight: 700;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 154, 250, 0.3);
    text-decoration: none !important;
    display: inline-block;
}

.btn-contactanos:hover {
    background-color: #0088E0 !important;
    color: #00153A !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 154, 250, 0.4);
    text-decoration: none !important;
}

/* Títulos de secciones */
.section-title,
.display-4,
.display-3 {
    font-weight: 700;
}

.lead {
    font-weight: 400;
}

/* Textos en general */
p, span, li {
    font-weight: 400;
}

strong, b {
    font-weight: 700;
}

/* Footer personalizado */
.custom-footer {
    padding: 3rem 0;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

.footer-email {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-email-link {
    color: white;
    font-size: 1.6rem;
    font-weight: 400;
    font-style: italic;
    text-decoration: none;
    transition: all 0.3s ease-out;
    letter-spacing: 0.5px;
}

.footer-email-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

.social-icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 21, 58, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-out;
    overflow: hidden;
    position: relative;
}

.social-icon-circle:hover {
    background-color: rgba(0, 154, 250, 0.2);
    border-color: rgba(0, 154, 250, 0.7);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 154, 250, 0.3);
}

.social-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease-out;
}

.social-icon-circle:hover .social-icon-img {
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .custom-btn-primary,
    .custom-btn-secondary {
        width: 100%;
    }
    
    .footer-email-link {
        font-size: 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .social-icon-circle {
        width: 50px;
        height: 50px;
    }
    
    .social-icon-img {
        width: 25px;
        height: 25px;
    }
    
    .social-icons {
        gap: 1rem;
    }
}