*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --blue: #1a4fa0;
      --blue-dark: #123a7a;
      --blue-light: #93c2e5;
      --cyan: #93c2e5;
      --white: #ffffff;
      --gray-light: #f2f4f7;
      --gray-mid: #f2f4f7;
      --gray-text: #f2f4f7;
      --dark: #1a2336;
      --bar-height: 38px;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Montserrat', sans-serif;
      color: var(--dark);
      background: var(--white);
    }

    a { text-decoration: none; color: inherit; }

   /* ══════════════════════════════════
       TOP BAR
    ══════════════════════════════════ */
.contact-phones {
  display: flex;
  align-items: center;
  gap: 15px;
}
.phone-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.15rem; /* Ajusta a 0.95rem en tu @media móvil */
  font-weight: 500;
  color: var(--gray-light);
}
.phone-numbers a {
  transition: color 0.2s;
  color: inherit;
}
.phone-numbers a:hover {
  color: var(--cyan);
}
.separator {
  opacity: 0.6;
}
    .top-bar {
      background: var(--white);
      color: #2978bc; 
      font-size: 0.8rem;
      border-bottom: 1px solid var(--white);
      display: flex;
      align-items: center;
      padding: 16px 0;
    }
    .top-bar-inner {
      max-width: 1650px;
      margin: 0 auto;
      width: 100%;
      padding: 0 4%;
      display: flex;
      align-items: center;
      justify-content: flex-start; /* Alineado a la izquierda */
    }
    .top-bar-contact {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
    }
    .top-bar-contact a {
      color: #6a81a1;
      display: flex;
      align-items: center;
      padding: 0 22px;
      border-right: 2px solid #a4b9d6; /* Línea separadora */
      transition: color 0.2s;
    }
    .top-bar-contact a:first-child { padding-left: 0; }
    .top-bar-contact a:last-child { border-right: none; }
    .top-bar-contact a:hover { color: var(--blue-dark); }
    
    .tb-icon-wrap {
      background: #276bb3;
      border-radius: 50%;
      width: 20px; height: 20px;
      display: flex; align-items: center; justify-content: center;
      margin-right: 12px;
      flex-shrink: 0;
    }
    .tbico { width: 13px; height: 13px; fill: var(--white); }

    /* ══════════════════════════════════
       NAVBAR
    ══════════════════════════════════ */
    .navbar {
      background: var(--white);
      box-shadow: 0 4px 15px rgba(0,0,0,0.05);
      position: sticky;
      top: 0;
      z-index: 200;
    }
    .navbar-inner {
      max-width: 1650px;
	padding: 0 4%;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 145px;
    }
    
    /* Imagen del Logo */
    .navbar-logo { display: flex; align-items: center; }
    .navbar-logo-img {
      height: 100px;
      width: auto;
      object-fit: contain;
    }

    /* Desktop nav */
    .nav-menu {
      display: flex;
      align-items: center;
      list-style: none;
      gap: clamp(20px, 4vw, 100px);
    }
    .nav-menu > li { position: relative; }
    .nav-menu > li > a {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 1.35rem; /* Texto mucho más grande */
      font-weight: 700;   /* Negrita intensa */
      color: var(--blue-dark);
      transition: color 0.2s;
      text-transform: capitalize; /* Sin forzar mayúsculas completas */
      white-space: nowrap;
      padding: 10px 0;
    }
    .nav-menu > li > a:hover { color: var(--cyan); }
    
    .arrow { 
      font-size: 0.8rem; 
      font-weight: 700;
      color: var(--blue-dark);
      transition: transform 0.2s; 
    }
    .nav-menu > li:hover > a .arrow { 
      transform: rotate(180deg); 
      color: var(--cyan);
    }

    .dropdown {
      position: absolute;
      top: calc(100% + 15px);
      left: 50%;
      transform: translateX(-50%) translateY(8px);
      background: var(--white);
      min-width: 265px;
      border-radius: 6px;
      box-shadow: 0 8px 30px rgba(0,0,0,0.13);
      border-top: 3px solid var(--blue-dark);
      list-style: none;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s, transform 0.2s;
      z-index: 300;
    }
    .nav-menu > li:hover .dropdown { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
    .dropdown li a {
      display: block;
      padding: 12px 16px;
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--dark);
      border-bottom: 1px solid var(--gray-light);
      transition: background 0.15s, color 0.15s;
    }
    .dropdown li:last-child a { border-bottom: none; }
    .dropdown li a:hover { background: var(--gray-light); color: var(--blue-dark); }

    /* Puente invisible para que el menú desplegable no se cierre al bajar el mouse */
