/* ======================================================
   PAGINAS / BLOG — C4 SYSTEM (Nivel profesional)
====================================================== */

/* =========================
   CONTENEDOR GENERAL
========================= */

.pagina-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* =========================
   HEADER DE PÁGINA
========================= */

.pagina-header {
    margin-bottom: 40px;
}

.pagina-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}

.pagina-header p {
    font-size: 16px;
    color: #6b7280;
    max-width: 720px;
    line-height: 1.6;
}

/* =========================
   SECCIÓN
========================= */

.pagina-section {
    margin-top: 30px;
}

.pagina-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #111827;
}

.pagina-section p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

/* =========================
   GRID DE CARDS
========================= */

.pagina-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

/* =========================
   CARD BASE
========================= */

.pagina-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;

    transition: all .25s ease;
    display: flex;
    flex-direction: column;
}

.pagina-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.08);
}

/* =========================
   IMAGEN
========================= */

.pagina-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f3f4f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagina-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.pagina-card:hover .pagina-card-image img {
    transform: scale(1.05);
}

/* SIN IMAGEN */

.pagina-card-image .no-image {
    font-size: 13px;
    color: #9ca3af;
}

/* =========================
   BODY
========================= */

.pagina-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* TÍTULO */

.pagina-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* DESCRIPCIÓN */

.pagina-card-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 12px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================
   ACCIONES
========================= */

.pagina-card-actions {
    margin-top: auto;
}

/* BOTÓN */

.pagina-card-actions a {
    display: inline-block;
    width: 100%;
    text-align: center;

    padding: 10px;
    font-size: 14px;
    font-weight: 600;

    background: #1f2937;
    color: #ffffff;

    border-radius: 6px;
    transition: background .2s ease;
}

.pagina-card-actions a:hover {
    background: #111827;
}

/* =========================
   EMPTY STATE
========================= */

.pagina-empty {
    padding: 40px;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    text-align: center;
    color: #6b7280;
    background: #fafafa;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .pagina-header h1 {
        font-size: 28px;
    }

    .pagina-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 480px) {

    .pagina-container {
        padding: 30px 15px;
    }

    .pagina-grid {
        grid-template-columns: 1fr;
    }

    .pagina-card-title {
        font-size: 15px;
    }
}



/* ======================================================
   HEADER DE PÁGINA CMS
   Página principal: /behringer, /yamaha, etc.
====================================================== */

/* ======================================================
   CENTRO DE CONDICIONES Y DOCUMENTOS DESPLEGABLES
   Se limita a .c4-service-hub y .c4-legal para no alterar
   las páginas técnicas existentes del CMS.
====================================================== */

.c4-service-hub,
.c4-legal {
    --c4-ink: #0f172a;
    --c4-muted: #475569;
    --c4-line: #d1d5db;
    --c4-soft: #f3f4f6;
    --c4-accent: #702632;
    --c4-accent-dark: #591e28;
    --c4-accent-soft: #f7f7f8;
    --c4-slate: #334155;
    color: var(--c4-ink);
    font-size: 16px;
    line-height: 1.72;
}

.pagina-container--legal {
    max-width: 1180px;
    padding-top: 28px;
}

.pagina-container--legal .pagina-header {
    max-width: 1060px;
    margin: 0 auto;
    padding: 18px 20px 24px;
}

.pagina-container--legal .pagina-header-inner {
    margin-bottom: 0;
}

.pagina-container--legal .pagina-titulo {
    max-width: 1020px;
    margin: 0 auto 14px;
    font-size: clamp(30px, 3.2vw, 42px);
    line-height: 1.18;
    text-wrap: balance;
}

.pagina-container--legal .pagina-descripcion {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.65;
    text-align: center;
}

.pagina-container--legal .pagina-section {
    margin-top: 0;
}

.pagina-container--legal .pagina-html-content {
    max-width: 1080px;
    margin: 0 auto;
}

.c4-document-nav {
    max-width: 1080px;
    margin-right: auto;
    margin-left: auto;
}

.c4-document-nav--top {
    margin-bottom: 18px;
}

.c4-document-nav--bottom {
    margin-top: 24px;
}

