/*
Theme Name: MCPACK Group
Theme URI: http://localhost/mcpack_new_sites/mcpack_group/
Description: Web corporativa de MCPACK Group - consultoria integral de packaging para lideres en restauracion. Diseno editorial en rojo-vermellon, secciones oscuras, hexagonos de marca y header pegajoso.
Author: NBCom
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: mcpack-group
*/


/* ============================================================
   0. TOKENS
   ============================================================ */

:root {
    --mcg-red: #e8472a;
    /* acento principal (vermellon) */
    --mcg-red-dark: #c63a20;
    --mcg-gold: #e3a13a;
    /* hexagono Studio */
    --mcg-burgundy: #6b1f2b;
    /* hexagono Advisory */
    --mcg-ink: #17120f;
    /* casi negro calido (botones/titulares) */
    --mcg-dark: #1c1512;
    /* fondo secciones oscuras */
    --mcg-dark-2: #241a16;
    --mcg-body: #55504c;
    /* texto parrafo */
    --mcg-muted: #8d8781;
    --mcg-line: #e2ded8;
    --mcg-bg: #ffffff;
    --mcg-bg-soft: #f1efeb;
    /* gris claro de fondo */
    --mcg-w: 1240px;
    --mcg-gap: clamp(24px, 5vw, 60px);
    --mcg-fast: .25s ease;
}


/* ============================================================
   1. RESET / BASE
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--mcg-ink);
    background: var(--mcg-bg-soft);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

.mcg-container {
    width: 100%;
    max-width: var(--mcg-w);
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 48px);
}

.mcg-display {
    font-family: "Mona Sans", "Geist", sans-serif;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -.02em;
}


/* badge "• texto" */

.mcg-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--mcg-line);
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--mcg-ink);
}

.mcg-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mcg-red);
}

.mcg-kicker-num {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--mcg-red);
    text-transform: uppercase;
}


/* ============================================================
   2. BOTONES
   ============================================================ */

.mcg-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: var(--mcg-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .01em;
    padding: 6px 6px 6px 22px;
    border-radius: 4px 4px 8px;
    border: 0;
    transition: transform var(--mcg-fast), box-shadow var(--mcg-fast), background var(--mcg-fast);
}

.mcg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .6);
}

.mcg-btn i {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mcg-red);
    color: #fff;
    border-radius: 4px 4px 8px;
    font-size: 13px;
    transition: background var(--mcg-fast), transform var(--mcg-fast);
}

.mcg-btn:hover i {
    transform: translateX(3px);
}


/* boton rojo (icono pasa a oscuro) */

.mcg-btn--red {
    background: var(--mcg-red);
}

.mcg-btn--red i {
    background: var(--mcg-ink);
}

.mcg-btn--red:hover {
    background: var(--mcg-red-dark);
}


/* boton link (texto + flecha) */

.mcg-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--mcg-ink);
}

.mcg-btn-link:hover {
    color: var(--mcg-red);
}

.mcg-btn-link-v2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--mcg-red);
}

.mcg-btn-link-v2:hover {
    color: var(--mcg-ink);
}


/* ============================================================
   3. HEADER (sticky)
   ============================================================ */

.mcg-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--mcg-bg-soft);
    transition: background .3s ease, box-shadow .3s ease;
}

body.is-scrolled .mcg-header {
    background: #fff;
    box-shadow: 0 2px 18px -12px rgba(0, 0, 0, .45);
}

.mcg-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 16px;
    /* horizontal lo aporta .mcg-container */
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo {
    height: 36px;
    width: auto;
    display: block;
}

.mcg-logo-text {
    font-family: "Mona Sans", sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -.01em;
}

.mcg-logo-text b {
    color: var(--mcg-ink);
    font-weight: 800;
}

.mcg-logo-text span {
    color: var(--mcg-muted);
    font-weight: 700;
}

.mcg-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mcg-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--mcg-ink);
    transition: color var(--mcg-fast);
}

.mcg-nav a:hover {
    color: var(--mcg-red);
}

