*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body{
    font-family: 'Rubik', sans-serif;
    background-color: white;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; 
}

/* ======================================  
   =            NAVBAR                  =
   ====================================== */

header{
  padding: 0;
}

.servicios-dropdown {
  position: relative;
}

.dropdown-menu-custom {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #003f80;
  padding: 30px;
  width: 90vw;
  max-width: 1000px;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 10px;
  display: none;
}

.servicios-dropdown:hover .dropdown-menu-custom {
  display: block;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.servicio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px;
  background-color: #004a99;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.servicio-item:hover {
  background-color: #F4A01D;
  color: #000;
}

.servicio-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  filter: invert(1);
}

.servicio-item p {
  margin: 0;
  font-size: 14px;
  color: white;
}

.navbar {
    background-color: #ffffff;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    top: 0;
    width: 100%;
    position: fixed;
    z-index: 9999;
    display: flex;               
    justify-content: center;     
    align-items: center;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
  }

  .navbar-toggler {
  display: none; /* oculto por defecto */
  border: none;
  background: transparent;
}

.container-fluid {
  max-width: 1300px;       
  margin: 0 auto;          
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

  .navbar-nav {
    display: flex;
    justify-content: center;
    align-items:center;
    width: 100%;
    padding: 10px 15px 10px;
    font-weight: 500;
  }
  
  .nav-link {
    color: black;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    font-size: 15px;
    padding: 8px 15px;
  }

.contact-btn {
  background-color: #F4A01D;
  color: #fff !important;
  border-radius: 20px;
  padding: 8px 16px;
  transition: none;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  border: none;
  text-decoration: none !important;
} 


.contact-btn:hover {  
  color: #F4A01D !important;
  background-color: #1F345F;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
  
  .nav-link:hover {
    color: #1F345F;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: #1F345F;
    left: 0;
    bottom: 0;
    transition: width 0.3s ease-in-out;
  }
  
  .nav-link:hover::after {
    width: 100%;
  }
  
  .logo-consulta {
    width: 150px;
    padding: auto;
    transition: width 0.3s ease, padding 0.3s ease;
  }

  /* Navbar cuando haces scroll hacia abajo */
.navbar.shrink {
    padding: 0.4rem 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }
  

  .navbar.shrink .logo-consulta {
    width: 100px;
    padding-top: 2px;
    padding-bottom: 5px;
  }

  #mainNavbar {
    transition: all 0.3s ease;
  }
  
  #mainNavbar.shrink {
    background-color: rgba(226, 218, 218, 0.8); 
    
  }


/* ======================================  
   =            CARRUSEL                =
   ====================================== */

.custom-carousel {
  height: 100vh;
  position: relative;
  overflow: hidden;
  overflow-x: hidden;
  width: 100vw; 
  padding: 0;
}

.carousel-item {
  height: 100vh;
}

.carousel-img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.overlay1 {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);  
  z-index: 1;
}


.carousel-caption {
  position: absolute;
  z-index: 2;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  color: white;
  text-align: left;
}

.carousel-caption p {
  font-size: 1.8rem;
}

.carousel-caption h1 {
  font-size: 3.5rem;
  font-weight: bold;
  font-style: italic;
}