.dropdown::before {
  content: '';
  position: absolute;
  top: -20px; /* Sube para cubrir el espacio vacío */
  left: 0;
  width: 100%;
  height: 20px; /* Crea un área interactiva transparente */
  background: transparent;
}
/* ══════════════════════════════════
       HAMBURGUESA Y MENÚ MÓVIL
    ══════════════════════════════════ */
    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      padding: 8px;
      border: none;
      background: none;
    }
    .hamburger span {
      display: block;
      width: 28px; height: 3px;
      background: var(--blue-dark);
      border-radius: 2px;
      transition: transform 0.3s, opacity 0.3s;
    }
    .hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .mobile-menu {
      display: none;
      background: var(--white);
      border-top: 3px solid var(--blue-dark);
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.4s ease;
      position: absolute;
      width: 100%;
      left: 0;
      box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .mobile-menu.open { max-height: 1000px; }
    .mobile-menu ul { list-style: none; padding: 10px 20px 20px; }
    .mobile-menu ul li a {
      display: block;
      padding: 12px 0;
      font-size: 1rem;
      font-weight: 700;
      color: var(--blue-dark);
      border-bottom: 1px solid var(--gray-mid);
      text-transform: capitalize;
    }
    .mobile-menu ul li a:hover { color: var(--cyan); }
    .mobile-menu .sub-items { padding-left: 14px; }
    .mobile-menu .sub-items a { 
      font-weight: 600; 
      font-size: 0.9rem; 
      color: var(--blue-dark); 
    }
     /* ══════════════════════════════════
       HERO CAROUSEL
    ══════════════════════════════════ */
    .carousel {
      position: relative;
      width: 100%;
      overflow: hidden;
      
      min-height: 650px;
      user-select: none;
    }
    .carousel-track {
      display: flex;
      transition: transform 0.7s cubic-bezier(0.77,0,0.18,1);
      will-change: transform;
    }
   .carousel-slide {
  flex: 0 0 100%;
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: flex-end;
}
    .slide-bg {
      position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
    }
    .slide-1 .slide-bg { background-image: url('images/home1.png'); }
.slide-2 .slide-bg { background-image: url('images/home2.png'); }
.slide-3 .slide-bg { background-image: url('images/home3.png'); }
 }

    .slide-overlay {
      position: absolute;
      inset: 0;
          }

.slide-content {
  position: relative;
  z-index: 2;
  width: 100%; 
  max-width: 1650px; 
  margin: 0 auto;
  /* Padding: Arriba 0, Derecha 4%, Abajo 140px, Izquierda 4% */
  padding: 0 4% 100px 4%; 
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

   .slide-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem); 
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.15;   max-width: 500px; 
  margin-bottom: 30px;
}

.slide-content h2 strong {
  font-weight: 800;
}
    .slide-content p {
      font-size: clamp(1rem, 1vw, 1rem);
      color: rgba(255, 255, 255, 0.88);
      max-width: 650px;
      line-height: 1.65;
      margin-bottom: 20px;
      display: block; 
    }
.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 20px; 
  background: var(--white);
  color: var(--blue-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 8px 8px 8px 32px; 
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s;
}
    .slide-btn:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #2774c4;
  color: var(--white);
  border-radius: 50%;
  transition: background 0.25s;
}