.mcg-nav .current-menu-item>a,
.mcg-nav .current_page_item>a,
.mcg-nav .current-menu-ancestor>a {
    color: var(--mcg-red);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

.mcg-header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mcg-burger {
    display: none;
    border: 0;
    background: none;
    font-size: 20px;
    color: var(--mcg-ink);
}


/* ============================================================
   4. MENU MOVIL (overlay)
   ============================================================ */

.mcg-mobile {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: var(--mcg-dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: clamp(28px, 8vw, 60px);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .4s cubic-bezier(.7, 0, .2, 1), visibility .4s;
}

.mcg-mobile.is-open {
    transform: none;
    visibility: visible;
}

.mcg-mobile a {
    font-family: "Mona Sans", sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(28px, 7vw, 52px);
    line-height: 1.1;
    color: #fff;
    transition: color var(--mcg-fast), padding-left var(--mcg-fast);
}

.mcg-mobile a:hover {
    color: var(--mcg-red);
    padding-left: 12px;
}

.mcg-mobile-close {
    position: absolute;
    top: 24px;
    right: 24px;
    border: 0;
    background: none;
    color: #fff;
    font-size: 26px;
    line-height: 1;
}


/* ============================================================
   5. HERO
   ============================================================ */

.mcg-hero {
    padding: 0 0 clamp(20px, 3vw, 32px);
}

.mcg-hero-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: var(--mcg-gap);
    align-items: start;
}

.mcg-hero-title {
    font-size: clamp(32px, 4.4vw, 52px);
    line-height: 1.06;
    margin: 18px 0 0;
    color: var(--mcg-ink);
}

.mcg-hero-title em {
    color: var(--mcg-red);
    font-style: normal;
}

.mcg-hero-right {
    padding-top: 6px;
}

.mcg-hero-since {
    color: var(--mcg-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    margin-bottom: 12px;
}

.mcg-hero-lead {
    color: var(--mcg-body);
    font-size: 15px;
    margin-bottom: 24px;
    max-width: 42ch;
}

.mcg-hero-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: clamp(24px, 4vw, 44px);
    padding-top: 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mcg-muted);
}


/* lineas guia verticales discontinuas (hero + partner; NO en header,
   que es global y lo comparten las paginas interiores) */

.mcg-hero>.mcg-container {
    padding-top: clamp(28px, 5vw, 56px);
}

.mcg-hero>.mcg-container,
.mcg-partner>.mcg-container {
    position: relative;
    isolation: isolate;
}

.mcg-hero>.mcg-container::before,
.mcg-partner>.mcg-container::before {
    content: "";
    position: absolute;
    inset: 0 clamp(20px, 5vw, 48px);
    z-index: -1;
    pointer-events: none;
    background-image: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .06) 0 5px, transparent 5px 11px), repeating-linear-gradient(to bottom, rgba(0, 0, 0, .06) 0 5px, transparent 5px 11px), repeating-linear-gradient(to bottom, rgba(0, 0, 0, .06) 0 5px, transparent 5px 11px), repeating-linear-gradient(to bottom, rgba(0, 0, 0, .06) 0 5px, transparent 5px 11px);
    background-size: 1px 100%;
    background-repeat: no-repeat;
    background-position: 0 0, 37% 0, 63% 0, 100% 0;
}


/* SOLO en la portada (.home): extender las lineas al header para que
   lleguen hasta arriba del todo. En interiores el header queda limpio. */

.home .mcg-header>.mcg-container {
    position: relative;
    isolation: isolate;
}

.home .mcg-header>.mcg-container::before {
    content: "";
    position: absolute;
    inset: 0 clamp(20px, 5vw, 48px);
    z-index: -1;
    pointer-events: none;
    background-image: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .06) 0 5px, transparent 5px 11px), repeating-linear-gradient(to bottom, rgba(0, 0, 0, .06) 0 5px, transparent 5px 11px), repeating-linear-gradient(to bottom, rgba(0, 0, 0, .06) 0 5px, transparent 5px 11px), repeating-linear-gradient(to bottom, rgba(0, 0, 0, .06) 0 5px, transparent 5px 11px);
    background-size: 1px 100%;
    background-repeat: no-repeat;
    background-position: 0 0, 37% 0, 63% 0, 100% 0;
}


/* al hacer scroll el header se vuelve fijo/blanco: ocultar sus lineas */

body.is-scrolled .mcg-header>.mcg-container::before {
    opacity: 0;
}


/* extender las lineas hasta los bordes de cada seccion (cubrir su padding) */

.mcg-hero>.mcg-container::before {
    bottom: calc(-1 * clamp(20px, 3vw, 32px));
}

.mcg-partner>.mcg-container::before {
    top: calc(-1 * clamp(48px, 7vw, 90px));
    bottom: calc(-1 * clamp(48px, 7vw, 90px));
}