.c4-document-nav a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.c4-document-nav a:hover {
    border-color: var(--c4-accent);
    background: var(--c4-soft);
    color: var(--c4-ink);
}

.c4-service-hub p,
.c4-legal p {
    color: var(--c4-muted);
    font-size: 16px;
    line-height: 1.72;
}

.c4-hub-intro,
.c4-legal-intro {
    max-width: 900px;
    margin: 0 auto 24px;
    padding-top: 6px;
    text-align: center;
}

.c4-kicker {
    color: var(--c4-slate) !important;
    font-size: 13px !important;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.c4-flow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 26px 0 38px;
    padding: 0;
    list-style: none;
}

.c4-flow li {
    position: relative;
    padding: 14px 10px;
    border: 1px solid var(--c4-line);
    border-radius: 10px;
    background: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.c4-hub-group {
    margin: 34px 0;
}

.c4-hub-group > h2 {
    margin-bottom: 6px;
    font-size: 24px;
}

.c4-hub-group > p {
    margin-top: 0;
}

.c4-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.c4-hub-card {
    display: flex;
    flex-direction: column;
    min-height: 215px;
    padding: 24px;
    border: 1px solid var(--c4-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.c4-hub-card:hover {
    transform: translateY(-3px);
    border-color: var(--c4-accent);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .09);
}

.c4-hub-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
}

.c4-hub-card p {
    margin: 0 0 18px;
}

.c4-hub-card a {
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 15px;
    border-radius: 8px;
    background: var(--c4-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.c4-hub-card a:hover {
    background: var(--c4-slate);
}

.c4-alert,
.c4-note {
    margin: 24px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--c4-accent);
    border-radius: 0 10px 10px 0;
    background: var(--c4-accent-soft);
    color: #1f2937;
}

.c4-note {
    border-left-color: var(--c4-slate);
    background: var(--c4-soft);
    color: var(--c4-ink);
}

.c4-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 24px 0 30px;
}

.c4-quick-links a {
    padding: 8px 12px;
    border: 1px solid var(--c4-line);
    border-radius: 999px;
    background: #fff;
    color: var(--c4-ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.c4-quick-links a:hover {
    border-color: var(--c4-accent);
    color: var(--c4-ink);
}

.c4-legal details {
    margin: 12px 0;
    scroll-margin-top: 110px;
    border: 1px solid var(--c4-line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.c4-legal summary {
    position: relative;
    padding: 18px 52px 18px 20px;
    color: var(--c4-ink);
    cursor: pointer;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.4;
    list-style: none;
}

.c4-legal summary::-webkit-details-marker {
    display: none;
}

.c4-legal summary::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: var(--c4-accent);
    font-size: 25px;
    font-weight: 500;
}

.c4-legal details[open] > summary {
    border-bottom: 1px solid var(--c4-line);
    background: var(--c4-soft);
}

.c4-legal details[open] > summary::after {
    content: '−';
}

.c4-detail-body {
    padding: 18px 20px 4px;
}

.c4-detail-body ul {
    margin: 0 0 18px;
    padding-left: 22px;
}

.c4-detail-body li {
    margin: 7px 0;
    color: var(--c4-muted);
}

.c4-related {
    margin-top: 34px;
    padding: 22px;
    border-radius: 12px;
    background: var(--c4-soft);
}

.c4-related h2 {
    margin-top: 0;
}

.c4-related ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.c4-related li {
    margin: 0;
}

.c4-related a {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 15px;
    border: 1px solid #dbe3ec;
    border-radius: 9px;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.c4-related a::after {
    content: '→';
    flex: 0 0 auto;
    color: var(--c4-accent);
    font-size: 18px;
}

.c4-related a:hover {
    border-color: var(--c4-accent);
    color: var(--c4-ink);
}

@media (max-width: 760px) {
    .pagina-container--legal {
        padding: 18px 14px 34px;
    }

    .pagina-container--legal .pagina-header {
        padding: 14px 2px 20px;
    }

    .pagina-container--legal .pagina-titulo {
        font-size: 28px;
    }

    .pagina-container--legal .pagina-descripcion {
        font-size: 15px;
        text-align: left;
    }

    .c4-document-nav a {
        width: 100%;
        justify-content: center;
    }

    .c4-flow,
    .c4-hub-grid,
    .c4-related ul {
        grid-template-columns: 1fr;
    }

    .c4-flow li {
        text-align: left;
    }

    .c4-hub-card {
        min-height: 0;
    }

    .c4-legal summary {
        padding: 16px 46px 16px 16px;
        font-size: 16px;
    }

    .c4-detail-body {
        padding: 16px 16px 2px;
    }
}

.pagina-header {
    padding: 25px 20px 10px; /* 🔥 antes 80px → demasiado */
    margin-bottom: 0; /* 🔥 elimina espacio fantasma */
}

.pagina-header-inner {
    max-width: 1200px;
    margin: 0 auto 15px;
    text-align: center;
}

.pagina-titulo {
    text-align: center;
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 15px;
}

.pagina-descripcion {
    max-width: 1050px;
    margin: 0 auto 12px; /* 🔥 centrado + separación justa */
    padding: 0 10px;

    text-align: justify;
    font-size: 17px;
    line-height: 1.85;
    color: #334155;
}

.pagina-grid {
    margin-top: 8px; /* 🔥 controla la cercanía real */
}

.pagina-descripcion p {
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    .pagina-header {
        padding: 30px 15px 30px;
    }

    .pagina-titulo {
        font-size: 30px;
    }

    .pagina-descripcion {
        max-width: 100%;
        font-size: 16px;
        line-height: 1.75;
        text-align: left;
        padding: 0;
    }
}

/* ======================================================
   ITEM DETALLE PRO — C4 SYSTEM
   URL: /marca/item
====================================================== */

.item-page {
    background: #f8fafc;
}

/* ======================================================
   HERO PRO
====================================================== */

.item-hero-pro {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.item-hero-pro-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    filter: blur(4px) brightness(0.55);
}

.item-hero-pro-bg--empty {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    filter: none;
    transform: none;
}

.item-hero-pro-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(15, 23, 42, 0.88),
            rgba(15, 23, 42, 0.55),
            rgba(15, 23, 42, 0.88)
        );
}

.item-hero-pro-content {
    position: relative;
    z-index: 2;
    max-width: 1050px;
    margin: 0 auto;
    padding: 60px 24px;
    text-align: center;
    color: #ffffff;
}

.item-breadcrumb {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
}

.item-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
}

.item-breadcrumb a:hover {
    text-decoration: underline;
}

.item-breadcrumb span {
    color: #94a3b8;
}

.item-breadcrumb strong {
    color: #e2e8f0;
    font-weight: 600;
}

.item-hero-pro-content h1 {
    margin: 0 0 18px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -0.03em;
    text-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.item-hero-pro-content p {
    max-width: 850px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.75;
    color: #e5e7eb;
}

/* ======================================================
   BOTONES HERO / CTA
====================================================== */

.item-hero-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.item-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all .22s ease;
    border: 1px solid transparent;
}

.item-btn-primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28);
}

