:root {
    --brand-red: #E40046;
    --brand-cream: #FDF7F0;
    --text-dark: #1a1a1a;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--brand-cream);
    color: var(--text-dark);
}
.font-serif { font-family: 'Playfair Display', serif; }
.brand-accent { color: var(--brand-red); }
.bg-brand-accent { background-color: var(--brand-red); }
.border-brand-accent { border-color: var(--brand-red); }

.nav-colored { background-color: var(--brand-red); box-shadow: 0 4px 20px rgba(228, 0, 70, 0.2); transition: background-color 0.3s ease; }
.nav-colored:hover { background-color: #c3003c; }

.footer-colored, footer.bg-\[\#E40046\] { transition: background-color 0.3s ease; }
footer.bg-\[\#E40046\]:hover { background-color: #c3003c !important; }

.testimonial-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(228, 0, 70, 0.1); }

/* Breadcrumbs internos */
.seo-breadcrumb {
    position: relative;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.55rem;
    padding-top: 5.75rem !important;
    padding-bottom: 1rem;
    line-height: 1.45;
}

.seo-breadcrumb .mx-2 {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.seo-breadcrumb a,
.seo-breadcrumb span {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 640px) {
    .seo-breadcrumb {
        padding-top: 5.25rem !important;
        padding-bottom: 0.75rem;
        font-size: 0.65rem;
        letter-spacing: 0.04em;
    }
}

/* Ajuste para los widgets de Elfsight */
.elfsight-app-container { width: 100%; min-height: 400px; }

/* Splash Screen */
#splash-screen {
    position: fixed;
    inset: 0;
    background-color: var(--brand-cream);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}
#splash-screen.hidden-splash {
    opacity: 0;
    visibility: hidden;
}
.splash-logo {
    animation: pulseLogo 1s ease-in-out infinite alternate;
}
@keyframes pulseLogo {
    0% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(1.05); opacity: 1; }
}

/* FAQ Accordion */
details > summary {
    list-style: none;
}
details > summary::-webkit-details-marker {
    display: none;
}
details[open] summary ~ * {
    animation: sweep .3s ease-in-out;
}
@keyframes sweep {
    0%    {opacity: 0; transform: translateY(-10px)}
    100%  {opacity: 1; transform: translateY(0)}
}

/* Ocultar branding gratuito de Elfsight */
a[href*="elfsight.com"],
.eapps-link,
[class*="elfsight-app"] > a {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* ----------------------------------
   Awwwards Custom Cursor
---------------------------------- */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
    display: none; /* Oculto por defecto */
}

@media (pointer: fine) {
    body.custom-cursor-enabled .cursor-dot,
    body.custom-cursor-enabled .cursor-outline {
        display: block; /* Solo visible en desktop/mouse */
    }
    
    body.custom-cursor-enabled,
    body.custom-cursor-enabled a,
    body.custom-cursor-enabled button,
    body.custom-cursor-enabled input,
    body.custom-cursor-enabled textarea,
    body.custom-cursor-enabled select {
        cursor: none !important;
    }
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--brand-red);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(228, 0, 70, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hover state for links and interactive elements */
.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(228, 0, 70, 0.1);
    border-color: var(--brand-red);
}

/* Home SEO route cards */
.seo-routes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.seo-route-card {
    display: flex;
    align-items: center;
    min-height: 4.25rem;
    padding: 1rem 1.15rem;
    background: #fff;
    border: 1px solid rgba(26, 26, 26, 0.06);
    border-radius: 1rem;
    color: var(--text-dark);
    font-weight: 800;
    line-height: 1.15;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.seo-route-card:hover,
.seo-route-card:focus-visible {
    color: var(--brand-red);
    border-color: rgba(228, 0, 70, 0.35);
    box-shadow: 0 14px 32px rgba(228, 0, 70, 0.1);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .seo-routes-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ----------------------------------
   Timeline Animado ("El Proceso")
---------------------------------- */
.timeline-item {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease-out;
}
.timeline-item.active {
    opacity: 1;
    transform: translateX(0);
}
.timeline-dot {
    transition: all 0.4s ease-out;
}
.timeline-item.active .timeline-dot {
    background-color: var(--brand-red);
    border-color: white;
    box-shadow: 0 0 0 4px rgba(228, 0, 70, 0.2);
}

/* ----------------------------------
   Mobile Menu Overlay
---------------------------------- */
#mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--brand-red);
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
}

#mobile-menu-overlay.menu-open {
    opacity: 1;
    visibility: visible;
}

#mobile-menu-overlay .mobile-link {
    font-family: 'Inter', sans-serif !important;
    font-size: clamp(1.15rem, 6vw, 1.65rem) !important;
    line-height: 1.1 !important;
    margin-bottom: 1.25rem !important;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 800 !important;
}

#mobile-menu-overlay .mobile-link:last-child {
    margin-bottom: 0 !important;
}

.hamburger-btn {
    width: 30px;
    height: 20px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    cursor: pointer;
    z-index: 60;
}

.hamburger-btn span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-btn span:nth-child(1) { top: 0px; }
.hamburger-btn span:nth-child(2) { top: 8px; }
.hamburger-btn span:nth-child(3) { top: 16px; }

.hamburger-btn.open span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger-btn.open span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

