/**
 * Estilos para el HUB de Casos de Éxito
 * Prefijo: ceh- (Casos Éxito Hub)
 */

/* ========================================
   VARIABLES
   ======================================== */

:root {
    --ceh-primary:#0097e0;
    --ceh-primary-dark: #004c99;
    --ceh-secondary: #00cc66;
    --ceh-text: #333333;
    --ceh-text-light: #666666;
    --ceh-border: #e0e0e0;
    --ceh-bg-light: #f8f9fa;
    --ceh-bg-white: #ffffff;
    --ceh-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --ceh-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --ceh-radius: 8px;
    --ceh-transition: all 0.3s ease;
    --ceh-spacing: 1.5rem;
}

/* ========================================
   FILTROS
   ======================================== */

.ceh-filtros-wrapper {
    background: var(--ceh-bg-white);
    padding: var(--ceh-spacing);
    border-radius: var(--ceh-radius);
    box-shadow: var(--ceh-shadow);
    margin-bottom: 2rem;
}

.ceh-filtros-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ceh-filtros-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ceh-text);
    margin: 0 0 0.5rem 0;
}

.ceh-filtros-micro {
    font-size: 1rem;
    color: var(--ceh-text-light);
    margin: 0;
}

/* ✅ BOTÓN TOGGLE - OCULTO EN DESKTOP */
.ceh-filtros-toggle {
    display: none !important;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--ceh-primary);
    color: white;
    border: none;
    border-radius: var(--ceh-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
    align-items: center;
    justify-content: space-between;
    transition: var(--ceh-transition);
}

.ceh-filtros-toggle:hover {
    background: var(--ceh-primary-dark);
}

.ceh-filtros-toggle-icon {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.ceh-filtros-container {
    max-width: 1200px;
    margin: 0 auto;
}

.ceh-filtros-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ceh-filter-group {
    display: flex;
    flex-direction: column;
}

.ceh-filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ceh-text);
    margin-bottom: 0.5rem;
}

.ceh-filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--ceh-border);
    border-radius: var(--ceh-radius);
    font-size: 1rem;
    color: var(--ceh-text);
    background: var(--ceh-bg-white);
    transition: var(--ceh-transition);
    cursor: pointer;
}

.ceh-filter-select:hover {
    border-color: var(--ceh-primary);
}

.ceh-filter-select:focus {
    outline: none;
    border-color: var(--ceh-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.ceh-filtros-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.ceh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--ceh-radius);
    cursor: pointer;
    transition: var(--ceh-transition);
    white-space: nowrap;
}

.ceh-btn-primary {
    background: var(--ceh-primary);
    color: var(--ceh-bg-white);
}

.ceh-btn-primary:hover {
    background: var(--ceh-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--ceh-shadow-hover);
}

.ceh-btn-secondary {
    background: transparent;
    color: var(--ceh-text);
    border: 1px solid var(--ceh-border);
}

.ceh-btn-secondary:hover {
    background: var(--ceh-bg-light);
    border-color: var(--ceh-text-light);
}

.ceh-btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.ceh-filter-results-count {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--ceh-text-light);
}

/* ========================================
   GRID DE CASOS
   ======================================== */

.ceh-grid-wrapper {
    margin: 2rem 0;
}

.ceh-grid-casos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.ceh-caso-card {
    background: var(--ceh-bg-white);
    border-radius: var(--ceh-radius);
    box-shadow: var(--ceh-shadow);
    overflow: hidden;
    transition: var(--ceh-transition);
    display: flex;
    flex-direction: column;
}

.ceh-caso-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ceh-shadow-hover);
}

.ceh-caso-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--ceh-bg-light);
}

.ceh-caso-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--ceh-transition);
}

.ceh-caso-card:hover .ceh-caso-card__image img {
    transform: scale(1.05);
}

.ceh-caso-card__header {
    padding: 1rem 1.5rem 0;
}

