/** 
 * HORKIA - Ultra Premium CSS Framework 
 * NY Agency Aesthetic | Dark Theme 
 */
:root {
    --bg-base: #030712; /* Extreme dark for OLED contrast */
    --bg-panel: rgba(15, 23, 42, 0.4);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.05);
    
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    --accent: #F97316; /* Electric Amber */
    --accent-glow: rgba(249, 115, 22, 0.2);
    --accent-gradient: linear-gradient(135deg, #F59E0B, #EA580C);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Mastery */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.12; letter-spacing: 0; }
h1 { font-size: clamp(2.4rem, 4.4vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
p { font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 1.5rem; }

/* Utilities */
.container { max-width: 1400px; margin: 0 auto; padding: 0 5%; }
.text-gradient { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Imágenes flotantes en artículos del blog */
.blog-image-float {
    max-width: 420px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin: 0.5rem 0 1rem 0;
}

.blog-image-float.left {
    float: left;
    margin-right: 1.5rem;
}

.blog-image-float.right {
    float: right;
    margin-left: 1.5rem;
}

.blog-image-float img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.blog-image-caption {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Clearfix para contenedores con imágenes flotantes */
.blog-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive: imágenes flotantes se apilan en móvil */
/* Responsive: Blog styles for mobile */
@media (max-width: 768px) {
    .blog-hero {
        min-height: 50vh;
        padding-top: 1rem;
        overflow-x: hidden;
    }
    
    .blog-hero-title {
        font-size: clamp(1.5rem, 5.5vw, 2rem);
        line-height: 1.2;
        text-align: left;
        word-wrap: break-word;
        max-width: 100%;
    }
    
    .blog-hero-intro {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-top: 1rem;
        word-wrap: break-word;
    }
    
    .blog-content-wrapper {
        padding: 0 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .blog-heading {
        font-size: clamp(1.1rem, 4.5vw, 1.5rem);
        margin-top: 2rem;
        margin-bottom: 1rem;
        word-wrap: break-word;
    }
    
    .blog-intro {
        font-size: 0.95rem;
        word-wrap: break-word;
    }
    
    .blog-text {
        font-size: 0.9rem;
        line-height: 1.6;
        word-wrap: break-word;
    }
    
    .blog-image-float {
        max-width: 100%;
        float: none !important;
        margin: 1rem 0 !important;
    }
    
    .blog-image-float img {
        max-width: 100%;
        height: auto;
    }
    
    .blog-highlight-box {
        padding: 1rem;
        margin: 1.5rem 0;
        word-wrap: break-word;
    }
    
    .blog-cta-box {
        padding: 1.5rem;
        margin-top: 2rem;
        word-wrap: break-word;
    }
    
    .blog-list {
        padding-left: 1.5rem;
    }
    
    .blog-list li {
        margin-bottom: 0.5rem;
        word-wrap: break-word;
    }
}

/* Iconos SVG profesionales en naranja */
.icon-orange {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  fill: var(--accent);
  margin-right: 0.3em;
}

.icon-lg {
  width: 3rem;
  height: 3rem;
}

.icon-xl {
  width: 5rem;
  height: 5rem;
}
.center-text { text-align: center; }

/* Cinematic Backgrounds */
.bg-image {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}
.bg-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(3,7,18,0.5) 0%, var(--bg-base) 100%);
    z-index: 1;
}

.hero {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px; /* Espacio para el navbar fijo */
}

/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    display: flex;
    align-items: center;
    z-index: 2;
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative; /* El slide activo dicta la altura */
    z-index: 3;
}

/* Hero Slider Compact - Dos columnas */
.hero-slide .hero-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.hero-slide .left-col {
    grid-column: 1;
}

.hero-slide .left-col h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-slide .left-col .badge {
    justify-self: start;
    margin-bottom: 1rem;
}

.hero-slide .left-col .subtitle {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.hero-slide .hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Segunda columna - contenido adicional o imagen */
.hero-slide .hero-visual {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive: una columna en móvil */
@media (max-width: 768px) {
    .hero-slide .hero-text {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .hero-slide .left-col {
        grid-column: 1;
    }
    
    .hero-slide .left-col .badge {
        justify-self: center;
    }
    
    .hero-slide .hero-actions {
        justify-content: center;
    }
    
    .hero-slide .hero-visual {
        display: none; /* Ocultar segunda columna en móvil */
    }
}
.hero-content {
    position: relative;
    z-index: 5;
    width: 100%;
}

/* Tech Stack Section */
.tech-stack { padding: 4rem 0; background: rgba(255,255,255,0.01); }
.tech-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); 
    gap: 3rem; 
    align-items: center; 
    justify-items: center; 
    margin-top: 3rem;
    opacity: 0.7;
}
.tech-logo { height: 40px; filter: grayscale(1) brightness(2); transition: all 0.3s; }
.tech-logo:hover { filter: grayscale(0) brightness(1); transform: scale(1.1); }

/* Logo Carousel Infinite Scroll */
.logo-carousel {
    overflow: hidden;
    padding: 3rem 0;
    background: rgba(255,255,255,0.015);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    position: relative;
}
.logo-track {
    display: flex;
    width: calc(300px * 18);
    animation: scroll 40s linear infinite;
}

@media (max-width: 900px) {
    .logo-track {
        width: calc(200px * 18);
        animation: scroll 25s linear infinite;
    }
    .logo-item {
        width: 200px;
        padding: 0 20px;
    }
    .logo-item span {
        white-space: normal;
        font-size: 1rem;
    }
}
.logo-item {
    width: 300px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}
.logo-item img {
    max-height: 50px;
    max-width: 200px;
    filter: grayscale(1) brightness(1.5);
    opacity: 0.6;
    transition: all 0.3s;
}
.logo-item:hover img { filter: grayscale(0) brightness(1); opacity: 1; }
.logo-item span {
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    opacity: 0.5;
    white-space: normal;
    transition: opacity 0.3s;
}
.logo-item:hover span { opacity: 1; color: var(--accent); }

/* RGPD & Cookies */
.checkbox-group { display: flex; align-items: flex-start; gap: 0.8rem; margin: 0.5rem 0; cursor: pointer; }
.checkbox-group input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); cursor: pointer; }
.checkbox-group label { font-size: 0.85rem !important; color: var(--text-secondary) !important; line-height: 1.4; cursor: pointer; }
.checkbox-group a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.checkbox-group a:hover { border-color: var(--accent); }

.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 600px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2rem;
    z-index: 10000;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}
.cookie-banner.show { transform: translateX(-50%) translateY(0); }
.cookie-content .cookie-title { margin-bottom: 0.8rem; font-family: var(--font-heading); color: #fff; font-weight: 700; }
.cookie-content p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.5; }
.cookie-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.cookie-details { display: none; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-glass); font-size: 0.8rem; color: var(--text-secondary); }
.cookie-details.active { display: block; }
.cookie-details table { width: 100%; text-align: left; border-collapse: collapse; }
.cookie-details th, .cookie-details td { padding: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.05); }

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}
.back-to-top svg { width: 24px; height: 24px; transition: transform 0.3s; }
.back-to-top:hover svg { transform: translateY(-2px); }

