/* ========================================
   CUSTOM HEADER STYLES
   ======================================== */

/* Header Container */
.custom-site-header {
    background-color: rgba(0, 0, 0, 0);
    padding: 15px 0;
    position: relative;
    z-index: 999;
}

.custom-header-container {
    max-width: 92.1%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.custom-header-left {
    display: flex;
    align-items: center;
}

.custom-site-logo img {
    max-height: 40px;
    width: auto;
}

.custom-site-title {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

/* Header Right */
.custom-header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Navigation Menu */
.custom-main-navigation {
    display: flex;
    align-items: center;
}

.custom-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.custom-menu-list li {
    margin: 0;
    padding: 0;
    position: relative;
}

.custom-menu-list a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.custom-menu-list a:hover {
    color: #7c3aed;
}

/* Desktop Dropdown Styles */
.custom-menu-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    z-index: 1000;
    list-style: none;
    margin: 10px 0 0 0;
}

/* Footer dropdown opens upwards */
.footer-menu-list .sub-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    z-index: 1000;
    list-style: none;
    margin: 0 0 10px 0;
}

.custom-menu-list .menu-item-has-children.dropdown-open > .sub-menu,
.footer-menu-list .menu-item-has-children.dropdown-open > .sub-menu {
    display: block;
}

.custom-menu-list .sub-menu li,
.footer-menu-list .sub-menu li {
    margin: 0;
    padding: 0;
}

.custom-menu-list .sub-menu a,
.footer-menu-list .sub-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    white-space: nowrap;
}

.custom-menu-list .sub-menu a:hover,
.footer-menu-list .sub-menu a:hover {
    background-color: #f9f9f9;
    color: #7c3aed;
}

/* Chevron indicators for items with submenu */
.custom-menu-list .menu-item-has-children > a::after,
.footer-menu-list .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.3s ease;
}

.footer-menu-list .menu-item-has-children > a::after {
    border-top: none;
    border-bottom: 4px solid currentColor;
}

.custom-menu-list .menu-item-has-children.dropdown-open > a::after {
    transform: rotate(180deg);
}

.footer-menu-list .menu-item-has-children.dropdown-open > a::after {
    transform: rotate(180deg);
}

/* Contact Button */
.custom-header-cta {
    display: flex;
}

