/**
 * SISTEMA DE NAVEGACIÓN INTERNA MEJORADA - OutBoxFactory
 * Objetivo: Aumentar páginas/usuario de 1.63 a 3+
 */

/* ==========================================================================
   1. BREADCRUMBS (Migas de pan)
   ========================================================================== */

.obf-breadcrumbs {
    background: #f8f9fa;
    padding: 12px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.obf-breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.obf-breadcrumbs li {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #6c757d;
}

.obf-breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin: 0 8px;
    color: #adb5bd;
    font-size: 16px;
}

.obf-breadcrumbs a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.obf-breadcrumbs a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.obf-breadcrumbs li.active {
    color: #495057;
    font-weight: 500;
}

/* Schema.org markup - oculto visualmente pero accesible */
.obf-breadcrumbs [itemscope] {
    display: contents;
}


/* ==========================================================================
   2. SERVICIOS RELACIONADOS
   ========================================================================== */

.related-services {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    margin: 80px 0 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.related-services h3 {
    text-align: center;
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.service-card:hover .icon {
    transform: rotate(360deg);
}

.service-card h4 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-card .btn-service {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.service-card .btn-service:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #ffffff;
    text-decoration: none;
}


/* ==========================================================================
   3. TAMBIÉN TE PUEDE INTERESAR (Sidebar)
   ========================================================================== */

.you-might-like {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 4px solid #007bff;
}

.you-might-like h4 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.you-might-like h4::before {
    content: "💡";
    margin-right: 10px;
    font-size: 24px;
}

.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.quick-links li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.quick-links li:hover::before {
    transform: translateX(5px);
}

.quick-links a {
    color: #495057;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
    display: block;
}

.quick-links a:hover {
    color: #007bff;
    padding-left: 5px;
}


/* ==========================================================================
   4. SIDEBAR DE NAVEGACIÓN RÁPIDA
   ========================================================================== */

.quick-nav-sidebar {
    background: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 80px;
}

.quick-nav-sidebar h4 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.quick-nav-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.quick-nav-sidebar ul li {
    margin-bottom: 10px;
}

.quick-nav-sidebar ul a {
    color: #495057;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.quick-nav-sidebar ul a:hover {
    background: #f8f9fa;
    color: #007bff;
    transform: translateX(5px);
}

.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #ffffff;
}

.cta-box h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.cta-box .btn {
    display: inline-block;
    padding: 10px 25px;
    background: #ffffff;
    color: #667eea;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-box .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}


/* ==========================================================================
   5. CTAs ESTRATÉGICOS
   ========================================================================== */

/* CTA Banner Horizontal */
.cta-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 40px;
    margin: 60px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    flex-wrap: wrap;
    gap: 20px;
}

.cta-banner.cta-primary {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);
}

.cta-content h3 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0;
}

.cta-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-banner .btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.cta-banner .btn-outline {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.cta-banner .btn-outline:hover {
    background: #ffffff;
    color: #667eea;
}

.cta-banner .btn-solid {
    background: #ffffff;
    color: #667eea;
    border: 2px solid #ffffff;
}

.cta-banner .btn-solid:hover {
    background: transparent;
    color: #ffffff;
}

/* CTA Cards Grid */
.service-cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 50px 0;
}

.service-cta-card {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-cta-card:hover {
    border-color: #007bff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.1);
}

.service-cta-card i {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 15px;
    display: block;
}

.service-cta-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.service-cta-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.service-cta-card a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.service-cta-card a:hover {
    color: #0056b3;
    transform: translateX(5px);
}

/* CTA Flotante Sticky */
.cta-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: bounce 2s infinite;
}

.cta-floating-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
}

.cta-floating-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.cta-floating-btn .cta-subtitle {
    font-size: 12px;
    font-weight: 400;
    margin-top: 5px;
    opacity: 0.9;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Cerrar CTA flotante */
.cta-floating .close-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}


/* ==========================================================================
   6. FOOTER MEJORADO
   ========================================================================== */

.obf-footer-enhanced {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-columns .col h5 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.footer-columns ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-columns ul li {
    margin-bottom: 10px;
}

.footer-columns ul a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-columns ul a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.cta-col {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.btn-footer-cta {
    display: inline-block;
    padding: 12px 30px;
    background: #ffffff;
    color: #667eea;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.btn-footer-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.footer-promo {
    margin-top: 15px;
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 14px;
}


/* ==========================================================================
   7. RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .cta-content h3 {
        font-size: 24px;
    }

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

    .services-grid,
    .service-cta-grid {
        grid-template-columns: 1fr;
    }

    .cta-floating {
        bottom: 20px;
        right: 20px;
    }

    .cta-floating-btn {
        min-width: auto;
        padding: 12px 20px;
        font-size: 14px;
    }

    .quick-nav-sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .related-services h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .obf-breadcrumbs li {
        font-size: 12px;
    }

    .service-card {
        padding: 20px;
    }

    .related-services {
        padding: 40px 15px;
    }
}


/* ==========================================================================
   8. UTILIDADES
   ========================================================================== */

/* Badge de "Nuevo" o "Popular" */
.badge-new,
.badge-popular {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 8px;
}

.badge-new {
    background: #28a745;
    color: #ffffff;
}

.badge-popular {
    background: #ffc107;
    color: #000000;
}

/* Highlight para enlaces importantes */
.link-highlight {
    position: relative;
    display: inline-block;
}

.link-highlight::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.link-highlight:hover::after {
    transform: scaleX(1);
}

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

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