@media (max-width:767px) {
    .home .mcg-header>.mcg-container::before,
    .mcg-hero>.mcg-container::before,
    .mcg-partner>.mcg-container::before {
        background-image: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .06) 0 5px, transparent 5px 11px), repeating-linear-gradient(to bottom, rgba(0, 0, 0, .06) 0 5px, transparent 5px 11px);
        background-position: 0 0, 100% 0;
    }
}


/* ============================================================
   6. EMPRESAS DEL GRUPO (dark)
   ============================================================ */

.mcg-groups {
    position: relative;
    isolation: isolate;
    background: var(--mcg-dark) center/cover no-repeat;
    color: #fff;
    padding-block: clamp(72px, 11vw, 150px);
}

.mcg-groups::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(20, 14, 11, .5), rgba(20, 14, 11, .7));
}

.mcg-groups-title {
    text-align: center;
    font-size: clamp(28px, 3.6vw, 44px);
    margin-bottom: clamp(52px, 7vw, 84px);
}

.mcg-groups-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 40px);
    max-width: 980px;
    margin-inline: auto;
}

.mcg-group-card {
    text-align: center;
}

.mcg-hex {
    width: 150px;
    height: 165px;
    margin: 0 auto 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    clip-path: url(#mcg-hex);
    /* hexagono con picos redondeados */
    color: #fff;
    line-height: 1.1;
}

.mcg-group-card img {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    padding-bottom: 25px;
}

.mcg-hex b {
    font-family: "Mona Sans", sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .01em;
}

.mcg-hex span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .28em;
    margin-top: 4px;
    opacity: .92;
}

.mcg-hex--studio {
    background: var(--mcg-gold);
}

.mcg-hex--shop {
    background: var(--mcg-red);
}

.mcg-hex--advisory {
    background: var(--mcg-burgundy);
}

.mcg-group-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, .82);
    max-width: 24ch;
    margin-inline: auto;
}


/* ============================================================
   7. PARTNER ESTRATEGICO (light)
   ============================================================ */

.mcg-partner {
    background: var(--mcg-bg-soft);
    padding-block: clamp(48px, 7vw, 90px);
}

.mcg-partner-top {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--mcg-gap);
    align-items: center;
    margin-bottom: clamp(36px, 5vw, 64px);
}

.mcg-team {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.mcg-team-avatars {
    display: flex;
    align-items: center;
}

.mcg-team-avatars span {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    margin-left: -12px;
    border: 3px solid var(--mcg-bg-soft);
    background: var(--mcg-red) center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.mcg-team-avatars span:first-child {
    margin-left: 0;
}

.mcg-team p {
    font-size: 14px;
    color: var(--mcg-body);
    max-width: 26ch;
}

.mcg-partner-title {
    font-size: clamp(26px, 3.4vw, 42px);
    color: var(--mcg-ink);
    margin-bottom: 18px;
}

.mcg-partner-title em {
    color: var(--mcg-red);
    font-style: normal;
}

.mcg-partner-lead {
    color: var(--mcg-body);
    font-size: 15px;
    max-width: 60ch;
    margin-bottom: 26px;
}

.mcg-partner-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}


/* stats hexagonos — picudos, apaisados, sin huecos (lados verticales tocan) */

.mcg-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
}

.mcg-stat-hex {
    flex: 1 1 0;
    min-width: 0;
    max-width: 440px;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    clip-path: url(#mcg-hex);
    /* hexagono con picos redondeados */
    text-align: center;
    padding: 20px 24px;
}

.mcg-stat-hex--outline {
    background: #fff;
    color: var(--mcg-ink);
    z-index: 1;
}

.mcg-stat-hex--img {
    background: var(--mcg-bg-soft) center/cover no-repeat;
    z-index: 3;
}

.mcg-stat-hex--red {
    background: var(--mcg-red);
    color: #fff;
    z-index: 1;
}

.mcg-stat-label {
    font-family: "Mona Sans", sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .04em;
    margin-bottom: 10px;
}

.mcg-stat-big {
    font-family: "Mona Sans", sans-serif;
    font-size: clamp(34px, 4.6vw, 58px);
    font-weight: 900;
    line-height: 1;
    color: var(--mcg-red);
    white-space: nowrap;
}

.mcg-stat-hex--red .mcg-stat-big {
    color: var(--mcg-ink);
}

.mcg-stat-desc {
    font-size: 15px;
    margin-top: 8px;
    max-width: 80%;
}

.mcg-stat-rating {
    margin-top: 12px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-weight: 700;
}

.mcg-stat-rating b {
    font-size: 24px;
    font-weight: 600;
}

.mcg-stat-rating .max {
    font-size: 15px;
    font-weight: 500;
    margin-left: -6px;
}

.mcg-stat-rating .stars {
    color: var(--mcg-ink);
    letter-spacing: 2px;
    font-size: 14px;
}

.mcg-stat-since {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .1em;
    opacity: .95;
    margin-bottom: 10px;
}


/* ============================================================
   8. SERVICIOS (lista de filas)
   ============================================================ */

.mcg-services {
    background: #fff;
    padding-block: clamp(48px, 7vw, 90px);
}

.mcg-services-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: clamp(32px, 4vw, 52px);
}

