/* =========================================================
   ESTILOS GDM – SECCIONES EXTRA
   Paleta mejorada:
   Azul profundo, verde tecnológico, gris suave y dorado sutil.
========================================================= */

:root {
    --gdm-blue: #013A63;
    --gdm-green: #0FA36B;
    --gdm-light: #F4F7FB;
    --gdm-dark: #1C2533;
    --gdm-gold: #F2B544;
    --gdm-border: #E0E6F0;
    --gdm-radius-xl: 24px;
    --gdm-radius-lg: 18px;
    --gdm-shadow-soft: 0 18px 45px rgba(10, 26, 51, 0.12);
    --gdm-transition: all 0.25s ease-out;
    --gdm-max-width: 1180px;
    --gdm-font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gdm-section {
    padding: 80px 16px;
    background: #fff;
}

.gdm-section:nth-of-type(2n) {
    background: var(--gdm-light);
}

.gdm-container {
    max-width: var(--gdm-max-width);
    margin: 0 auto;
}

.gdm-title-center {
    text-align: center;
    font-size: 2.1rem;
    color: var(--gdm-blue);
    margin-bottom: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gdm-subtitle-center {
    text-align: center;
    font-size: 0.98rem;
    color: #5A6473;
    margin-bottom: 40px;
}

.gdm-title {
    font-size: 2rem;
    line-height: 1.25;
    color: var(--gdm-blue);
    margin: 0 0 16px;
}

.gdm-kicker {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gdm-green);
    font-weight: 600;
    margin-bottom: 10px;
}

.gdm-text {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #4A5666;
    margin-bottom: 14px;
}

/* Layout columnas */

.gdm-two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 52px;
    align-items: center;
}

.gdm-reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
}

@media (max-width: 900px) {
    .gdm-two-columns,
    .gdm-reverse {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Imagenes apiladas */

.gdm-image-stack {
    position: relative;
}

.gdm-main-image {
    width: 100%;
    border-radius: var(--gdm-radius-xl);
    display: block;
    box-shadow: var(--gdm-shadow-soft);
    object-fit: cover;
}

.gdm-secondary-image {
    position: absolute;
    right: 4%;
    bottom: -14%;
    width: 52%;
    border-radius: 18px;
    border: 4px solid #fff;
    box-shadow: var(--gdm-shadow-soft);
    object-fit: cover;
}

@media (max-width: 900px) {
    .gdm-secondary-image {
        position: relative;
        right: auto;
        bottom: auto;
        width: 70%;
        margin: 18px auto 0;
        display: block;
    }
}

/* Contadores */

.gdm-counter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

@media (max-width: 1024px) {
    .gdm-counter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .gdm-counter-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.gdm-counter-item {
    background: #fff;
    border-radius: var(--gdm-radius-lg);
    padding: 22px 20px 20px;
    box-shadow: 0 14px 32px rgba(8, 26, 43, 0.08);
    border: 1px solid var(--gdm-border);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.gdm-counter-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(1, 58, 99, 0.10), transparent 55%);
    opacity: 0;
    transition: var(--gdm-transition);
}

.gdm-counter-item:hover::before {
    opacity: 1;
}

.gdm-counter-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gdm-blue);
    margin-bottom: 6px;
}

.gdm-counter-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gdm-green);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.gdm-counter-text {
    font-size: 0.9rem;
    color: #5E6876;
    margin: 0;
}

/* Badges / chips */

.gdm-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.gdm-badge {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    background: rgba(1, 58, 99, 0.06);
    color: var(--gdm-blue);
    font-weight: 600;
}

/* Pills Especializa */

.gdm-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.gdm-pill {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 163, 107, 0.35);
    font-size: 0.82rem;
    color: var(--gdm-green);
    background: #F7FFFB;
    font-weight: 600;
}

/* Secciones específicas */

.gdm-pulimento-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F4F7FB 100%);
}

.gdm-especializa-section {
    background: linear-gradient(135deg, #F4F7FB 0%, #FFFFFF 100%);
}
