/* Custom Styles for ViajesOrganizados.net - High Converting Affiliate UI & SEO */

:root {
    --color-logitravel: #0066cc;
    --color-logitravel-hover: #004e9e;
    --color-carrefour: #e2001a;
    --color-carrefour-accent: #ff9900;
    --color-carrefour-hover: #b80015;
    --color-bg-light: #f8fafc;
    --color-text-dark: #1e293b;
    --color-text-muted: #64748b;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.15);
}

/* Affiliate Comparison Container */
.affiliate-comparison-wrapper {
    margin: 35px 0;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.affiliate-comparison-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

.affiliate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 15px;
}

/* Individual Affiliate Card */
.affiliate-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 24px;
    border: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.affiliate-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.affiliate-card.logitravel {
    border-top: 5px solid var(--color-logitravel);
}

.affiliate-card.carrefour {
    border-top: 5px solid var(--color-carrefour);
}

.affiliate-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.badge-blue {
    background: #e0f2fe;
    color: #0369a1;
}

.badge-orange {
    background: #fff7ed;
    color: #c2410c;
}

.badge-green {
    background: #dcfce7;
    color: #15803d;
}

.affiliate-card-header {
    margin-bottom: 15px;
}

.affiliate-card-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.35rem;
    color: var(--color-text-dark);
}

.affiliate-features {
    list-style: none;
    padding: 0;
    margin: 15px 0 24px 0;
}

.affiliate-features li {
    padding: 6px 0;
    font-size: 0.95rem;
    color: #334155;
    display: flex;
    align-items: center;
}

.affiliate-features li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Call To Action Buttons */
.btn-affiliate {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-logitravel {
    background-color: var(--color-logitravel);
    color: #ffffff !important;
}

.btn-logitravel:hover {
    background-color: var(--color-logitravel-hover);
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(0, 102, 204, 0.35);
}

.btn-carrefour {
    background-color: var(--color-carrefour);
    color: #ffffff !important;
}

.btn-carrefour:hover {
    background-color: var(--color-carrefour-hover);
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(226, 0, 26, 0.35);
}

.btn-secondary-outline {
    background: transparent;
    border: 2px solid var(--color-logitravel);
    color: var(--color-logitravel) !important;
    margin-top: 10px;
}

.btn-secondary-outline:hover {
    background: var(--color-logitravel);
    color: #ffffff !important;
}

/* Continuar leyendo Button Styling */
.p-summary a.btn-read-more,
.e-content a.btn-read-more,
a.btn-read-more {
    display: inline-block !important;
    background-color: #0066cc !important;
    color: #ffffff !important;
    padding: 10px 22px !important;
    font-size: 14px !important;
    font-weight: bold !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    box-shadow: 0 3px 8px rgba(0, 102, 204, 0.3) !important;
    transition: all 0.2s ease !important;
    margin-top: 10px !important;
}

.p-summary a.btn-read-more:hover,
.e-content a.btn-read-more:hover,
a.btn-read-more:hover {
    background-color: #004e9e !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0, 102, 204, 0.45) !important;
}

/* Comparison Table Styling */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 0.95rem;
}

.comparison-table th {
    background-color: #1e293b;
    color: #ffffff;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.comparison-table tr:hover {
    background-color: #f1f5f9;
}

/* Highlights & Trust Elements */
.trust-banner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    background: #f1f5f9;
    padding: 16px;
    border-radius: 8px;
    margin: 25px 0;
    gap: 15px;
}

.trust-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.trust-item i {
    font-size: 1.2rem;
    margin-right: 8px;
    color: #2563eb;
}

/* Responsive fixes */
@media (max-width: 640px) {
    .affiliate-grid {
        grid-template-columns: 1fr;
    }
    .affiliate-comparison-wrapper {
        padding: 16px;
    }
    .trust-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Mobile Floating Sticky CTA */
.mobile-sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.15);
        padding: 10px 12px;
        z-index: 9999;
        gap: 10px;
        backdrop-filter: blur(6px);
        align-items: center;
        justify-content: space-around;
        border-top: 1px solid #e2e8f0;
    }
    .mobile-sticky-cta a {
        flex: 1;
        text-align: center;
        padding: 10px 6px;
        border-radius: 6px;
        font-weight: bold;
        font-size: 0.85rem;
        text-decoration: none !important;
        white-space: nowrap;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
}