.item-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.item-btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
}

.item-btn-secondary:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

.item-btn-outline {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
}

.item-btn-outline:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

/* ======================================================
   WRAP DETALLE
====================================================== */

.item-detail-wrap {
    max-width: 1200px;
    margin: 0 auto 70px;
    padding: 0 22px;
    position: relative;
    z-index: 4;
}

.item-detail-grid {
    display: grid;
    grid-template-columns: minmax(320px, 430px) 1fr;
    gap: 28px;
    align-items: start;
}

/* ======================================================
   COLUMNA IMAGEN
====================================================== */

.item-detail-media {
    display: grid;
    gap: 18px;
}

.item-main-image {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.item-main-image img {
    width: 100%;
    height: auto;
    min-height: 320px;
    max-height: 560px;
    object-fit: cover;
    display: block;
}

.item-main-image .no-image {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #f1f5f9;
}

/* ======================================================
   MINI INFO
====================================================== */

.item-mini-info {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.item-mini-info h3 {
    margin: 0 0 14px;
    font-size: 18px;
    color: #0f172a;
}

.item-mini-info ul {
    margin: 0;
    padding-left: 18px;
}

.item-mini-info li {
    margin-bottom: 8px;
    color: #475569;
    line-height: 1.5;
}

/* ======================================================
   CONTENIDO DERECHA
====================================================== */

.item-detail-content {
    display: grid;
    gap: 22px;
}

.item-content-header {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 28px 30px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.item-label {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1e40af;
    font-size: 13px;
    font-weight: 800;
}

.item-content-header h2 {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.2;
    color: #0f172a;
}

.item-content-header p {
    margin: 0;
    color: #475569;
    line-height: 1.75;
    font-size: 16px;
}

.item-content-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    padding: 34px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

/* ======================================================
   TEXTO TÉCNICO
====================================================== */

.item-text-pro {
    font-size: 16px;
    color: #334155;
    line-height: 1.85;
}

.item-text-pro h1,
.item-text-pro h2,
.item-text-pro h3,
.item-text-pro h4 {
    color: #0f172a;
    line-height: 1.25;
}

.item-text-pro h2 {
    margin: 30px 0 14px;
    font-size: 26px;
}

.item-text-pro h3 {
    margin: 24px 0 12px;
    font-size: 21px;
}

.item-text-pro p {
    margin: 0 0 18px;
}

.item-text-pro ul,
.item-text-pro ol {
    margin: 0 0 22px 22px;
}

.item-text-pro li {
    margin-bottom: 8px;
}

.item-text-pro strong {
    color: #0f172a;
}

.item-text-pro img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 18px 0;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

/* ======================================================
   EMPTY CONTENT
====================================================== */

.item-empty-content {
    padding: 28px;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    text-align: center;
}

.item-empty-content h3 {
    margin: 0 0 8px;
    color: #0f172a;
}

.item-empty-content p {
    margin: 0;
    color: #64748b;
}

/* ======================================================
   CTA BOX
====================================================== */

.item-cta-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 18px;
    padding: 30px;
    color: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

.item-cta-box h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.item-cta-box p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.65;
}

.item-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ======================================================
   VOLVER
====================================================== */

.item-back-link {
    padding: 4px 2px;
}

.item-back-link a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.item-back-link a:hover {
    text-decoration: underline;
}

/* ======================================================
   RESPONSIVE ITEM
====================================================== */

@media (max-width: 980px) {
    .item-detail-grid {
        grid-template-columns: 1fr;
    }

    .item-detail-wrap {
    margin-top: 0;
}

    .item-main-image img {
        max-height: none;
    }

    .item-cta-box {
        grid-template-columns: 1fr;
    }

    .item-cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .item-hero-pro {
        min-height: 360px;
    }

    .item-hero-pro-content {
        padding: 45px 18px;
    }

    .item-hero-pro-content p {
        font-size: 16px;
    }

    .item-detail-wrap {
        padding: 0 15px;
        margin-bottom: 45px;
    }

    .item-content-header,
    .item-content-card,
    .item-cta-box,
    .item-mini-info {
        padding: 22px;
        border-radius: 14px;
    }

    .item-content-header h2 {
        font-size: 24px;
    }

    .item-hero-actions,
    .item-cta-actions {
        flex-direction: column;
    }

    .item-btn {
        width: 100%;
    }
}

/* ======================================================
   ITEM GALERÍA / SLIDER REAL
   Basado en slider HOME
====================================================== */

.item-gallery-slider {
    max-width: 1400px;
    height: 520px;
    margin: 35px auto 45px;
    padding: 0 22px;
    position: relative;
}

.item-gallery-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.item-gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility .6s ease;
    border-radius: 18px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

.item-gallery-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.item-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay */
.item-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.20);
}