.mcg-services-head h2 {
    font-size: clamp(26px, 3.4vw, 42px);
    color: var(--mcg-ink);
    margin-top: 14px;
    max-width: 30ch;
}

.mcg-services-head h2 em {
    color: var(--mcg-red);
    font-style: normal;
}


/* margen de entrada: deja recorrido de scroll antes de empezar a apilar */

.mcg-srv-list {
    margin-top: clamp(40px, 8vw, 120px);
}


/* filas con efecto sticky-stack al hacer scroll */

.mcg-srv-row {
    position: sticky;
    background: #fff;
    display: grid;
    grid-template-columns: 42px minmax(230px, 1.15fr) .8fr 1fr 56px;
    gap: clamp(18px, 2.4vw, 40px);
    align-items: start;
    /* todo alineado arriba: icono/titulo/features/boton */
    padding: 24px 0 32px;
    border-top: 1px solid var(--mcg-line);
}

.mcg-srv-row:last-child {
    border-bottom: 1px solid var(--mcg-line);
}


/* cada fila se ancla ~1 banda mas abajo -> al colapsar deja visible
   icono, titulo, "Features" + 1ª linea y el boton */

.mcg-srv-list .mcg-srv-row:nth-child(1) {
    top: 90px;
}

.mcg-srv-list .mcg-srv-row:nth-child(2) {
    top: 206px;
}

.mcg-srv-list .mcg-srv-row:nth-child(3) {
    top: 322px;
}

.mcg-srv-list .mcg-srv-row:nth-child(4) {
    top: 438px;
}

.mcg-srv-list .mcg-srv-row:nth-child(5) {
    top: 554px;
}

.mcg-srv-icon {
    font-size: 22px;
    color: var(--mcg-ink);
}

.mcg-srv-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 12px;
    background: var(--mcg-bg-soft) center/cover no-repeat;
}

.mcg-srv-name {
    font-size: clamp(19px, 1.9vw, 26px);
    font-weight: 700;
    color: var(--mcg-ink);
}

.mcg-srv-features h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mcg-muted);
    margin-bottom: 8px;
}

.mcg-srv-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 5px;
}

.mcg-srv-features li {
    font-size: 13px;
    color: var(--mcg-body);
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.mcg-srv-features li::before {
    content: "\2713";
    color: var(--mcg-red);
    font-weight: 700;
}

.mcg-srv-arrow {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mcg-red);
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    transition: background var(--mcg-fast), transform var(--mcg-fast);
}

.mcg-srv-arrow:hover {
    background: var(--mcg-red-dark);
    transform: translateX(3px);
}


/* ============================================================
   9. CTA banner (dark)
   ============================================================ */

.mcg-cta {
    background: #fff;
    padding-block: clamp(20px, 4vw, 48px);
}

.mcg-cta-inner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--mcg-dark);
    color: #fff;
    border-radius: 14px;
    padding: clamp(28px, 5vw, 52px) clamp(24px, 5vw, 56px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.mcg-cta-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .5;
    background: radial-gradient(circle at 70% 50%, rgba(232, 71, 42, .5), transparent 60%);
}

.mcg-cta-inner h2 {
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 600;
    font-family: "Mona Sans", sans-serif;
    line-height: 1.1;
}


/* ============================================================
   10. FOOTER (dark)
   ============================================================ */

.mcg-footer {
    background: var(--mcg-dark);
    color: #fff;
    padding-top: clamp(48px, 6vw, 80px);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}


/* dos focos de luz rojiza difuminada: arriba-derecha y abajo-izquierda */