.custom-btn-contacto {
    background: #7c3aed;
    color: #fff;
    padding: 10px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.custom-btn-contacto:hover {
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
    color: #7c3aed;
    border: 2px solid #7c3aed;
    background: transparent;
}

/* Mobile Menu Toggle */
.custom-mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.custom-mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

.custom-mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu */
.custom-mobile-menu {
    display: none;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.custom-mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Close Button */
.custom-mobile-menu-close {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.custom-mobile-menu-close span {
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.custom-mobile-menu-close span:nth-child(1) {
    transform: rotate(45deg);
}

.custom-mobile-menu-close span:nth-child(2) {
    opacity: 0;
}

.custom-mobile-menu-close span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Mobile Menu Logo */
.mobile-menu-logo {
    text-align: center;
    padding: 40px 20px 30px;
    border-bottom: 1px solid #f0f0f0;
    display: block;
}

.mobile-menu-logo a {
    display: inline-block;
}

.mobile-menu-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

/* Mobile Navigation */
.custom-mobile-navigation {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 120px);
}

.custom-mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 400px;
}

.custom-mobile-menu-list > li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.custom-mobile-menu-list > li:last-child {
    border-bottom: none;
}

.custom-mobile-menu-list > li > a {
    display: block;
    padding: 18px 15px;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.custom-mobile-menu-list > li > a:hover {
    color: #7c3aed;
    background-color: #f9f9f9;
}

/* Mobile Submenu Styles - Same as desktop */
.custom-mobile-menu-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f9f9f9;
}

.custom-mobile-menu-list .menu-item-has-children.dropdown-open > .sub-menu {
    max-height: 500px;
    padding: 10px 0;
}

.custom-mobile-menu-list .sub-menu li {
    border-bottom: none;
}

.custom-mobile-menu-list .sub-menu a {
    display: flex;
    padding: 12px 30px;
    font-size: 16px;
    color: #666;
    text-align: left;
}

.custom-mobile-menu-list .sub-menu a:hover {
    color: #7c3aed;
    background-color: #fff;
    padding-left: 40px;
}

/* Chevron for mobile menu items with children */
.custom-mobile-menu-list .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.3s ease;
}

.custom-mobile-menu-list .menu-item-has-children.dropdown-open > a::after {
    transform: rotate(180deg);
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Tablet */
@media (max-width: 992px) {
    .custom-menu-list {
        gap: 20px;
    }

    .custom-menu-list a {
        font-size: 15px;
    }

    .custom-header-right {
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .custom-site-header {
        padding: 12px 0;
    }

    .custom-header-container {
        padding: 0 15px;
    }

    /* Hide desktop menu and show mobile toggle */
    .custom-main-navigation,
    .custom-header-cta {
        display: none;
    }

    .custom-mobile-menu-toggle {
        display: flex;
    }

    .custom-mobile-menu {
        display: block;
    }

    .custom-site-logo img {
        max-height: 35px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .custom-header-container {
        padding: 0 10px;
    }

    .custom-site-logo img {
        max-height: 30px;
    }

    .custom-mobile-menu-toggle {
        width: 28px;
        height: 22px;
    }
}

/* ========================================
   FILTER STYLES
   ======================================== */

.blue-filter{
    filter: brightness(0) saturate(100%) invert(16%) sepia(96%) saturate(4140%) hue-rotate(259deg) brightness(87%) contrast(115%);
}

.pink-filter{
    filter: brightness(0) saturate(100%) invert(25%) sepia(73%) saturate(6144%) hue-rotate(328deg) brightness(98%) contrast(107%);
}

.purple-filter{
    filter: brightness(0) saturate(100%) invert(11%) sepia(27%) saturate(5530%) hue-rotate(261deg) brightness(113%) contrast(140%);
}

/* ========================================
   CUSTOM FOOTER STYLES
   ======================================== */

/* Footer Container */
.custom-footer {
    margin: 4rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* CTA Section - Purple background with decorative shapes */
.footer-cta-section {
    position: relative;
    background-image: url('./assets/images/bg-footer-desk.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 20px;
    width: 80%;
    border-radius: 50px;
}

.footer-cta-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Decorative Phone Icon */
.footer-phone-icon {
    position: absolute;
    top: -10%;
    right: -1%;
    z-index: 3;
}

.footer-phone-icon img {
    width: 120px;
    height: auto;
}

/* CTA Content */
.footer-cta-content {
    text-align: center;
    color: #ffffff;
}

.footer-cta-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #ffffff;
}

.footer-cta-text {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 30px 0;
    color: rgba(255, 255, 255, 0.9);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.footer-cta-button {
    display: inline-block;
    background: #ffffff;
    color: #6B21A8;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-bottom: 40px;
}

.footer-cta-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Social Icons */
.footer-social-icons {
    margin-top: 40px;
}

.social-icons-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons-list li {
    margin: 0;
}

.social-icons-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    padding: 0;
}

.social-icons-list a:hover {
    transform: translateY(-3px);
}



/* Bottom Footer Section */
.footer-bottom-section {
    background: #F4F7FA;
    padding: 40px 20px;
    width: 80%;
    box-shadow: 0px 10px 21px -9px rgba(0, 0, 0, 0.3);
    border-radius: 40px;
}

.footer-bottom-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Footer Navigation */
.footer-navigation {
    margin-bottom: 30px;
}

.footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-menu-list li {
    margin: 0;
    position: relative;
}

.footer-menu-list a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-menu-list a:hover {
    color: #6B21A8;
}

/* Copyright Text */
.footer-copyright {
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
}


div#ast-scroll-top{
    background-color: #5E18EB;
    border-radius: 100%;
    display: flex!important;
    justify-content: center;
    align-items: center;
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
    /* Mobile Background */
    .footer-cta-section {
        background-image: url('./assets/images/bg-footer-mob.webp');
        padding: 60px 20px;
        position: relative;
    }

    /* Phone Icon - Smaller on mobile */
    .footer-phone-icon {
        top: -5%;
        right: 0;
    }

    .footer-phone-icon img {
        width: 80px;
    }

    /* Title - Smaller on mobile */
    .footer-cta-title {
        font-size: 28px;
    }

    .footer-cta-text {
        font-size: 14px;
    }

    /* Button */
    .footer-cta-button {
        padding: 12px 30px;
        font-size: 14px;
    }

    /* Social Icons - 2x2 grid */
    .social-icons-list {
        max-width: 150px;
        margin: 0 auto;
        flex-wrap: wrap;
        gap: 15px;
    }



    /* Footer Menu - Stack on mobile */
    .footer-menu-list {
        gap: 15px;
    }

    .footer-menu-list a {
        font-size: 14px;
    }

    /* Copyright */
    .footer-copyright {
        font-size: 12px;
    }

    .footer-bottom-section {
        padding: 30px 20px;
    }
}