/* Texto sobre imagen */
.item-gallery-caption {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    z-index: 2;
}

.item-gallery-caption h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.item-gallery-caption p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.5;
}

/* Flechas */
.item-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;

    background: rgba(15, 23, 42, 0.72);
    color: #fff;

    font-size: 22px;
    font-weight: 700;
    cursor: pointer;

    transition: background .2s ease, transform .2s ease;
}

.item-gallery-nav:hover {
    background: rgba(15, 23, 42, 0.95);
    transform: translateY(-50%) scale(1.05);
}

.item-gallery-prev {
    left: 38px;
}

.item-gallery-next {
    right: 38px;
}

/* Dots */
.item-gallery-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 6;

    display: flex;
    gap: 8px;
}

.item-gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: all .2s ease;
}

.item-gallery-dot.is-active {
    background: #ffffff;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .item-gallery-slider {
        height: 300px;
        margin-top: 25px;
        padding: 0 15px;
    }

    .item-gallery-prev {
        left: 24px;
    }

    .item-gallery-next {
        right: 24px;
    }

    .item-gallery-caption {
        left: 18px;
        right: 18px;
        bottom: 45px;
        padding: 14px;
    }
}

/* ======================================================
   ITEM HERO-SLIDER
   El slider funciona como banner principal
====================================================== */