.mcg-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(640px 340px at 92% -60px, rgba(232, 71, 42, .72), transparent 70%), radial-gradient(640px 340px at 4% 105%, rgba(232, 71, 42, .58), transparent 72%);
    filter: blur(18px);
}

.mcg-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
    gap: var(--mcg-gap);
    padding-bottom: clamp(40px, 5vw, 64px);
}

.mcg-footer h4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    margin-bottom: 18px;
    color: #fff;
}

.mcg-footer-col p,
.mcg-footer-col li,
.mcg-footer-col a {
    font-size: 14px;
    color: rgba(255, 255, 255, .7);
}

.mcg-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.mcg-footer-col a:hover {
    color: var(--mcg-red);
}

/* === Newsletter del footer (CF7) ===
   El form CF7 puede meter los campos dentro de uno o varios <p> con wpautop.
   Solucion: el .wpcf7-form es un GRID de 2 columnas (input | boton).
   Los <p> intermedios se "transparentan" con display:contents para que el
   input, el boton y el mensaje de respuesta queden como items directos
   del grid y caigan en su columna correspondiente.                       */

.mcg-footer-news {
    margin-top: 16px;
    width: 100%;
}

.mcg-footer-news,
.mcg-footer-news .wpcf7,
.mcg-footer-news .wpcf7 > div,
.mcg-footer-news form.wpcf7-form {
    display: block;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

.mcg-footer-news form.wpcf7-form,
.mcg-footer-news .mcg-news-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin: 0;
}

/* ocultar SOLO los div ocultos que CF7 inserta para tokens (_wpcf7, nonce...) */
.mcg-footer-news form.wpcf7-form > div[style*="display:none"],
.mcg-footer-news form.wpcf7-form > div[style*="display: none"],
.mcg-footer-news form.wpcf7-form > div.screen-reader-response { display: none !important; }

/* el wrapper .mcg-news-row pasa a grid y deja a sus hijos (input, submit) participar */
.mcg-footer-news form.wpcf7-form > .mcg-news-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
    width: 100% !important;
    margin: 0;
}

/* los <p> que inserta wpautop dejan pasar a sus hijos al grid */
.mcg-footer-news .wpcf7-form p,
.mcg-footer-news .wpcf7-form br { display: contents; margin: 0; }

/* input email */
.mcg-footer-news .wpcf7-email,
.mcg-footer-news input[type="email"] {
    grid-column: 1;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 11px 14px !important;
    border: 1px solid rgba(255, 255, 255, .2) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, .05) !important;
    color: #fff !important;
    font: inherit !important;
    font-size: 14px !important;
    outline: none;
    box-sizing: border-box;
}
.mcg-footer-news .wpcf7-email::placeholder,
.mcg-footer-news input[type="email"]::placeholder { color: rgba(255, 255, 255, .45); }
.mcg-footer-news .wpcf7-email:focus,
.mcg-footer-news input[type="email"]:focus { border-color: var(--mcg-red) !important; }

/* boton (cuadrado rojo con flecha) */
.mcg-footer-news .wpcf7-submit,
.mcg-footer-news button[type="submit"] {
    grid-column: 2;
    justify-self: stretch;
    width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: var(--mcg-red) !important;
    color: #fff !important;
    font: inherit !important;
    font-size: 18px !important;
    line-height: 1 !important;
    cursor: pointer;
    transform: none !important;
    transition: background var(--mcg-fast);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}
.mcg-footer-news .wpcf7-submit:hover,
.mcg-footer-news button[type="submit"]:hover { background: var(--mcg-red-dark) !important; }

