/* --- Focus Styles for Accessibility --- */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid #72c563;
    outline-offset: 2px;
}

/* --- Navbar Styles --- */

/* Default state for all pages (transparent) */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

/* State for non-index pages (always white) */
.is-not-index #navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* State for index page on scroll */
.is-index #navbar.scrolled {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- Nav Link Colors --- */

/* Default link color on index page (top) */
.is-index #navbar .nav-link {
    color: white;
}

/* Link color on other pages OR on index page when scrolled */
.is-not-index #navbar .nav-link,
.is-index #navbar.scrolled .nav-link {
    color: #1f2937; /* text-gray-800 */
}

/* --- Mobile Menu Icon Color --- */

/* Default icon color on index page (top) */
.is-index #navbar #mobile-menu-open-icon {
    color: white;
}

/* Icon color on other pages OR on index page when scrolled */
.is-not-index #navbar #mobile-menu-open-icon,
.is-index #navbar.scrolled #mobile-menu-open-icon {
    color: #1f2937; /* text-gray-800 */
}

.diagonal-clip-right {
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
}

.diagonal-clip-left {
    clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%);
}

/* Estilos para el acordeón de FAQ */
.accordion-content {
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

.accordion-item.open .accordion-content {
    max-height: 500px; /* Altura suficiente para el contenido */
    padding-top: 0.5rem; /* pt-2 */
    padding-bottom: 1rem; /* pb-4 */
}

.accordion-item.open .accordion-trigger i {
    transform: rotate(180deg);
}


/* Estilos para el formulario de contacto */
#contact-form input,
#contact-form textarea {
    padding: 0.75rem 1rem;
    transition: border-color 0.2s;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: #72c563;
    outline: none;
    box-shadow: 0 0 0 2px rgba(114, 197, 99, 0.3);
}

/* Estilos para el banner de cookies */
#cookie-consent-modal {
    animation: fadeIn 0.3s ease-out;
}

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

/* Workflow Animations */
@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.workflow-title {
    animation: slide-in-up 0.7s ease-out forwards;
}

.workflow-step {
    animation: slide-in-up 0.5s ease-out forwards;
    opacity: 0; /* Start with opacity 0 to avoid flash of un-animated content */
}

/* Scroll Animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Chatbot styles */
#chatbot-window {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

#chatbot-window.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.chatbot-message {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.chatbot-message.user {
    align-items: flex-end;
}

.chatbot-message.bot {
    align-items: flex-start;
}

.chatbot-message .text {
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    max-width: 80%;
}

.chatbot-message.user .text {
    background-color: #0056A7;
    color: white;
    border-bottom-right-radius: 0;
}

.chatbot-message.bot .text {
    background-color: #f0f0f0;
    color: #333;
    border-bottom-left-radius: 0;
}.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    color: #0056A7;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    margin-top: 0;
}

.swiper-button-next {
    right: 10px;
}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: 900;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}
/* Responsive fix for small screens like iPhone SE */
@media (max-width: 375px) {
    #mobile-menu nav > a,
    #mobile-menu nav > div > button {
        font-size: 1rem; /* 16px, was text-lg */
    }

    #mobile-submenu a {
        font-size: 0.875rem; /* 14px, was text-base */
    }
}

  .hero-waves {
    display: block;
    position: relative;
    top: -1px;
    z-index: 5;
  }

      .hero-waves .wave1 use {
        fill: rgba(114, 197, 99, 0.1);
        animation: move-forever 10s linear infinite;
        animation-delay: -2s;
      }
    
      .hero-waves .wave2 use {
        fill: rgba(0, 86, 167, 0.1);
        animation: move-forever 8s linear infinite;
        animation-delay: -2s;
      }  
    .hero-waves .wave3 use {
      fill: rgba(243, 244, 246, 1);
      animation: move-forever 6s linear infinite;
      animation-delay: -2s;
    }
  
    @keyframes move-forever {
      0% {
        transform: translate3d(-90px, 0, 0);
      }
      100% {
        transform: translate3d(85px, 0, 0);
      }
    }
  
  .footer-content {
    animation: breathe 10s ease-in-out infinite;
  }
  
  @keyframes breathe {
    0% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-2px);
    }
    100% {
      transform: translateY(0);
    }
  }
  
  @media (max-width: 767px) {
    .hero-waves {
      height: 40px;
    }
  
    .footer-logo {
      margin-top: 20px;
    }
  }
