@import "tailwindcss";
/* Text Selection Color */
::selection {
    background-color: #94AD8B;
    color: #FEF9EF;
}

::-moz-selection {
    background-color: #94AD8B;
    color: #FEF9EF;
}

/* Cookie Consent Customization */
:root {
    --cc-bg: #FEF9EF;
    --cc-primary-color: #94AD8B;
    --cc-secondary-color: #616867;
    --cc-text-color: #3C3D42;
    --cc-beige: #E5D9C7;
}

/* Main container */
#cc-main {
    font-family: 'Mulish', sans-serif !important;
    --cc-font-family: 'Mulish', sans-serif !important;
}

/* Consent Modal (banner principale) */
#cc-main .cm {
    background: #FEF9EF !important;
    border: 1px solid rgba(97, 104, 103, 0.6) !important;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1) !important;
    border-radius: 1rem !important;
    padding: 1.25rem !important;
    max-width: 500px !important;
}

/* Mobile optimization */
@media (max-width: 768px) {
    /* Cookie consent */
    #cc-main .cm {
        padding: 1rem !important;
        max-width: calc(100vw - 2rem) !important;
        margin: 0 1rem !important;
    }

    #cc-main .cm__title {
        font-size: 1.1rem !important;
        margin-bottom: 0.4rem !important;
    }

    #cc-main .cm__desc {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.75rem !important;
    }

    #cc-main .cm__btn {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.8rem !important;
    }

    /* Flip cards - reduce padding */
    .flip-card-front,
    .flip-card-back {
        padding: 1.25rem !important;
    }
}

/* Mobile - reduce card width */
@media (max-width: 420px) {
    .flip-card {
        width: 90vw !important;
        max-width: 90vw !important;
    }
}

#cc-main .cm__title {
    color: var(--cc-text-color) !important;
    font-family: 'Baskerville', 'Libre Baskerville', serif !important;
    font-size: 1.25rem !important;
    margin-bottom: 0.5rem !important;
    font-weight: 700 !important;
}

#cc-main .cm__desc {
    color: var(--cc-secondary-color) !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
}

/* Buttons */
#cc-main .cm__btn {
    background: var(--cc-primary-color) !important;
    border: 2px solid var(--cc-primary-color) !important;
    color: var(--cc-bg) !important;
    font-weight: 600 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    transition: all 0.3s ease !important;
    font-size: 0.875rem !important;
}

#cc-main .cm__btn:hover {
    background: #7d9476 !important;
    border-color: #7d9476 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(148, 173, 139, 0.3) !important;
}

#cc-main .cm__btn--secondary {
    background: transparent !important;
    border: 2px solid var(--cc-secondary-color) !important;
    color: var(--cc-secondary-color) !important;
}

#cc-main .cm__btn--secondary:hover {
    background: var(--cc-secondary-color) !important;
    border-color: var(--cc-secondary-color) !important;
    color: var(--cc-bg) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(97, 104, 103, 0.25) !important;
}

/* Footer links */
#cc-main .cm__footer {
    margin-top: 1rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid var(--cc-beige) !important;
}

#cc-main .cm__footer a,
#cc-main .cc__link {
    color: var(--cc-primary-color) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

#cc-main .cm__footer a:hover,
#cc-main .cc__link:hover {
    color: #7d9476 !important;
    text-decoration: underline !important;
}

/* Preferences Modal */
#cc-main .pm {
    background: #FEF9EF !important;
    border: 1px solid rgba(97, 104, 103, 0.6) !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1) !important;
}

#cc-main .pm__header {
    background: #FEF9EF !important;
    border-bottom: 1px solid var(--cc-beige) !important;
    padding: 1.5rem !important;
}

#cc-main .pm__title {
    color: var(--cc-text-color) !important;
    font-family: 'Baskerville', 'Libre Baskerville', serif !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
}

#cc-main .pm__close-btn {
    background: transparent !important;
    border: 2px solid var(--cc-secondary-color) !important;
    color: var(--cc-secondary-color) !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

#cc-main .pm__close-btn:hover {
    background: var(--cc-secondary-color) !important;
    color: var(--cc-bg) !important;
    transform: rotate(90deg) !important;
}

