/* BOTONES */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.9rem 1.55rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-secondary {
    background: var(--color-secondary);
    color: #1f2b22;
}

.btn-secondary:hover {
    background: var(--color-secondary-hover);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.04);
}

.topbar {
    background: #0A3D2C;
    color: white;
    font-size: 0.8rem;
}

.topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.45rem;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 88px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.brand-logo-wrap {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    flex-shrink: 0;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.brand-text strong {
    font-size: 1rem;
    color: var(--color-text);
}

.brand-text small {
    color: var(--color-text-muted);
    font-size: 0.72rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(0.7rem, 1.4vw, 1.4rem);
}

.nav-links > a:not(.btn) {
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    color: var(--color-text);
}

.nav-links > a:not(.btn):hover {
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
}

/* TARJETAS DE PROGRAMAS */

.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.program-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.program-card-image {
    position: relative;
    height: 210px;
    background: linear-gradient(135deg, #E9F7EE, #F9FBFA);
    overflow: hidden;
}

.program-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.program-card:hover img {
    transform: scale(1.06);
}

.program-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-primary-dark);
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.program-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.45rem;
    min-height: 235px;
}

.program-card-body h3 {
    margin: 0;
    font-size: 1.08rem;
    color: var(--color-text);
}

.program-card-body p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

.program-card-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    margin-top: auto;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 700;
}

/* FOOTER */

.footer {
    background: #0D1F18;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 3rem;
    padding-block: 4rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-brand-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.footer-column h3 {
    margin: 0 0 0.5rem;
    font-size: 1.08rem;
}

.footer-column p,
.footer-column a {
    margin: 0;
    color: #D5DFD9;
    font-size: 0.92rem;
    line-height: 1.7;
}

.footer-column a:hover {
    color: var(--color-secondary);
}

.footer-description {
    max-width: 380px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.2rem;
}

.footer-bottom p,
.footer-bottom a {
    margin: 0;
    color: #D5DFD9;
    font-size: 0.82rem;
}