.item-gallery-slider--hero {
    max-width: none;
    width: 100%;
    height: 520px;
    margin: 0 0 50px;
    padding: 0;
    border-radius: 0;
}

.item-gallery-slider--hero .item-gallery-slide {
    border-radius: 0;
    box-shadow: none;
}

.item-gallery-slider--hero .item-gallery-overlay {
    background: rgba(15, 23, 42, 0.35);
}

.item-gallery-slider--hero .item-hero-pro-content {
    position: absolute;
    inset: 0;
    z-index: 4;

    max-width: 1050px;
    margin: 0 auto;
    padding: 70px 24px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: #ffffff;
}

/* ======================================================
   TEXTO PRO (ITEM DETALLE)
====================================================== */

.item-text-pro {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}

.item-text-pro h3 {
    margin: 25px 0 10px;
    font-size: 18px;
    color: #0f172a;
}

.item-text-pro ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.item-text-pro li {
    margin-bottom: 6px;
    list-style: disc;
}

.item-text-pro p {
    margin-bottom: 12px;
}

/* ======================================================
   LISTA CHECK PROFESIONAL
====================================================== */

.item-checklist {
    list-style: none;
    padding: 0;
    margin-top: 12px;
}

.item-checklist li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    color: #334155;
    font-size: 15px;
}

.item-checklist li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #2563eb;
    font-weight: bold;
}

/* ======================================================
   MINI INFO PRO (cards)
====================================================== */

.item-mini-info {
    margin-top: 25px;
}

.item-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.item-mini-card {
    display: flex;
    align-items: center;
    gap: 10px;

    background: #f8fafc;
    padding: 12px 14px;
    border-radius: 10px;

    border: 1px solid #e2e8f0;
    transition: 0.2s;
}

.item-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.item-mini-icon {
    font-size: 18px;
}

.item-mini-text {
    font-size: 14px;
    color: #334155;
    font-weight: 500;
}

/* =====================================================
   CONTENIDO LEGAL / TÉRMINOS C4 SYSTEM
===================================================== */
.legal-content {
    max-width: 980px;
    margin: 0 auto;
    color: #334155;
}

.legal-intro {
    padding: 28px 32px;
    margin-bottom: 28px;
    border: 1px solid rgba(37, 99, 235, .18);
    border-left: 5px solid #2563eb;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}

.legal-kicker {
    margin-bottom: 14px !important;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.legal-content p {
    margin: 0 0 16px;
    color: #475569;
    font-size: 15px;
    line-height: 1.8;
}

.legal-content strong {
    color: #0f172a;
}

.legal-section {
    padding: 26px 0;
    border-bottom: 1px solid rgba(148, 163, 184, .28);
}

.legal-section:last-child {
    border-bottom: 0;
}

.legal-section h2 {
    margin: 0 0 14px;
    color: #020617;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -.02em;
}

.legal-check-list {
    display: grid;
    gap: 10px;
    margin: 16px 0 18px;
    padding: 0;
    list-style: none;
}

.legal-check-list li {
    position: relative;
    padding-left: 30px;
    color: #334155;
    font-size: 15px;
    line-height: 1.7;
}

.legal-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .10);
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    line-height: 20px;
    text-align: center;
}

.legal-alert {
    margin: 0 0 22px;
    padding: 18px 22px;
    border-radius: 16px;
    background: #0f172a;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.7;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
}

