/*
Theme Name: Marketr Theme
Theme URI: https://marketr.com/
Author: Antigravity & User
Author URI: https://marketr.com/
Description: Tema base para el proyecto Marketr.
Version: 1.0.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marketr
*/

/* Global Base Styles */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Context: Marketing */
.ctx-marketing {
    --brand-accent: #10b981;
    background-color: #ffffff;
}

.glass {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
}

/* Utilities */
.perspective-container {
    perspective: 1000px;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Animations */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes float-slow {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.animate-scroll {
    animation: scroll 25s linear infinite;
}

@keyframes gradient-x {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient-x {
    background-size: 200% 200%;
    animation: gradient-x 15s ease infinite;
}

/* FAQ Accordion Transitions */
.faq-content {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, padding-bottom 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.faq-content.open {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 1.5rem;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.open {
    transform: rotate(180deg);
}

/* Calendar Scheduling Modal */
.calendar-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.calendar-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.calendar-modal-container {
    position: relative;
    background: #ffffff;
    border-radius: 1.5rem;
    width: 90%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}

.calendar-modal-overlay.is-open .calendar-modal-container {
    transform: translateY(0) scale(1);
}

.calendar-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #f8fafc;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.calendar-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.calendar-modal-title {
    font-size: 1.5rem !important;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
    line-height: 1.3 !important;
}

.calendar-modal-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* Global Typography Refinements */
h2:not(footer h2) {
    font-size: 3rem !important;
    line-height: 1 !important;
}