/* Authority & Trust Metrics */
.stats-section { padding: 6rem 0; background: linear-gradient(180deg, var(--bg-base) 0%, rgba(249,115,22,0.03) 50%, var(--bg-base) 100%); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; text-align: center; }
.stat-item h2 { font-size: 3.5rem; margin-bottom: 0.5rem; font-weight: 900; }
.stat-item p { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); }

/* Architecture Visualization (Nodos CORTEX) */
.nodes-viz { margin-top: 4rem; padding: 3rem; background: rgba(255,255,255,0.02); border: 1px solid var(--border-glass); border-radius: 30px; position: relative; overflow: hidden; }
.node-line { position: absolute; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); width: 100%; top: 50%; opacity: 0.2; animation: flow 3s infinite linear; }
@keyframes flow { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.integration-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 2rem; opacity: 0.4; filter: grayscale(1); transition: opacity 0.5s; padding: 2rem 0; }
.integration-grid:hover { opacity: 0.8; filter: grayscale(0.5); }
.integration-item { display: flex; align-items: center; justify-content: center; height: 60px; }
.integration-item img { max-height: 30px; width: auto; }

/* Legacy / Borja G Section */
.legacy-card { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: center; padding: 4rem; margin-top: 4rem; }
@media (max-width: 900px) { .legacy-card { grid-template-columns: 1fr; text-align: center; padding: 2rem; } }
.legacy-img { border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); border: 1px solid var(--border-glass); }

/* Demo Banners for Services */
.demo-section { padding: 4rem 0; margin-top: 2rem; }
.demo-card { 
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; 
    align-items: center; padding: 3rem; background: rgba(255,115,22,0.02); 
    border: 1px solid var(--border-glass); border-radius: 30px;
    overflow: hidden;
}
@media (max-width: 900px) { .demo-card { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; } }

.demo-visual { position: relative; border-radius: 20px; overflow: hidden; height: 350px; border: 1px solid var(--border-glass); }
.demo-placeholder-bg { width: 100%; height: 100%; background-size: cover; background-position: center; filter: brightness(0.7); }
.demo-overlay-play { 
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; 
    background: rgba(0,0,0,0.4); opacity: 0.6; transition: opacity 0.3s;
}
.demo-card:hover .demo-overlay-play { opacity: 1; }