.legal-alert strong {
    color: #ffffff;
}

.legal-note {
    margin: 18px 0;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, .16);
    background: #f8fafc;
    color: #334155;
    font-size: 15px;
    line-height: 1.7;
}

.legal-note ul {
    margin: 12px 0 0;
    padding-left: 20px;
}

.legal-note li {
    margin-bottom: 8px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .legal-intro {
        padding: 22px;
    }

    .legal-section h2 {
        font-size: 20px;
    }

    .legal-content p,
    .legal-check-list li {
        font-size: 14px;
    }
}
/* ======================================================
   CMS EQUIPOS — LANDING TÉCNICA MODULAR
   Secciones públicas reutilizables para pagina_items
====================================================== */

.item-gallery-slider--hero {
    margin-bottom: 34px;
}

.item-gallery-slider--hero .item-gallery-overlay {
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, .84) 0%,
        rgba(15, 23, 42, .54) 48%,
        rgba(15, 23, 42, .28) 100%
    );
}

.item-gallery-slider--hero .item-hero-pro-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    max-width: none;
    padding: 56px 64px;
    text-align: left;
    pointer-events: none;
}

.item-gallery-slider--hero .item-breadcrumb,
.item-gallery-slider--hero .item-breadcrumb a {
    font-size: 14px;
    letter-spacing: .12em;
}

.item-gallery-slider--hero .item-hero-pro-content h1 {
    max-width: 900px;
    margin-bottom: 12px;
}

.item-gallery-slider--hero .item-hero-pro-content p {
    max-width: 760px;
    margin: 0;
    text-align: left;
}

.item-gallery-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
}

.item-gallery-dot.is-active {
    background: #ffffff;
    transform: scale(1.18);
}

.item-detail-wrap {
    display: grid;
    gap: 30px;
}

.item-service-summary {
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    gap: 30px;
    align-items: stretch;
}

.item-service-summary__media,
.item-service-summary__content,
.item-section,
.item-intake-cta {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, .08);
}

.item-service-summary__media {
    overflow: hidden;
}

