/* ============================================
   NovaHost - Components CSS
   Tabs, Diferenciadores, CTA Banner, Hero Badges
   ============================================ */

/* SKIP LINK - WCAG 2.4.1 Bypass Blocks */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 2000;
    padding: 0.75rem 1.25rem;
    background: var(--color-navy);
    color: white;
    font-weight: 600;
    border-radius: 0 0 var(--radius-control) var(--radius-control);
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--color-cyan);
    outline-offset: 2px;
}

/* BREADCRUMB - posts del blog, sobre el hero oscuro */
.breadcrumb {
    text-align: left;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.65);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

/* solo los separadores: el ultimo span es el titulo de la pagina actual */
.breadcrumb span[aria-hidden] {
    margin: 0 0.4rem;
    color: rgba(255, 255, 255, 0.35);
}

/* HERO ILLUSTRATION */
.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    height: 400px;
}

.hero-illustration img,
.hero-illustration svg {
    width: 380px;
    height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

.hero-illustration .hero-logo {
    width: 380px;
    height: auto;
    opacity: 0.85;
    filter: brightness(0) invert(1) drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

/* Logos que ya son a COLOR (p. ej. IOMAD, cuyo logo es una pirámide de colores):
   el brightness(0) invert(1) de arriba los aplasta a una silueta blanca ilegible.
   Esta variante conserva sus colores propios sobre el hero oscuro; sólo la sombra. */
.hero-illustration .hero-logo.hero-logo--color {
    opacity: 1;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.35));
}

.logo-max-360 {
    max-width: 360px;
}

.is-hidden {
    display: none;
}













/* HERO PLATFORM LOGOS */
.hero-content .platform-logos {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    min-height: auto;
    justify-content: center;
}

.hero-content .platform-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 56px;
    transition: opacity 0.3s;
}

.hero-content .platform-logos img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.6;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s;
}

.hero-content .platform-logos a:hover img {
    opacity: 1;
}





/* HERO SPLIT LAYOUT */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 400px;
}

.hero-content .hero-desc {
    color: rgba(255,255,255,0.75);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
}











/* TABS SYSTEM */


.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    border-bottom: 2px solid var(--color-gray-200);
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gray-500);
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--color-navy);
}

.tab-btn.active {
    color: var(--color-cyan);
    border-bottom-color: var(--color-cyan);
}

.tab-panel {
    display: none;
    animation: fadeInTab 0.4s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logo de cada tab */
.tab-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 300px;
}

.tab-logo img {
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: contain;
}

/* 2-column layout: text left, logo right */
.tab-content-single {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    text-align: left;
}

.tab-text {
    min-width: 0;
}

.tab-content-single h3 {
    font-size: 32px;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.tab-content-single p {
    color: var(--color-gray-600);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.tab-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.tab-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tab-content-single .btn {
    display: inline-flex;
    clear: both;
}

.tab-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-gray-700);
    font-size: 16px;
    line-height: 1.5;
}

.tab-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 8px;
    height: 8px;
    background: var(--color-cyan);
    border-radius: var(--radius-circle);
}

/* DIFFERENTIATORS */
.diferenciadores {
    background: var(--color-gray-50);
}

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

.diferenciador-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-flat);
    border: 1px solid var(--color-gray-200);
    text-align: center;
    transition: all 0.3s;
}

.diferenciador-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.diferenciador-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.1), rgba(30, 58, 95, 0.1));
    border-radius: var(--radius-box);
    display: flex;
    align-items: center;
    justify-content: center;
}

.diferenciador-icon svg {
    width: 30px;
    height: 30px;
    display: block;
    color: var(--color-cyan);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
}

.diferenciador-icon svg * {
    vector-effect: non-scaling-stroke;
}

.diferenciador-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.75rem;
}

.diferenciador-card p {
    font-size: 0.9rem;
    color: var(--color-gray-600);
    line-height: 1.6;
}

/* CTA BANNER */
.cta-banner {
    background: linear-gradient(135deg, var(--color-navy) 0%, #0a2240 100%);
    padding: 3.5rem 0;
    text-align: center;
    color: white;
}

.cta-banner h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.cta-banner p {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner .btn {
    font-size: 1rem;
    padding: 0.85rem 2rem;
}

/* EXPERT CARDS 3-col */
/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--color-navy);
    border-top: 2px solid rgba(8,145,178,0.4);
    padding: 1rem 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 260px;
}

.cookie-banner-text p {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-text a {
    color: var(--color-cyan);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-sm {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    min-height: 44px;
}

/* CTA SECTION */
.cta-section {
    padding: 5rem 0;
    background: white;
    text-align: center;
}

.cta-section > .container > h2 {
    color: var(--color-navy);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.cta-section > .container > p {
    color: var(--color-gray-600);
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto 2rem;
}

/* SECTION CENTERED HEADER */
.section-centered { text-align: center; }
.section-centered h2 { margin-bottom: 0.5rem; }
.section-centered .section-subtitle { margin-bottom: 2.5rem; }

/* CENTERED CTA */
.cta-centered { text-align: center; }
.cta-centered h2 { font-size: 2.2rem; font-weight: 800; color: var(--color-navy); margin-bottom: 0.75rem; }
.cta-centered p { font-size: 1.1rem; color: var(--color-gray-600); margin-bottom: 2rem; max-width: 550px; margin-left: auto; margin-right: auto; }

/* FEATURE SECTION UTILITIES */
.feature-section-pad { padding: 4rem 0; }
.section-max-650 { max-width: 650px; margin: 0.5rem auto 0; }
.faq-section-light { background: var(--color-gray-50); }

/* RESPONSIVE */
