:root {
    --red: #c00000;
    --red-dark: #8e0000;
    --black: #1a1a1a;
    --white: #ffffff;
    --gray-1: #f4f4f4;
    --gray-2: #e2e2e2;
    --gray-3: #9a9a9a;
    --gray-4: #555555;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* HEADER GENERAL */
header {
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
    position: relative;
    z-index: 100;
}

.header-top-bg {

    background-image: url("../img/fondo_plomo_claro.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 15px 5%;

}

/* FILA SUPERIOR */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-bottom-bg {

    background:
        linear-gradient(rgba(25, 25, 25, .65),
            rgba(25, 25, 25, .65)),
        url("../img/fondo_plomo_claro.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 0 5%;
}

.header-bot {

    min-height: 62px;

    display: flex;
    align-items: center;

}

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-slogan {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-4);
    white-space: nowrap;
    letter-spacing: .5px;
}

.logo-slogan span {
    color: var(--red);
    margin: 0 8px;
}

/* LOGO */
.logo img {
    height: 70px;
    width: auto;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-main {
    height: 70px;
    width: auto;
    transform: scale(0.85);
    transform-origin: center;
}

.logo-secondary {
    height: 70px;
}

.logo-divider {
    width: 1px;
    height: 55px;
    background: #d5d5d5;
}

.logo-group {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 1400px) {

    .logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .logo-slogan {
        padding-left: 0;
        font-size: 12px;
    }

    .logo-slogan::before {
        display: none;
    }

}

/* CONTACTO */
.contact-info {
    display: flex;
    align-items: center;
    gap: 25px;
    color: white;
    font-size: 14px;
}

@media (max-width: 1000px) {

    .contact-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

}

/* BUSCADOR E IDIOMA */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-actions input {
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 8px 0;
    outline: none;
    width: 180px;
}

.header-actions i {
    font-size: 22px;
    cursor: pointer;
}

.lang-btn {
    border: 3px solid white;
    color: white;
    background: transparent;
    border-radius: 20px;
    padding: 6px 14px;
    font-weight: 1000;
    cursor: pointer;
}

nav ul {
    color: white;
    display: flex;
    gap: 28px;
    list-style: none !important;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

nav ul li a:hover {
    color: var(--red);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
}

/* HERO */
.hero {
    position: relative;
    height: 520px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .55)), url('assets/img/GESTION SOCIOAMBIENTAL 2.png') center/cover no-repeat;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero-dots {
    position: absolute;
    bottom: 140px;
    left: 5%;
    display: flex;
    gap: 8px;
}

.hero-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
}

.hero-dots span.active {
    background: var(--red);
}

/* FEATURE CARDS */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0 5%;
    transform: translateY(60px);
    position: relative;
    z-index: 5;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
    background: var(--white);
}

.feature-card {
    padding: 24px 22px;
    border-right: 1px solid var(--gray-2);
}

.feature-card:last-child {
    border-right: none;
}

.feature-icon {
    width: 34px;
    height: 34px;
    background: var(--gray-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--red);
    font-weight: 800;
}

.feature-card h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 800;
}

.feature-card p {
    font-size: 12.5px;
    color: var(--gray-4);
    margin-bottom: 14px;
}

.feature-card img {
    border-radius: 8px;
    height: 90px;
    width: 100%;
    object-fit: cover;
}

/* SECTION SPACING */
section {
    padding: 90px 5% 60px;
}

.section-tight {
    padding-top: 120px;
}

/* ANALYSIS SECTION */
.analysis-title {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.analysis-title .accent {
    color: var(--red);
}

.affiliate-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 50px;
    align-items: center;
}

.affiliate-grid .logo {
    margin-bottom: 18px;
}

.affiliate-grid h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.affiliate-grid h3+h3 {
    color: var(--red);
    margin-bottom: 18px;
}

.affiliate-grid p {
    color: var(--gray-4);
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 380px;
}

.btn-outline {
    display: inline-block;
    border: 1px solid var(--gray-3);
    color: var(--black);
    padding: 10px 28px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.affiliate-photos {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 16px;
}

.affiliate-photos img {
    border-radius: 10px;
    height: 160px;
    object-fit: cover;
    width: 100%;
}

.photo-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 10px;
    letter-spacing: .5px;
}

.photo-label span {
    display: block;
    font-weight: 400;
    color: var(--gray-4);
    text-transform: none;
    font-size: 11px;
    margin-top: 2px;
}

.affiliate-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
}

.dots-row {
    display: flex;
    gap: 8px;
}