/* mensajes y spinner: ocupan toda la fila debajo */
.mcg-footer-news .wpcf7-response-output {
    grid-column: 1 / -1;
    margin: 10px 0 0 !important;
    padding: 8px 12px !important;
    border: 0 !important;
    border-left: 3px solid #ff6b6b !important;
    border-radius: 6px;
    background: rgba(255, 255, 255, .08) !important;
    color: #fff !important;
    font-size: 12px;
    line-height: 1.45;
}
.mcg-footer-news .wpcf7 form.sent .wpcf7-response-output { border-left-color: #6bd49a !important; }

.mcg-footer-news .wpcf7-not-valid-tip { display: none !important; }
.mcg-footer-news .wpcf7-not-valid { border-color: #ff6b6b !important; }
.mcg-footer-news .wpcf7-spinner { display: none !important; }

.mcg-footer-social {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.mcg-footer-social a {
    font-size: 13px;
    font-weight: 600;
}

.mcg-footer-bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 20px 0 26px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(255, 255, 255, .5);
}

.mcg-footer-watermark { pointer-events: none; }

.mcg-footer-watermark {
    font-family: "Mona Sans", sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    line-height: .9;
    letter-spacing: -.02em;
    font-size: clamp(34px, 12.5vw, 180px);
    white-space: nowrap;
    /* siempre en 1 linea */
    color: rgba(255, 255, 255, .05);
    padding-bottom: 10px;
    user-select: none;
}


/* ============================================================
   11. PAGINAS INTERNAS
   ============================================================ */

.mcg-page-hero {
    background: var(--mcg-bg-soft);
    padding: clamp(36px, 6vw, 72px) 0;
}

.mcg-page-hero .mcg-badge {
    margin-bottom: 18px;
}

.mcg-page-hero h1 {
    font-size: clamp(34px, 5vw, 64px);
    color: var(--mcg-ink);
    max-width: 18ch;
}

.mcg-page-hero .mcg-page-sub {
    margin-top: 20px;
    max-width: 58ch;
    color: var(--mcg-body);
    font-size: clamp(15px, 1.8vw, 18px);
}

.mcg-page-hero-bg h1,
.mcg-page-hero-bg .mcg-page-sub {
    color: #fff;
}

.mcg-page-hero-bg {
    position: relative;
    isolation: isolate;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    border-bottom: 0;
    padding-top: clamp(40px, 7vw, 88px);
    padding-bottom: clamp(40px, 7vw, 88px);
}

.mcg-page-hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0, 0, 0, .40);
}

.mcg-page-hero-bg.mcg-page-hero-bg30::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0, 0, 0, .30);
}

.mcg-page-hero-bg.mcg-page-hero-bg5::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0, 0, 0, .50);
}

.mcg-section {
    padding-block: clamp(44px, 7vw, 84px);
    background: #fff;
}

.mcg-section--soft {
    background: var(--mcg-bg-soft);
}

.mcg-section-head {
    max-width: 60ch;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.mcg-section-head h2 {
    font-size: clamp(24px, 3.2vw, 38px);
    color: var(--mcg-ink);
    margin-top: 12px;
}

.mcg-section-head h2 em {
    color: var(--mcg-red);
    font-style: normal;
}

.mcg-prose p {
    color: var(--mcg-body);
    font-size: 16px;
    margin-bottom: 16px;
    max-width: 64ch;
}

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

.mcg-card {
    background: #fff;
    border: 1px solid var(--mcg-line);
    border-radius: 12px;
    padding: 30px 28px;
    transition: transform var(--mcg-fast), box-shadow var(--mcg-fast);
}

.mcg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px -26px rgba(0, 0, 0, .4);
}

.mcg-card .mcg-card-ico {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mcg-bg-soft);
    color: var(--mcg-red);
    font-size: 20px;
    margin-bottom: 18px;
}

.mcg-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--mcg-ink);
}

.mcg-card p {
    font-size: 14px;
    color: var(--mcg-body);
}


/* --- empresas del grupo (logos SVG en hexagono) --- */

.mcg-group-intro {
    text-align: center;
    max-width: 560px;
    margin: 0 auto clamp(40px, 6vw, 72px);
}

.mcg-group-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    margin: 0 auto 18px;
    display: block;
}

.mcg-group-tagline {
    color: var(--mcg-body);
    font-size: 15px;
    line-height: 1.6;
    max-width: 28ch;
    margin: 0 auto;
}

@media (max-width: 560px) {
    .mcg-group-tagline {
        max-width: none;
    }
}

.mcg-group-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 3vw, 40px);
    align-items: start;
}

.mcg-group-item {
    text-align: center;
}

.mcg-group-item img {
    max-width: 180px;
    width: 100%;
    height: auto;
    margin: 0 auto 22px;
    display: block;
    transition: transform var(--mcg-fast);
}

.mcg-group-item:hover img {
    transform: translateY(-4px);
}

.mcg-group-item p {
    color: var(--mcg-body);
    font-size: 15px;
    line-height: 1.6;
    max-width: 28ch;
    margin: 0 auto;
}

@media (max-width: 860px) {
    .mcg-group-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .mcg-group-item p {
        max-width: none;
    }
}


/* blog */

