/* Navegación */
.nav-container {
    position: static;
}

/* Mega Menu */
.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    padding-top: 1rem;
    z-index: 50;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 700px;
}

.mega-menu-inner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: #151c27;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.group:hover .mega-menu {
    display: block;
}

/* Animaciones */
@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.animate-float {
    animation: float 15s ease-in-out infinite;
}

/* Header */
.backdrop-blur-header {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Nuevas animaciones para los servicios */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
}

/* Efecto de brillo en hover */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(157, 203, 0, 0.1) 50%,
        transparent 100%
    );
    transition: opacity 0.5s ease;
}

.service-card:hover::after {
    opacity: 1;
}

/* Animación para los elementos flotantes */
@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

[data-scroll-animation] {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-element {
    animation: floatAnimation 15s infinite ease-in-out;
}

/* ===== ESTILOS PARA EL BLOG ===== */

/* Contenedor principal del contenido del post */
.prose {
    color: #374151;
    line-height: 1.75;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: #1a202c;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h1 {
    font-size: 2.25rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.prose h2 {
    font-size: 1.875rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.prose h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h4 {
    font-size: 1.25rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.prose h5 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.prose h6 {
    font-size: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Párrafos */
.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

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

/* Listas */
.prose ul,
.prose ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.prose ul li {
    list-style-type: disc;
}

.prose ol li {
    list-style-type: decimal;
}

.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Enlaces */
.prose a {
    color: #059669;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.prose a:hover {
    color: #047857;
    text-decoration-thickness: 3px;
}

/* Bloques de código */
.prose pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    border: 1px solid #374151;
}

.prose code {
    background-color: #f3f4f6;
    color: #dc2626;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.prose pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

/* Citas */
.prose blockquote {
    border-left: 4px solid #059669;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4b5563;
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.prose blockquote p {
    margin-bottom: 0.5rem;
}

.prose blockquote p:last-child {
    margin-bottom: 0;
}

.prose blockquote cite {
    font-style: normal;
    font-weight: 600;
    color: #374151;
}

/* Imágenes */
.prose img {
    border-radius: 0.75rem;
    margin: 2rem 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.prose img:hover {
    transform: scale(1.02);
}

.prose figure {
    margin: 2rem 0;
}

.prose figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Tablas */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.875rem;
}

.prose th,
.prose td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}

.prose th {
    background-color: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.prose tr:nth-child(even) {
    background-color: #f9fafb;
}

.prose tr:hover {
    background-color: #f3f4f6;
}

/* Separadores horizontales */
.prose hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 3rem 0;
}

/* Listas de definición */
.prose dl {
    margin: 2rem 0;
}

.prose dt {
    font-weight: 600;
    color: #374151;
    margin-top: 1rem;
}

.prose dd {
    margin-left: 1rem;
    margin-bottom: 0.5rem;
    color: #6b7280;
}

/* Cajas de información */
.prose .info-box {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.prose .warning-box {
    background-color: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.prose .error-box {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.prose .success-box {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

/* Etiquetas y badges */
.prose .tag {
    display: inline-block;
    background-color: #059669;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0.25rem;
}

.prose .badge {
    display: inline-block;
    background-color: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #d1d5db;
}

/* Botones en el contenido */
.prose .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #059669;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.prose .btn:hover {
    background-color: #047857;
    transform: translateY(-1px);
}

.prose .btn-secondary {
    background-color: #6b7280;
}

.prose .btn-secondary:hover {
    background-color: #4b5563;
}

/* Responsive para el contenido */
@media (max-width: 768px) {
    .prose h1 {
        font-size: 1.875rem;
    }
    
    .prose h2 {
        font-size: 1.5rem;
    }
    
    .prose h3 {
        font-size: 1.25rem;
    }
    
    .prose pre {
        padding: 1rem;
        font-size: 0.75rem;
    }
    
    .prose blockquote {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .prose img {
        margin: 1.5rem 0;
    }
}

/* Estilos para el contenido específico del single.php */
.single-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.single-post-content h1,
.single-post-content h2,
.single-post-content h3,
.single-post-content h4,
.single-post-content h5,
.single-post-content h6 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.single-post-content p {
    margin-bottom: 1.75rem;
}

.single-post-content ul,
.single-post-content ol {
    margin-bottom: 1.75rem;
}

.single-post-content li {
    margin-bottom: 0.75rem;
}

/* Estilos para elementos específicos del blog */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border-left: 4px solid #059669;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.blog-meta-item svg {
    width: 1rem;
    height: 1rem;
    color: #059669;
}

/* Estilos para el contenido destacado */
.featured-content {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
}

.featured-content::before {
    content: "⭐";
    position: absolute;
    top: -10px;
    left: 20px;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    border: 1px solid #bbf7d0;
}

/* Estilos para listas de verificación */
.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #059669;
    font-weight: bold;
    font-size: 1.1em;
}

/* Estilos para código inline mejorado */
.code-inline {
    background-color: #f3f4f6;
    color: #dc2626;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875em;
    border: 1px solid #e5e7eb;
}
