/* General styles */
    :root {
      --primary-color: #0B2C42;
      --secondary-color: #008C94;
      --accent-color: #EAEAEA;
      --text-color: #333;
      --white: #fff;
      --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    
    body {
      font-family: 'Montserrat', sans-serif;
      margin: 0;
      padding: 0;
      color: var(--text-color);
      line-height: 1.6;
      background-color: var(--white);
      overflow-x: hidden;
    }
    
    a {
      text-decoration: none;
      color: inherit;
      transition: var(--transition);
    }
    
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }
    
    /* Header */
    .header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      background-color: var(--white);
      box-shadow: 0 2px 20px rgba(11, 44, 66, 0.1);
      z-index: 999;
      transition: var(--transition);
      height: 80px;
      display: flex;
      align-items: center;
    }
    
    .header.scrolled {
      box-shadow: 0 10px 30px rgba(11, 44, 66, 0.15);
      background-color: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
    }
    
    .header-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
    }
    
    .header-container {
      display: flex;
      align-items: center; /* Centra logo, menú y botón en altura */
      justify-content: space-between;
    }

    .logo {
      display: flex;
      align-items: center;
    }

    .logo-img {
      max-height: 50px; /* Altura perfecta para alinear con el menú */
      height: auto;
      width: auto;
      margin-top: 0;
    }

    @media (max-width: 768px) {
      .logo-img {
        max-height: 40px; /* Más chico en móviles */
      }
    }
    
    nav ul {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
    }
    
    nav ul li {
      margin-left: 40px;
      position: relative;
    }
    
    nav ul li a {
      color: var(--primary-color);
      font-weight: 600;
      font-size: 14px;
      letter-spacing: 0.7px;
      text-transform: uppercase;
    }
    
    nav ul li a:hover {
      color: var(--secondary-color);
    }
    
    nav ul li::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 0;
      height: 2px;
      background-color: var(--secondary-color);
      transition: var(--transition);
    }
    
    nav ul li:hover::after {
      width: 100%;
    }
    
    .cta-button {
      display: inline-block;
      padding: 12px 28px;
      background-color: var(--primary-color);
      color: var(--white);
      border: none;
      border-radius: 30px;
      font-size: clamp(10px, 2vw, 16px); /* ← Escala entre 12px y 16px según ancho pantalla */
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
      box-shadow: 0 4px 15px rgba(11, 44, 66, 0.2);
      letter-spacing: 0.5px;
    }

    
    .cta-button:hover {
      background-color: var(--secondary-color);
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(0, 140, 148, 0.3);
    }
    
    /* Hero Section */
    .hero-section {
      height: 100vh;
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: white; /* Asegúrate que el texto sea legible sobre el video */
    }

    .hero-video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: -1;
    }

    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 800px;
      padding: 20px;
    }
    
    .hero-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, rgba(11, 44, 66, 0.9) 0%, rgba(0, 140, 148, 0.7) 100%);
      z-index: 1;
    }
    
    .hero-content {
      position: relative;
      z-index: 2;
      text-align: center;
      color: var(--white);
      max-width: 800px;
      margin: 0 auto;
      padding: 0 20px;
    }
    
    .hero-content h1 {
      font-size: 56px;
      font-weight: 800;
      margin-bottom: 20px;
      text-transform: uppercase;
      letter-spacing: -1px;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
      opacity: 0;
      transform: translateY(30px);
      animation: fadeInUp 1s ease forwards 0.3s;
    }
    
    .hero-content p {
      font-size: 22px;
      margin-bottom: 40px;
      font-weight: 500;
      opacity: 0;
      transform: translateY(30px);
      animation: fadeInUp 1s ease forwards 0.6s;
    }
    
    .hero-buttons {
      opacity: 0;
      transform: translateY(30px);
      animation: fadeInUp 1s ease forwards 0.9s;
    }
    
    .hero-buttons .cta-button {
      margin: 0 10px;
      font-weight: 600;
    }
    
    .hero-buttons .cta-button.secondary {
      background-color: transparent;
      border: 2px solid var(--white);
      color: var(--white);
    }
    
    .hero-buttons .cta-button.secondary:hover {
      background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* Services Section */
    .services-section {
      padding: 100px 0;
      background-color: var(--white);
      overflow: hidden;
      position: relative;
      padding: 40px 0; /* Aumentamos padding vertical */

    }
    
    .section-title {
      text-align: center;
      margin-bottom: 60px;
      font-size: 40px;
      font-weight: 800;
      color: var(--primary-color);
      position: relative;
      display: inline-block;
      left: 50%;
      transform: translateX(-50%);
    }
    
    .section-title::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 0;
      width: 60px;
      height: 4px;
      background-color: var(--secondary-color);
      border-radius: 2px;
    }

    .services-grid {
      display: flex;
      gap: 30px;
      width: max-content;
      animation: slide 60s linear infinite;
      padding: 20px 0; /* Espacio para sombras al hacer hover */
    }

    .service-card {
      background-color: var(--white);
      border: 1px solid #EAEAEA;
      border-radius: 12px;
      padding: 30px;
      text-align: center;
      width: 300px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
      transition: var(--transition);
      flex-shrink: 0;
      opacity: 0;
      transform: translateY(30px);
    }

    .service-card.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .service-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 30px rgba(11, 44, 66, 0.1);
      border-color: var(--secondary-color);
      animation-play-state: paused; /* Pausa la animación al hacer hover */
    }

    .service-card i {
      font-size: 48px;
      color: var(--secondary-color);
      margin-bottom: 20px;
      transition: transform 0.3s ease;
    }

    .service-card:hover i {
      transform: scale(1.1);
    }

    .service-card h3 {
      font-size: 24px;
      font-weight: 700;
      margin-bottom: 15px;
      color: var(--primary-color);
    }

    .service-card p {
      font-size: 16px;
      color: #666;
    }

    /* Gradientes para suavizar los bordes */
    .services-section::before,
    .services-section::after {
      content: '';
      position: absolute;
      top: 0;
      bottom: 0;
      width: 400px;
      z-index: 3;
      pointer-events: none;
    }

    .services-section::before {
      left: 0;
      background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    }

    .services-section::after {
      right: 0;
      background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
    }