.caption-left {
  
  top: 30%;
  left: 5%;
  text-align: left;
}
.caption-center {
  
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.caption-right {
  
  top: 30%;
  right: 5%;
  text-align: right;
}
.caption-random {
  
  bottom: 40%;
  left: 15%;
  top: 30%;
  text-align: center;
}

.carousel-caption .btn {
  margin-top: 10px;
  background-color: #F4A01D;
  border: none;
  font-size: 1.3rem;
}

.custom-arrow {
  border: none;
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.custom-arrow:hover {
  color: #FFD700;
  transition: 0.3s ease;
}

.custom-arrow i {
  font-size: 1.5rem;
}

.carousel-control-prev {
  left: 10px;
}
.carousel-control-next {
  right: 10px;
}

.btn-primary {
  background: #FFD700;
  padding: 10px 28px;
  color: white;
  border: none;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
  display: inline-block;
  cursor: pointer;
}

.btn-primary:hover {
  background: #eea60a;
  transform: scale(1.18); 
}

/* ======================================  
   =            NUESTRO IMPACTO         =
   ====================================== */

  .container h2{
    color: #F4A01D;
    font-size: 50px;
  }

  .container p{
    color: gray;
    font-size: 20px;
  }

/* ======================================  
   =            SERVICIOS               =
   ====================================== */
  
#servicios{
  background-color: white;
  background-size: cover;
  background-position: center;
  margin: 0;
  width: 100vw; 
  overflow-x: hidden;
}

#servicios h2{
  color: #F4A01D;
  font-size: 3rem;
  font-weight: bold;
  text-transform: uppercase;
}

.servis{
  display: flex;
  justify-content: center;
  align-items: center; 
}


.flip-container-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  align-items: center; 
  padding: 0 40px 50px 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.flip-container {
  flex: 1 1 calc(33.333% - 60px); 
  perspective: 1000px;
  width: 350px; 
  height: 250px; 
  margin: 0;
}

.flip-card {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.flip-container:hover .flip-card {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: white;
}

.flip-card-front {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: auto; 
  z-index: 2;
  transform: rotateY(0deg);
}


.flip-card-front::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f4a21df5;
  /*background-color: #f79901ea;*/
  z-index: 1;
}

.flip-card-back{
  background: #0b3a97;
  transform: rotateY(180deg);
  z-index: 3;
  pointer-events: auto; /* ¡Esto es clave para que los enlaces funcionen! */
}

.flip-card-back * {
  transform: translateZ(0);
  will-change: transform;
}

.card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.card-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}

.card-content h3 {
  margin: 10px 0;
  font-size: 1.5rem;
}

.card-content p {
  font-size: 1rem;
  margin-bottom: 5px;
}

.card-content a {
  font-size: 0.8rem;
  color: white;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.3s;
}

a:hover {
  border-bottom: 2px solid white;
}



/* ======================================  
   =             NOSOTROS               =
   ====================================== */

.nosotros-section {
  position: relative;
  background-image: url('/IMG/nosotros_vym.webp');  
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  z-index: 1;
}

.overlay3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(9, 31, 61, 0.8); 
  z-index: 0;
}

.container-nosotros {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}

.card-nosotros {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 900px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  margin-bottom: 60px;
}