.slide-btn:hover .btn-icon {
  background: var(--blue-dark);
}
    /* content fade-in on active slide */
    .carousel-slide.is-active .slide-content h2 { animation: slideUp 0.65s ease both 0.1s; }
    .carousel-slide.is-active .slide-content p  { animation: slideUp 0.65s ease both 0.25s; }
    .carousel-slide.is-active .slide-btn        { animation: slideUp 0.65s ease both 0.38s; }
    @keyframes slideUp {
      from { opacity: 0; transform: translateY(20px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* Arrows */
    .carousel-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;
      background: rgba(255,255,255,0.18);
      border: 2px solid rgba(255,255,255,0.45);
      color: var(--white);
      width: 44px; height: 44px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: background 0.2s, border-color 0.2s;
      backdrop-filter: blur(4px);
    }
    .carousel-arrow:hover { background: var(--cyan); border-color: var(--cyan); }
    .carousel-arrow.prev { left: 18px; }
    .carousel-arrow.next { right: 18px; }

    /* Dots */
    .carousel-dots {
      position: absolute;
      bottom: 22px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 8px;
      z-index: 10;
    }
    .dot {
      width: 10px; height: 10px;
      border-radius: 50%;
      background: rgba(255,255,255,0.4);
      cursor: pointer;
      transition: background 0.3s, transform 0.3s;
      border: 2px solid rgba(255,255,255,0.6);
    }
    .dot.active { background: var(--white); transform: scale(1.25); }

       }

    /* ══════════════════════════════════
       PROPUESTA DE VALOR
    ══════════════════════════════════ */
.valor-section {
      width: 100%;
	max-width: 1650px; 
  	padding: 0 4%;
      background-color: #f2f4f7}
    
    .valor-inner {
      display: flex;
      min-height: 650px; 
    }
    .valor-img {
      flex: 1;
      width: 50%;
      background-color: var(--gray-light);
      border-radius: 0;
      box-shadow: none;
    }
.valor-text-wrapper {
      flex: 1;
      width: 50%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 80px 100px 80px 0; 
	background-color: #f2f4f7;
	
    }
.valor-title-shadow {
      filter: drop-shadow(4px 8px 8px rgba(0,0,0,0.15)); 
      margin-bottom: 90px;
    }

    .valor-badge {
      display: inline-flex;
      align-items: center;
      gap: 15px;
      background: var(--blue-dark);
      color: var(--white);
      /* Padding asimétrico: más espacio a la derecha por el corte oblicuo */
      padding: 16px 60px 16px 40px; 
      font-family: 'Montserrat', sans-serif;
      font-size: 1.8rem;
      font-weight: 700;
      /* Corte oblicuo en la parte derecha (Trapecio) */
      clip-path: polygon(0 0, 100% 0, calc(100% - 35px) 100%, 0 100%);
    }
.valor-text {
      padding-left: 60px; 
      max-width: 850px;
    }

    .valor-text p {
      font-size: 1.3rem;
      line-height: 1.8;
      color: var(--blue-dark);
      margin-bottom: 25px;
      text-align: justify;
    }

    /* ── CONTACT SECTION ── */
.contact-section {
  background: var(--white);
  padding: 100px 0 120px;
  position: relative; 
  overflow: hidden; /* Evita que el engranaje sobresalga de la sección */
}

.contact-inner {
  max-width: 1650px;
  padding: 0 4%;
  margin: 0 auto;
  display: block;
  position: relative;
  z-index: 2; /* Mantiene el formulario por encima del engranaje */
}
/* El contenedor del engranaje*/
.contact-bg-gear {
  position: absolute;
  top: 50%;
  right: -1%; /* Ajusta este valor para meter o sacar el engranaje */
  transform: translateY(-50%);
  width: 900px;
  height: 900px;
  background-image: url('images/engranaje.png'); 
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center right;
  z-index: 1;
  pointer-events: none;
}
.contact-form-wrap {
      max-width: 1000px;
    }
.contact-form-wrap h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.7rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 35px;
  text-transform: none;
}

/* Asteriscos rojos/naranjas como en la imagen */
label span { color: #e74c3c; }

    .contact-form-wrap p {
      font-size: 3.98rem;
      color: var(--gray-text);
      margin-bottom: 24px;
    }

    .form-group { margin-bottom: 16px; }

    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

    label {
      display: block;
      font-size: 1.5rem;
      font-weight: 600;
      color: var(--dark);
      margin-bottom: 10px;
      letter-spacing: 0.03em;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
input[type="number"],
    textarea {
      width: 100%;
      padding: 16px 12px;
      border: 2.5px solid var(--gray-mid);
      border-radius: 1px;
      font-family: 'Montserrat', sans-serif;
      font-size: 1.10rem;
      color: var(--dark);
      background: var(--white);
      transition: border-color 0.2s, box-shadow 0.2s;
      outline: none;
    }
    input:focus, textarea:focus {
      border-color: var(--cyan);
      box-shadow: 0 0 0 3px rgba(0,174,239,0.12);
    }
    textarea { resize: vertical; min-height: 190px; }

    .radio-group {
      display: flex;
      flex-direction: column;
      gap: 7px;
      margin-top: 2px;
    }
    .radio-label {
      display: flex;
      align-items: center;
      gap: 0px;
      font-size: 1.25rem;
      font-weight: 400;
      color: var(--dark);
      cursor: pointer;
    }
/* Radios en línea */
.radio-group.row-layout {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 15px;
margin-bottom: 30px;
}
    .radio-label input[type="radio"] { accent-color: var(--cyan); cursor: pointer; }
/* Estilos temporales para el placeholder de recaptcha */
.recaptcha-placeholder {
  width: 304px;
  height: 78px;
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  box-shadow: 0px 0px 4px rgba(0,0,0,0.1);
}
.recaptcha-placeholder img {
  height: 40px;
}
    /* botón estilo "píldora" */
.btn-submit-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-dark);
  color: var(--white);
  border: none;
  padding: 17px 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 40px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-submit-new:hover { background: var(--blue); transform: translateY(-1px); }

    /* Contact image side */
    .contact-img-wrap {
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 6px 24px rgba(0,0,0,0.10);
      aspect-ratio: 4/3;
      background: var(--gray-mid);
      position: relative;
    }
    .contact-img-wrap::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, var(--gray-mid) 0%, #c5cfe6 100%);
    }

/* ── FOOTER ── */
    footer {
      position: relative;
      color: var(--white);
      padding: 0;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    /* Fondo con imagen y desenfoque */
    .footer-bg-image {
      position: absolute;
      inset: -20px; /* Expandimos un poco para que los bordes del desenfoque no se vean blancos */
      background-size: cover;
      background-position: center;
      filter: blur(3px); /* Nivel de desenfoque */
      z-index: 0;
    }

    .footer-bg-overlay {
      position: absolute;
      inset: 0;
      background: rgba(170,170,170, 0); /* Tinte semi-transparente */
      z-index: 1;
    }

    .footer-inner {
      position: relative;
      z-index: 2;
      max-width: 1650px;
      margin: 0 auto;
      width: 100%;
      display: flex;
      justify-content: space-evenly; 
      align-items: center;
      padding: 80px 4%;
    }

    /* Columna del Logo */
    .footer-logo-block {
      flex: 1;
      display: flex;
      justify-content: center;
    }
    
    .footer-logo-img-real {
      max-width: 310px;
      height: auto;
    }

    /* Columna de Información */
    .footer-info-block {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 35px;
    }

    .footer-col h4 {
      font-size: 1.8rem; /* Tamaño de título más grande */
      font-weight: 700;
      margin-bottom: 20px;
      color: var(--gray-light);
    }

    .footer-contact-list { 
      list-style: none; 
      display: flex; 
      flex-direction: column; 
      gap: 16px; 
    }

    .footer-contact-list li a {
      color: var(--gray-light);
      font-size: 1.15rem; /* Texto escalado */
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 15px;
      transition: color 0.2s;
    }
    .footer-contact-list li a:hover { color: var(--cyan); }

    /* Estilos para los iconos circulares blancos */
    .icon-circle {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      background: var(--gray-light);
      border-radius: 50%;
      color: #1a3c6d; /* Color azul del icono interno */
      flex-shrink: 0;
    }
    .icon-circle svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
      stroke: currentColor;
      stroke-width: 0.5;
    }

    /* Barra Inferior de Copyright */
    .footer-bottom {
      position: relative;
      z-index: 2;
      width: 100%;
      background: #1a3c6d; /* Fondo azul sólido y oscuro */
      padding: 24px 0;
      text-align: center;
      font-size: 1.05rem;
      font-weight: 400;
      color: rgba(255,255,255,0.9);
    }

    /* Scroll to top button */
    .scroll-top {
      position: fixed;
      bottom: 28px; right: 24px;
      width: 42px; height: 42px;
      background: var(--blue);
      color: var(--white);
      border: none;
      border-radius: 50%;
      cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 4px 16px rgba(0,0,0,0.2);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s, transform 0.3s, background 0.2s;
      z-index: 999;
    }
    .scroll-top.visible { opacity: 1; pointer-events: all; }
    .scroll-top:hover { background: var(--cyan); transform: translateY(-3px); }

    /* ── RESPONSIVE ── */

    @media (max-width: 1024px) {
      .valor-inner { gap: 36px; }
      .footer-inner { grid-template-columns: 1fr 1fr; }
      .footer-logo-block { grid-column: 1 / -1; align-items: center; text-align: center; }
      .footer-logo-block .footer-social { justify-content: center; }
        
        .top-bar { display: none; }
  .hamburger { display: flex; }
  .nav-menu { display: none; }
  .mobile-menu { display: block; }
  .navbar-inner { height: 80px; } /* Altura intermedia para tablets/horizontal */
  .navbar-logo-img { height: 55px; width: auto; }
    }

    @media (max-width: 768px) {
      .carousel { min-height: 520px; }
      .carousel-slide { min-height: 520px; }
      .slide-content { padding: 0 5% 80px 5%; }
      .slide-content h2 { font-size: clamp(1.8rem, 6vw, 2.2rem);  max-width: 100%; margin-bottom: 25px;}
      .carousel-arrow { width: 36px; height: 36px; }
      .carousel-arrow.prev { left: 10px; }
      .carousel-arrow.next { right: 10px; }

      .valor-inner { 
        flex-direction: column; 
      }
      .valor-img { 
        width: 100%; 
        height: auto; 
        aspect-ratio: 1 / 1;
      }
      .valor-text-wrapper { 
        width: 100%; 
        padding: 40px 20px; 
      }
      .valor-text { 
        padding-left: 0;
      }
      .valor-badge { 
        font-size: 1.3rem; 
        padding: 12px 40px 12px 20px; 
        clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%); 
      }

      .contact-section { padding: 56px 14px 64px; }
      .contact-card { padding: 30px 22px 36px; }
      .form-row { grid-template-columns: 1fr; }
.contact-form-wrap h2 {
    font-size: 2rem; /* Reducimos el título principal */
    margin-bottom: 20px;
    text-align: center; /* Suele verse mejor centrado en móvil */
  }

  label {
    font-size: 1.05rem; /* Labels mucho más discretos */
    margin-bottom: 6px;
  }

  /* Entradas de texto más compactas */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    padding: 12px 15px;
    font-size: 1rem;
    border-width: 1.5px; /* Borde más sutil */
  }