.demo-info h2 { margin-bottom: 1.5rem; }
.demo-info p { font-size: 1rem; color: var(--text-secondary); margin-bottom: 2rem; }

/* Content Grid Fixes */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; gap: 2rem; } }

/* Glass & Borders */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
}

/* Navigation - Floating & Sticky */
.navbar, .header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
    padding: 1.5rem 0;
    transition: all 0.4s var(--ease-out-expo);
    border-bottom: 1px solid transparent;
}

.header {
    z-index: 10000;
}

/* Asegurar que el nav del header permita clics en el botón */
.header nav {
    position: relative;
    z-index: 10001;
}
.navbar.scrolled {
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 0;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-weight: 900; font-size: 1.8rem; letter-spacing: -1px; text-decoration: none; color: #fff; display: flex; align-items: center; }
.logo .dot { color: var(--accent); }
.nav-links { 
    display: flex; 
    gap: 2.5rem; 
    align-items: center; 
    list-style: none; 
    margin: 0; 
    padding: 0; 
}

/* Botón hamburguesa - oculto en desktop */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10002;
    position: relative;
}
.nav-links li { position: relative; list-style: none; }
.nav-links a {
    color: var(--text-primary); text-decoration: none; font-size: 0.95rem; font-weight: 500;
    position: relative; transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px;
    background: var(--accent); transition: width 0.3s var(--ease-out-expo);
}
.nav-links a:hover::after { width: 100%; }

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(15, 23, 42, 0.98);
    min-width: 260px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.8);
    z-index: 1001;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.8rem;
    backdrop-filter: blur(25px);
}
.dropdown:hover > .dropdown-content {
    display: block;
}

/* Submenu / Nested Dropdown */
.submenu {
    position: relative;
}
.submenu-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}
.submenu-trigger::after {
    content: '›';
    font-size: 1.2rem;
    color: var(--accent);
}
.submenu:hover .submenu-trigger {
    background-color: rgba(255,255,255,0.06);
    color: #fff;
}
.submenu-content {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 2px;
    background-color: rgba(15, 23, 42, 0.98);
    min-width: 240px;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.8);
    z-index: 1002;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.8rem;
    backdrop-filter: blur(25px);
}
.submenu:hover .submenu-content {
    display: block;
}
.submenu-content a {
    color: var(--text-secondary);
    padding: 8px 14px;
    text-decoration: none;
    display: block;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.submenu-content a:hover {
    background-color: rgba(255,255,255,0.08);
    color: #fff;
    transform: translateX(4px);
}

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.2rem; }
.tag { font-size: 0.72rem; background: rgba(255,255,255,0.06); padding: 5px 12px; border-radius: 20px; color: var(--text-secondary); border: 1px solid var(--border-glass); text-transform:uppercase; letter-spacing: 0.8px; font-weight: 700;}
/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
    padding: 10px 0; /* extra hit area */
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(15, 23, 42, 0.95);
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.8);
    z-index: 1001;
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 1rem;
    backdrop-filter: blur(20px);
}
.dropdown:hover .dropdown-content {
    display: block;
}
/* Submenu Category header */
.dropdown-category {
    font-family: var(--font-heading);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 15px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 5px;
}
.dropdown-category:first-child { margin-top: 0; }
.dropdown-content a {
    color: var(--text-secondary);
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    border-radius: 4px;
    font-size: 0.85rem;
}
.dropdown-content a::after { display: none; }
.dropdown-content a:hover {
    background-color: rgba(255,255,255,0.05);
    color: #fff;
}
.dropdown-content a:hover::after { display: none; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; }
.tag { font-size: 0.70rem; background: rgba(255,255,255,0.05); padding: 4px 10px; border-radius: 20px; color: var(--text-muted); border: 1px solid var(--border-glass); text-transform:uppercase; letter-spacing: 0.5px; font-weight: 600;}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2.5rem; border-radius: 100px; font-weight: 600; font-size: 1rem;
    text-decoration: none; transition: all 0.4s var(--ease-out-expo); cursor: pointer; border: none;
}
.btn-primary {
    background: var(--accent-gradient); color: #fff;
    box-shadow: 0 10px 30px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.4);
}
.btn-outline {
    background: transparent; color: var(--text-primary);
    border: 1px solid var(--border-glass);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Sections */
.section { padding: 5rem 0; position: relative; }
.section-header { margin-bottom: 5rem; max-width: 800px; }

/* FAQ full-width card in 2-column grid */
.faq-full-width { grid-column: 1 / -1; }
.badge {
    display: inline-block; padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-glass);
    border-radius: 100px; font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 2px; color: var(--text-secondary); margin-bottom: 2rem;
}

