/*--------------------------------------------------
  Estilos Generales con Paleta de Colores
----------------------------------------------------*/

:root {
    --color-hueso: #ebebdf;
    --color-azul-marino: #030e50;
    --color-azul-gris: #0e2030;
    --color-gris-oscuro: #2a2829;
    --color-blanco: #ffffff;
    --swiper-pagination-color: #ebebdf;
    --swiper-pagination-bullet-inactive-color: #ebebdfb1;
    --swiper-pagination-bullet-inactive-opacity: 0.3;
    --color-text: navy;
    --color-bg: papayawhip;
    --color-bg-accent: #ecdcc0;
    --size: clamp(10rem, 1rem + 40vmin, 30rem);
    --gap: calc(var(--size) / 14);
    --duration: 60s;
    --scroll-start: 0;
    --scroll-end: calc(-100% - var(--gap));
}

/* ===== TIPOGRAFIAS ===== */
@font-face {
    font-family: 'GothamBlack';
    src: url('./Media/GothamBlack.woff2') format('woff2');
  }

  @font-face {
    font-family: 'GothamLight';
    src: url('./Media/GothamLight.woff2') format('woff2');
  }

  @font-face {
    font-family: 'GothamMedium';
    src: url('./Media/GothamMedium.woff2') format('woff2');
  }

body {
    font-family: "GothamBlack", "GothamLight";
    margin: 0;
    padding-top: 76px; /* Espacio para el menú fijo */
    background-color: var(--color-hueso);
    color: var(--color-gris-oscuro);
}

section {
    padding: 80px 0;
    overflow: hidden; /* Evita barras de scroll por animaciones */
}

h1, h2, h3, h4, h5, h6 {
    font-family: "GothamMedium", "GothamBlack", "GothamLight";
    color: var(--color-azul-gris);
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h2 i {
    color: var(--color-azul-marino);
    font-size: 0.8em;
    vertical-align: middle;
}

.navbar {
    background-color: rgb(235, 235, 223); /* Fondo hueso con 85% de opacidad */
    backdrop-filter: blur(10px); /* El efecto cristalino/desenfoque */
    -webkit-backdrop-filter: blur(10px); /* Para compatibilidad con Safari */
    padding: 10px 0;
    border-bottom: 1px solid rgba(14, 32, 48, 0.1);
    transition: background-color 0.3s ease;
    border-radius: 30px;
}

.navbar-brand {
    font-weight: 700;
    color: var(--color-azul-marino);
}

/* Estilos para el botón hamburguesa */
.navbar-toggler {
    border: none; /* Quita el borde feo que a veces aparece */
}
.navbar-toggler:focus {
    box-shadow: none; /* Quita el resplandor azul al hacer clic */
}

.navbar .nav-link {
    color: var(--color-azul-gris);
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover, .navbar .nav-link.active {
    color: var(--color-azul-marino);
}

/*--------------------------------------------------
  1. Hero Section
----------------------------------------------------*/
.hero-section {
    padding: 0;
    margin-top:  -76px;
    color: var(--color-blanco);
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    z-index: -2;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(3, 14, 80, 0.7), rgba(14, 32, 48, 0.5));
    z-index: -1;
}

.hero-content .btn-primary {
    
    color: var(--color-azul-marino);
    border: 2px solid var(--color-blanco);
    font-weight: bold;
    padding: 10px 25px;
    position: relative; /* Opcional pero buena práctica */
    align-items: center;
}
.hero-content .btn-primary:hover {
    background-color: transparent;
    color: var(--color-blanco);
}

.hero-content2{
    grid-area: 1 / 1 / 2 / 4;
}

.hero-content3{
    background-color: #ffffff6e;
    grid-area: 1 / 4 / 2 / 6;
}


/*--------------------------------------------------
  2. Servicios
----------------------------------------------------*/
.services-section { background-color: var(--color-hueso); }
.service-item {
    text-align: center;
    padding: 25px 20px;
    /*background-image: linear-gradient(to bottom, #ffffffb7, #3b419500),url('./Media/service1.jpg');*/
    background-size: cover;
    height: 150px;
    width: 100px;
    background-position: center;
    background-repeat: no-repeat;
    /* background-color: var(--color-blanco); */
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--color-azul-gris);
}
.service-item i { color: var(--color-azul-marino); }
.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(14, 32, 48, 0.1);
    background-image: url('./Media/service1.jpg');
}