.card-nosotros h1 {
  color: #F4A01D;
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.card-nosotros p {
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

.card-nosotros a {
  background: #0b3a97;
  padding: 12px 30px;
  color: white;
  border: none;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
  display: inline-block;
  cursor: pointer;
}

.card-nosotros a:hover {
  background: #1F345F;
  transform: scale(1.25); 
}


/* ======================================  
   =            PORQUE ELEGIRNOS        =
   ====================================== */

.sobre-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #002244, #005288);
}

#sobre h2{
  color: white;
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.wrapper-sobre {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.image-box-sobre {
  flex: 1 1 40%;
  max-width: 400px;
}

.image-box-sobre img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.text-box-sobre {
  flex: 1 1 50%;
  max-width: 600px;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  position: relative;
}

.carousel-container {
  position: relative;
}

.carousel-slide {
  display: none;
  text-align: center;
  animation: fade 1s ease-in-out;
}

.carousel-slide.active {
  display: block;
}

@keyframes fade {
  from {opacity: 0;}
  to {opacity: 1;}
}

.carousel-slide h4 {
  color: #1F345F;
}

.carousel-slide p {
  color: gray;
}

.icono-sobre {
  color: #F4A01D;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #F4A01D;
}

/* Responsive */
@media (max-width: 768px) {
  .wrapper-sobre {
    flex-direction: column;
  }

  .text-box-sobre, .image-box-sobre {
    max-width: 90%;
  }
}

/* ======================================  
   =            CLIENTES                =
   ====================================== */

.clientes-section {
  background-color: #fff;
  overflow: hidden;
  position: relative;
}

.clientes-section h2 {
  font-weight: bold;
  font-size: 2.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.clientes-carrusel {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.clientes-slider {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: flex-start;
  width: max-content;
  animation: moverCarrusel 30s linear infinite;
}

.cliente-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
  /*filter: grayscale(100%);*/
  transition: transform 0.3s ease;
}

.cliente-logo:hover {
  transform: scale(1.50);
  /*filter: grayscale(0%);*/
}

@keyframes moverCarrusel {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ======================================    
   =            FOOTER                  =
   ====================================== */

   .footer-main {
  position: relative;
  background-image: url('/IMG/nosotros_vym.webp');  
  background-size: cover;
  background-position: center;
  color: #fff;
  font-size: 15px;
  padding: 50px 0 20px;
}

.footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 23, 40, 0.952); 
  z-index: 1;
}

.footer-main .container {
  position: relative;
  z-index: 2;
}

.footer-img {
  width: 60%;
  margin-bottom: 15px;
}

.footer-main a {
  color: #ABABAA;
  text-decoration: none;
  margin-right: 10px;
  transition: color 0.3s;
  margin-bottom: 20px;
}

.footer-main a:hover {
  color: white;
}

.footer-main i {
  color: #0b3a97;
}

.footer-1 {
  text-align: center;
  padding-right: 30px;
}

.footer-1 p{
  font-size: 19px;
  color: #ABABAA  ;
}

.footer-2 h6,
.footer-3 h6 {
  font-weight: bold;
  color: white;
  margin-bottom: 15px;
}

.list-unstyled li{
  color: #ABABAA;
}

.footer-servicios {
  display: flex;
  gap: 30px;
}

.servicios-columna {
  display: flex;
  flex-direction: column;
}

/* REDES SOCIALES MÁS GRANDES */
.social-icons a i {
  font-size: 35px; /* más grande */
  margin: 0 10px;
  color: #ABABAA;
  transition: transform 0.3s, color 0.3s;
}

.social-icons a i:hover {
  transform: scale(1.1);
  color: white;
}

.footer-final {
  width: 100%;
  clear: both;
  display: block;
  text-align: center;
}

.footer-final p {
  text-align: center;
  font-size: 14px;
  margin: 5px 0;
  color: white;
}

.linea-central {
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  width: 50%;
  margin: 20px auto;
}


.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  font-size: 30px;
  padding: 6px 15px;
  border-radius: 50%;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease-in-out;
}

.whatsapp-float:hover {
  background-color: #2c3e50;
  color: #25d366;
  transform: scale(1.15);
  
}

/* ======================================  
   =            MEDIA QUERIES            =
   ====================================== */

/* NAVBAR */
@media (min-width: 992px) {
  .navbar-brand {
    margin-right: 2rem;
  }

  .navbar-nav {
    gap: 1.5rem; 
  }
}

/* CARRUSEL */

@media (max-width: 991px) {
  .carousel-caption h1 {
    font-size: 2.5rem;
  }

  .carousel-caption p {
    font-size: 1.8rem;
  }

  .carousel-caption {
    padding: 1rem 1.5rem;
  }

  .carousel-caption .btn {
    font-size: 1.2rem;
  }

  .caption-left,
  .caption-center,
  .caption-right,
  .caption-random {
    top: 25%;
  }
}


@media (max-width: 768px) {
  .carousel-caption h1 {
    font-size: 2.3rem;
  }

  .carousel-caption p {
    font-size: 1.3rem;
  }

  .carousel-caption {
    text-align: center;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90%;
  }

  .caption-left,
  .caption-center,
  .caption-right,
  .caption-random {
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 576px) {
  .carousel-caption h1 {
    font-size: 1.7rem;
  }

  .carousel-caption p {
    font-size: 1.1rem;
  }

  .carousel-caption .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .caption-left,
  .caption-center,
  .caption-right,
  .caption-random {
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
  }

  .custom-arrow {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
}

/* NUESTRO IMPACTO */
@media (max-width: 767px) {
  .container h2 {
    font-size: 2.5rem;
  }
}


/* SERVICIOS */


@media (max-width: 767px) {
  .flip-container {
    flex: 1 1 100%;
    max-width: 100%;
    margin-bottom: 50px;
  }

  #servicios h2 {
    font-size: 2rem;
  }

  .flip-card {
    height: 300px;
  }

  .card-content {
    padding: 0.8rem;
  }
}

/* TABLETS: 3 por fila */
@media (min-width: 768px) and (max-width: 991px) {
  .flip-container {
    flex: 1 1 calc(33.333% - 2rem);
    max-width: calc(33.333% - 2rem);
  }

  .flip-card {
    height: 260px;
  }

  #servicios h2 {
    font-size: 1rem;
  }
}

/* LAPTOPS Y DESKTOPS GRANDES: mantén como está */
@media (min-width: 992px) {
  .flip-container {
    flex: 1 1 calc(33.333% - 60px);
    max-width: calc(33.333% - 60px);
  }

  .flip-card {
    height: 250px;
  }
}


/* ------------------- Sobre nosotros ------------------- */

/* ------------------- Móviles ------------------- */
@media (max-width: 991px) {
  .wrapper-sobre {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
  }

  .image-box-sobre {
    position: static;
    transform: none;
    width: 100%;
    display: flex;
    justify-content: center;
    box-shadow: none;
  }

  .image-box-sobre img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }

  .text-box-sobre {
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    text-align: center;
  }

  .carousel-vertical {
    height: 250px;
    overflow: hidden;
  }

  .carousel-item1 {
    height: 250px;
  }
}