.item-service-summary__media .item-main-image {
    height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.item-service-summary__media .item-main-image img {
    width: 100%;
    height: 100%;
    min-height: 440px;
    max-height: none;
    object-fit: cover;
}

.item-service-summary__content {
    padding: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-section-kicker {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 12px;
    color: #15803d;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.item-service-summary__content h2,
.item-section-heading h2,
.item-intake-cta h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    letter-spacing: -.025em;
}

.item-service-summary__description {
    margin-top: 18px;
    color: #475569;
    font-size: 16px;
    line-height: 1.8;
}

.item-service-summary__highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.item-highlight {
    min-width: 0;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.item-highlight__icon {
    flex: 0 0 auto;
    font-size: 21px;
}

.item-highlight strong,
.item-highlight span {
    display: block;
}

.item-highlight strong {
    margin-bottom: 4px;
    color: #0f172a;
    font-size: 14px;
}

.item-highlight div > span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.item-section {
    padding: 38px;
}

.item-section-heading {
    max-width: 820px;
    margin-bottom: 26px;
}

.item-section-heading--center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.item-section-heading--center .item-section-kicker {
    align-self: center;
}

.item-section-heading p {
    margin: 14px 0 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}

.item-repair-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.item-repair-card {
    min-width: 0;
    padding: 21px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.item-repair-card:hover {
    transform: translateY(-3px);
    border-color: #bbf7d0;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .07);
}

.item-repair-card__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    border-radius: 12px;
    font-size: 20px;
}

.item-repair-card h3 {
    margin: 0 0 7px;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.35;
}

.item-repair-card p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.item-intake {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.item-intake-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.item-intake-step {
    position: relative;
    min-width: 0;
    padding: 22px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.item-intake-step__number {
    display: inline-flex;
    margin-bottom: 14px;
    color: #16a34a;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .1em;
}

.item-intake-step h3 {
    margin: 0 0 9px;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.35;
}

.item-intake-step p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.item-intake-notice {
    margin-top: 18px;
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
}

.item-intake-notice p {
    margin: 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}

.item-technical-case__content {
    padding: 30px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #16a34a;
    border-radius: 16px;
}

.item-technical-case__content > :first-child {
    margin-top: 0;
}

.item-technical-case__content > :last-child {
    margin-bottom: 0;
}

.item-intake-cta {
    padding: 40px 28px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 4px solid #16a34a;
}

.item-intake-cta__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    border-radius: 50%;
    font-size: 24px;
}

.item-intake-cta .item-section-kicker {
    align-self: center;
}

.item-intake-cta > p {
    max-width: 760px;
    margin: 16px auto 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.75;
}

.item-intake-cta__benefits {
    width: min(100%, 620px);
    margin: 22px auto 0;
    display: grid;
    gap: 8px;
    color: #334155;
    font-size: 14px;
    text-align: left;
}

.item-intake-cta__benefits span::first-letter {
    color: #16a34a;
}

.item-intake-cta__button {
    width: min(100%, 520px);
    margin-top: 26px;
    padding: 17px 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    border-radius: 13px;
    box-shadow: 0 9px 20px rgba(22, 163, 74, .25);
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.item-intake-cta__button:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 13px 28px rgba(22, 163, 74, .32);
}

.item-intake-cta small {
    max-width: 670px;
    margin-top: 16px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.item-back-link {
    padding: 2px 4px 0;
}

@media (max-width: 1050px) {
    .item-service-summary__highlights,
    .item-repair-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .item-intake-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .item-intake-step:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    .item-gallery-slider--hero .item-hero-pro-content {
        padding: 42px 38px;
    }

    .item-service-summary {
        grid-template-columns: 1fr;
    }

    .item-service-summary__media .item-main-image img {
        min-height: 320px;
        max-height: 520px;
    }
}

@media (max-width: 640px) {
    .item-gallery-slider {
        height: 430px;
        margin: 20px auto 30px;
        padding: 0 14px;
    }

    .item-gallery-slider--hero .item-hero-pro-content {
        padding: 34px 28px;
    }

    .item-gallery-slider--hero .item-hero-pro-content h1 {
        font-size: 30px;
    }

    .item-gallery-prev {
        left: 20px;
    }

    .item-gallery-next {
        right: 20px;
    }

    .item-service-summary__content,
    .item-section,
    .item-intake-cta {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .item-service-summary__highlights,
    .item-repair-grid,
    .item-intake-steps {
        grid-template-columns: 1fr;
    }

    .item-intake-step:last-child {
        grid-column: auto;
    }

    .item-technical-case__content {
        padding: 20px;
    }

    .item-intake-cta__button {
        font-size: 15px;
    }
}


/* ======================================================
   CMS EQUIPOS V2 — MEJORAS VISUALES
   Ajustes sobre V1 sin modificar datos ni administración
====================================================== */

/* Más presencia visual para la ficha inicial */
.item-detail-wrap {
    gap: 34px;
    padding-bottom: 18px;
}

.item-service-summary {
    grid-template-columns: minmax(360px, 46%) minmax(0, 1fr);
    gap: 32px;
}

.item-service-summary__media,
.item-service-summary__content,
.item-section,
.item-intake-cta {
    box-shadow: 0 18px 46px rgba(15, 23, 42, .09);
}

.item-service-summary__media .item-main-image img {
    min-height: 500px;
    object-position: center;
}

.item-service-summary__content {
    padding: 44px;
}

.item-service-summary__description {
    max-width: 720px;
    margin-top: 20px;
}

.item-service-summary__highlights {
    gap: 14px;
    margin-top: 32px;
}

.item-highlight {
    min-height: 118px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-color: #dbe4ef;
}

.item-highlight__icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 11px;
    font-size: 19px;
}

/* Encabezados más claros */
.item-section {
    padding: 44px;
}

.item-section-heading {
    margin-bottom: 30px;
}

.item-section-heading p {
    max-width: 760px;
}

.item-section-heading--center p {
    margin-right: auto;
    margin-left: auto;
}

/* Áreas: tarjeta vertical con icono protagonista */
.item-repair-grid {
    gap: 18px;
}

.item-repair-card {
    min-height: 210px;
    padding: 25px 23px;
    flex-direction: column;
    gap: 17px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-color: #dbe4ef;
}

.item-repair-card__icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    border-radius: 15px;
    font-size: 23px;
    box-shadow: inset 0 0 0 1px rgba(22, 163, 74, .08);
}

.item-repair-card h3 {
    margin-bottom: 9px;
    font-size: 17px;
}

.item-repair-card p {
    font-size: 14px;
    line-height: 1.7;
}

/* Proceso: secuencia visual conectada */
.item-intake-steps {
    position: relative;
    gap: 16px;
}

.item-intake-steps::before {
    content: "";
    position: absolute;
    top: 41px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, #bbf7d0, #16a34a, #bbf7d0);
    z-index: 0;
}

.item-intake-step {
    z-index: 1;
    min-height: 230px;
    padding: 24px 20px;
    background: #ffffff;
    border-color: #dbe4ef;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}

.item-intake-step__number {
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    align-items: center;
    justify-content: center;
    background: #16a34a;
    color: #ffffff;
    border: 5px solid #f0fdf4;
    border-radius: 50%;
    box-sizing: content-box;
    letter-spacing: 0;
    box-shadow: 0 0 0 1px #bbf7d0;
}

.item-intake-step h3 {
    font-size: 17px;
}

.item-intake-step p {
    font-size: 13.5px;
    line-height: 1.7;
}

.item-intake-notice {
    margin-top: 22px;
}

/* Caso técnico: apariencia de expediente profesional */
.item-technical-case__content {
    padding: 34px 36px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-color: #dbe4ef;
    border-left-width: 5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.item-technical-case__content h2,
.item-technical-case__content h3,
.item-technical-case__content h4 {
    position: relative;
    margin-top: 26px;
    padding: 0 0 10px 28px;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
}

.item-technical-case__content h2::before,
.item-technical-case__content h3::before,
.item-technical-case__content h4::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #16a34a;
    font-weight: 900;
}

.item-technical-case__content p,
.item-technical-case__content li {
    color: #475569;
    line-height: 1.75;
}

.item-technical-case__content ul,
.item-technical-case__content ol {
    padding-left: 24px;
}

/* CTA final: acción principal más visible */
.item-intake-cta {
    padding: 48px 32px 42px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fff9 100%);
    border-top-width: 5px;
}

.item-intake-cta__icon {
    width: 58px;
    height: 58px;
    margin-bottom: 15px;
    box-shadow: 0 0 0 8px #f0fdf4;
}

.item-intake-cta__button {
    width: min(100%, 560px);
    padding: 19px 30px;
    border-radius: 14px;
    font-size: 18px;
    box-shadow: 0 12px 25px rgba(22, 163, 74, .28);
}

.item-intake-cta__benefits {
    gap: 10px;
    font-size: 14.5px;
}

/* Responsive V2 */
@media (max-width: 1050px) {
    .item-service-summary {
        grid-template-columns: minmax(320px, 42%) minmax(0, 1fr);
    }

    .item-intake-steps::before {
        display: none;
    }

    .item-intake-step {
        min-height: 0;
    }
}

@media (max-width: 820px) {
    .item-service-summary {
        grid-template-columns: 1fr;
    }

    .item-service-summary__media .item-main-image img {
        min-height: 380px;
        max-height: 600px;
    }

    .item-service-summary__content {
        padding: 34px;
    }
}

@media (max-width: 640px) {
    .item-detail-wrap {
        gap: 22px;
    }

    .item-service-summary__media .item-main-image img {
        min-height: 310px;
        max-height: 470px;
    }

    .item-service-summary__content,
    .item-section,
    .item-intake-cta {
        padding: 26px 20px;
    }

    .item-highlight {
        min-height: auto;
    }

    .item-repair-card {
        min-height: auto;
        padding: 22px;
    }

    .item-technical-case__content {
        padding: 24px 20px;
    }

    .item-technical-case__content h2,
    .item-technical-case__content h3,
    .item-technical-case__content h4 {
        padding-left: 25px;
    }

    .item-intake-cta__button {
        padding: 18px 20px;
        font-size: 16px;
    }
}