.ceh-caso-card__industry {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--ceh-primary);
    color: var(--ceh-bg-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.ceh-caso-card__body {
    padding: 1rem 1.5rem;
    flex: 1;
}

.ceh-caso-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ceh-text);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.ceh-caso-card__scope {
    font-size: 0.875rem;
    color: var(--ceh-text-light);
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.ceh-caso-card__kpis {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ceh-kpi-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--ceh-bg-light);
    border-radius: 6px;
    border-left: 3px solid var(--ceh-primary);
}

.ceh-kpi-badge--energia {
    border-left-color: #ff6b6b;
}

.ceh-kpi-badge--iaq {
    border-left-color: #4ecdc4;
}

.ceh-kpi-badge--uptime {
    border-left-color: #95e1d3;
}

.ceh-kpi-badge__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ceh-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ceh-kpi-badge__value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ceh-text);
}

.ceh-caso-card__footer {
    padding: 0 1.5rem 1.5rem;
    margin-top: auto;
}

.ceh-caso-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ceh-primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--ceh-transition);
}

.ceh-caso-card__cta:hover {
    color: var(--ceh-primary-dark);
}

.ceh-arrow {
    transition: var(--ceh-transition);
}

.ceh-caso-card__cta:hover .ceh-arrow {
    transform: translateX(4px);
}

.ceh-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--ceh-text-light);
}

/* ========================================
   PAGINACIÓN
   ======================================== */

.ceh-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.ceh-btn-load-more {
    padding: 1rem 2rem;
}

.ceh-pagination-info {
    font-size: 0.875rem;
    color: var(--ceh-text-light);
}

/* ========================================
   BANNER METODOLOGÍA
   ======================================== */

.ceh-banner-metodologia {
    background: linear-gradient(135deg, var(--ceh-primary) 0%, var(--ceh-primary-dark) 100%);
    padding: 3rem 2rem;
    border-radius: var(--ceh-radius);
    margin: 3rem 0;
    text-align: center;
}

.ceh-banner-metodologia__content {
    max-width: 900px;
    margin: 0 auto;
}

.ceh-banner-metodologia__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ceh-bg-white);
    margin: 0 0 1rem 0;
}

.ceh-banner-metodologia__text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 2rem 0;
}

.ceh-banner-metodologia__badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.ceh-method-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--ceh-radius);
    backdrop-filter: blur(10px);
}

.ceh-method-badge__icon {
    font-size: 2rem;
}

.ceh-method-badge__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ceh-bg-white);
}

.ceh-banner-metodologia .ceh-btn-primary {
    background: var(--ceh-bg-white);
    color: var(--ceh-primary);
}

.ceh-banner-metodologia .ceh-btn-primary:hover {
    background: var(--ceh-bg-light);
}

/* ========================================
   ✅ INDUSTRIAS CAROUSEL - CORREGIDO
   ======================================== */

.ceh-industrias-section {
    margin: 3rem 0;
    position: relative;
}

.ceh-industrias-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ceh-text);
    text-align: center;
    margin: 0 0 2rem 0;
}

.ceh-industrias-carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
}

.ceh-industrias-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 80px; /* ✅ ESPACIO PARA BOTONES EN DESKTOP */
    cursor: grab;
}

.ceh-industrias-track::-webkit-scrollbar {
    display: none;
}

.ceh-industria-tile {
    flex: 0 0 300px;
    background: var(--ceh-bg-white);
    border: 2px solid var(--ceh-border);
    border-radius: var(--ceh-radius);
    padding: 1.5rem;
    transition: var(--ceh-transition);
}

.ceh-industria-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--ceh-shadow-hover);
    border-color: var(--ceh-primary);
}

.ceh-industria-tile__content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.ceh-industria-tile__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ceh-text);
    margin: 0;
}

.ceh-industria-tile__desc {
    font-size: 0.875rem;
    color: var(--ceh-text-light);
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

.ceh-industria-tile__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ceh-primary);
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: var(--ceh-transition);
    margin-top: auto;
    font-size: 1rem;
}

.ceh-industria-tile__cta:hover {
    color: var(--ceh-primary-dark);
}