.mcg-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.mcg-post {
    background: #fff;
    border: 1px solid var(--mcg-line);
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--mcg-fast), box-shadow var(--mcg-fast);
}

.mcg-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px -26px rgba(0, 0, 0, .4);
}

.mcg-post-img {
    aspect-ratio: 16/9;
    background: var(--mcg-bg-soft) center/cover no-repeat;
}

.mcg-post-body {
    padding: 24px 24px 28px;
}

.mcg-post-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mcg-red);
}

.mcg-post h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0;
    color: var(--mcg-ink);
    line-height: 1.25;
}

.mcg-post p {
    font-size: 14px;
    color: var(--mcg-body);
}

.mcg-post-meta {
    margin-top: 14px;
    font-size: 12px;
    color: var(--mcg-muted);
}


/* contacto */

.mcg-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--mcg-gap);
    align-items: start;
}

.mcg-contact-info dl {
    margin: 0;
}

.mcg-contact-info dt {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mcg-red);
    margin-top: 26px;
}

.mcg-contact-info dt:first-child {
    margin-top: 0;
}

.mcg-contact-info dd {
    margin: 6px 0 0;
    font-size: 17px;
    color: var(--mcg-ink);
}


/* ---- Contact Form 7 (scope global: CF7 solo en Contacto) ---- */

.wpcf7 .mcg-field {
    margin-bottom: 16px;
}

.wpcf7-form p {
    margin: 0;
}

.wpcf7-form label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--mcg-muted);
}

.wpcf7-form .wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    margin-top: 8px;
    border: 1px solid var(--mcg-line);
    border-radius: 8px;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 15px;
    color: var(--mcg-ink);
    background: #fff;
    transition: border-color var(--mcg-fast);
}

.wpcf7-form .wpcf7-form-control:not(.wpcf7-submit):focus {
    outline: none;
    border-color: var(--mcg-red);
}

.wpcf7-form textarea.wpcf7-form-control {
    min-height: 130px;
    resize: vertical;
}

.wpcf7-not-valid-tip {
    display: none !important;
}

.wpcf7-form .wpcf7-not-valid {
    border-color: #c0392b !important;
    background-color: #fdf3f2;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0392b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cline x1='18' y1='6' x2='6' y2='18'/%3e%3cline x1='6' y1='6' x2='18' y2='18'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    padding-right: 38px !important;
}

.wpcf7-form textarea.wpcf7-not-valid {
    background-position: right 12px top 12px;
}

.wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 14px 18px !important;
    border: none !important;
    border-width: 0 !important;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.wpcf7 form.sent .wpcf7-response-output {
    background: #f3f7f0;
    color: #2f5d2f;
    border-left: 4px solid #4a7c3f !important;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
    background: #fdf2f2;
    color: #8a1f1f;
    border-left: 4px solid #c0392b !important;
}

.wpcf7-form .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    background: var(--mcg-ink);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
    border: 0;
    border-radius: 11px;
    padding: 15px 30px;
    cursor: pointer;
    transition: background var(--mcg-fast), transform var(--mcg-fast);
}

.wpcf7-form .wpcf7-submit:hover {
    background: var(--mcg-red);
    transform: translateY(-2px);
}

.wpcf7-spinner {
    margin: 0 0 0 12px;
}


/* ============================================================
   12. RESPONSIVE
   ============================================================ */

@media (max-width:980px) {
    .mcg-hero-grid {
        grid-template-columns: 1fr;
    }
    .mcg-partner-top {
        grid-template-columns: 1fr;
    }
    .mcg-services-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .mcg-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width:860px) {
    .mcg-nav {
        display: none;
    }
    .mcg-burger {
        display: inline-flex;
    }
    .mcg-header-cta .mcg-btn {
        display: none;
    }
    .mcg-groups-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
    }
    .mcg-stats {
        flex-direction: column;
    }
    .mcg-stat-hex {
        flex: 0 0 auto;
        width: 260px;
        max-width: none;
    }
    .mcg-stat-hex--img {
        transform: none;
    }
    .mcg-srv-row {
        position: static;
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .mcg-srv-icon {
        display: none;
    }
    .mcg-srv-thumb {
        aspect-ratio: 16/9;
    }
    .mcg-contact-grid {
        grid-template-columns: 1fr;
    }
    .mcg-contact-form-wrap {
        order: -1;
    }
}

@media (max-width:560px) {
    .mcg-footer-grid {
        grid-template-columns: 1fr;
    }
    .mcg-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}