/*
Theme Name: Medicina Preventiva & Salud Integral
Theme URI: https://example.com
Author: Miguel Andrés Rubio Duque
Description: Tema a medida para landing page de Medicina Preventiva y Salud Integral administrable con Advanced Custom Fields (ACF).
Version: 1.0.0
Text Domain: medicina-preventiva
*/

/* Base & Typography */
body {
    background-color: #FAF9F6;
    color: #4E5855;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    margin: 0;
}

h1, h2, h3, .font-editorial {
    font-family: 'Fraunces', serif;
    color: #222826;
    letter-spacing: -0.02em;
}

/* Subtle grain overlay */
.editorial-texture {
    background-image: radial-gradient(rgba(30, 63, 53, 0.04) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Smooth Accordion Transition */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}
.faq-inner {
    overflow: hidden;
}
.faq-icon {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Interactive Stage Tab Active State */
.stage-tab {
    transition: all 0.25s ease;
}
.stage-tab.active {
    background-color: #1E3F35;
    color: #FFFFFF;
    border-color: #1E3F35;
    box-shadow: 0 10px 25px -5px rgba(30, 63, 53, 0.25);
}
.stage-tab.active .stage-badge {
    background-color: rgba(255, 255, 255, 0.16);
    color: #E8EFEA;
}
.stage-tab.active h4 {
    color: #FFFFFF;
}

/* Fade animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade {
    animation: fadeIn 0.35s ease forwards;
}

/* WordPress Admin Bar offset fix for sticky header */
body.admin-bar .mp-sticky-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .mp-sticky-header {
        top: 46px;
    }
}