/* ✅ BOTONES DEL CAROUSEL - SEPARADOS Y NO ENCIMADOS */
.ceh-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--ceh-bg-white);
    border: 2px solid var(--ceh-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ceh-primary);
    cursor: pointer;
    transition: var(--ceh-transition);
    z-index: 100;
    box-shadow: var(--ceh-shadow);
}

.ceh-carousel-btn:hover {
    background: var(--ceh-primary);
    color: var(--ceh-bg-white);
    transform: translateY(-50%) scale(1.1);
}

.ceh-carousel-btn--prev {
    left: 10px;
}

.ceh-carousel-btn--next {
    right: 10px;
}

/* ========================================
   FORMULARIO CONTACTO
   ======================================== */

.ceh-form-contacto-wrapper {
    background: var(--ceh-bg-light);
    padding: 3rem 2rem;
    border-radius: var(--ceh-radius);
    margin: 3rem 0;
}

.ceh-form-contacto__header {
    text-align: center;
    margin-bottom: 2rem;
}

.ceh-form-contacto__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ceh-text);
    margin: 0 0 0.5rem 0;
}

.ceh-form-contacto__subtitle {
    font-size: 1.125rem;
    color: var(--ceh-text-light);
    margin: 0;
}

.ceh-contacto-form {
    max-width: 800px;
    margin: 0 auto;
}

.ceh-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.ceh-form-field--full {
    grid-column: 1 / -1;
}

.ceh-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ceh-text);
    margin-bottom: 0.5rem;
}

.ceh-form-input,
.ceh-form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ceh-border);
    border-radius: var(--ceh-radius);
    font-size: 1rem;
    color: var(--ceh-text);
    background: var(--ceh-bg-white);
    transition: var(--ceh-transition);
}

.ceh-form-input:hover,
.ceh-form-select:hover {
    border-color: var(--ceh-primary);
}

.ceh-form-input:focus,
.ceh-form-select:focus {
    outline: none;
    border-color: var(--ceh-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.ceh-form-actions {
    text-align: center;
    margin-top: 2rem;
}

/* ========================================
   ESTADÍSTICAS
   ======================================== */

.ceh-stats-wrapper {
    margin: 3rem 0;
}

.ceh-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.ceh-stat-card {
    background: var(--ceh-bg-white);
    border-radius: var(--ceh-radius);
    box-shadow: var(--ceh-shadow);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--ceh-transition);
}

.ceh-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ceh-shadow-hover);
}

.ceh-stat-card__icon {
    color: var(--ceh-primary);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ceh-stat-card__icon svg {
    width: 48px;
    height: 48px;
}

.ceh-stat-card__number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ceh-primary);
    margin-bottom: 0.5rem;
}

