/* ==================== VARIABLES Y RESET ==================== */
:root {
    --primary-orange: #e85327;
    --text-black: #000000;
    --text-dark-gray: #333333;
    --bg-white: #ffffff;
    --bg-light-gray: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html, body {
    overflow-x: hidden;
    background-color: var(--bg-light-gray);
    color: var(--text-dark-gray);
}

/* ==================== HEADER FLOTANTE ==================== */
.floating-header {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background-color: var(--bg-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 100;
}

.logo img { height: 50px; }

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.wa-icon img { width: 70px; }

.btn-cotizacion {
    background-color: var(--primary-orange);
    color: var(--bg-white);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn-cotizacion:hover { background-color: #cf461e; }

.country-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
}

.country-selector img { height: 20px; }

/* ==================== HERO SECTION ==================== */
.hero-section {
    position: relative;
    padding-top: 150px;
    padding-bottom: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.9) 100%),
                url('/img/Elementos/FONDO/fondo 2.png');
    background-size: cover;
    background-position: center;
}

.hero-title-container {
    text-align: center;
    margin-bottom: 50px;
}

.hero-title-container h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.text-orange { color: var(--primary-orange); font-weight: 800; }
.text-black  { color: var(--text-black); font-weight: 800; }

.italic {
    font-style: italic;
    font-size: 2.5rem;
}

/* ==================== TARJETAS DE SERVICIOS (HERO) ==================== */
.cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.service-card {
    position: relative;
    flex: 1;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.card-img {
    width: 450px;
    transition: transform 0.3s ease;
}

.service-card:hover .card-img { transform: scale(1.03); }

/* ==================== BARRA INFERIOR HERO ==================== */
.hero-bottom-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255,255,255,0.8);
    border-radius: 10px;
}

.bottom-left { text-align: right; font-size: 14px; color: var(--text-black); }
.bottom-divider { width: 3px; height: 5px; background-color: var(--text-black); }
.bottom-right { font-size: 14px; color: var(--text-dark-gray); font-weight: 500; }

/* ==================== CERTIFICACIONES ==================== */
.certifications-section {
    background-color: #313131;
    padding: 10px 0;
    width: 100%;
    overflow: hidden;
}

.cert-title {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 30px;
}