/* Hero Section */
.hero { min-height: 100vh; display: flex; align-items: center; }
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }
.hero-text { max-width: 700px; }
.hero-actions { display: flex; gap: 1.5rem; margin-top: 3rem; }
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text { margin: 0 auto; }
    .hero-actions { justify-content: center; flex-direction: column; }
}

/* Feature Grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feature-card { padding: 3rem; transition: transform 0.5s var(--ease-out-expo); }
.feature-card:hover { transform: translateY(-10px); border-color: rgba(249,115,22,0.3); }
.feature-icon { font-size: 2.5rem; background: var(--accent-gradient); -webkit-background-clip: text; color: transparent; margin-bottom: 1.5rem; display: inline-block; }

/* Image showcases */
.image-showcase { width: 100%; height: 500px; border-radius: 20px; overflow: hidden; position: relative; }
.image-showcase img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.image-showcase:hover img { transform: scale(1.05); }

/* Floating Elements (WhatsApp & Chatbot) */
.floating-widgets { position: fixed; bottom: 2rem; right: 2rem; z-index: 999; display: flex; flex-direction: column; gap: 1rem; align-items: flex-end; }

/* WhatsApp Button */
.wa-btn {
    width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: white;
    display: flex; justify-content: center; align-items: center; text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.wa-btn:hover { transform: scale(1.1); }
.wa-btn svg { width: 32px; height: 32px; fill: currentColor; }

/* Chatbot UI */
.chatbot-trigger {
    width: 60px; height: 60px; border-radius: 50%; background: var(--accent); border: none;
    color: #fff; display: flex; justify-content: center; align-items: center; cursor: pointer;
    box-shadow: 0 10px 30px var(--accent-glow); transition: all 0.3s;
    animation: chatPulse 2.5s infinite;
    position: relative;
}
.chatbot-trigger:hover { transform: scale(1.1); animation: none; }
.chatbot-trigger svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 2; fill: none; }
.chat-reset { display: flex; align-items: center; justify-content: center; padding: 0.3rem; background: transparent; border: none; cursor: pointer; opacity: 0.5; transition: all 0.3s; color: var(--text-secondary); }
.chat-reset:hover { opacity: 1; color: var(--accent); }
@keyframes chatPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
    70% { transform: scale(1.08); box-shadow: 0 0 0 15px rgba(249, 115, 22, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.chat-window {
    position: absolute; bottom: 80px; right: 0; width: 350px; height: 500px;
    background: rgba(10, 15, 29, 0.95); border: 1px solid var(--border-glass); border-radius: 16px;
    display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    opacity: 0; pointer-events: none; transform: translateY(20px) scale(0.95); transform-origin: bottom right;
    transition: all 0.4s var(--ease-out-expo); backdrop-filter: blur(20px);
}
.chat-window.active { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.chat-header { background: rgba(255,255,255,0.03); padding: 1.2rem; border-bottom: 1px solid var(--border-glass); display: flex; justify-content: space-between; align-items: center; }
.chat-header h4 { font-size: 0.95rem; margin: 0; display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-heading); font-weight: 700; color: #fff; }
.chat-status { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; display: inline-block; position: relative; }
.chat-status::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 1px solid #22c55e; animation: statusPulse 2s infinite; }
@keyframes statusPulse { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(2.5); } }
.chat-close { background: transparent; border: none; color: var(--text-secondary); cursor: pointer; }
.chat-body { flex: 1; padding: 1.5rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }
.chat-msg { max-width: 85%; padding: 1rem; border-radius: 12px; font-size: 0.95rem; line-height: 1.5; }
.msg-ai { background: rgba(255,255,255,0.05); align-self: flex-start; border-bottom-left-radius: 2px; }
.msg-user { background: var(--accent-gradient); color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; }
.chat-input-area { padding: 1rem; background: rgba(0,0,0,0.2); border-top: 1px solid var(--border-glass); display: flex; gap: 0.5rem; position: relative; }
.chat-input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid var(--border-glass); border-radius: 20px; padding: 0.8rem 1rem; color: #fff; font-family: var(--font-body); outline: none; }
.chat-input:focus { border-color: rgba(249,115,22,0.5); }
.chat-send { background: var(--accent); border: none; width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; cursor: pointer; }
/* .chat-reset { position: absolute; right: 50px; top: 50%; transform: translateY(-50%); padding: 0.3rem; background: transparent; border: none; cursor: pointer; opacity: 0.5; transition: all 0.3s; color: var(--text-secondary); }
.chat-reset:hover { opacity: 1; color: var(--accent); transform: translateY(-50%) rotate(90deg); } */

/* FAQ Section */
.faq-item {
    border-bottom: 1px solid var(--border-glass); padding: 2rem 0;
}
.faq-question {
    font-size: 1.4rem; font-family: var(--font-heading); cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.faq-icon { transition: transform 0.3s; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-out-expo); color: var(--text-secondary); font-size: 1.1rem;
}
.faq-item.active .faq-answer { max-height: 300px; margin-top: 1rem; }

/* Footers */
.footer { border-top: 1px solid var(--border-glass); padding: 6rem 0 2rem; background: #010308; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-title { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 1.5rem; color: #fff; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border-glass); padding-top: 2rem; display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.9rem;}
.footer-legal { text-align: center; padding: 1rem; font-size: 0.75rem; color: #aab2c0; }
.footer-legal a { color: #c6ccd6; }

/* --- RESPONSIVE MASTER OVERRIDES --- */
@media (max-width: 900px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .container { 
        padding: 0 1rem; 
        max-width: 100%;
        overflow-x: hidden;
    }
    
    h1 { font-size: clamp(2rem, 7vw, 3rem); line-height: 1.2; word-wrap: break-word; }
    h2 { font-size: clamp(1.5rem, 5vw, 2rem); word-wrap: break-word; }
    h3 { font-size: clamp(1.2rem, 4vw, 1.5rem); word-wrap: break-word; }
    p { font-size: 1rem; word-wrap: break-word; }
    
    .hero { min-height: 60vh; padding-top: 80px; text-align: center; overflow-x: hidden; }
    .hero-text { padding: 0 0.5rem; }
    .hero-actions { flex-direction: column; width: 100%; gap: 0.75rem; }
    .btn { width: 100%; padding: 0.875rem 1.5rem; font-size: 0.95rem; }
    
    /* Slider en móvil: una columna */
    .hero-slide .hero-text {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        text-align: center;
    }
    .hero-visual {
        display: none;
    }
    
    /* Grid en móvil: una columna */
    .grid-2, .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    /* Secciones más compactas */
    .section { padding: 3rem 0; }
    .section-header { margin-bottom: 2rem; }
    
    /* Blog cards en móvil */
    .feature-card {
        margin-bottom: 1rem;
    }
    
    /* FAQ en móvil */
    .faq-item { padding: 1.5rem 0; }
    .faq-question { font-size: 1.1rem; }
    
    /* Footer en móvil */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Burger Menu System */
    .nav-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: var(--text-primary);
        cursor: pointer;
        padding: 0.5rem;
        width: 48px;
        height: 48px;
        z-index: 10002;
        position: relative;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .nav-toggle svg {
        width: 28px;
        height: 28px;
        pointer-events: none;
    }
    
    .nav-toggle:active {
        transform: scale(0.95);
    }
    
    /* Overlay para el menú móvil */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        position: fixed; 
        top: 0; 
        right: -100%; 
        width: 85%; 
        max-width: 350px;
        height: 100vh;
        background: rgba(3, 7, 18, 0.98); 
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column; 
        justify-content: flex-start; 
        align-items: flex-start;
        padding: 6rem 1.5rem 2rem; 
        transition: right 0.3s ease-out;
        z-index: 10001; 
        gap: 0.5rem; 
        border-left: 1px solid var(--border-glass);
        overflow-y: auto;
    }
    .nav-links.active { right: 0; }
    .nav-links li { width: 100%; }
    .nav-links a { font-size: 1.25rem; width: 100%; display: block; }

    .dropdown-content { position: static; opacity: 1; visibility: visible; display: none; transform: none; box-shadow: none; border: none; padding-left: 1rem; background: transparent; }
    .dropdown.active .dropdown-content { display: block; }
    
    header nav > .btn-primary,
    header nav > .btn { display: none !important; } /* Ocultar CTA del header en móvil */
    
    .nav-links .btn-mobile-cta {
        display: flex !important;
        width: 100%;
        margin-top: 1.5rem;
        justify-content: center;
    }

    /* Grid Adaptations */
    .grid-3 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .demo-card { grid-template-columns: 1fr; padding: 1.5rem; gap: 2rem; }
    .demo-visual { height: 250px; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item h2 { font-size: 2.5rem; }
}

/* Mobile height fixes */
@media (max-width: 900px) {
    .slider-wrap {
        height: auto !important;
        min-height: 280px;
    }
}

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s var(--ease-out-expo); animation: revealFallback 0s 2s forwards; }
.reveal.active { opacity: 1; transform: translateY(0); animation: none; }
@keyframes revealFallback { to { opacity: 1; transform: translateY(0); } }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; }


@media (max-width: 900px) {
    .floating-widgets {
        display: none;
    }

    .grid-3, .footer-grid { grid-template-columns: 1fr; }
    .chat-window { 
        right: 1rem; 
        left: 1rem;
        bottom: 80px; 
        width: auto;
        max-width: 400px;
    }
    
    /* Prevenir scroll horizontal en secciones */
    section, article {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Asegurar que las imágenes no causen overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* FAQ grid en móvil - anular grid-column span */
    .faq-full-width {
        grid-column: 1 / -1 !important;
    }
    
    /* Logo carousel más pequeño en móvil */
    .logo-carousel {
        overflow: hidden;
    }
}

/* Infite Scroll Animation */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-180px * 12)); }
}