.ceh-stat-card__label {
    font-size: 0.875rem;
    color: var(--ceh-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   SINGLE CASO (Página individual)
   ======================================== */

/*.ceh-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ceh-single-caso__header {
    text-align: center;
    padding: 3rem 0 2rem;
}

.ceh-single-caso__meta {
    margin-bottom: 1rem;
}

.ceh-single-caso__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.ceh-single-caso__alcance {
    font-size: 1.25rem;
    color: #666;
}

.ceh-single-caso__featured-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.ceh-single-caso__featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ceh-single-caso__content {
    margin-bottom: 3rem;
}

.ceh-single-caso__kpis-section {
    margin-bottom: 3rem;
}

.ceh-single-kpis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.ceh-single-kpi-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
}

.ceh-single-kpi-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ceh-single-kpi-card__value {
    font-size: 2rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 0.5rem;
}

.ceh-single-kpi-card__label {
    font-size: 0.875rem;
    color: #666;
}

.ceh-single-caso__datos-proyecto {
    margin-bottom: 3rem;
}

.ceh-proyecto-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.ceh-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ceh-detail-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #666;
}

.ceh-detail-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
}

.ceh-single-caso__main-content {
    margin-bottom: 3rem;
    line-height: 1.8;
}

.ceh-single-caso__taxonomies {
    margin-bottom: 3rem;
}

.ceh-tax-group {
    margin-bottom: 2rem;
}

.ceh-tax-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.ceh-tax-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #e0e0e0;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.ceh-single-caso__cta-section {
    background: #0066cc;
    color: white;
    text-align: center;
    padding: 3rem 1.5rem;
}

.ceh-single-caso__cta-section h2 {
    font-size: 2rem;
    margin: 0 0 1rem 0;
}

.ceh-single-caso__cta-section p {
    font-size: 1.125rem;
    margin: 0 0 2rem 0;
}

.ceh-single-caso__cta-section .ceh-btn-primary {
    background: white;
    color: #0066cc;
}*/

/* ========================================
   SINGLE CASO (Página individual)
   ======================================== */

/* Container principal */
.ceh-container {
    max-width: 1400px;           /* MÁS ancho */
    margin: 0 auto;
    padding-left: 1rem;          /* MENOS padding */
    padding-right: 1rem;
}

/* Header */
.ceh-single-caso__header {
    text-align: center;
    padding: 3rem 0 2rem;
}

.ceh-single-caso__meta {
    margin-bottom: 1rem;
}

.ceh-single-caso__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.ceh-single-caso__alcance {
    font-size: 1.25rem;
    color: #666;
    max-width: 900px;
    margin: 0 auto;
}

/* Imagen destacada */
.ceh-single-caso__featured-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.ceh-single-caso__featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenido */
.ceh-single-caso__content {
    margin-bottom: 3rem;
}

/* KPIs */
.ceh-single-caso__kpis-section {
    margin-bottom: 3rem;
}

.ceh-single-kpis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.ceh-single-kpi-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ceh-single-kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ICONO SVG */
.ceh-single-kpi-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
}

.ceh-single-kpi-card__icon svg {
    width: 100%;
    height: 100%;
    fill: #0066cc;
}

/* Valor KPI */
.ceh-single-kpi-card__value {
    font-size: 2rem;
    font-weight: 700;
    color: #0097E0;
    margin-bottom: 0.5rem;
}

.ceh-single-kpi-card__label {
    font-size: 0.875rem;
    color: #666;
}

/* Datos del proyecto */
.ceh-single-caso__datos-proyecto {
    margin-bottom: 3rem;
}

.ceh-proyecto-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.ceh-detail-item {
    background: #fafafa;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ceh-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
}

.ceh-detail-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
}

/* Contenido principal */
.ceh-single-caso__main-content {
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 1000px;
}

/* Taxonomías */
.ceh-single-caso__taxonomies {
    margin-bottom: 3rem;
}

.ceh-tax-group {
    margin-bottom: 2rem;
}

.ceh-tax-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.ceh-tax-tag {
    padding: 0.4rem 0.9rem;
    background: #e6e6e6;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
}

/* CTA */
.ceh-single-caso__cta-section {
    background: #0097E0;
    color: white;
    text-align: center;
    padding: 4rem 1.5rem;
    
     width: 100vw;
    margin-left: calc(50% - 50vw);
}

.ceh-single-caso__cta-section h2 {
    font-size: 2rem;
    margin: 0 0 1rem 0;
}

.ceh-single-caso__cta-section p {
    font-size: 1.125rem;
    margin: 0 0 2rem 0;
}

.ceh-single-caso__cta-section .ceh-btn-primary {
    background: white;
    color: #0097E0;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
}

/* Elementor fixes */
.single-ceh_caso .elementor-section > .elementor-container {
    max-width: 1400px;
    padding-left: 1rem;
    padding-right: 1rem;
}



/* ========================================
   ICONOS SVG EN SINGLE CASO
   ======================================== */

.ceh-single-kpi-card__icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ceh-single-kpi-card__icon svg {
    width: 48px;
    height: 48px;
    color: var(--ceh-primary);
    transition: var(--ceh-transition);
}

.ceh-single-kpi-card:hover .ceh-single-kpi-card__icon svg {
    transform: scale(1.1);
}

/* Colores específicos por tipo de KPI */
.ceh-single-kpi-card:nth-child(1) .ceh-single-kpi-card__icon svg {
    color: #ff6b6b; /* Energía - Rojo */
}