/*--------------------------------------------------
  Separadores SVG
----------------------------------------------------*/
.separator {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.separator svg {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 100%;
}
.separator-waves {
    height: 150px;
    background-color: var(--color-hueso);
}
.separator-waves .shape-fill {
    fill: var(--color-blanco);
}
.separator-angle {
    height: 120px;
    margin-top: -120px;
    position: relative;
    z-index: 10;
}
.separator-angle .shape-fill {
    fill: var(--color-azul-gris);
}

/*--------------------------------------------------
  3. Por qué Elegirnos
----------------------------------------------------*/
.why-us-section {
    padding: 0;
    background-color: var(--color-blanco);
}
.content-over-video { padding: 100px 15px; }
.video-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(14, 32, 48, 0.2);
}
.video-container video { display: block; }
.text-container ul {
    list-style: none; padding-left: 0;
}
.text-container ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
    font-size: 1.1rem;
}
.text-container ul li:before {
    font-family: 'Bootstrap-icons';
    content: '\F153';
    position: absolute;
    left: 0;
    color: var(--color-hueso);
    font-weight: bold;
}
.video-porque {
    position: relative;
    height: 600px;
    z-index: 1; /* Asegura que el video esté por debajo del contenido */
}

/*--------------------------------------------------
  4. Nuestro Equipo
----------------------------------------------------*/
.team-section { background-color: var(--color-hueso); }
.team-section img {
    border: 5px solid var(--color-blanco);
    box-shadow: 0 4px 10px rgba(14, 32, 48, 0.15);
}
.team-section h3 { color: var(--color-azul-marino); margin-bottom: auto; font-size: 3cap;}
.team-section .text-muted { color: var(--color-gris-oscuro) !important; opacity: 0.8; }

/*--------------------------------------------------
  5. Contacto CTA y Modal
----------------------------------------------------*/
.contact-cta {
    padding: 100px 0;
    background-color: #0e2030;
    /* background-image: linear-gradient(45deg, var(--color-azul-marino) 0%, var(--color-azul-gris) 100%); */
}
.contact-cta h2, .contact-cta p { color: var(--color-blanco); }
.contact-cta .btn-primary {
    background-color: var(--color-blanco);
    color: var(--color-azul-marino);
    border-color: var(--color-blanco);
    font-weight: bold;
    padding: 12px 30px;
    font-size: 1.1rem;
}
.contact-cta .btn-primary:hover {
    background-color: transparent;
    color: var(--color-blanco);
}
.modal-content { background-color: var(--color-hueso); }
.modal-content .btn-success {
    background-color: var(--color-azul-marino);
    border-color: var(--color-azul-marino);
}

/*--------------------------------------------------
  6. Datos Rápidos
----------------------------------------------------*/
.quick-facts-section {
    background-color: var(--color-gris-oscuro);
}
.quick-facts-section h2 {
    color: var(--color-blanco);
    font-size: 3.5rem;
    min-height: 60px;
}

/*--------------------------------------------------
  7. Nosotros
----------------------------------------------------*/

