/* ---------- RESET Y VARIABLES GLOBALES ---------- */
:root {
    --bp-primary: #395644;
    --bp-accent: #75752f;
    --bp-bg: #f9f9f9;
    --bp-text-dark: #1e2a24;
    --bp-text-muted: #4a5b52;
    --bp-card-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.02);
    --bp-transition: all 0.25s ease-in-out;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
    background-color: var(--bp-bg);
    color: var(--bp-text-dark);
    line-height: 1.5;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, .brand-text, .section-title {
    font-family: 'Merriweather', 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p, li, .lead {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

/* ---------- BARRA DE NAVEGACIÓN (fija, siempre visible) ---------- */
.navbar {
    background-color: rgba(249, 249, 249, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(57, 86, 68, 0.15);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

.navbar .container {
    max-width: 85%;
}

.logo-img {
    max-height: 44px;
    width: auto;
    transition: var(--bp-transition);
}

.brand-text {
    font-size: 1.45rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--bp-primary) 0%, var(--bp-accent) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--bp-text-dark);
    padding: 0.5rem 0.9rem;
    border-radius: 40px;
    transition: var(--bp-transition);
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(117, 117, 47, 0.08);
    color: var(--bp-accent);
}

.navbar-nav .nav-link.active {
    background-color: var(--bp-primary);
    color: white;
}

/* Botones personalizados navbar */
.btn-outline-fb {
    border: 1px solid #1877f2;
    color: #1877f2;
    background: transparent;
    border-radius: 40px;
    padding: 0.4rem 1rem;
    transition: var(--bp-transition);
    font-weight: 500;
}

.btn-outline-fb:hover {
    background-color: #1877f2;
    color: white;
    border-color: #1877f2;
}

.btn-outline-contact {
    border: 1px solid var(--bp-primary);
    color: var(--bp-primary);
    background: transparent;
    border-radius: 40px;
    transition: var(--bp-transition);
}

.btn-outline-contact:hover {
    background-color: var(--bp-primary);
    color: white;
}

/* ---------- BOTONES PRINCIPALES Y UTILITARIOS ---------- */
.btn-primary-custom {
    background-color: var(--bp-primary);
    border: none;
    color: white;
    border-radius: 40px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    transition: var(--bp-transition);
}

.btn-primary-custom:hover {
    background-color: #2c4d3a;
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 6px 14px rgba(57, 86, 68, 0.2);
}

.btn-facebook-solid {
    background-color: #1877f2;
    border: none;
    color: white;
    border-radius: 40px;
    padding: 0.6rem 1.3rem;
    font-weight: 500;
    transition: var(--bp-transition);
}

.btn-facebook-solid:hover {
    background-color: #0e63cf;
    color: white;
    transform: translateY(-1px);
}

/* ---------- CARDS MODULARES Y SHADOWS INNOVADORES ---------- */
.shadow-card {
    box-shadow: var(--bp-card-shadow);
    transition: var(--bp-transition);
}

.shadow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.12);
}

.content-card, .card {
    border: none;
    background: white;
    border-radius: 28px !important;
}

.card-modern-img {
    border-radius: 28px;
    background: #e9ecef;
}

.image-modern img, .card img {
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.image-modern:hover img, .card:hover img {
    transform: scale(1.02);
}

/* Estilo para imágenes dentro de cards */
.card-img-top {
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
}

/* Badges y acentos */
.badge.bg-accent-soft {
    background-color: rgba(117, 117, 47, 0.12);
    color: var(--bp-accent);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 60px;
    font-size: 0.8rem;
}

/* ---------- TIPOGRAFÍA PERSONALIZADA ---------- */
.section-title {
    font-size: 1.95rem;
    font-weight: 700;
    color: var(--bp-primary);
    border-left: 5px solid var(--bp-accent);
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.title-hero {
    font-weight: 800;
    background: linear-gradient(to right, #2c3e2f, #5e5e2a);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.text-muted-dark {
    color: var(--bp-text-muted);
}

/* ---------- SECCIÓN DE NEUTRALIDAD (FONDO DIFERENTE) ---------- */
.card-neutrality {
    background: linear-gradient(115deg, var(--bp-primary) 0%, #2e4f3a 100%);
    border-radius: 32px;
}

.text-white-90 {
    color: rgba(255, 255, 255, 0.9);
}

/* ---------- AJUSTES DE ESPACIADO Y RESPONSIVE ---------- */
section {
    scroll-margin-top: 90px;
}

.container {
    max-width: 85%;
}

@media (max-width: 768px) {
    .container {
        max-width: 92%;
    }
    .section-title {
        font-size: 1.65rem;
    }
    .brand-text {
        font-size: 1.2rem;
    }
    .navbar-nav .nav-link {
        padding: 0.5rem 0.7rem;
    }
    .btn-outline-fb span, .btn-outline-contact span {
        display: none;
    }
    .btn-outline-fb, .btn-outline-contact {
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero-section .display-5 {
        font-size: 1.9rem;
    }
    .card-neutrality .lead {
        font-size: 1rem;
    }
}

/* ---------- ESTILOS ADICIONALES PARA IMÁGENES MODERNAS ---------- */
img {
    border-radius: 24px;
    object-fit: cover;
}

/* para imágenes que necesitan consistencia */
.card img, .image-modern img {
    border-radius: 24px;
}

/* hover sutil en imágenes */
img:not(.logo-img) {
    transition: filter 0.3s, transform 0.25s;
}

/* ---------- FOOTER ---------- */
.footer {
    background-color: var(--bp-primary);
    color: #f9f9f9;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer a {
    color: #f9f9f9;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ---------- ENLACES Y BOTONES DE CONTACTO EN SECCIONES ---------- */
a[href^="mailto"] {
    color: var(--bp-accent);
    font-weight: 500;
}

.btn-outline-secondary.border-2 {
    border: 1.5px solid var(--bp-primary);
    color: var(--bp-primary);
    border-radius: 40px;
}

.btn-outline-secondary.border-2:hover {
    background-color: var(--bp-primary);
    color: white;
}

/* ---------- UTILIDADES ADICIONALES ---------- */
.bg-light-soft {
    background-color: #fefcf3;
}

.rounded-4 {
    border-radius: 28px !important;
}

.rounded-5 {
    border-radius: 36px !important;
}

/* efecto sutil al hacer scroll */
.modular-card-section {
    transition: opacity 0.5s ease;
}

/* Barra de navegación fija mantiene fondo legible */
body {
    padding-top: 0;
}

/* Ajuste para que el contenido no quede debajo del navbar fijo */
main {
    padding-top: 0.5rem;
}

@media (min-width: 992px) {
    body {
        padding-top: 0;
    }
    .navbar {
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }
}