/* ==========================================================================
   JPSERNA CONSULTING - GLOBAL STYLES
   ========================================================================== */

/* 1. VARIABLES & RESET */
:root {
    --bg-color: #FCFCFB;
    --primary-forest: #1E3F3B;
    --accent-solar: #FACC15;
    --text-slate: #334155;
    --text-light: #64748B;
    --border-soft: #E2E8F0;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-slate);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: clamp(20px, 5vw, 40px) 24px;
    -webkit-font-smoothing: antialiased;
}

/* Contenedores por defecto y estrechos */
.container { width: 100%; max-width: 1100px; margin: 0 auto; }
.container-sm { max-width: 850px; }

/* 2. HEADER & NAVEGACIÓN */
.site-header, header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 40px 0;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: clamp(40px, 8vh, 80px);
}

header.no-border { border-bottom: none; } /* Para el index minimalista */

.logo-link, .brand { text-decoration: none; display: flex; flex-direction: column; }
.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-forest);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
}
.brand-sub { font-size: 0.75rem; color: var(--text-light); font-weight: 500; letter-spacing: 1px; }

.home-link {
    text-decoration: none;
    color: var(--primary-forest);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}
.home-link::before { content: ''; width: 8px; height: 8px; border: 2px solid var(--accent-solar); border-radius: 50%; }

/* 3. HERO SECTIONS (Títulos Principales) */
.hero-center { text-align: center; max-width: 850px; margin: 0 auto; }
.hero-left { text-align: left; margin-bottom: 80px; }

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.2rem, 7vw, 3.8rem);
    color: var(--primary-forest);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}
.hero-desc {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-light);
    margin-bottom: 48px;
    max-width: 700px;
}
.hero-center .hero-desc { margin-left: auto; margin-right: auto; }

/* 4. BOTONES Y CTAs */
.btn-primary {
    display: inline-block;
    padding: 18px 44px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    transition: var(--transition);
}

.btn-forest { background-color: var(--primary-forest); color: #FFFFFF; border: 2px solid var(--primary-forest); }
.btn-forest:hover { background-color: transparent; color: var(--primary-forest); transform: translateY(-3px); }

.btn-solar { background-color: var(--accent-solar); color: var(--primary-forest); border: 2px solid var(--accent-solar); }
.btn-solar:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* Cajas de CTA de ancho completo */
.cta-box {
    background: var(--primary-forest);
    color: #FFF;
    padding: 80px 40px;
    border-radius: 24px;
    text-align: center;
    margin-bottom: 80px;
}
.cta-box h2 { font-family: 'Montserrat', sans-serif; margin-bottom: 24px; font-size: 2rem; }

/* 5. ICONOS SVG COMPARTIDOS */
.icon-wrapper, .icon-box { width: 54px; height: 54px; margin-bottom: 24px; transition: var(--transition); }
.custom-icon { width: 100%; height: 100%; color: var(--primary-forest); }
.icon-accent { stroke: var(--accent-solar); stroke-width: 2.5; transition: var(--transition); }

/* 6. COMPONENTES GRID (Tarjetas de Servicios, Blog, Contacto) */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-bottom: 80px; }
.card-basic {
    background: #FFFFFF; padding: 40px 32px; border-radius: 20px; text-decoration: none; color: inherit;
    border: 1px solid var(--border-soft); transition: var(--transition); display: flex; flex-direction: column;
}
.card-basic:hover { border-color: var(--accent-solar); transform: translateY(-8px); box-shadow: 0 20px 40px rgba(30, 63, 59, 0.05); }
.card-basic:hover .icon-accent { stroke: var(--primary-forest); } /* Hover dinámico de iconos */

.card-title { font-family: 'Montserrat', sans-serif; font-size: 1rem; color: var(--primary-forest); text-transform: uppercase; margin-bottom: 12px; letter-spacing: 1px; }
.card-text { font-size: 0.95rem; color: var(--text-light); line-height: 1.5; }

/* Listas con bullets personalizados */
.feature-list { list-style: none; font-size: 0.9rem; color: var(--text-light); }
.feature-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.feature-list li::before { content: ''; width: 6px; height: 6px; background: var(--accent-solar); border-radius: 50%; display: block; }
.feature-list-arrow { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.feature-list-arrow li { font-size: 0.95rem; color: var(--text-slate); display: flex; align-items: center; gap: 10px; }
.feature-list-arrow li::before { content: '→'; color: var(--accent-solar); font-weight: bold; }

/* 7. ACORDEÓN (Formación) */
.accordion-item { border-bottom: 1px solid var(--border-soft); transition: var(--transition); }
.accordion-header { width: 100%; padding: 40px 0; background: none; border: none; display: flex; align-items: center; cursor: pointer; text-align: left; gap: 24px; }
.accordion-header h3 { font-family: 'Montserrat', sans-serif; font-size: 1.2rem; color: var(--primary-forest); flex: 1; letter-spacing: 0.5px; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); background-color: rgba(30, 63, 59, 0.02); padding: 0 68px; }
.accordion-item.active .accordion-content { max-height: 600px; padding-bottom: 40px; }
.arrow-indicator { width: 12px; height: 12px; border-right: 2px solid var(--border-soft); border-bottom: 2px solid var(--border-soft); transform: rotate(45deg); transition: var(--transition); }
.accordion-item.active .arrow-indicator { transform: rotate(-135deg); border-color: var(--accent-solar); }

/* 8. FOOTER & LEGAL */
footer {
    margin-top: auto; padding: 40px 0 20px; text-align: center; border-top: 1px solid var(--border-soft);
}
.copy-info { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; color: var(--text-light);}
.legal-link { font-size: 0.7rem; color: var(--text-light); text-decoration: none; border-bottom: 1px solid var(--accent-solar); transition: var(--transition); }
.legal-link:hover { color: var(--primary-forest); }

/* BANNER COOKIES */
#cookie-banner {
    position: fixed; bottom: 20px; left: 20px; right: 20px; background: #FFF; border: 1px solid var(--border-soft);
    padding: 20px 30px; border-radius: 16px; display: none; justify-content: space-between; align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); z-index: 1000;
}
.btn-cookie { background: var(--primary-forest); color: #FFF; border: none; padding: 10px 24px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; cursor: pointer; text-transform: uppercase; }

/* 9. MEDIA QUERIES GLOBALES */
@media (max-width: 600px) {
    .site-header, header { flex-direction: column; gap: 20px; }
    #cookie-banner { flex-direction: column; gap: 15px; text-align: center; }
    .accordion-header { gap: 15px; }
    .accordion-content { padding: 0 20px; }
    .hero-title { font-size: 2.5rem; }
}