/**
 * Estilos personalizados para el tema de Caval Studio Blog
 * Consistente con el sitio principal (base.html.twig y base.css)
 */

/* Variables CSS - Igual que en el sitio principal */
:root {
    --accent-color: #000000;
    --gray-custom: #1F1F1F;
    --gray-light: #EDEDED;
    --white: #ffffff;
    --black: #000000;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    color: var(--gray-custom);
    line-height: 1.6;
    background-color: var(--white);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header - Igual estructura que base.html.twig */
.site-header {
    background-color: var(--black);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 50;
    top: 0;
}

.header-container {
    max-width: 80rem; /* max-w-7xl */
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .header-container {
        padding: 0 2rem;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 2.5rem; /* h-10 */
    width: auto;
}

.main-navigation {
    display: none;
}

@media (min-width: 768px) {
    .main-navigation {
        display: flex;
        align-items: center;
        flex: 1;
        justify-content: center;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Menú móvil */
.mobile-menu-button {
    display: block;
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }
}

.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-items a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contenido principal */
.site-content {
    flex: 1;
    padding-top: 4rem; /* pt-16 */
}

.site-main {
    min-height: 500px;
}

/* Contenedores - Igual que en base.html.twig */
.max-w-7xl {
    max-width: 80rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .md\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Secciones - Igual estructura que desarrollo_web.html.twig */
.bg-white {
    background-color: var(--white);
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-black {
    background-color: var(--black);
}

.text-white {
    color: var(--white);
}

.text-gray-700 {
    color: #374151;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-500 {
    color: #6b7280;
}

.text-accent {
    color: var(--accent-color);
}

/* Espaciado */
.pt-24 {
    padding-top: 6rem;
}

.pb-10 {
    padding-bottom: 2.5rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .md\:pt-28 {
        padding-top: 7rem;
    }
    
    .md\:pb-16 {
        padding-bottom: 4rem;
    }
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-16 {
    margin-top: 4rem;
}

/* Tipografía */
.font-subtitle {
    font-family: 'Poppins', sans-serif;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

@media (min-width: 768px) {
    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
    
    .md\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
}

/* Layout */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.gap-8 {
    gap: 2rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-4 {
    gap: 1rem;
}

/* Componentes */
.rounded-xl {
    border-radius: 0.75rem;
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.border-b {
    border-bottom-width: 1px;
}

.border-gray-100 {
    border-color: #f3f4f6;
}

.overflow-hidden {
    overflow: hidden;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.hover\:translate-y-\[-4px\]:hover {
    transform: translateY(-4px);
}

.hover\:text-accent:hover {
    color: var(--accent-color);
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

.object-cover {
    object-fit: cover;
}

/* Estilos específicos del blog */
.w-full {
    width: 100%;
}

.h-48 {
    height: 12rem;
}

.h-56 {
    height: 14rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.mr-4 {
    margin-right: 1rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-16 {
    margin-top: 4rem;
}

.pt-12 {
    padding-top: 3rem;
}

.pt-32 {
    padding-top: 8rem;
}

.pb-16 {
    padding-bottom: 4rem;
}

.pb-20 {
    padding-bottom: 5rem;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumbs a {
    color: #6b7280;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--black);
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: #d1d5db;
}

.breadcrumbs .current {
    color: var(--black);
    font-weight: 500;
}

/* Artículos individuales */
.prose {
    max-width: 65ch;
}

.prose-lg {
    font-size: 1.125rem;
    line-height: 1.8;
}

.prose-black {
    color: var(--black);
}

.max-w-none {
    max-width: none;
}

.single-post-content h1 {
    font-size: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.2;
}

.single-post-content h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.3;
}

.single-post-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--black);
    line-height: 1.4;
}

.single-post-content h4 {
    font-size: 1.25rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--black);
}

.single-post-content p {
    margin-bottom: 1.5rem;
    color: var(--gray-custom);
    line-height: 1.8;
    font-size: 1.125rem;
}

.single-post-content ul, 
.single-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: var(--gray-custom);
}

.single-post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.single-post-content blockquote {
    border-left: 4px solid var(--black);
    padding-left: 2rem;
    padding-right: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-style: italic;
    margin: 2rem 0;
    background-color: #f9f9f9;
    color: var(--gray-custom);
    font-size: 1.25rem;
    line-height: 1.6;
}

.single-post-content img {
    margin: 2rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.single-post-content a {
    color: var(--black);
    text-decoration: underline;
    font-weight: 500;
}

.single-post-content a:hover {
    color: #374151;
}

.single-post-content strong {
    font-weight: 700;
    color: var(--black);
}

.single-post-content em {
    font-style: italic;
    color: #374151;
}

.single-post-content code {
    background-color: #f3f4f6;
    color: var(--black);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.single-post-content pre {
    background-color: var(--black);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.single-post-content pre code {
    background-color: transparent;
    color: var(--white);
    padding: 0;
}

/* Compartir en redes sociales */
.social-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.social-share-title {
    font-weight: 600;
    margin-right: 1rem;
}

.social-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background-color: #f3f4f6;
    color: #333;
    transition: all 0.3s ease;
}

.social-share a:hover {
    background-color: var(--black);
    color: var(--white);
}

/* Footer - Igual estructura que base.html.twig */
.site-footer {
    background-color: var(--black);
    color: #9ca3af;
    padding: 2rem 0;
}

.footer-content {
    max-width: 80rem; /* max-w-7xl */
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .footer-content {
        padding: 0 2rem;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-separator {
    margin: 0 0.75rem;
    color: #6b7280;
}

.footer-bottom p {
    font-size: 0.875rem;
    margin: 0;
}

/* Navegación entre posts */
.post-navigation {
    margin: 2rem 0;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.nav-previous a,
.nav-next a {
    color: inherit;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 767px) {
    .max-w-3xl {
        max-width: 100%;
    }
    
    .text-4xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    
    .px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-16 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* WordPress específico */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Formularios */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
}

button,
input[type="button"],
input[type="submit"] {
    background-color: var(--black);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    background-color: #374151;
}

/* Botón Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--black);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #374151;
    transform: translateY(-2px);
}

/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Lazy loading para imágenes */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy.loaded {
    opacity: 1;
}

/* Mejoras para la navegación móvil */
@media (max-width: 767px) {
    .mobile-menu {
        background-color: var(--black);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-menu-items {
        padding: 1rem 0;
    }
    
    .mobile-menu-items a {
        padding: 1rem;
        font-size: 1rem;
        font-weight: 500;
    }
    
    .mobile-menu-items a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* Mejoras para la accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Mejoras para los iconos SVG */
.w-4 {
    width: 1rem;
    height: 1rem;
}

.w-5 {
    width: 1.25rem;
    height: 1.25rem;
}

.h-4 {
    height: 1rem;
}

.h-5 {
    height: 1.25rem;
}

/* Mejoras para el contenido del blog */
.post-content img {
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.post-meta svg {
    flex-shrink: 0;
}

/* Mejoras para el hero section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);
    transform: skewX(-15deg);
    pointer-events: none;
}

/* Mejoras para las categorías */
.category-badge {
    display: inline-block;
    background-color: var(--black);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.category-badge:hover {
    background-color: #374151;
    color: var(--white);
}

/* Estilos para el hero del blog */
.hero-section {
    background: linear-gradient(135deg, var(--white) 0%, #f9f9f9 100%);
    position: relative;
    padding: 6rem 0 4rem;
    text-align: center;
}

.hero-content {
    max-width: 48rem;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--black);
    color: var(--white);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-title-accent {
    color: var(--black);
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 0.2em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    background-color: var(--black);
    color: var(--white);
    padding: 1rem 2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background-color: #374151;
    transform: translateY(-2px);
}

/* Secciones */
.categories-section {
    background-color: var(--white);
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 36rem;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    background-color: var(--white);
    border: 2px solid #f3f4f6;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--black);
    transform: translateY(-4px);
}

.category-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
}

.category-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.category-link {
    display: inline-flex;
    align-items: center;
    color: var(--black);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #374151;
}

/* Grid de artículos */
.articles-section {
    background-color: var(--white);
    padding: 5rem 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background-color: var(--white);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-card:hover {
    border-color: var(--black);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.article-image {
    position: relative;
    overflow: hidden;
}

.article-img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.article-content {
    padding: 1.5rem;
}

.article-category {
    margin-bottom: 1rem;
}

.article-title {
    margin-bottom: 1rem;
}

.article-title a {
    color: var(--black);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
}

.article-title a:hover {
    color: #374151;
}

.article-excerpt {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.meta-item {
    display: flex;
    align-items: center;
}

.article-footer {
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    color: var(--black);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: #374151;
}

/* Estados de carga */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos adicionales para la página de inicio mejorada */

/* Gradientes y efectos especiales */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-l {
    background-image: linear-gradient(to left, var(--tw-gradient-stops));
}

.bg-gradient-to-t {
    background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-black {
    --tw-gradient-from: #000000;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.via-gray-900 {
    --tw-gradient-stops: var(--tw-gradient-from), #111827, var(--tw-gradient-to, rgba(17, 24, 39, 0));
}

.to-black {
    --tw-gradient-to: #000000;
}

.to-transparent {
    --tw-gradient-to: transparent;
}

.from-black\/20 {
    --tw-gradient-from: rgba(0, 0, 0, 0.2);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.from-white\/10 {
    --tw-gradient-from: rgba(255, 255, 255, 0.1);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(255, 255, 255, 0));
}

/* Colores para categorías - Esquema monocromático */
.category-dark {
    color: var(--black);
}

.category-gray {
    color: #374151;
}

.category-light {
    color: #6b7280;
}

/* Efectos de texto con gradiente */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.text-transparent {
    color: transparent;
}

/* Backdrop blur */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* Colores con opacidad */
.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.border-white\/20 {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Transformaciones adicionales */
.skew-x-12 {
    transform: skewX(12deg);
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.group-hover\:translate-x-1 {
    transform: translateX(0.25rem);
}

/* Efectos hover adicionales */
.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* Sombras adicionales */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover\:shadow-2xl:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Bordes redondeados adicionales */
.rounded-2xl {
    border-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

/* Espaciado adicional */
.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.625;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

/* Altura específica para imágenes */
.h-56 {
    height: 14rem;
}

/* Line clamp para texto */
.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Posicionamiento adicional */
.translate-x-32 {
    transform: translateX(8rem);
}

.-translate-y-32 {
    transform: translateY(-8rem);
}

.translate-y-24 {
    transform: translateY(6rem);
}

.-translate-x-24 {
    transform: translateX(-6rem);
}

/* Tamaños específicos */
.w-64 {
    width: 16rem;
}

.h-64 {
    height: 16rem;
}

.w-48 {
    width: 12rem;
}

.h-48 {
    height: 12rem;
}

/* Mejoras para responsive */
@media (min-width: 768px) {
    .md\:text-7xl {
        font-size: 4.5rem;
        line-height: 1;
    }
    
    .md\:pt-32 {
        padding-top: 8rem;
    }
    
    .md\:pb-20 {
        padding-bottom: 5rem;
    }
    
    .md\:p-16 {
        padding: 4rem;
    }
}

/* Animaciones mejoradas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Mejoras para el newsletter */
.newsletter-form input:focus {
    outline: none;
    border: 2px solid var(--black);
    border-color: var(--black);
}

/* Mejoras para botones */
.btn-primary {
    background: var(--black);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: #374151;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Mejoras para las tarjetas de artículos */
.article-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.article-card img {
    transition: transform 0.5s ease;
}

.article-card:hover img {
    transform: scale(1.1);
}

/* Mejoras para las categorías */
.category-card {
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.category-card:hover::before {
    left: 100%;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Mejoras para dispositivos móviles */
@media (max-width: 767px) {
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        line-height: 1.6;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
} 