/* Animación del slider */
@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% + 3 * 330px)); /* 3 cards visibles (300px + 30px gap) */
  }
}
    /* Team Section */
    .team-section {
      padding: 100px 0;
      background-color: #f8f9fa;
    }
    
    .team-members {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 30px;
      margin-top: 40px;
    }
    
    .team-member {
      background-color: var(--white);
      border-radius: 15px;
      padding: 30px;
      text-align: center;
      width: 300px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
      transition: var(--transition);
      opacity: 0;
      transform: translateY(30px);
    }
    
    .team-member.visible {
      opacity: 1;
      transform: translateY(0);
    }
    
    .team-member:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 35px rgba(11, 44, 66, 0.12);
    }
    
    .team-member img {
      width: 150px;
      height: 150px;
      border-radius: 50%;
      object-fit: cover;
      margin-bottom: 20px;
      border: 4px solid var(--accent-color);
      transition: var(--transition);
    }
    
    .team-member:hover img {
      border-color: var(--secondary-color);
      transform: scale(1.05);
    }
    
    .team-member h3 {
      font-size: 22px;
      font-weight: 700;
      margin-bottom: 5px;
      color: var(--primary-color);
    }
    
    .team-member p {
      font-size: 16px;
      margin-bottom: 20px;
      color: var(--secondary-color);
      font-weight: 600;
    }
    
    .social-links {
      display: flex;
      justify-content: center;
      gap: 15px;
    }
    
    .social-links a {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: var(--accent-color);
      color: var(--primary-color);
      font-size: 18px;
      transition: var(--transition);
    }
    
    .social-links a:hover {
      background-color: var(--secondary-color);
      color: var(--white);
      transform: translateY(-3px);
    }
    
    /* Success Stories Section */
    .success-stories-section {
      padding: 100px 0;
      background-color: var(--white);
    }
    
    .success-stories-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
    }
    
    .success-stories-slider {
      overflow-x: auto;
      white-space: nowrap;
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
      margin: 40px 0;
      padding: 20px 0;
      background-color: #f8f9fa;
      border-radius: 12px;
    }
    
    .success-stories-slider::-webkit-scrollbar {
      display: none;
    }
    
    .success-story-item {
      display: inline-block;
      width: 300px;
      margin-right: 30px;
      scroll-snap-align: start;
      vertical-align: top;
      opacity: 0;
      transform: translateY(30px);
    }
    
    .success-story-item.visible {
      opacity: 1;
      transform: translateY(0);
    }
    
    .success-story-card {
      background-color: var(--white);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
      transition: var(--transition);
      height: 100%;
      display: flex;
      flex-direction: column;
    }
    
    .success-story-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 30px rgba(11, 44, 66, 0.12);
    }
    
    .story-logo {
      width: 100%;
      height: 120px;
      background-color: #f8f9fa;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }
    
    .story-logo img {
      max-width: 80%;
      max-height: 80px;
      object-fit: contain;
    }
    
    .story-content {
      padding: 25px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    
    .story-content h4 {
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 15px;
      color: var(--primary-color);
    }
    
    .story-content p {
      font-size: 14px;
      color: #666;
      line-height: 1.5;
      margin-bottom: 10px;
    }
    
    .client-quote {
      font-style: italic;
      color: var(--secondary-color);
      font-size: 14px;
      margin: 10px 0;
      flex-grow: 1;
    }
    
    .client-name {
      font-weight: 600;
      color: var(--primary-color);
      font-size: 14px;
    }
    
    /* Call to Action Section */
    .cta-section {
        color: var(--white);
        padding: 80px 0;
        text-align: center;
        position: relative;
        overflow: hidden;
        /* Nuevas propiedades para la imagen de fondo */
        background-image: url('Img/Diseño\ sin\ título\ \(24\).jpg');
        background-attachment: fixed; /* Esto crea el efecto paralaje */
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        /* Mezcla el color de fondo con la imagen */
        background-blend-mode: overlay;
      }
    
    .cta-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    }
    
    .cta-section p {
      font-size: 32px;
      font-weight: 600;
      margin-bottom: 30px;
      position: relative;
      z-index: 2;
    }
    
    .cta-section .cta-button {
      background-color: var(--white);
      color: var(--secondary-color);
      font-weight: 700;
      padding: 15px 35px;
      font-size: 18px;
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
      transition: all 0.3s ease;  /* Esto hace que el hover sea suave */
      position: relative;  /* Asegura que el z-index funcione */
      z-index: 10;  /* Más alto que cualquier otro elemento */
    }
    
    .cta-section .cta-button:hover {
      background-color: #f8faf9;
      transform: translateY(-3px);
      box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    }

    .cta-section .additional-text {
      font-size: 20px;
      color: var(--white);
      margin-bottom: 15px;
      position: relative;
      z-index: 2;
      font-weight: 500;
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
      line-height: 1.5;
    }

    .cta-section .main-text {
        font-size: 32px;
        font-weight: 600;
        margin-bottom: 30px;
        position: relative;
        z-index: 2;
    }
    
    .cta-section .container {
      position: relative;  /* Si no la tiene ya */
      z-index: 2;  /* Asegura que esté por encima del ::before */
      overflow: visible;  /* Por si acaso tiene hidden */
    }
    /* Contact Section */
    .contact-section {
      padding: 80px 0;
      background-color: #f8f9fa;
    }

    .contact-container {
      max-width: 800px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .section-title {
      text-align: center;
      margin-bottom: 40px;
    }

    .contact-form {
      background: rgba(255, 255, 255, 0.75);
      backdrop-filter: blur(12px);
      padding: 40px;
      border-radius: 15px;
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
      animation: fadeInUp 1s ease forwards;
    }

    .form-row {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
    }

    .form-row .form-group {
      flex: 1 1 48%; /* cada uno ocupa casi la mitad */
      min-width: 200px;
    }

    .form-group {
      flex: 1;
      animation: fadeIn 1.2s ease forwards;
    }

    .form-group.full {
      flex: 1 1 100%;
    }

    .contact-form label {
      display: block;
      margin-bottom: 8px;
      font-weight: 600;
      color: var(--primary-color);
      font-size: 14px;
    }

    /* Campos de texto y área de texto */
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
      width: 100%;
      padding: 12px 15px;
      border: 0.6px solid var(--accent-color);
      border-radius: 8px;
      font-size: 14px;
      background-color: rgba(255, 255, 255, 0.6);
      transition: all 0.3s ease; /* transición suave */
      box-sizing: border-box; /* evita que el textarea se vea más ancho */
    }

    /* Hover uniforme */
    .contact-form input:hover,
    .contact-form textarea:hover {
      background-color: rgba(255, 255, 255, 0.85);
      border-color: var(--secondary-color);
      box-shadow: 0 0 8px rgba(0, 140, 148, 0.25);
    }

    /* Focus (clic) uniforme */
    .contact-form input:focus,
    .contact-form textarea:focus {
      outline: none;
      border-color: var(--secondary-color);
      background-color: rgba(255, 255, 255, 0.9);
      box-shadow: 0 0 10px rgba(0, 140, 148, 0.3);
      transform: scale(1.02);
    }

    /* Textarea específico */
    .contact-form textarea {
      min-height: 120px;
      resize: vertical;
    }

    /* Botón */
    .contact-form button {
      background-color: var(--primary-color);
      color: var(--white);
      border: none;
      padding: 14px 30px;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      display: block;
      margin: 20px auto 0;
      box-shadow: 0 4px 15px rgba(11, 44, 66, 0.2);
    }

    .contact-form button:hover {
      background-color: var(--secondary-color);
      transform: translateY(-3px);
      box-shadow: 0 8px 25px rgba(0, 140, 148, 0.4);
    }

    /* Animaciones */
    @keyframes fadeInDown {
      from { opacity: 0; transform: translateY(-20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    /* Responsivo */
    @media (max-width: 768px) {
      .form-row {
        flex-direction: column;
      }
    }

    /* Footer */
    .footer {
      background-color: var(--primary-color);
      color: var(--white);
      padding: 60px 0 30px;
      text-align: center;
    }
    
    .footer p {
      font-size: 16px;
      margin-bottom: 15px;
    }
    
    .footer a {
      color: var(--secondary-color);
      font-weight: 500;
      transition: var(--transition);
    }
    
    .footer a:hover {
      color: var(--white);
    }
    
    .footer-links {
      margin: 20px 0;
    }
    
    .footer-links a {
      margin: 0 15px;
      font-size: 18px;
    }
    
    /* Animations */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    /* Responsive Design */
    @media (max-width: 1024px) {
      .hero-content h1 {
        font-size: 48px;
      }
      .hero-content p {
        font-size: 20px;
      }
      .section-title {
        font-size: 36px;
      }
    }
    
    @media (max-width: 768px) {
      .header {
        height: 70px;
        padding: 0 15px;
        backdrop-filter: blur(10px);
      }
      
      .header.scrolled {
        background-color: rgba(255, 255, 255, 0.95);
      }
      
      .logo-text {
        font-size: 24px;
      }
      
      .logo-symbol {
        width: 35px;
        height: 35px;
        font-size: 20px;
      }
      
      nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 998;
      }
      
      nav.active {
        transform: translateY(0);
      }
      
      nav ul {
        display: flex;
        flex-direction: column;
        padding: 20px 0;
      }
      
      nav ul li {
        margin: 10px 0;
        text-align: center;
      }
      
      nav ul li::after {
        left: 50%;
        transform: translateX(-50%);
      }
      
      .cta-button {
        padding: 10px 20px;
        font-size: 14px;
      }
      
      .hero-content h1 {
        font-size: 40px;
      }
      
      .hero-content p {
        font-size: 18px;
      }
      
      .hero-buttons .cta-button {
        margin: 10px 5px;
        font-size: 14px;
        padding: 10px 20px;
      }
      
      .services-grid {
        justify-content: center;
      }
      
      .service-card {
        width: 100%;
        max-width: 350px;
      }
      
      .team-members {
        justify-content: center;
      }
      
      .team-member {
        width: 100%;
        max-width: 350px;
      }
      
      .success-story-item {
        width: calc(100% - 30px);
        margin-right: 30px;
      }
      
      .success-story-card {
        height: auto;
      }
      
      .story-content {
        padding: 20px;
      }
      
      .client-quote {
        margin: 15px 0;
      }
      
      .form-row {
        flex-direction: column;
        gap: 15px;
      }
      
      .contact-form {
        padding: 30px;
      }
      
      .contact-form button {
        padding: 10px 20px;
        font-size: 14px;
      }
    }
    
    @media (max-width: 480px) {
      .header {
        height: 60px;
      }
      
      .logo-text {
        font-size: 20px;
      }
      
      .logo-symbol {
        width: 30px;
        height: 30px;
        font-size: 18px;
      }
      
      .menu-toggle {
        width: 30px;
        height: 21px;
      }
      
      .menu-toggle span {
        width: 30px;
      }
      
      .cta-button {
        padding: 8px 16px;
        font-size: 13px;
      }
      
      .hero-content h1 {
        font-size: 32px;
      }
      
      .hero-content p {
        font-size: 16px;
      }
      
      .section-title {
        font-size: 32px;
      }
      
      .success-story-item {
        width: calc(100% - 20px);
        margin-right: 20px;
      }
      
      .story-logo {
        height: 100px;
      }
      
      .story-logo img {
        max-height: 60px;
      }
      
      .story-content {
        padding: 15px;
      }
      
      .story-content h4 {
        font-size: 18px;
      }
      
      .client-quote {
        font-size: 13px;
      }
      
      .client-name {
        font-size: 13px;
      }
      
      .contact-form {
        padding: 20px;
      }
      
      .contact-form label {
        font-size: 13px;
      }
      
      .contact-form input,
      .contact-form textarea {
        font-size: 13px;
        padding: 10px 12px;
      }
      
      .contact-form button {
        padding: 10px 20px;
        font-size: 14px;
      }
    }
    
    /* Mobile menu */
    .menu-toggle {
      display: none;
      flex-direction: column;
      cursor: pointer;
      padding: 5px;
      z-index: 999;
    }
    
    .menu-toggle span {
      width: 35px;
      height: 3px;
      background-color: var(--primary-color);
      margin: 3px 0;
      transition: 0.3s;
      border-radius: 2px;
      transform-origin: center; /* rotar desde el centro */
      transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
      transform: rotate(45deg) translate(2px, 2px);
    }

    .menu-toggle.active span:nth-child(2) {
      opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
      transform: rotate(-45deg) translate(2px, -2px);
    }
    .partners-section {
      background-color: #fff;
      padding: 4rem 1rem;
      font-family: sans-serif;
      
    }
    .partners-container {
      max-width: 1200px; /* o el ancho que uses en los demás bloques */
      margin-left: auto;
      margin-right: auto;
      padding: 0 1rem;
    }

    .partners-header {
      text-align: center;
      margin-bottom: 3rem;
    }
    .partners-header h2 {
      font-size: 2rem;
      font-weight: bold;
      color: #2d3748;
      margin-bottom: 1rem;
    }
    .partners-header p {
      font-size: 1.125rem;
      color: #4a5568;
      max-width: 700px;
      margin: 0 auto;
    }
    .partners-grid {
      display: grid;
      gap: 2rem;
    }
    @media (min-width: 768px) {
      .partners-grid {
        grid-template-columns: repeat(4, 1fr);
      }
    }
    .partner-card {
      text-align: center;
      padding: 1.5rem;
      border: 1px solid #e2e8f0;
      border-radius: 0.75rem;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
      transition: box-shadow 0.3s ease;
    }
    .partner-card:hover {
      box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }
    .partner-card img {
      height: 84px;
      margin-bottom: 0.1rem;
      filter: grayscale(100%);
      transition: filter 0.6s ease;
    }
    .partner-card:hover img {
      filter: grayscale(0%);
    }
    .logos-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 2rem;
      margin-top: 2rem;
      align-items: center;
    }
    @media (min-width: 768px) {
      .logos-grid {
        grid-template-columns: repeat(4, 1fr);
      }
    }
    .logos-grid img {
      height: 48px;
      margin: 0 auto;
      filter: grayscale(100%);
      transition: filter 0.3s ease;
    }
    .logos-grid img:hover {
      filter: grayscale(0%);
    }
    .partners-cta {
      text-align: center;
      margin-top: 3rem;
    }
    .partners-cta a {
      background-color: #2563eb;
      color: white;
      padding: 0.75rem 1.5rem;
      border-radius: 0.5rem;
      font-weight: 500;
      text-decoration: none;
      transition: background-color 0.3s ease;
    }
    .partners-cta a:hover {
      background-color: #1e40af;
    }
      
    @media (max-width: 768px) {
      .menu-toggle {
        display: flex;
      }
    }

        /* Quitar gradientes en mobile */
    @media (max-width: 768px) {
      .services-section::before,
      .services-section::after {
        display: none; /* Elimina completamente los gradientes */
      }
      
      /* Opcional: Ajustar el padding en mobile */
      .services-section {
        padding-left: 15px;
        padding-right: 15px;
      }
    }

    @media (max-width: 768px) {
      .cta-button {
        display: none !important;
      }
    }

    @media (max-width: 768px) {
      nav ul li::after {
        left: 0;                 /* alineación normal */
        transform: none;         /* elimina el centrado */
        width: 0;
      }
      nav ul li:hover::after {
        width: 100%;
      }
    }

    /* Ocultar el botón dentro del menú en escritorio */
    .menu-cta {
      display: none;
    }

    /* Mostrarlo solo en móvil */
    @media (max-width: 768px) {
      .menu-cta {
        display: block;
        margin-top: 10px;
        text-align: center;
      }
      .menu-cta .cta-button {
        display: inline-block !important;
        font-size: 14px;
        padding: 10px 20px;
      }
    }

    @media (max-width: 768px) {
      /* Ocultar el nav por defecto en mobile */
      #main-nav {
        display: none;
      }

      /* Mostrarlo solo cuando se abre la hamburguesa */
      #main-nav.active {
        display: block;
      }
    }

    /* BASE (desktop): no toques desktop */
    .header .mobile-cta { display: none; }
    .menu-toggle { display: none; }

    /* === SOLO MOBILE === */
    @media (max-width: 768px) {
      /* Orden: logo | hamburguesa | CTA */
      .header .container.header-container {
        display:flex;
        align-items:center;
        justify-content:space-between;
      }

      /* CTA solo visible en mobile */
      .header .mobile-cta {
        display: block !important;
        order: 3;
        display: inline-block;
        padding: 3px 6px;
        background-color: var(--primary-color);
        color: var(--white);
        border: none;
        border-radius: 20px;
        font-size: 16px;
        font-weight: 900;
        cursor: pointer;
        transition: var(--transition);
        box-shadow: 0 4px 15px rgba(11, 44, 66, 0.2);
        letter-spacing: 0.5px;
      }

      .header .mobile-cta .cta-button {
        font-size: 12px;
        padding: 6px 12px;
      }

      /* Desktop CTA oculto en mobile */
      .header .desktop-cta {
        display: none !important;
      }

      /* Hamburguesa visible y con X centrada sin corte */
      .menu-toggle {
        display:flex !important;
        width:28px; height:20px;
        position:relative;
        z-index:1001;
        margin-left: 5px
      }
      .menu-toggle span {
        position:absolute;
        left:0;
        width:100%;
        height:2px;
        background: var(--primary-color, #0b2c3d);
        border-radius:2px;
        transition: transform .3s ease, opacity .2s ease, top .3s ease;
      }

      .menu-toggle span:nth-child(1){ top:0; }
      .menu-toggle span:nth-child(2){ top:9px; }
      .menu-toggle span:nth-child(3){ top:18px; }

      .menu-toggle.active span:nth-child(1){ top:9px; transform:rotate(45deg); }
      .menu-toggle.active span:nth-child(2){ opacity:0; }
      .menu-toggle.active span:nth-child(3){ top:9px; transform:rotate(-45deg); }

      /* Asegurar visibilidad de botones del hero en mobile */
      .hero-buttons .cta-button {
        display:inline-flex !important;
      }
    }
