/* Casa Cabello - Homepage / Quienes somos commercial redesign */

.cms-home .column.main,
.cms-quienes-somos .column.main,
.cms-index-index .column.main:has(.casa-cabello-container),
.cms-page-view.page-layout-1column .column.main:has(.casa-cabello-container) {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 32px;
}

.casa-cabello-container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    font-family: inherit;
    color: #1e293b;
}

.casa-cabello-container .casa-cabello-title,
.casa-cabello-container .casa-cabello-subtitle,
.casa-cabello-container .casa-cabello-text {
    display: none;
}

/* Iconografía compartida */
.casa-cabello-container svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.casa-cabello-container .cc-ico--solid svg,
.casa-cabello-container svg.cc-ico--solid {
    fill: currentColor;
    stroke: none;
}

.cc-ico {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.cc-ico--sm {
    width: 15px;
    height: 15px;
}

/* Shared buttons */
.cc-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 20px;
    /* con width:100% el padding no debe sumar ancho o el botón se sale de la tarjeta */
    box-sizing: border-box;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.cc-home-btn--lg {
    min-height: 48px;
    padding: 0 24px;
    font-size: 15px;
}

.cc-home-btn--primary {
    background: linear-gradient(180deg, #1f5ea8 0%, #184f92 100%);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(31, 94, 168, 0.28);
}

.cc-home-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(31, 94, 168, 0.34);
}

.cc-home-btn--secondary {
    background: #0f224c;
    color: #fff !important;
}

.cc-home-btn--secondary:hover {
    background: #1a3268;
}

.cc-home-btn--outline {
    border: 2px solid #cbd5e1;
    background: #fff;
    color: #0f224c !important;
}

.cc-home-btn--outline:hover {
    border-color: #466fad;
    color: #466fad !important;
}

.cc-home-btn--whatsapp {
    background: #25d366;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.28);
}

.cc-home-btn--whatsapp:hover {
    background: #1fb855;
}

/* Hero: copy + tarjeta de marca */
.cc-home-hero {
    margin: 0 0 26px;
    padding: 36px 32px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.14) 0%, transparent 45%),
        linear-gradient(135deg, #0f224c 0%, #2a5088 55%, #466fad 100%);
    color: #fff;
    box-shadow: 0 18px 46px rgba(15, 34, 76, 0.18);
}

.cc-home-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 32px;
    align-items: center;
}

.cc-home-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cc-home-hero__title {
    margin: 0 0 16px;
    font-size: clamp(1.65rem, 3.2vw, 2.5rem);
    font-weight: 700;
    line-height: 1.14;
    text-transform: none;
    color: #fff;
}

.cc-home-hero__lead {
    margin: 0 0 24px;
    max-width: 640px;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    opacity: 0.94;
}

.cc-home-hero__lead strong {
    color: #fff;
}

.cc-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cc-home-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 24px 22px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-align: center;
}

.cc-home-card__logo {
    width: 92px;
    height: auto;
    margin-bottom: 8px;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
}

.cc-home-card__company {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
}

.cc-home-card__tagline {
    margin: 0 0 14px;
    font-size: 12.5px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.82);
}

.cc-home-card__eyebrow {
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.cc-home-card__brands {
    margin: 6px 0 2px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #fff;
}

.cc-home-card__division {
    margin: 0 0 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.cc-home-card__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 18px;
}

.cc-home-card__brand-logo {
    height: 42px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
}

.cc-home-card__brand-logo--notton {
    height: 56px;
    width: 56px;
    padding: 7px;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
}

.cc-home-card .cc-home-btn {
    width: 100%;
}

/* Stats strip */
.cc-home-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 30px;
}

.cc-home-stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 34, 76, 0.05);
    text-align: center;
}

.cc-home-stats__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 2px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef3fb 0%, #dfe9f8 100%);
    color: #1f5ea8;
}

.cc-home-stats__icon svg {
    width: 22px;
    height: 22px;
}

.cc-home-stats__item strong {
    color: #0f224c;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.cc-home-stats__text {
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.4;
}

/* Cabecera de sección */
.cc-home-section {
    margin: 0 0 30px;
}

.cc-home-section__head {
    margin: 0 0 18px;
}

.cc-home-section__head--center {
    text-align: center;
}

.cc-home-section__eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #466fad;
}

.cc-home-section__title {
    margin: 0;
    color: #0f224c;
    font-size: clamp(1.3rem, 2.2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
}

/* Benefits grid */
.cc-home-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.cc-home-benefit {
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 34, 76, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.cc-home-benefit:hover {
    transform: translateY(-3px);
    border-color: #c7d9f2;
    box-shadow: 0 14px 32px rgba(15, 34, 76, 0.1);
}

.cc-home-benefit__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1f5ea8 0%, #466fad 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(31, 94, 168, 0.24);
}

.cc-home-benefit__icon svg {
    width: 24px;
    height: 24px;
}

.cc-home-benefit__title {
    margin: 0 0 8px;
    color: #0f224c;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.28;
    text-transform: none;
}

.cc-home-benefit__text {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

/* Pillars */
.cc-home-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.cc-home-pillar {
    display: flex;
    flex-direction: column;
    padding: 26px 22px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 34, 76, 0.04);
}

.cc-home-pillar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(70, 111, 173, 0.12);
    color: #1f5ea8;
}

.cc-home-pillar__icon svg {
    width: 23px;
    height: 23px;
}

.cc-home-pillar__title {
    margin: 0 0 10px;
    color: #0f224c;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
}

.cc-home-pillar__text {
    margin: 0 0 16px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.cc-home-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    color: #1f5ea8 !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
}

