*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body{
    font-family: 'Rubik', sans-serif;
    background: #f9f9f9;
    color: #222;
    line-height: 1.6;
    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 {
    border: none;
  }

.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); 
    
  }


.container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #004e92, #000428);
  color: white;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.hero-image {
  flex: 1 1 400px;
}

.hero-image img {
  width: 100%;
  max-width: 250px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  margin: 0 auto;
  display: block;
}

.hero-text {
  flex: 1 1 400px;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: white;
}

.btn-primary {
  background: #00c3ff;
  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;
}

.btn-primary:hover {
  background: #009ec3;
  transform: scale(1.05); 
}


.why-section {
  background: #fff;
  padding: 60px 0;
}

.why-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.why-text {
  flex: 1 1 400px;
}

.why-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: bold;
  color: #1F345F;
}

.carousel-container {
  flex: 1 1 400px;
  position: relative;
  background: #f4f6f8;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.carousel-slide {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 60px;
  margin-bottom: 15px;
}

.carousel-slide h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.carousel-dots {
  margin-top: 20px;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 6px;
  background: #ccc;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #0074D9;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-container,
  .why-container {
    flex-direction: column;
    text-align: center;
  }

  .btn-primary {
    display: inline-block;
    margin: auto;
  }
}




    /* ======================================  
   =            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;
}


.social-icons a i {
  font-size: 35px;
  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;
}

/* Ícono de WhatsApp fijo */
.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; 
  }
}

/* Responsive */
@media (max-width: 768px) {
  .content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .text-box,
  .image-box {
    max-width: 90%;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .container-wrapper2 {
    flex-direction: column;
    text-align: center;
  }

  .text-column,
  .carousel {
    max-width: 100%;
  }
}

@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; 
    background-color: transparent;
  }

  .servicio-item img {
    display: none;
  }

  .servicio-item p {
    color: black;
    font-size: 16px;
    margin: 0;
  }
}