/* Primero, quitamos los estilos viejos para evitar conflictos */
.about-us-section .card {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

/* El contenedor principal de la tarjeta Misión/Visión */
.mv-card {
    background-color: var(--color-azul-marino);
    border-radius: 25px; /* Bordes más redondeados como en la imagen */
    padding: 30px;
    padding-top: 50px; /* Más padding arriba para dar espacio al título */
    position: relative; /* ¡Crucial para posicionar el título! */
    text-align: center;
    box-shadow: 0 10px 25px rgba(14, 32, 48, 0.15);
    margin-top: 30px; /* Margen para que el título no choque con nada arriba */
}

/* La etiqueta azul del título (Misión/Visión) */
.mv-card-title {
    position: absolute;
    top: -25px; /* La magia sucede aquí: se mueve hacia arriba */
    left: 50%;
    transform: translateX(-50%); /* Centra el título horizontalmente */
    background-color: var(--color-azul-marino);
    color: var(--color-blanco);
    padding: 12px 40px;
    border-radius: 12px;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
}

/* El efecto de "corte de listón" en la parte de abajo del título */
.mv-card-title::after {
    content: '';
    position: absolute;
    bottom: -10px; /* Lo posiciona debajo de la etiqueta */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    /* Esto crea un triángulo con CSS */
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 10px solid var(--color-azul-marino); /* El color debe ser el mismo que el fondo */
}

/* El texto dentro de la tarjeta */
.mv-card .card-text {
    color: var(--color-gris-oscuro);
    font-size: 1rem;
    line-height: 1.6;
}


/*--------------------------------------------------
  Nueva Sección Misión y Visión con Fondo SVG
----------------------------------------------------*/

.mision-vision-section {
    background-color: var(--color-hueso);
    color: var(--color-gris-oscuro);
}

.mv-svg-card {
    /* El contenedor que tendrá el SVG como fondo */
    background-image: url('../Media/logo-background.svg'); /* Asegúrate de que la ruta sea correcta */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain; /* Asegura que el logo siempre sea visible */
    min-height: 600px; /* Dale una altura mínima para que el logo se vea bien */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
    
}

.mv-svg-content {
    /* El contenedor del texto */
    text-align: center;
    max-width: 50%; /* Limita el ancho del texto para que no se salga de la forma */
    text-shadow:
      1px 1px 2px #ffffff,
      0 0 1em #ffffff,
      0 0 0.2em #ffffff;
}

.mv-svg-content h2 {
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.mv-svg-content p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Ajustes para pantallas más pequeñas */
@media (max-width: 767.98px) {
    .mv-svg-content p {
        font-size: 0.9rem;
    }
}

/*--------------------------------------------------
  8. Nuestros Valores
----------------------------------------------------*/
.values-section { background-color: var(--color-hueso); }
.values-section .display-6 {
    font-size: 2rem;
    color: var(--color-azul-gris);
    opacity: 0.8;
    transition: color 0.3s, opacity 0.3s;
}
.values-section .col:hover .display-6 {
    opacity: 1;
    color: var(--color-azul-marino);
}

/*--------------------------------------------------
  9. Footer
----------------------------------------------------*/
.footer {
    background-color: var(--color-azul-marino);
    color: var(--color-hueso);
    padding: 30px 0;
    text-align: center;
}
.footer a {
    color: var(--color-blanco);
    text-decoration: none;
    transition: opacity 0.3s;
}
.footer a:hover { opacity: 0.8; }

/*--------------------------------------------------
  Responsividad
----------------------------------------------------*/
@media (max-width: 991.98px) {
    .navbar-collapse {
        /* Usamos un fondo ligeramente más opaco para que los links sean legibles */
        background-color: rgb(235, 235, 223); 
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 10px;
        margin-top: 10px;
        padding: 20px;
        text-align: center;
        border: 1px solid rgba(14, 32, 48, 0.1);
    }
    .hero-section {
        margin-top:  0;
    }
    .navbar .nav-item {
        margin: 10px 0; /* Añade espacio vertical entre los links en móvil */
    }
    .hero-content h1 { font-size: 2.5rem; z-index: 3; display:table-row;}
    .video-container { margin-bottom: 30px; }
    .text-container { text-align: center; }
    .text-container ul { display: inline-block; text-align: left; margin-top: 20px; }
    .values-section .display-6 { font-size: 1.5rem; }
    .navbar-collapse {
        background-color: rgb(235, 235, 223);
        border-radius: 10px;
        margin-top: 10px;
        padding: 15px;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    body { padding-top: 0; }
    
    h2 { font-size: 2rem; }
    .quick-facts-section h2 { font-size: 3rem; }
    .video-nosotros{
        height: 20px;
    }
}

.website-divider-container-154588 {
    overflow:hidden;
    position: relative;
    height: 100%;
  }
  
  .divider-img-154588
  {
      position: absolute;
      width: 139%;
      height: 241px;
      
      transform: scale(1, 1);
      bottom:0px;
      left: 0px;
      fill: rgb(14, 32, 48)
  }

  /*--------------------------------------------------
  Estilos para Carruseles (Swiper.js)
----------------------------------------------------*/
.swiper {
    width: 100%;
    height: 100%;
    padding-top: 10px;
    padding-bottom: 50px; /* Espacio para la paginación */
}

.swiper-slide {
    display: flex;
    width: 100%;
    height: auto;
    justify-content: center;
    /*align-items: stretch;  Asegura que todos los slides tengan la misma altura */
   
}

.swiper-slide .service-item,
.swiper-slide .text-center {
    width: 100%; /* Asegura que el contenido ocupe todo el slide */
    height: 400px;
    text-shadow: #ffffff;
}

.video-nosotros{
    height: 350px;
}


.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--gap);
  mask-image: linear-gradient(
    var(--mask-direction, to right),
    hsl(0 0% 0% / 0),
    hsl(0 0% 0% / 1) 20%,
    hsl(0 0% 0% / 1) 80%,
    hsl(0 0% 0% / 0)
  );
}

.marquee__group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--gap);
  min-width: 100%;
  animation: scroll-x var(--duration) linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__group {
    animation-play-state: paused;
  }
}