.cc-home-link:hover {
    color: #0f224c !important;
    gap: 11px;
}

/* Brand quick links */
.cc-home-brands {
    margin: 0 0 30px;
    padding: 30px 26px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 34, 76, 0.06);
}

.cc-home-brands__title {
    margin: 0;
    color: #0f224c;
    font-size: clamp(1.3rem, 2.2vw, 1.75rem);
    font-weight: 700;
    text-transform: none;
}

.cc-home-brands__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.cc-home-brand-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 18px 22px;
    border-radius: 16px;
    border: 1px solid #dbeafe;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    text-decoration: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.cc-home-brand-card:hover {
    transform: translateY(-3px);
    border-color: #93c5fd;
    box-shadow: 0 12px 28px rgba(31, 94, 168, 0.14);
}

.cc-home-brand-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 6px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #dbeafe;
    color: #1f5ea8;
}

.cc-home-brand-card__icon svg {
    width: 21px;
    height: 21px;
}

.cc-home-brand-card strong {
    color: #0f224c;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.cc-home-brand-card__text {
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.4;
}

.cc-home-brand-card__arrow {
    position: absolute;
    top: 22px;
    right: 18px;
    width: 18px;
    height: 18px;
    color: #93c5fd;
    transition: transform 0.15s ease, color 0.15s ease;
}

.cc-home-brand-card:hover .cc-home-brand-card__arrow {
    transform: translateX(3px);
    color: #1f5ea8;
}

/* Bottom CTA bar */
.cc-home-cta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 28px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 42%),
        linear-gradient(135deg, #0f224c 0%, #1f5ea8 100%);
    color: #fff;
    box-shadow: 0 14px 36px rgba(15, 34, 76, 0.18);
}

.cc-home-cta-bar__title {
    margin: 0 0 6px;
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-transform: none;
}

.cc-home-cta-bar__text {
    margin: 0;
    max-width: 540px;
    font-size: 14.5px;
    line-height: 1.55;
    opacity: 0.92;
}

.cc-home-cta-bar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cc-home-cta-bar .cc-home-btn--outline {
    border-color: rgba(255, 255, 255, 0.45);
    background: transparent;
    color: #fff !important;
}

.cc-home-cta-bar .cc-home-btn--outline:hover {
    border-color: #fff;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

/* Mobile */
@media (max-width: 767px) {
    .cms-home .column.main,
    .cms-quienes-somos .column.main,
    .cms-index-index .column.main:has(.casa-cabello-container),
    .cms-page-view.page-layout-1column .column.main:has(.casa-cabello-container) {
        padding: 0 12px 28px;
    }

    .cms-home .page-footer,
    .cms-quienes-somos .page-footer {
        margin-top: 24px;
    }

    .cc-home-hero {
        padding: 24px 18px;
        border-radius: 16px;
        margin-bottom: 18px;
    }

    .cc-home-hero__inner {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .cc-home-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cc-home-hero__actions .cc-home-btn {
        width: 100%;
    }

    .cc-home-card {
        padding: 20px 16px;
    }

    .cc-home-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 22px;
    }

    .cc-home-stats__item {
        padding: 16px 12px;
    }

    .cc-home-section {
        margin-bottom: 22px;
    }

    .cc-home-benefits,
    .cc-home-pillars,
    .cc-home-brands__grid {
        grid-template-columns: 1fr;
    }

    /* En una sola columna el icono encima deja la tarjeta muy alta: va al costado */
    .cc-home-benefit,
    .cc-home-pillar {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 14px;
        align-items: start;
        padding: 18px 16px;
    }

    /* span amplio: sin filas explícitas, "1 / -1" equivaldría a una sola fila
       y la altura del icono abriría un hueco bajo el título */
    .cc-home-benefit__icon,
    .cc-home-pillar__icon {
        grid-column: 1;
        grid-row: 1 / span 20;
        margin-bottom: 0;
    }

    .cc-home-benefit > :not(.cc-home-benefit__icon),
    .cc-home-pillar > :not(.cc-home-pillar__icon) {
        grid-column: 2;
    }

    .cc-home-benefit__title,
    .cc-home-pillar__title {
        margin-bottom: 6px;
    }

    .cc-home-brands {
        padding: 22px 16px;
        border-radius: 16px;
        margin-bottom: 22px;
    }

    .cc-home-cta-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 22px 18px;
        border-radius: 16px;
    }

    .cc-home-cta-bar__actions {
        flex-direction: column;
    }

    .cc-home-cta-bar__actions .cc-home-btn {
        width: 100%;
        white-space: normal;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1099px) {
    .cc-home-hero__inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .cc-home-card {
        max-width: 460px;
        margin: 0 auto;
    }

    .cc-home-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cc-home-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cc-home-pillars {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cc-home-brands__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Desktop: contenido centrado con ancho cómodo */
@media (min-width: 1100px) {
    .cms-quienes-somos main.page-main,
    .cms-index-index main.page-main,
    .cms-quienes-somos .columns,
    .cms-index-index .columns {
        max-width: none !important;
        width: 100% !important;
    }

    .cms-quienes-somos .columns,
    .cms-index-index .columns {
        padding-left: 24px;
        padding-right: 24px;
        box-sizing: border-box;
    }

    .cms-quienes-somos .column.main,
    .cms-index-index .column.main:has(.casa-cabello-container) {
        width: 100% !important;
        max-width: none !important;
        padding: 24px 0 48px !important;
    }

    .casa-cabello-container {
        width: 100% !important;
        max-width: 1360px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
}