.dots-row span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gray-2);
}

.dots-row span.active {
    background: var(--red);
}

.btn-red {
    background: var(--red);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.btn-red span {
    font-weight: 400;
    text-transform: none;
    opacity: .85;
}

/* REFERENCES */
.references {
    background: var(--black);
    color: var(--white);
    padding: 50px 5%;
    position: relative;
    overflow: hidden;
}

.references::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(192, 0, 0, .35), transparent 60%);
}

.references h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 26px;
    position: relative;
}

.ref-logos {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    position: relative;
}

.ref-logos div {
    background: var(--white);
    color: var(--black);
    min-width: 140px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}

/* PRODUCT GROUPS */
.product-groups h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    color: var(--gray-4);
    margin-bottom: 30px;
}

.pg-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
}

.arrow-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    cursor: pointer;
}

.pg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    flex: 1;
}

.pg-card {
    border: 1px solid var(--gray-2);
    border-radius: 10px;
    overflow: hidden;
}

.pg-card .pg-img {
    height: 160px;
    background: var(--gray-1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pg-card .pg-img img {
    height: 90%;
    object-fit: contain;
}

.pg-card p {
    padding: 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* BLASTING ENGINEERING */
.be-section {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    border-radius: 30px;
    margin: 0 5%;
    overflow: hidden;
    color: var(--white);
}

.be-banner {
    height: 240px;
    background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .55)), url('https://images.unsplash.com/photo-1605101479435-fb43160e6878?q=80&w=1600&auto=format&fit=crop') center/cover;
    display: flex;
    align-items: center;
    padding: 0 50px;
}

.be-banner h2 {
    font-size: 34px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    max-width: 480px;
}

.be-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 50px;
    align-items: center;
}

.be-body ul {
    list-style: none;
    font-size: 14px;
    line-height: 2;
    margin-bottom: 30px;
}

.be-body ul li::before {
    content: "— ";
    opacity: .7;
}

.btn-white {
    display: inline-block;
    background: var(--white);
    color: var(--red);
    padding: 12px 32px;
    border-radius: 24px;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
}

.be-img {
    border-radius: 16px;
    overflow: hidden;
    height: 340px;
}

.be-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* PROJECTS */
.projects h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 200px;
}

.project-card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(.65);
}

.project-card .ptag {
    position: absolute;
    top: 14px;
    left: 14px;
    color: var(--white);
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
}

.project-card .ploc {
    position: absolute;
    bottom: 14px;
    left: 14px;
    color: var(--white);
    font-size: 11px;
    opacity: .85;
}

.projects-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 34px;
}

.btn-black-outline {
    border: 1px solid var(--black);
    padding: 12px 32px;
    border-radius: 24px;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
}

.nav-arrows {
    display: flex;
    gap: 10px;
}

.nav-arrows .arrow-btn {
    background: var(--gray-1);
    color: var(--black);
    width: 38px;
    height: 38px;
    font-size: 15px;
}

/* CAREERS */
.careers {
    background: var(--gray-1);
    color: var(--black);
    border-radius: 30px;
    margin: 90px 5% 0;
    overflow: hidden;
}

.careers-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    padding: 60px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.careers-top img {
    border-radius: 12px;
}

.careers-top h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 14px;
}

.careers-top h3 .accent {
    color: var(--red);
}

.careers-top p {
    color: black;
    font-size: 14px;
    max-width: 560px;
    margin-bottom: 24px;
}

.btn-red-sm {
    background: var(--red);
    color: var(--white);
    padding: 10px 28px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
}

.careers-bottom {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    padding: 60px;
    align-items: center;
}

.careers-bottom img {
    border-radius: 12px;
    height: 300px;
    object-fit: cover;
    width: 100%;
}

.careers-bottom h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 14px;
}

.careers-bottom p {
    color: black;
    font-size: 14px;
    margin-bottom: 30px;
}

.careers-bottom .progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, .15);
    width: 100%;
    position: relative;
    margin-top: 20px;
}

.careers-bottom .progress-bar::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 3px;
    width: 30%;
    background: var(--red);
}

/* DISCOVER */
.discover h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.discover p {
    color: var(--gray-4);
    font-size: 14px;
    margin-bottom: 30px;
    max-width: 520px;
}

