/*
Tooplate 2115 Marvel - Customizado para PortalIntegra
Colores exactos:
Navy (Portal): #001D3D
Aqua (Integra): #00A896
Naranja (Acento): #F39C12
*/

@import url("https://fonts.googleapis.com/css?family=Maven+Pro:400,700");

body {
  font-family: "Maven Pro", sans-serif;
  padding-top: 70px;
}

.full-screen {
  padding: 8rem 0;
}

/* --- EFECTO 3D EXCLUSIVO PARA LA IMAGEN HERO --- */
.img-3d-hero {
  border-radius: 20px;
  box-shadow: 25px 30px 50px rgba(0, 29, 61, 0.3);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform: perspective(1000px) rotateY(-12deg) rotateX(6deg) translateZ(0);
  animation: floatHero 4s ease-in-out infinite;
}

.img-3d-hero:hover {
  animation: none;
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.03);
  box-shadow: 10px 15px 30px rgba(0, 168, 150, 0.2);
}

@keyframes floatHero {
  0%, 100% { transform: perspective(1000px) rotateY(-12deg) rotateX(6deg) translateY(0px); }
  50% { transform: perspective(1000px) rotateY(-12deg) rotateX(6deg) translateY(-20px); }
}

.small-text {
  color: #5b5b5b;
  font-size: 14px;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 50px;
  letter-spacing: 0.2px;
}

ul {
  margin: 0;
  padding: 0;
}
ul li {
  list-style: none;
}

a {
  font-weight: normal;
  text-decoration: none !important;
  transition: all 0.4s ease;
  color: #00A896;
}

a:hover {
  color: #001D3D !important;
}

.navbar-brand {
    color: #001D3D !important;
}

.logo-navbar {
    max-height: 100px; 
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  color: #5b5b5b;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  letter-spacing: -1px;
}

h1 {
  color: #001D3D;
  font-size: 2.8em;
  margin: 24px 0;
}

h2 {
  color: #001D3D;
  font-size: 2.4em;
  font-weight: bold;
}

h3 {
  color: #001D3D;
}

.custom-btn {
  background: #eee;
  color: #5b5b5b;
  font-weight: bold;
  border-radius: 50px;
  padding: 13px 29px;
  font-size: 14px;
  line-height: normal;
  overflow: hidden;
  transition: all 0.4s ease;
}
.custom-btn:hover {
  color: #00A896;
}

.custom-btn.custom-btn-bg {
  background: #00A896;
  color: #ffffff;
}
.custom-btn.custom-btn-bg:hover {
  background: #001D3D;
  color: #ffffff !important;
}

.animated {
  position: relative;
}

.animated-info {
  display: inline-block;
  vertical-align: top;
  margin-top: 5px;
  min-width: 350px; /* Ancho para escritorio */
  position: relative;
}

.animated-item {
  color: #00A896;
  font-size: 38px;
  line-height: inherit;
  display: block;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  animation: BottomTotop 9s linear infinite 0s;
}

.animated-item:nth-child(2n+2) {
  animation-delay: 3s;
}
.animated-item:nth-child(3n+3) {
  animation-delay: 6s;
}

@keyframes BottomTotop {
  0% { opacity: 0; }
  5% { opacity: 0; transform: translateY(5px); }
  10% { opacity: 1; transform: translateY(0px); }
  25% { opacity: 1; transform: translateY(0px); }
  30% { opacity: 0; transform: translateY(5px); }
  80% { opacity: 0; }
  100% { opacity: 0; }
}

.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 999999;
  will-change: transform;
  transition: transform 200ms linear;
}

.navbar[class*="headroom--not-top"] {
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
}
.navbar-expand-sm .navbar-nav .nav-link {
  padding: 0 40px; 
}

.nav-link {
  font-weight: bold;
  font-size: 19px;
  color: #001D3D !important;
}

.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover {
  color: #00A896 !important;
}

.navbar-toggler {
  border: 0;
  padding: 0;
  width: 32px;
  height: 32px;
  outline: none;
  cursor: pointer;
  margin-right: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent !important;
}