/* Apilamos los botones de radio para que no se amontonen horizontalmente */
  .radio-group.row-layout {
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 20px;
  }

  .radio-label {
    font-size: 1rem;
  }

  /* El botón de enviar a tamaño adecuado */
  .btn-submit-new {
    font-size: 1.1rem;
    padding: 14px 40px;
    width: 100%; /* En móvil, un botón de lado a lado es muy cómodo */
  }

  .recaptcha-placeholder {
    width: 100%; /* Ajustamos el placeholder al ancho disponible */
    max-width: 304px;
    margin: 0 auto 25px; /* Lo centramos */
  }
      .footer-inner {
        flex-direction: column;
        gap: 50px;
        text-align: center;
        padding: 50px 20px;
      }
      .footer-contact-list li a {
        justify-content: center;
        text-align: left;
font-size: 0.95rem; /* Texto de contacto e iconos proporcionados */
    gap: 12px;
      }
      .footer-logo-block { align-items: center; text-align: center; }
            .footer-social { justify-content: center; }
      .footer-col h4 { text-align: center; 
font-size: 1.35rem; /* Títulos de columnas más pequeños */
    margin-bottom: 16px;}
.footer-bottom {
    font-size: 0.85rem; /* Texto de copyright más discreto */
    padding: 16px 20px;
    line-height: 1.5;
  }
    }

    @media (max-width: 480px) {
      .slide-content h2 { font-size: 1.5rem; }
      .valor-badge { font-size: 0.86rem; }
    }
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 24px; /* Lo anclamos a la derecha */
  width: 55px;
  height: 55px;
  background-color: #25d366; 
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 999;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.whatsapp-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  background-color: #20ba56;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