.discover-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.discover-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 260px;
    color: var(--white);
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.discover-card.one {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.discover-card.two {
    background: linear-gradient(135deg, #2a2a2a, var(--black));
}

.discover-card h4 {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.play-btn {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.discover-dot {
    text-align: center;
    margin-top: 24px;
}

.discover-dot span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--red);
    display: inline-block;
}

/* NEWS */
.news h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card img {
    border-radius: 12px;
    height: 180px;
    object-fit: cover;
    width: 100%;
    margin-bottom: 14px;
}

.news-card h4 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-card p {
    font-size: 13px;
    color: var(--gray-4);
}

.news-tag {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* FOOTER */
footer {
    background: var(--black);
    color: var(--white);
    padding: 70px 5% 30px;
    margin-top: 90px;
    border-radius: 30px 30px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-grid h5 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--red);
    margin-bottom: 18px;
    font-weight: 800;
}

.footer-grid ul {
    list-style: none;
    font-size: 13px;
    color: var(--gray-3);
    line-height: 2.2;
}

.footer-grid ul li a:hover {
    color: var(--white);
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 14px;
}

.footer-logo span {
    color: var(--red);
}

.footer-grid .addr p {
    font-size: 13px;
    color: var(--gray-3);
    margin-bottom: 6px;
    line-height: 1.7;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-socials a {
    width: 34px;
    height: 34px;
    border: 1px solid var(--gray-4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--gray-3);
    letter-spacing: 1px;
}

/* RESPONSIVE */
@media (max-width:1000px) {
    nav {
        display: none;
    }

    .feature-cards,
    .projects-grid,
    .discover-grid,
    .pg-grid,
    .news-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .affiliate-grid,
    .be-body,
    .careers-top,
    .careers-bottom {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-cards {
        transform: none;
        margin-top: 30px;
    }

    .hero {
        border-radius: 0 0 24px 24px;
    }
}

/* =========================
   DROPDOWN SERVICIOS
========================= */

nav ul li {
    position: relative;
}

.dropdown>a {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown>a i {
    font-size: 11px;
    transition: .3s;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;

    min-width: 280px;

    background: #fff;

    border-top: 4px solid var(--red);

    border-radius: 0 0 12px 12px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);

    padding: 10px 0;

    list-style: none;

    display: flex;
    flex-direction: column;
    gap: 0;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: all .25s ease;

    z-index: 999;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;

    padding: 12px 22px;

    font-size: 13px;

    font-weight: 600;

    text-transform: none;

    letter-spacing: normal;

    transition: .25s;
}

.dropdown-menu a:hover {
    background: rgba(192, 0, 0, .05);
    color: var(--red);
    padding-left: 28px;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown.active>a {
    color: var(--red);
}

.dropdown.active>a i {
    transform: rotate(180deg);
}

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(.98);

    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/*ELIMINA LA FLECHITA HACIA ABAJO GENERADA POR BOOTSTRAP*/
.dropdown-toggle::after {
    display: none !important;
}

/*boton hamburguesa*/
.mobile-menu-btn {
    display: none;

    border: none;
    background: none;

    font-size: 34px;

    color: var(--red);

    cursor: pointer;
}

.mobile-menu {
    position: fixed;

    top: 0;
    right: -350px;

    width: 350px;
    height: 100vh;

    background: white;

    box-shadow: -5px 0 20px rgba(0, 0, 0, .15);

    transition: .3s;

    z-index: 9999;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 30px;
}

.mobile-menu-content a {
    display: block;

    padding: 12px 0;

    font-weight: 600;
}

@media (max-width: 1200px) {

    .header-bot {
        display: none;
    }

    .contact-info {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

}

.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: .3s ease;
}

.mobile-dropdown.active .mobile-dropdown-content {
    max-height: 500px;
}

@media (max-width:1200px) {

    .header-top {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 20px;
        align-items: center;
    }

    .mobile-menu-btn {
        display: block;
    }

}

.mobile-dropdown-btn {
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 0;

    border: none;
    background: transparent;

    cursor: pointer;

    font-size: 15px;
    font-weight: 600;
    color: var(--black);

    text-align: left;

    transition: .3s;
}

.mobile-dropdown-btn:hover {
    color: var(--red);
}

.mobile-dropdown-btn i {
    transition: .3s;
    font-size: 12px;
}

.mobile-dropdown.active .mobile-dropdown-btn {
    color: var(--red);
}

.mobile-dropdown.active .mobile-dropdown-btn i {
    transform: rotate(180deg);
}

.mobile-dropdown-content a {
    display: block;

    padding: 10px 0 10px 20px;

    font-size: 14px;
    font-weight: 500;

    color: var(--gray-4);

    transition: .3s;
}

.mobile-dropdown-content a:hover {
    color: var(--red);
    padding-left: 28px;
}

.mobile-dropdown.active {
    border-left: 3px solid var(--red);
    padding-left: 12px;
}

/*ESTILOS PARA MOSTRAR SUBITEMS DE LOS ITEMS DE SERVICIOS*/

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: -1px;
    /* alinea con el borde superior del padre */
}

/* Mostrar al hacer hover en escritorio */
@media (min-width: 992px) {
    .dropdown-submenu:hover>.submenu {
        display: block;
    }
}

.submenu-arrow {
    float: right;
    margin-left: 10px;
    font-size: 0.75rem;
}

/* Si el submenú se sale de la pantalla por la derecha, se abre hacia la izquierda */
.dropdown-submenu.submenu-left>.submenu {
    left: auto;
    right: 100%;
}

/*estilos para carrusel en productos*/
/* =============================================
   CARRUSEL: PRODUCT GROUPS
   ============================================= */
.product-groups {
    padding: 3rem 0;
}

.product-groups h3 {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 1.5rem;
}

.pg-wrap {
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* contenedor con overflow oculto */
.pg-track-outer {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius-lg, 8px);
    cursor: grab;
    user-select: none;
}

.pg-track-outer.dragging {
    cursor: grabbing;
}

/* la cinta que se desplaza */
.pg-grid {
    display: flex;
    gap: 1.25rem;
    transition: transform .35s cubic-bezier(.25, .46, .45, .94);
    will-change: transform;
}

.pg-card {
    flex: 0 0 calc(25% - 1rem);
    /* 4 cards visibles en desktop */
    min-width: 180px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-lg, 8px);
    overflow: hidden;
    background: rgba(255, 255, 255, .04);
    text-align: center;
    transition: box-shadow .2s, transform .2s;
}

.pg-card:hover {
    box-shadow: var(--shadow-lg, 0 8px 24px rgba(0, 0, 0, .3));
    transform: translateY(-3px);
}

.pg-img {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
}

.pg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg-card p {
    padding: .65rem .5rem;
    font-size: .85rem;
    font-weight: 600;
    margin: 0;
}

/* botones flecha compartidos */
.arrow-btn {
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    color: inherit;
    transition: background .2s, border-color .2s;
    user-select: none;
}

.arrow-btn:hover {
    background: var(--primary-red, #c0392b);
    border-color: transparent;
}

/* =============================================
   CARRUSEL: PROJECTS
   ============================================= */
.projects {
    padding: 3rem 0;
}

.projects h2 {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 1.75rem;
}

.projects-track-outer {
    overflow: hidden;
    border-radius: var(--radius-lg, 8px);
    cursor: grab;
    user-select: none;
    margin-bottom: 1.25rem;
}

.projects-track-outer.dragging {
    cursor: grabbing;
}

.projects-grid {
    display: flex;
    gap: 1.25rem;
    transition: transform .35s cubic-bezier(.25, .46, .45, .94);
    will-change: transform;
}

.project-card {
    flex: 0 0 calc(33.333% - 1rem);
    /* 3 visibles en desktop */
    min-width: 220px;
    border-radius: var(--radius-lg, 8px);
    overflow: hidden;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: box-shadow .2s, transform .2s;
}

.project-card:hover {
    box-shadow: var(--shadow-lg, 0 8px 24px rgba(0, 0, 0, .3));
    transform: translateY(-3px);
}

.project-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    background: rgba(255, 255, 255, .06);
}

.project-card .ptag {
    font-size: .9rem;
    font-weight: 700;
    margin: .55rem .75rem .15rem;
}

.project-card .ploc {
    font-size: .78rem;
    opacity: .6;
    margin: 0 .75rem .65rem;
}

.projects-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-arrows {
    display: flex;
    gap: .5rem;
}

/* botón outline negro (ya deberías tenerlo, por si acaso) */
.btn-black-outline {
    padding: .55rem 1.4rem;
    border: 1.5px solid currentColor;
    border-radius: 99px;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-decoration: none;
    color: inherit;
    transition: background .2s, color .2s;
}

.btn-black-outline:hover {
    background: var(--primary-red, #c0392b);
    border-color: var(--primary-red, #c0392b);
    color: #fff;
}

/* ——— responsive ——— */
@media (max-width: 900px) {
    .pg-card {
        flex-basis: calc(50% - .75rem);
    }

    .project-card {
        flex-basis: calc(50% - .75rem);
    }
}

@media (max-width: 560px) {
    .pg-card {
        flex-basis: 80%;
    }

    .project-card {
        flex-basis: 85%;
    }
}