.navbar-toggler .navbar-toggler-icon {
  background: #001D3D;
  display: block;
  width: 25px;
  height: 2px;
  margin: 3px 0;
  transition: all 0.4s ease;
  position: relative;
  border-radius: 2px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:nth-child(2) {
  opacity: 0;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 8px;
}

.navbar.headroom--unpinned {
  transform: translateY(-100%); 
}

/* LÍNEA DE TIEMPO */
.timeline-wrapper {
  position: relative;
  padding: 22px 0;
}
.timeline-wrapper:before {
  content: "";
  background: #00A896;
  width: 3px;
  height: 100%;
  position: absolute;
  left: 38px;
}
.timeline-yr {
  background: #001D3D;
  border-radius: 100%;
  position: absolute;
  width: 75px;
  height: 75px;
  line-height: 75px;
  text-align: center;
  z-index: 10;
}
.timeline-yr span {
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  display: block;
  line-height: 75px;
}
.timeline-info {
  display: inline-block;
  vertical-align: top;
  max-width: 432px;
  margin-left: 6em;
}
.timeline-info small {
  color: #00A896;
  font-weight: bold;
}

/* CAROUSEL */
.owl-carousel .owl-nav span {
  display: none;
}
.owl-carousel .owl-nav .owl-prev:before,
.owl-carousel .owl-nav .owl-next:before {
  background: none;
  padding: 0;
  display: block;
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  font-family: 'unicons';
  font-size: 100px;
  line-height: normal;
  color: #001D3D;
  transition: all 0.4s ease;
}
.owl-carousel .owl-nav .owl-prev:before {
  content: '\e833';
  left: -45px;
}
.owl-carousel .owl-nav .owl-next:before {
  content: '\e836';
  right: -45px;
}

.owl-theme .owl-nav [class*=owl-] {
  background: none;
  border-radius: 0;
  margin: 0;
  padding: 0;
  font-size: inherit;
}
.owl-theme .owl-nav [class*=owl-]:hover:before {
  color: #00A896;
}

.owl-theme .owl-dots .owl-dot span {
  width: 8px;
  height: 8px;
}
.owl-theme .owl-dots .owl-dot.active span, 
.owl-theme .owl-dots .owl-dot:hover span {
  background: #00A896;
}

/* CONTACTO */
.contact-form .form-control:hover, 
.contact-form .form-control:focus {
  border-color: #00A896;
}

.contact-form .submit-btn {
  background: #00A896;
  color: #ffffff;
}
.contact-form .submit-btn:hover {
  background: #001D3D;
}

.contact-info {
  background: #001D3D;
  border-radius: 0 0 3px 3px;
  position: relative;
  bottom: 8px;
}

.contact-info a:hover {
  color: #00A896 !important; 
}

.dark-mode {
  background: #001D3D;
}
.dark-mode .navbar-light .navbar-nav .nav-link:hover {
  color: #00A896 !important;
}

/* --- DISEÑO RESPONSIVO CORREGIDO (TABLÉS Y CELULARES) --- */
@media (max-width: 1200px) {
    .navbar-expand-sm .navbar-nav .nav-link {
        padding: 0 20px; /* Reducción de espacio para pantallas intermedias */
    }
}

@media (max-width: 991px) {
  .navbar-expand-sm .navbar-nav .nav-link {
    padding: 10px 15px;
  }
  .animated-info {
    min-width: 300px; /* Reducción gradual para evitar saltos bruscos */
  }
  .animated-item {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  .logo-navbar {
    max-height: 60px;
  }

  h1 {
    font-size: 2em;
  }

  .navbar-collapse {
    background: #ffffff;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  }

  .navbar-expand-sm .navbar-nav .nav-link {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .nav-link {
    font-size: 17px;
  }

  .animated-info {
    min-width: 100%;
    display: block;
    height: 45px;
  }

  .animated-item {
    font-size: 26px;
    text-align: center;
  }

  .img-3d-hero {
    /* Mantenemos el efecto 3D pero más suave para evitar cortes laterales */
    transform: perspective(1000px) rotateY(-5deg) rotateX(3deg) !important;
    animation: floatHeroMobile 4s ease-in-out infinite !important;
    box-shadow: 0 15px 30px rgba(0, 29, 61, 0.2);
    max-width: 100%;
    margin-top: 2rem;
  }

  @keyframes floatHeroMobile {
    0%, 100% { transform: perspective(1000px) rotateY(-5deg) rotateX(3deg) translateY(0px); }
    50% { transform: perspective(1000px) rotateY(-5deg) rotateX(3deg) translateY(-10px); }
  }

  .full-screen {
    padding: 4rem 0;
  }
}