.ceh-single-kpi-card:nth-child(2) .ceh-single-kpi-card__icon svg {
    color: #4ecdc4; /* IAQ - Verde azulado */
}

.ceh-single-kpi-card:nth-child(3) .ceh-single-kpi-card__icon svg {
    color: #95e1d3; /* Uptime - Verde claro */
}

.ceh-single-kpi-card:nth-child(4) .ceh-single-kpi-card__icon svg {
    color: #45b7d1; /* ROI - Azul */
}

.ceh-single-kpi-card:nth-child(5) .ceh-single-kpi-card__icon svg {
    color: #f7b731; /* Payback - Amarillo */
}

.ceh-single-kpi-card:nth-child(6) .ceh-single-kpi-card__icon svg {
    color: #5f27cd; /* OPEX - Morado */
}

/* ========================================
   ✅ RESPONSIVE - CORREGIDO
   ======================================== */

@media (max-width: 768px) {
    .ceh-filtros-title {
        font-size: 1.5rem;
    }

    /* ✅ MOSTRAR TOGGLE SOLO EN MÓVIL */
    .ceh-filtros-toggle {
        display: flex !important;
    }

    .ceh-filtros-container {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .ceh-filtros-container--visible {
        max-height: 2000px;
    }

    .ceh-filtros-row {
        grid-template-columns: 1fr;
    }

    .ceh-filtros-actions {
        flex-direction: column;
    }

    .ceh-btn {
        width: 100%;
    }

    .ceh-grid-casos {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ceh-banner-metodologia {
        padding: 2rem 1rem;
    }

    .ceh-banner-metodologia__title {
        font-size: 1.5rem;
    }

    .ceh-banner-metodologia__badges {
        gap: 1rem;
    }

    /* ✅ CAROUSEL EN MÓVIL - SIN BOTONES */
    .ceh-industrias-track {
        padding: 0 1rem;
    }

    .ceh-carousel-btn {
        display: none !important;
    }

    .ceh-industria-tile {
        flex: 0 0 260px;
    }

    .ceh-form-contacto-wrapper {
        padding: 2rem 1rem;
    }

    .ceh-form-row {
        grid-template-columns: 1fr;
    }

    .ceh-stats-grid {
        grid-template-columns: 1fr;
    }

    .ceh-single-caso__title {
        font-size: 1.75rem;
    }

    .ceh-single-kpis-grid,
    .ceh-proyecto-details {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .ceh-grid-casos {
        grid-template-columns: repeat(2, 1fr);
    }

    .ceh-filtros-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .ceh-carousel-btn--prev {
        left: 10px;
    }

    .ceh-carousel-btn--next {
        right: 10px;
    }
}

/* ========================================
   LOADING & ESTADOS
   ======================================== */

.ceh-loading {
    text-align: center;
    padding: 2rem;
    color: var(--ceh-text-light);
}

.ceh-loading::after {
    content: '...';
    animation: ceh-dots 1.5s steps(4, end) infinite;
}

@keyframes ceh-dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.ceh-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--ceh-radius);
    padding: 1rem;
    margin: 1rem 0;
    color: #856404;
}

.ceh-success {
    background: #d4edda;
    border: 1px solid #28a745;
    border-radius: var(--ceh-radius);
    padding: 1rem;
    margin: 1rem 0;
    color: #155724;
}

/* ========================================
   UTILIDADES
   ======================================== */

.ceh-hidden {
    display: none !important;
}

.ceh-text-center {
    text-align: center;
}

.ceh-mt-1 { margin-top: 0.5rem; }
.ceh-mt-2 { margin-top: 1rem; }
.ceh-mt-3 { margin-top: 1.5rem; }
.ceh-mt-4 { margin-top: 2rem; }

.ceh-mb-1 { margin-bottom: 0.5rem; }
.ceh-mb-2 { margin-bottom: 1rem; }
.ceh-mb-3 { margin-bottom: 1.5rem; }
.ceh-mb-4 { margin-bottom: 2rem; }