#cc-main .pm__body {
    padding: 1.5rem !important;
}

/* Sections */
#cc-main .pm__section {
    margin-bottom: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    border-bottom: 1px solid var(--cc-beige) !important;
}

#cc-main .pm__section:last-child {
    border-bottom: none !important;
}

#cc-main .pm__section-title {
    color: var(--cc-text-color) !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
}

#cc-main .pm__section-desc {
    color: var(--cc-secondary-color) !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

/* Toggle switches */
#cc-main .section__toggle {
    background: var(--cc-beige) !important;
    border-radius: 2rem !important;
    transition: background 0.3s ease !important;
}

#cc-main .section__toggle.toggle--on {
    background: var(--cc-primary-color) !important;
}

#cc-main .section__toggle-btn {
    background: var(--cc-bg) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Footer buttons */
#cc-main .pm__footer {
    background: #FEF9EF !important;
    border-top: 1px solid var(--cc-beige) !important;
    padding: 1.5rem !important;
}

#cc-main .pm__btn {
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

#cc-main .pm__btn-group {
    gap: 0.75rem !important;
}

/* Masked Lines Effect - SplitText */
.line-wrapper {
    overflow: hidden;
    display: block;
    padding-bottom: 0.15em;
    margin-bottom: -0.15em;
}

.line {
    display: block;
}

.word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.char {
    display: inline-block;
    transform: translateY(100%);
    will-change: transform;
}

/* Mobile Menu */
.nav-menu {
    transition: left 0.3s ease;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: calc(70px + 1.5rem + 1.5rem);
        flex-direction: column;
        background-color: #FEF9EF;
        width: calc(100% - 2.5rem);
        margin: 0 1.25rem;
        border-radius: 1.5rem;
        text-align: center;
        box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
        border: 1px solid rgba(97, 104, 103, 0.6);
        padding: 2rem 0;
        z-index: 40;
    }

    .nav-menu.active {
        left: 0;
        display: flex;
    }

    .nav-menu li {
        padding: 0.75rem 0;
    }

    .nav-menu li.text-text-dark\/40 {
        display: none;
    }
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Disable flip on scroll - only on desktop */
@media (min-width: 1025px) {
    .scrolling .flip-card:hover .flip-card-inner {
        transform: none !important;
    }

    .scrolling .flip-card-inner {
        pointer-events: none;
    }
}

/* Metodo Section - Pinned Scroll */
.metodo-sticky {
    position: sticky;
    top: 120px;
    align-self: flex-start;
}

@media (max-width: 1023px) {
    .metodo-sticky {
        position: static;
    }
}

/* FAQ Section - Sticky Image */
.faq-sticky {
    position: sticky;
    top: 120px;
    align-self: flex-start;
}

@media (max-width: 1023px) {
    .faq-sticky {
        position: static;
    }
}

/* FAQ Accordion */
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Infinite Carousel */
.carousel-container {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: max-content;
}

.carousel-card {
    transition: transform 0.3s ease;
}

/* Tailwind secondary color fix */
.text-secondary-color {
    color: #f4a261;
}

.hover\:text-secondary-color:hover {
    color: #f4a261;
}

/* Animated SVG Container */
.animated-svg-container {
    pointer-events: none;
    filter: drop-shadow(0 4px 20px rgba(148, 173, 139, 0.3));
    transition: filter 0.3s ease;
    opacity: 0; /* Start hidden, JS will animate it in */
}

#animated-svg-wrapper {
    transform-origin: center center;
}

#animated-svg-wrapper svg {
    width: 100%;
    height: 100%;
    transform-origin: center center;
}

/* Responsive adjustments for animated SVG */
@media (max-width: 768px) {
    .animated-svg-container {
        bottom: 1rem !important;
        right: 1rem !important;
        width: 5rem !important;
        height: 5rem !important;
        opacity: 0.4 !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .animated-svg-container {
        bottom: 2rem !important;
        right: 2rem !important;
        width: 10rem !important;
        height: 10rem !important;
        opacity: 0.5 !important;
    }
}
