body {
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

/* 🔹 Menú móvil: cerrado / abierto */
#mobileMenu {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobileMenu.menu-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Icono hamburguesa animado */
.rotate-45 {
    transform: rotate(45deg) translateY(0.5rem);
}

.-rotate-45 {
    transform: rotate(-45deg) translateY(-0.5rem);
}

/* Tarjetas de categoría */
.category-card {
    position: relative;
    height: 260px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

/* Estilos de artículo */
.article-content h2 {
    font-size: 2rem;
    font-weight: 300;
    color: #3D3D3D;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #E8E3DA;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #3D3D3D;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article-content h3::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 1.5rem;
    background-color: #8B9A7A;
    border-radius: 2px;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.9;
    color: #4B5563;
    font-size: 1.0625rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 2rem;
    padding-left: 0;
    list-style: none;
}

.article-content ul li {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #4B5563;
    padding-left: 2rem;
    position: relative;
}

.article-content ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #8B9A7A;
    font-weight: 600;
}

.article-content ol {
    counter-reset: item;
    padding-left: 0;
}

.article-content ol li {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #4B5563;
    padding-left: 2.5rem;
    position: relative;
    counter-increment: item;
}

.article-content ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    background-color: #8B9A7A;
    color: white;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.article-content strong {
    color: #3D3D3D;
    font-weight: 600;
}

/* Cajas de cita / info / aviso */
.quote-box {
    border-left: 4px solid #8B9A7A;
    background: linear-gradient(to right, rgba(139, 154, 122, 0.08), transparent);
    padding: 2rem;
    margin: 3rem 0;
    font-style: italic;
    color: #4B5563;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.quote-box::before {
    content: "“";
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-size: 4rem;
    color: #8B9A7A;
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-box p {
    font-size: 1.125rem;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.info-box {
    background: linear-gradient(135deg, #F0F4F8 0%, #E8EDF2 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2.5rem 0;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.info-box::before {
    content: "💡";
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.warning-box {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-left: 4px solid #F59E0B;
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.warning-box::before {
    content: "⚠️";
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.warning-box p:last-child {
    margin-bottom: 0;
}

.highlight-section {
    background: linear-gradient(135deg, rgba(139, 154, 122, 0.05) 0%, rgba(139, 154, 122, 0.1) 100%);
    padding: 2.5rem;
    border-radius: 12px;
    margin: 3rem 0;
    border: 1px solid rgba(139, 154, 122, 0.2);
}

.numbered-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
    border-left: 4px solid #8B9A7A;
    transition: transform 0.2s, box-shadow 0.2s;
}

.numbered-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.intro-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #374151;
    padding: 2rem;
    background: linear-gradient(to bottom, #F9FAFB, transparent);
    border-radius: 12px;
    margin-bottom: 3rem;
}