/* Ajuste sutil para móviles */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 48px;
    height: 48px;
    bottom: 20px;
    right: 16px; /* A la derecha en celular también */
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }

.modal-overlay {
      display: none; 
      position: fixed;
      z-index: 9999;
      left: 0; top: 0;
      width: 100%; height: 100%;
      background-color: rgba(26, 35, 54, 0.85); /* Azul oscuro translúcido */
      backdrop-filter: blur(4px);
      align-items: center;
      justify-content: center;
    }

    .modal-close-btn {
      position: fixed; /* Lo fijamos en la esquina superior para la galería */
      top: 25px;
      right: 35px;
      z-index: 10000;
      width: 44px;
      height: 44px;
      background-color: #2774c4;
      color: var(--white);
      border: 3px solid var(--white);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 15px rgba(0,0,0,0.3);
      transition: background-color 0.2s, transform 0.2s;
    }

    .modal-close-btn:hover {
      background-color: var(--blue-dark);
      transform: scale(1.1);
    }

    .modal-close-btn svg { width: 24px; height: 24px; }
    
    @media (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  
  /* 1. Ocultar la barra superior para recuperar espacio vital */
  .top-bar { 
    display: none; 
  }

  /* 2. Reducir drásticamente la altura del contenedor principal */
  .navbar-inner { 
    height: 60px; 
  }

  /* 3. Achicar el logo para que encaje en el nuevo alto */
  .navbar-logo-img { 
    height: 40px; 
  }

  /* 4. Escalar los textos del menú y acercarlos */
  .nav-menu { 
    gap: clamp(15px, 2vw, 30px); 
  }
  
  .nav-menu > li > a { 
    font-size: 1rem; /* Texto más pequeño */
    padding: 5px 0; 
  }

  /* 5. Ajustar el dropdown si el usuario despliega "Servicios" */
  .dropdown {
    top: calc(100% + 5px);
  }
}
}