/* ============================================
   CLASES PARA REEMPLAZAR CSS INLINE
   ============================================ */

/* Margin utilities */
.m-0 { margin: 0; }
.m-1 { margin: 1rem; }
.m-2 { margin: 2rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-15 { margin-top: 1.5rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-05 { margin-bottom: 0.5rem; }
.mb-075 { margin-bottom: 0.75rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-15 { margin-bottom: 1.5rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.ml-0 { margin-left: 0; }
.mr-0 { margin-right: 0; }
.mx-0 { margin-left: 0; margin-right: 0; }
.my-1 { margin-top: 1rem; margin-bottom: 1rem; }
.my-15 { margin-top: 1.5rem; margin-bottom: 1.5rem; }

/* Padding utilities */
.p-0 { padding: 0; }
.p-05 { padding: 0.5rem; }
.p-1 { padding: 1rem; }
.p-125 { padding: 1.25rem; }
.p-15 { padding: 1.5rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }
.p-4 { padding: 4rem; }
.pt-0 { padding-top: 0; }
.pt-2 { padding-top: 2rem; }
.pt-4 { padding-top: 4rem; }
.pb-0 { padding-bottom: 0; }
.pb-2 { padding-bottom: 2rem; }
.px-1 { padding-left: 1rem; padding-right: 1rem; }
.px-2 { padding-left: 2rem; padding-right: 2rem; }
.py-05 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.py-2 { padding-top: 2rem; padding-bottom: 2rem; }
.py-3 { padding-top: 3rem; padding-bottom: 3rem; }

/* Text utilities */
.text-white { color: #fff; }
.text-accent { color: var(--accent); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.font-small { font-size: 0.85rem; }
.font-normal { font-size: 1rem; }
.font-large { font-size: 1.1rem; }
.font-xl { font-size: 1.25rem; }
.font-bold { font-weight: 600; }
.font-bolder { font-weight: 700; }

/* Display utilities */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Flexbox utilities */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-05 { gap: 0.5rem; }
.gap-1 { gap: 1rem; }
.gap-15 { gap: 1.5rem; }
.gap-2 { gap: 2rem; }
.gap-3 { gap: 3rem; }

/* Position utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.z-10 { z-index: 10; }
.z-100 { z-index: 100; }

/* Width/Height utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.min-h-50 { min-height: 50vh; }

/* Object fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Border utilities */
.border-0 { border: 0; }
.border-accent { border-color: var(--accent); }
.border-green { border-color: #10B981; }

/* Background utilities */
.bg-transparent { background: transparent; }
.bg-glass-light { background: rgba(255,255,255,0.01); }
.bg-gradient-orange { background: linear-gradient(180deg, var(--bg-base) 0%, rgba(249,115,22,0.02) 100%); }
.bg-gradient-legacy { background: linear-gradient(90deg, rgba(249,115,22,0.05) 0%, rgba(3,7,18,0.5) 100%); }

/* Badge variants */
.badge-white {
    border-color: #fff;
    color: #fff;
}

/* Text size utilities */
.text-large { font-size: 1.1rem; }
.text-xl { font-size: 1.25rem; }

/* Opacity utilities */
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }

/* Legacy image */
.legacy-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .legacy-img {
        height: 250px;
    }
}

/* ============================================
   BLOG ARTICLE STYLES
   ============================================ */

/* Blog hero section */
.blog-hero {
    padding-top: 2rem;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.blog-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.15;
    text-align: left;
    max-width: 900px;
}

.blog-hero-content {
    text-align: left;
    width: 100%;
}

.blog-hero-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 800px;
    margin-top: 1.5rem;
}

/* Blog content container */
.blog-content-wrapper {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
}

@media (min-width: 1200px) {
    .blog-content-wrapper {
        max-width: 100%;
        padding: 0 4rem;
    }
}

/* Blog typography */
.blog-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.blog-text {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.blog-heading {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
}

/* Texto resaltado en naranja para blog */
.blog-highlight {
    color: var(--accent);
    font-weight: 600;
}

.blog-highlight-box {
    background: rgba(249, 115, 22, 0.1);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.blog-highlight-box p {
    color: var(--text-primary);
    margin-bottom: 0;
}

/* Blog lists */
.blog-list {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-list li {
    margin-bottom: 0.8rem;
}

/* Blog CTA box */
.blog-cta-box {
    background: rgba(249,115,22,0.1);
    border-left: 4px solid var(--accent);
    padding: 2rem;
    margin-top: 3rem;
    border-radius: 0 8px 8px 0;
}

.blog-highlight {
    color: var(--accent);
    font-weight: 600;
}

.blog-highlight-box {
    background: rgba(249,115,22,0.1);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.blog-highlight-box p {
    margin: 0;
    color: var(--text-primary);
}

.blog-stat-highlight {
    color: var(--accent);
    font-size: 1.3em;
    font-weight: 700;
}

.blog-cta-box h3 {
    margin-bottom: 1rem;
}

.blog-cta-box p {
    margin-bottom: 1.5rem;
}

/* Overflow utilities */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Line height */
.leading-tight { line-height: 1.2; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.8; }

/* Opacity */
.opacity-80 { opacity: 0.8; }
.opacity-100 { opacity: 1; }

/* Text decoration */
.no-underline { text-decoration: none; }
.underline { text-decoration: underline; }

/* White space */
.whitespace-nowrap { white-space: nowrap; }

/* Hero backgrounds */
.hero-bg-main { background-image: url('/assets/images/horkia-arquitectura-ia-getxo-bilbao-vizcaya.webp'); }

/* Hero backgrounds */
.hero-bg-main { background-image: url('/assets/images/horkia-arquitectura-ia-getxo-bilbao-vizcaya.webp'); }

/* Stats y contadores */
.stat-number {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
}
.stat-number.accent { color: var(--accent); }
.stat-number.green { color: #10B981; }
.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
}
.stat-center { text-align: center; opacity: 0.8; }

/* Badges */
.badge-green {
    border-color: #10B981;
    color: #10B981;
}
.badge-accent {
    border-color: var(--accent);
    color: var(--accent);
}

/* Layout utilities */
.center-text { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-800 { max-width: 800px; }
.max-w-700 { max-width: 700px; }
.max-w-600 { max-width: 600px; }
.max-w-500 { max-width: 500px; }
.relative-z10 { position: relative; z-index: 10; }

/* Padding utilities */
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }
.p-4 { padding: 4rem; }

/* Margin utilities */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Grid de logos/tecnologías */
.logo-carousel {
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    background: rgba(255,255,255,0.01);
    padding: 2.5rem 0;
}
.logo-track {
    display: flex;
    animation: scroll 30s linear infinite;
}
.logo-item {
    padding: 0 40px;
    min-width: 180px;
    flex-shrink: 0;
}
.logo-item img {
    height: 35px;
    width: auto;
    filter: brightness(1.2);
}

/* Homepage 2026 redesign */
body.homepage-redesign {
    background: #05070d;
}

body.homepage-redesign h1,
body.homepage-redesign h2,
body.homepage-redesign h3,
body.homepage-redesign h4 {
    letter-spacing: 0;
}

.home-hero {
    min-height: 76vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 7rem 0 3rem;
}

.home-hero__media,
.home-hero__shade {
    position: absolute;
    inset: 0;
}

.home-hero__media {
    background-image: url('/assets/images/horkia-arquitectura-ia-getxo-bilbao-vizcaya.webp');
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.home-hero__shade {
    background:
        linear-gradient(90deg, rgba(5, 7, 13, 0.96) 0%, rgba(5, 7, 13, 0.78) 40%, rgba(5, 7, 13, 0.2) 100%),
        linear-gradient(180deg, rgba(5, 7, 13, 0.12) 0%, #05070d 100%);
}

.home-hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.55fr);
    gap: 3rem;
    align-items: center;
}

.home-hero__copy {
    max-width: 700px;
}

.home-kicker,
.product-label {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.home-hero h1 {
    font-size: clamp(2.4rem, 4.5vw, 4.7rem);
    max-width: 760px;
    margin: 0.85rem 0 1rem;
    line-height: 1.08;
}

.home-lead {
    max-width: 680px;
    color: #d7dde8;
    font-size: clamp(1rem, 1.15vw, 1.14rem);
    line-height: 1.55;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.home-hero__panel {
    background: rgba(5, 7, 13, 0.72);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 1rem;
    backdrop-filter: blur(18px);
}

.home-hero__panel div {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.09);
}

.home-hero__panel div:last-child {
    border-bottom: 0;
}

.home-hero__panel span {
    display: block;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.home-hero__panel strong {
    display: block;
    color: #fff;
    font-size: 1.02rem;
    line-height: 1.35;
}

.home-proof {
    background: #f6f7f8;
    color: #111827;
}

.home-proof p,
.home-proof span {
    color: #4b5563;
}

.home-proof__grid,
.method-grid,
.answer-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 4rem;
    align-items: start;
}

.proof-list,
.faq-stack {
    display: grid;
    gap: 1rem;
}

.proof-list article,
.faq-stack article {
    border-top: 1px solid rgba(17,24,39,0.16);
    padding-top: 1.25rem;
}

.proof-list strong,
.faq-stack h3 {
    display: block;
    color: #111827;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.product-section {
    background: #05070d;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.product-card {
    min-height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.product-card--wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
}

.product-card__body {
    padding: clamp(1.5rem, 4vw, 3.25rem);
}

.product-card h3 {
    color: #fff;
    margin: 0.75rem 0 1rem;
    font-size: clamp(1.55rem, 2.4vw, 2.55rem);
}

.product-card p,
.product-card li {
    color: #b9c3d1;
}

.product-card ul {
    margin: 1.4rem 0 1.6rem;
    padding-left: 1.15rem;
}

.product-card li {
    margin-bottom: 0.45rem;
}

.product-card__visual {
    min-height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-card__visual::after {
    content: "HorkIA";
    position: absolute;
    right: 1.4rem;
    bottom: 1.2rem;
    color: rgba(255,255,255,0.72);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
}

.product-card__visual--automation {
    background-image:
        linear-gradient(90deg, rgba(5,7,13,0.18), rgba(5,7,13,0.02)),
        url('/assets/images/analisis-datos-ia-getxo-bilbao-vizcaya.webp');
    filter: saturate(0.88) contrast(0.95);
}

.home-method {
    background: #0b101a;
}

.method-steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 0.85rem;
    padding: 0;
}

.method-steps li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.method-steps li::before {
    content: counter(step, decimal-leading-zero);
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 900;
}

.method-steps strong {
    display: block;
    color: #fff;
    font-family: var(--font-heading);
    margin-bottom: 0.25rem;
}

.method-steps span {
    color: #aab4c3;
}

.sectors-section {
    background: #f6f7f8;
}

.sectors-section h2,
.home-proof h2 {
    color: #111827;
}

.sectors-section p {
    color: #4b5563;
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid rgba(17,24,39,0.16);
    border-left: 1px solid rgba(17,24,39,0.16);
}

.sector-link {
    min-height: 9rem;
    display: flex;
    align-items: end;
    padding: 1.25rem;
    color: #111827;
    border-right: 1px solid rgba(17,24,39,0.16);
    border-bottom: 1px solid rgba(17,24,39,0.16);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.sector-link:hover {
    background: #111827;
    color: #fff;
}

.answer-section {
    background: #ffffff;
    color: #111827;
}

.answer-section p {
    color: #4b5563;
}

.answer-section .btn-outline {
    color: #111827;
    border-color: rgba(17,24,39,0.22);
}

.cta-section {
    background: #05070d;
}

.cta-panel {
    border-radius: 8px;
    padding: clamp(2rem, 5vw, 4rem);
    background:
        linear-gradient(135deg, rgba(249,115,22,0.22), rgba(255,255,255,0.04)),
        #0b101a;
    border: 1px solid rgba(255,255,255,0.12);
}

.cta-panel p {
    max-width: 760px;
}

.product-hero {
    min-height: 78vh;
}

.product-hero__geo-aeo {
    background-image: url('/assets/images/horkia-arquitectura-ia-getxo-bilbao-vizcaya.webp');
    filter: saturate(0.9) contrast(0.95);
}

@media (max-width: 980px) {
    .home-hero__inner,
    .home-proof__grid,
    .method-grid,
    .answer-grid,
    .product-card--wide {
        grid-template-columns: 1fr;
    }

    .home-hero__panel {
        max-width: 640px;
    }

    .product-grid,
    .sector-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .home-hero {
        min-height: auto;
        padding: 6rem 0 2.5rem;
    }

    .home-hero h1 {
        font-size: clamp(2.05rem, 9.2vw, 3.15rem);
        line-height: 1.1;
    }

    .home-hero__media {
        background-position: 62% center;
    }

    .home-hero__shade {
        background:
            linear-gradient(90deg, rgba(5, 7, 13, 0.98), rgba(5, 7, 13, 0.84)),
            linear-gradient(180deg, rgba(5, 7, 13, 0.35), #05070d);
    }

    .home-actions .btn {
        width: 100%;
    }

    .home-hero__panel {
        margin-bottom: 5rem;
    }

    .product-card__visual {
        min-height: 280px;
    }
}

/* Feature cards */
.feature-card-padded { padding: 2rem; }

/* Blog cards */
.blog-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.blog-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}
.blog-card-img-lg {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.blog-card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-content-lg {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.blog-card-badges-lg {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}
.blog-card-title {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
}
.blog-card-title-lg {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.blog-card-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
}
.blog-card-excerpt-lg {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
}
.blog-card-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}
.blog-card-link-lg {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

/* Slider/CTA */
.slider-wrap-auto {
    height: auto;
    padding: 3rem 2rem;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.faq-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .faq-grid { grid-template-columns: 1fr; }
}