@media (min-width: 768px) and (max-width: 1024px) {
    body > nav.fixed.top-0 > div {
        padding: 0.85rem 1.1rem !important;
        gap: 0.85rem;
    }

    body > nav.fixed.top-0 > div > a:first-child {
        gap: 0.4rem !important;
        flex-shrink: 0;
    }

    body > nav.fixed.top-0 > div > a:first-child span:first-child {
        font-size: clamp(1.25rem, 2.7vw, 1.55rem) !important;
        line-height: 1;
    }

    body > nav.fixed.top-0 > div > a:first-child span:nth-child(2) {
        font-size: 0.6rem !important;
        line-height: 1.05;
        padding: 0.28rem 0.45rem !important;
        max-width: 4.75rem;
        white-space: normal;
        text-align: center;
    }

    body > nav.fixed.top-0 > div > div.hidden.md\:flex {
        gap: clamp(0.75rem, 1.7vw, 1.25rem) !important;
        font-size: clamp(0.62rem, 1.25vw, 0.78rem) !important;
        letter-spacing: 0.08em !important;
        flex: 1 1 auto;
        justify-content: center;
        min-width: 0;
    }

    body > nav.fixed.top-0 > div > a[target="_blank"],
    body > nav.fixed.top-0 > div > a[href^="javascript"] {
        padding: 0.6rem 0.85rem !important;
        font-size: clamp(0.64rem, 1.2vw, 0.76rem) !important;
        line-height: 1.05;
        max-width: 7.5rem;
        text-align: center;
        white-space: normal;
        flex-shrink: 0;
    }
}

@media (min-width: 768px) and (max-width: 900px) {
    body > nav.fixed.top-0 > div > div.hidden.md\:flex {
        display: none !important;
    }

    body > nav.fixed.top-0 > div > .hamburger-btn {
        display: block !important;
        width: 30px;
        height: 20px;
        margin-left: 0.75rem !important;
        flex: 0 0 30px;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    body > nav.fixed.top-0 > div {
        padding: 0.8rem 1rem !important;
        gap: 0.55rem;
    }

    body > nav.fixed.top-0 > div > a:first-child {
        min-width: 0;
        gap: 0.4rem !important;
        flex-shrink: 1;
    }

    body > nav.fixed.top-0 > div > a:first-child span:first-child {
        font-size: clamp(1.55rem, 5vw, 1.9rem) !important;
        line-height: 1;
    }

    body > nav.fixed.top-0 > div > a:first-child span:nth-child(2) {
        max-width: 5rem;
        padding: 0.32rem 0.5rem !important;
        font-size: 0.62rem !important;
        line-height: 1.05;
        white-space: normal;
        text-align: center;
    }

    body > nav.fixed.top-0 > div > a[target="_blank"],
    body > nav.fixed.top-0 > div > a[href^="javascript"] {
        padding: 0.6rem 0.85rem !important;
        font-size: clamp(0.64rem, 2.2vw, 0.78rem) !important;
        line-height: 1.05;
        max-width: 8rem;
        text-align: center;
        white-space: normal;
        flex-shrink: 0;
    }

    .hamburger-btn {
        width: 29px;
        height: 20px;
        margin-left: 0.35rem !important;
        flex: 0 0 29px;
    }
}

@media (max-width: 480px) {
    body > nav.fixed.top-0 > div {
        padding: 0.75rem 0.9rem !important;
        gap: 0.45rem;
    }

    body > nav.fixed.top-0 > div > a:first-child {
        min-width: 0;
        gap: 0.35rem !important;
        flex-shrink: 1;
    }

    body > nav.fixed.top-0 > div > a:first-child span:first-child {
        font-size: clamp(1.35rem, 6.2vw, 1.7rem) !important;
        line-height: 1;
        letter-spacing: -0.04em;
    }

    body > nav.fixed.top-0 > div > a:first-child span:nth-child(2) {
        max-width: 4.6rem;
        padding: 0.32rem 0.5rem !important;
        font-size: 0.58rem !important;
        line-height: 1.05;
        white-space: normal;
    }

    body > nav.fixed.top-0 > div > a[target="_blank"],
    body > nav.fixed.top-0 > div > a[href^="javascript"] {
        padding: 0.55rem 0.75rem !important;
        font-size: clamp(0.58rem, 2.8vw, 0.72rem) !important;
        line-height: 1.05;
        max-width: 7.25rem;
        text-align: center;
        white-space: normal;
        flex-shrink: 0;
    }

    .hamburger-btn {
        width: 28px;
        height: 19px;
        margin-left: 0.25rem !important;
        flex: 0 0 28px;
    }

    .hamburger-btn span:nth-child(2) { top: 7.5px; }
    .hamburger-btn span:nth-child(3) { top: 15px; }
}

@media (max-width: 370px) {
    body > nav.fixed.top-0 > div {
        padding-left: 0.7rem !important;
        padding-right: 0.7rem !important;
        gap: 0.35rem;
    }

    body > nav.fixed.top-0 > div > a:first-child span:nth-child(2) {
        display: none;
    }

    body > nav.fixed.top-0 > div > a[target="_blank"],
    body > nav.fixed.top-0 > div > a[href^="javascript"] {
        max-width: 6.75rem;
        padding-left: 0.6rem !important;
        padding-right: 0.6rem !important;
    }

    #mobile-menu-overlay .mobile-link {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
        letter-spacing: 0.13em;
    }
}


/* Accessibility and mobile conversion */
.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10001;
    transform: translateY(-160%);
    background: #1a1a1a;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    font-weight: 800;
}
.skip-link:focus {
    transform: translateY(0);
}
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #1a1a1a;
    outline-offset: 4px;
}
.sticky-whatsapp {
    position: fixed;
    left: 50%;
    bottom: calc(0.8rem + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 55;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #25D366;
    color: #fff;
    padding: 0.8rem 1.25rem;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 14px 35px rgba(0,0,0,0.22);
}
.sticky-whatsapp i {
    font-size: 1.1rem;
}
@media (min-width: 768px) {
    .sticky-whatsapp { display: none; }
}
@media (max-width: 767px) {
    body { padding-bottom: 4.5rem; }
}