.marquee--vertical {
  --mask-direction: to bottom;
}

.marquee--vertical,
.marquee--vertical .marquee__group {
  flex-direction: column;
}

.marquee--vertical .marquee__group {
  animation-name: scroll-y;
}

.marquee--reverse .marquee__group {
  animation-direction: reverse;
  animation-delay: -3s;
}

@keyframes scroll-x {
  from {
    transform: translateX(var(--scroll-start));
  }
  to {
    transform: translateX(var(--scroll-end));
  }
}

@keyframes scroll-y {
  from {
    transform: translateY(var(--scroll-start));
  }
  to {
    transform: translateY(var(--scroll-end));
  }
}

/* Element styles */
.marquee svg {
  display: grid;
  place-items: center;
  width: var(--size);
  fill: var(--color-text);
  background: var(--color-bg-accent);
  aspect-ratio: 16/9;
  padding: calc(var(--size) / 10);
  border-radius: 0.5rem;
}

.marquee--vertical svg {
  aspect-ratio: 1;
  width: calc(var(--size) / 1.5);
  padding: calc(var(--size) / 6);
}

/* Parent wrapper */
.wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  margin: auto;
  max-width: 100vw;
}

.wrapper--vertical {
  flex-direction: row;
  height: 100vh;
}

/* Toggle direction button */
.toggle {
  --size: 3rem;
  position: relative;
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: var(--size);
  height: var(--size);
  font: inherit;
  text-align: center;
  cursor: pointer;
  outline: none;
  border: none;
  border-radius: 50%;
  color: inherit;
  background-color: var(--color-bg-accent);
  z-index: 1;
}

.toggle:focus-visible {
  box-shadow: 0 0 0 2px var(--color-text);
}

.toggle span {
  position: absolute;
  display: inline-block;
  top: 50%;
  left: calc(100% + 0.4em);
  width: fit-content;
  white-space: nowrap;
  transform: translateY(-50%);
  animation: fade 400ms 4s ease-out forwards;
  user-select: none;
}

.toggle svg {
  --size: 1.5rem;
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--size);
  height: var(--size);
  fill: currentcolor;
  transform: translate(-50%, -50%);
  transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1);
}

.toggle--vertical svg {
  transform: translate(-50%, -50%) rotate(-90deg);
}

@keyframes fade {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