.cert-title .text-white { color: #ffffff; }
.cert-title .text-gray  { color: #909090; }

.logo-slider {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.logo-slider::before,
.logo-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.logo-slider::before { left: 0;  background: linear-gradient(to right, #313131 0%, rgba(49,49,49,0) 100%); }
.logo-slider::after  { right: 0; background: linear-gradient(to left,  #313131 0%, rgba(49,49,49,0) 100%); }

.logo-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.logo-track:hover { animation-play-state: paused; }

@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.cert-logo {
    max-height: 150px;
    width: auto;
    object-fit: contain;
    margin: 0 45px;
}

/* ==================== QUIÉNES SOMOS ==================== */
.about-section {
    position: relative;
    background-color: #ffffff;
    overflow: hidden;
}

.about-design-img {
    width: 100%;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 0 0 55px;
    font-family: 'Montserrat', sans-serif;
}

/* Ocultar elementos del layout antiguo */
.about-design-img .top-bar-container,
.about-design-img .about-grid,
.about-design-img .watermark-bg,
.about-design-img .logo-angled-box,
.about-design-img .stats-wrapper,
.about-design-img .about-text,
.about-design-img .about-video { display: none !important; }

.about-img-logo {
    background: #ffffff;
    clip-path: polygon(0 0, 100% 0, 87% 100%, 0 100%);
    border-radius: 0 0 16px 0;
    box-shadow: 8px 8px 15px rgba(0,0,0,0.22);
    padding-left: 38px;
    position: relative;
    z-index: 5;
    margin: 3rem 0 -50px -140px;
}

.about-img-logo img {
    width: auto;
    height: 120px;
    display: block;
}

.about-img-wrapper {
    padding: 20px 40px;
    display: grid;
    grid-template-columns: 1.05fr 300px 245px;
    gap: 28px;
    align-items: start;
    position: relative;
    z-index: 2;
}

.about-img-text {
    padding-top: 58px;
    margin: 2rem;
}

.about-img-text img { height: 10rem; }

.about-img-text p {
    font-size: 15px;
    line-height: 1.58;
    color: #171717;
    text-align: justify;
    font-weight: 500;
    margin: 0 0 15px;
}

.about-img-text strong { color: #000000; font-weight: 900; }

.about-img-video {
    width: 100%;
    height: 550px;
    margin-top: 26px;
    border-radius: 16px;
    overflow: hidden;
    background: #222222;
    box-shadow: 0 12px 25px rgba(0,0,0,0.26);
}

.about-img-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-img-stats { padding-top: 34px; color: #111111; }

.about-img-stat-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

.about-img-number {
    font-size: 60px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.gold-text {
    background: linear-gradient(135deg, #c7895c 0%, #eec8a0 48%, #a76a42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.about-img-label { font-size: 15px; line-height: 1.05; font-weight: 800; }

.about-img-line { width: 100%; height: 1.5px; background: #222222; margin: 0 0 22px; }

.about-img-service { font-size: 18px; line-height: 1.25; font-weight: 600; margin-bottom: 22px; }
.about-img-service strong { font-weight: 900; }

.about-img-rating {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-img-rating span { font-size: 18px; font-weight: 700; margin-bottom: 6px; }

/* Estrellas animadas */
.about-img-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

.about-img-stars .about-img-star {
    width: 34px;
    height: 34px;
    opacity: 0;
    transform: scale(0.2) rotate(-18deg);
    animation: starPop 0.65s cubic-bezier(.2, 1.4, .4, 1) forwards,
               starGlow 2.6s ease-in-out infinite;
    filter: drop-shadow(0 4px 5px rgba(0,0,0,0.18));
}

.about-img-stars .about-img-star path { fill: #d9a25f; }

.about-img-stars .star-1 { animation-delay: 0.1s, 1s; }
.about-img-stars .star-2 { animation-delay: 0.25s, 1.15s; }
.about-img-stars .star-3 { animation-delay: 0.4s, 1.3s; }
.about-img-stars .star-4 { animation-delay: 0.55s, 1.45s; }
.about-img-stars .star-5 { animation-delay: 0.7s, 1.6s; }

@keyframes starPop {
    0%   { opacity: 0; transform: scale(0.2) rotate(-18deg); }
    70%  { opacity: 1; transform: scale(1.18) rotate(6deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes starGlow {
    0%, 100% { filter: drop-shadow(0 4px 5px rgba(0,0,0,0.18)); transform: translateY(0); }
    50%       { filter: drop-shadow(0 6px 9px rgba(216,162,95,0.65)); transform: translateY(-2px); }
}

/* ==================== SECCIÓN MAKA (CARRUSEL IMÁGENES) ==================== */
.maka-section {
    position: relative;
    width: 100%;
    background: #ffffff;
    overflow: hidden;
}

.maka-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to bottom,
            rgba(255,255,255,0.05) 0%,
            rgba(255,255,255,0.25) 35%,
            rgba(255,255,255,0.82) 70%,
            rgba(255,255,255,1) 100%
        ),
        url('img/Elementos/FONDO/fondo 2.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.maka-bg::before {
    content: "MAKA";
    position: absolute;
    top: -20px; left: -10px;
    font-size: 200px;
    font-weight: 900;
    color: rgba(0,0,0,0.04);
    letter-spacing: 6px;
    line-height: 1;
    pointer-events: none;
}

.maka-bg::after {
    content: "SAFETY";
    position: absolute;
    top: 10px; right: -15px;
    font-size: 180px;
    font-weight: 900;
    color: rgba(0,0,0,0.04);
    letter-spacing: 5px;
    line-height: 1;
    pointer-events: none;
}

.maka-slide {
    position: relative;
    align-items: center;
    padding: 50px 60px 80px;
    min-height: 820px;
}

.maka-slide.active { display: flex; }

.maka-header { text-align: center; margin-bottom: 12px; }

.maka-header h1 {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 900;
    color: #111;
    letter-spacing: -0.5px;
    line-height: 1;
}

.maka-header h2 {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 900;
    font-style: italic;
    color: #e85327;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

/* Carrusel solo imágenes */
.maka-image-carousel {
    height: 560px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.maka-image-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 0.6s ease;
}

.maka-image-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.maka-image-slide img {
    width: 100%;
    height: 80%;
    object-fit: contain;
    object-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.maka-carousel-quote-btn {
    position: absolute;
    right: 11%;
    bottom: 92px;
    z-index: 30;
    background: linear-gradient(90deg, #ff7844 0%, #c82510 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
    font-size: 18px;
    padding: 14px 44px;
    border-radius: 9px;
    box-shadow: 0 10px 20px rgba(150,35,15,0.35);
    border: 1px solid rgba(255,255,255,0.35);
    transition: transform 0.2s ease;
}

.maka-carousel-quote-btn:hover { transform: translateY(-2px); }

.maka-img-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    background: transparent;
    border: none;
    color: #777777;
    font-size: 54px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.maka-img-arrow:hover { color: #e85327; }
.maka-img-prev { left: 35px; }
.maka-img-next { right: 35px; }

.maka-img-dots {
    position: absolute;
    bottom: 42px;
    left: 0; right: 0;
    z-index: 30;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.maka-img-dots button {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: #8a8a8a;
    cursor: pointer;
    padding: 0;
}

.maka-img-dots button.active { background: #e85327; }

/* ==================== GRID BANNERS (BLANCO Y NARANJA) ==================== */
.main-wrapper {
    position: relative;
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.card-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.responsive-img {
    width: 110%;
    height: auto;
    display: block;
    object-fit: contain;
}

.floating-center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 7%;
    min-width: 42px;
    pointer-events: none;
}

.floating-center-logo img { width: 100%; height: auto; display: block; }

.click-area {
    position: absolute;
    background: transparent;
    border: none;
    cursor: pointer;
}

.btn-left  { bottom: 12.5%; right: 12.5%; width: 37%; height: 9%; }
.btn-right { bottom: 12.5%; right: 12%;   width: 37%; height: 9%; }

/* ==================== SECCIÓN PERSONAL (CARRUSEL) ==================== */
.ph-section {
    position: relative;
    width: 100%;
    height: 720px;
    overflow: hidden;
    background: #fff;
}

.ph-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to bottom,
            rgba(255,255,255,0.10) 0%,
            rgba(255,255,255,0.30) 50%,
            rgba(255,255,255,0.92) 85%,
            rgba(255,255,255,1) 100%
        ),
        url('/img/Elementos/FONDO/fondo 3.png');
    background-size: cover;
    background-position: center top;
    z-index: 0;
}

/* Staff Carrusel */
.staff-carousel-section {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #ffffff;
}

.staff-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to bottom,
            rgba(255,255,255,0.18) 0%,
            rgba(255,255,255,0.42) 45%,
            rgba(255,255,255,0.92) 86%,
            rgba(255,255,255,1) 100%
        ),
        url("img/Elementos/FONDO/fondo 3.png");
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.staff-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 0.45s ease;
}

.staff-slide.active { opacity: 1; visibility: visible; z-index: 2; }

.staff-people {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: none;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    padding-bottom: 70px;
    z-index: 3;
}

.staff-person {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transform-origin: bottom center;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.25, 1),
                filter 0.35s ease,
                opacity 0.35s ease;
    z-index: 3;
    margin: 0 -100px;
    flex: 0 0 auto;
}

.staff-person img {
    display: block;
    height: 430px;
    width: auto;
    max-width: none;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(0 12px 18px rgba(0,0,0,0.22));
}

.staff-person.staff-big   img { height: 700px; }
.staff-person.staff-small img { height: 410px; }

.staff-person:hover { transform: scale(1.13); z-index: 10; }
.staff-people:hover .staff-person:not(:hover) { transform: scale(0.88); filter: blur(1.4px) brightness(0.85); opacity: 0.75; }

.staff-tag {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff7745 0%, #bd260d 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 6px 15px rgba(150,35,15,0.4);
    pointer-events: none;
    z-index: 15;
}

.staff-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    background: transparent;
    border: none;
    color: #111111;
    font-size: 62px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.staff-arrow:hover { color: #e85327; }
.staff-prev { left: 55px; }
.staff-next { right: 55px; }

.staff-dots {
    position: absolute;
    left: 0; right: 0;
    bottom: 32px;
    z-index: 30;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.staff-dots button {
    width: 11px;
    height: 11px;
    border: none;
    border-radius: 50%;
    background: #8f8f8f;
    padding: 0;
    cursor: pointer;
}

.staff-dots button.active { background: #e85327; }

/* Lightbox */
.staff-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.staff-lightbox.active { opacity: 1; visibility: visible; pointer-events: auto; }

.staff-lightbox-card {
    position: relative;
    width: min(95vw, 1000px);
    height: min(95vh, 1100px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.65) rotate(-4deg) translateY(60px);
    opacity: 0;
    filter: blur(12px);
    transition: transform 0.65s cubic-bezier(0.18, 1.35, 0.32, 1),
                opacity 0.45s ease,
                filter 0.45s ease;
}

.staff-lightbox.active .staff-lightbox-card {
    transform: scale(1) rotate(0deg) translateY(0);
    opacity: 1;
    filter: blur(0);
}

.staff-lightbox-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 35px 45px rgba(0,0,0,0.45));
    animation: staffFloat 3.2s ease-in-out infinite;
}

.staff-lightbox-close {
    position: fixed;
    top: 28px; right: 36px;
    width: 52px; height: 52px;
    border: none;
    border-radius: 50%;
    background: #e85327;
    color: #ffffff;
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 12px 30px rgba(232,83,39,0.45);
    transform: scale(0.8);
    transition: transform 0.25s ease, background 0.25s ease;
}

.staff-lightbox-close:hover { transform: scale(1.08) rotate(90deg); background: #111111; }

@keyframes staffFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-14px); }
}

/* ==================== EXPERIENCIA ==================== */
.experience-section {
    position: relative;
    width: 100%;
    padding: 60px 20px;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

.exp-bg-image {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('img/Elementos/FONDO/fondo 3.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.exp-container { position: relative; max-width: 1100px; margin: 0 auto; z-index: 10; }

.exp-header { text-align: center; margin-bottom: 40px; }

.exp-header h2 { font-size: 3.5rem; font-weight: 900; color: #000000; margin-bottom: 10px; line-height: 1; }

.exp-badge {
    display: inline-block;
    background: linear-gradient(90deg, #ff6622 0%, #d42e12 100%);
    color: #ffffff;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 8px 15px rgba(212,46,18,0.3);
}

.exp-badge strong { font-weight: 900; font-size: 18px; }

.exp-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.exp-text-col p { font-size: 14px; font-weight: 600; color: #333333; margin-bottom: 20px; line-height: 1.5; }

.exp-list { list-style: none; padding: 0; margin-bottom: 30px; }

.exp-list li {
    font-size: 13px;
    font-weight: 800;
    color: #111111;
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.exp-list li::before { content: '•'; position: absolute; left: 0; color: #000; font-weight: bold; }

.exp-sub-badge {
    border: 3px solid #ff6622;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 800;
    color: #333;
    line-height: 1.3;
    background: rgba(255,255,255,0.8);
}

.exp-gallery { display: flex; flex-direction: column; }

.exp-img-item { overflow: hidden; }

.exp-img-item img { object-fit: cover; display: block; width: 100%; height: 15rem; margin: .5rem; }

.exp-socials { margin-top: 60px; text-align: center; }

.exp-socials h3 { font-size: 26px; font-weight: 900; color: #e85327; margin-bottom: 15px; }

.social-links { display: flex; justify-content: center; align-items: center; gap: 15px; }

.social-links img { width: 35px; height: 35px; transition: transform 0.3s ease; }
.social-links img:hover { transform: scale(1.1); }

.social-handle { font-size: 16px; font-weight: 800; color: #000; margin-left: 10px; }

/* ==================== CONTACTO ==================== */
.centrar { display: flex; align-items: center; justify-content: center; }

.ph-contact {
    width: 25rem;
    margin: 2rem;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.96);
    border: 1px solid #c0c0c0;
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.22);
}

.ph-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-decoration: none;
    color: #111;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
    padding: 0 20px;
    transition: background 0.2s;
}

.ph-contact-item:hover { background: rgba(0,0,0,0.04); }
.ph-contact-item:first-child { border-right: 1px solid #ddd; }

.ph-icon {
    width: 46px; height: 46px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ph-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ==================== FOOTER ==================== */
.mak-footer {
    position: relative;
    width: 100%;
    height: 85px;
    overflow: hidden;
    background: linear-gradient(90deg, #ff8147 0%, #f05a24 50%, #c92411 100%);
    font-family: Arial, Helvetica, sans-serif;
}

.mak-carousel {
    position: absolute;
    top: 5px; left: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    z-index: 2;
}

.mak-track {
    display: inline-flex;
    width: max-content;
    animation: makScroll 22s linear infinite;
}

.mak-track span {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.4px;
    padding: 0 14px;
    border-right: 1px solid rgba(255,255,255,0.8);
    line-height: 16px;
}

.mak-bg-text {
    position: absolute;
    left: 18px; bottom: -24px;
    font-size: 90px;
    font-weight: 900;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.09);
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

@keyframes makScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1024px) {
    .floating-header { width: 95%; padding: 8px 20px; }
    .logo img { height: 40px; }
    .wa-icon img { width: 55px; }
    .btn-cotizacion { padding: 10px 18px; font-size: 13px; }

    .hero-title-container h1 { font-size: 2.5rem; }
    .italic { font-size: 2rem; }
    .cards-container { gap: 20px; padding: 10px; }
    .card-img { width: 100%; max-width: 300px; }
    .hero-bottom-bar { flex-direction: column; text-align: center; gap: 15px; }
    .bottom-left { text-align: center; }
    .bottom-divider { width: 40px; height: 3px; margin: 0 auto; }

    .about-img-wrapper { grid-template-columns: 1fr 1fr; gap: 20px; }
    .about-img-stats { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 15px; }
    .about-img-line { display: none !important; }
    .about-img-logo { margin: 2rem 0 -20px -40px; }

    .staff-people { max-width: 100%; gap: 0; }
    .staff-person { margin: 0 -40px !important; }
    .staff-person.staff-small img { height: 340px !important; }
    .staff-person.staff-big   img { height: 400px !important; }
    .staff-prev { left: 20px; }
    .staff-next { right: 20px; }

    .exp-content { grid-template-columns: 1fr; gap: 30px; }
    .exp-text-col, .exp-img-col { width: 100%; max-width: 600px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .grid-container,
    .cards-wrapper,
    .contractors-wrapper,
    .about-img-wrapper { grid-template-columns: 1fr !important; gap: 24px !important; width: 100% !important; padding: 10px 15px !important; box-sizing: border-box; }

    .country-selector,
    .floating-center-logo,
    .about-img-line { display: none !important; }

    .floating-header { border-radius: 25px; padding: 8px 15px; }
    .btn-cotizacion { display: none; }

    .hero-title-container h1 { font-size: 1.8rem !important; padding: 0 15px; }
    .italic { font-size: 1.4rem !important; }
    .cards-container { flex-direction: column; }
    .hero-bottom-bar { width: 90%; flex-direction: column; text-align: center; padding: 15px; }
    .bottom-divider { width: 50px; height: 2px; margin: 5px auto; }

    .about-design-img { padding: 20px 0; }
    .about-img-text { margin: 0 !important; padding: 10px !important; text-align: center; }
    .about-img-text img { height: auto !important; max-width: 85%; margin: 0 auto 15px; display: block; }
    .about-img-text p { font-size: 14px !important; line-height: 1.6 !important; text-align: justify; margin-bottom: 15px !important; }

    .about-img-logo { margin: 15px auto !important; clip-path: none !important; border-radius: 12px; padding: 10px !important; width: max-content; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
    .about-img-logo img { height: 60px !important; margin: 0 auto !important; }

    .about-img-video { width: 100% !important; max-width: 290px; height: 510px !important; margin: 20px auto !important; border-radius: 16px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }

    .about-img-stats { padding-top: 10px !important; display: flex; flex-direction: column; align-items: center; gap: 20px; }
    .about-img-stat-top { justify-content: center; gap: 12px; }
    .about-img-number { font-size: 48px !important; }
    .about-img-rating { padding: 0 !important; align-items: center; }

    .staff-carousel-section { height: 540px !important; }
    .staff-people { position: absolute !important; bottom: 0 !important; left: 50% !important; transform: translateX(-50%) !important; width: 100% !important; max-width: 340px !important; height: 440px !important; display: flex !important; justify-content: center !important; align-items: flex-end !important; gap: 0 !important; margin: 0 auto !important; padding-bottom: 25px !important; overflow: visible !important; }
    .staff-person { margin: 0 !important; position: absolute !important; left: 50% !important; transform: translateX(-50%) !important; width: auto !important; display: none !important; opacity: 0; transition: opacity 0.3s ease-in-out; }
    .staff-slide.active .staff-person { display: flex !important; opacity: 1; }
    .staff-person img, .staff-person.staff-small img, .staff-person.staff-big img { height: 370px !important; width: auto !important; max-width: 100% !important; object-fit: contain !important; margin: 0 auto !important; }
    .staff-people:hover .staff-person:not(:hover) { transform: translateX(-50%) !important; filter: none !important; opacity: 1 !important; }
    .staff-person:hover { transform: translateX(-50%) scale(1) !important; }
    .staff-arrow { font-size: 38px !important; top: 45% !important; }
    .staff-prev { left: 10px !important; }
    .staff-next { right: 10px !important; }

    .card-wrapper { overflow: hidden; border-radius: 12px; }
    .card-wrapper .responsive-img { width: 100% !important; }
    .btn-left  { width: 42% !important; height: 10% !important; bottom: 6% !important; right: 6% !important; }
    .btn-right { width: 42% !important; height: 10% !important; bottom: 6% !important; right: 6% !important; }

    .ph-contact { width: 90%; height: auto; border-radius: 12px; }
    .ph-contact-item { padding: 12px; }
    .ph-contact-item:first-child { border-right: none; border-bottom: 1px solid #ddd; }

    .exp-header h2 { font-size: 2.2rem; }
    .exp-badge { font-size: 12px; padding: 10px 20px; line-height: 1.4; }
    .exp-badge strong { font-size: 14px; }
    .exp-sub-badge { text-align: center; border-radius: 20px; }
    .exp-gallery { gap: 10px; }
    .exp-socials h3 { font-size: 18px; }
    .social-links { flex-direction: column; gap: 10px; }
    .social-links img { width: 45px; height: 45px; }

    .mak-bg-text { font-size: 50px; bottom: -12px; }
}

@media (max-width: 400px) {
    .hero-title-container h1 { font-size: 1.4rem !important; }
    .staff-person img, .staff-person.staff-small img, .staff-person.staff-big img { height: 310px !important; }
    .staff-carousel-section { height: 480px !important; }
    .about-img-video { max-width: 250px; height: 440px !important; }
}