/* ------------------- Tablets ------------------- */


/* ------------------- Laptops ------------------- */
@media (min-width: 992px) and (max-width: 1300px) {
  .wrapper-sobre {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
  }

  .image-box-sobre {
    order: 1;
    left: -70px;
    width: 400px;
    flex-shrink: 0;
  }

  .image-box-sobre img {
    width: 100%;
    height: auto;
    display: block;
  }

  .text-box-sobre {
    order: 2;
    padding: 60px 180px;
    max-width: 600px;
  }
}


@media (max-width: 992px) {
  .navbar-toggler {
    display: block;
    position: relative;
    z-index: 10002;
  }

  #navbarNav {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    padding-top: 80px;
    z-index: 9998;
    overflow-y: auto;
    transition: top 0.4s ease-in-out;
  }

  #navbarNav.show {
    top: 0;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .nav-item {
    width: auto;
    text-align: center;
  }

  .nav-link,
  .contact-btn {
    color: black;
    font-size: 18px;
  }

  /* 🔵 SERVICIOS CUSTOM DROPDOWN */
  .dropdown-menu-custom {
    position: static;
    transform: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    display: none;
    width: auto;
    max-height: 400px; /* para no ocupar toda la pantalla */
    overflow-y: auto;
    margin-top: 10px;
  }

  .servicios-dropdown.show-services .dropdown-menu-custom {
    display: block;
  }

  .servicios-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .servicio-item {
    flex-direction: row;
    justify-content: center;
    background: none;
    padding: 10px 0;
    border-bottom: 1px solid transparent;
    width: auto;
    text-align: center;
    transition: border-bottom 0.3s;
  }

  .servicio-item:hover,
  .servicio-item:focus {
    border-bottom: 2px solid #007bff; /* Solo línea azul, sin fondo amarillo */
    background-color: transparent; /* quitamos cualquier fondo */
  }

  .servicio-item img {
    display: none;
  }

  .servicio-item p {
    color: black;
    font-size: 14.5px;
    margin: 0;
  }
}






