/* Variables y Resets */
:root {
    --color-primary: #ff8c00; /* Dark Orange */
    --color-dark: #1c1c1e; /* Fondo oscuro moderno */
    --color-light: #f5f5f7; /* Blanco roto */
    --color-text: #ffffff; /* Texto principal */
    --font-family: 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --play-icon-display: flex; /* Variable para controlar el icono de play */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-dark);
    color: var(--color-text);
    scroll-behavior: smooth;
    overflow-x: hidden; 
}

/* ------------------------------------------------------------------- */
/* UTILERÍAS DE ACCESIBILIDAD */
/* ------------------------------------------------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


/* ------------------------------------------------------------------- */
/* Barra de Navegación */
/* ------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 1000;
    background-color: rgba(28, 28, 30, 0.9); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease-in-out;
}

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

.logo img {
    height: 45px;
    width: auto;
}

.navbar nav a {
    color: var(--color-light);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.95em;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.navbar nav a:hover {
    opacity: 1;
}

.menu-toggle {
    display: none; 
    cursor: pointer;
    font-size: 1.8em;
    color: var(--color-light);
}

/* ------------------------------------------------------------------- */
/* Secciones de Pantalla Completa (Full-Screen) */
/* ------------------------------------------------------------------- */
.full-screen {
    min-height: 100vh;
    min-height: 100dvh; /* Soporte para móviles modernos */
    width: 100vw;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 80px 20px; /* Padding reducido para móviles */
    transition: opacity 1.5s ease-out, transform 1s ease-out;
}

.hidden {
    opacity: 0;
    transform: translateY(50px); 
    pointer-events: none;
}

.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.content-wrapper {
    max-width: 1000px;
    padding: 40px;
    width: 100%;
}

.full-screen h1, .full-screen h2 {
    font-size: 3.5em;
    font-weight: 600;
    margin-bottom: 20px;
}

.full-screen p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.8;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-primary);
    color: var(--color-dark); 
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #005bb5;
    transform: scale(1.05);
}

/* ------------------------------------------------------------------- */
/* SECCIÓN INICIO (SLIDESHOW) */
/* ------------------------------------------------------------------- */
#inicio {
    overflow: hidden; 
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 28, 30, 0.6); 
    z-index: 1; 
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: crossfade-kenburns 30s infinite;
}

.slide:nth-child(2) { animation-delay: 10s; }
.slide:nth-child(3) { animation-delay: 20s; }

@keyframes crossfade-kenburns {
    0% { opacity: 0; transform: scale(1.05); }
    3.3% { opacity: 1; }
    30% { opacity: 1; transform: scale(1); }
    33.3% { opacity: 0; }
    100% { opacity: 0; }
}

#inicio h1 {
    font-size: 4.2em;
}
#inicio p {
    font-size: 1.3em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
#inicio .content-wrapper {
    position: relative;
    z-index: 2;
}

/* ------------------------------------------------------------------- */
/* SECCIÓN IDENTIDAD (COLABORADORES) */
/* ------------------------------------------------------------------- */
.team-scroller {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.team-scroller::-webkit-scrollbar {
    display: none;
}

.team-scroller__inner {
    display: flex;
    gap: 25px;
    width: max-content;
}

.team-card {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 18px;
    user-select: none;
}

.team-card img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary);
    margin-bottom: 20px;
    pointer-events: none;
}

.team-card h3 {
    font-size: 1.3em;
    color: var(--color-light);
    margin: 0;
}

.team-card .title {
    font-size: 1em;
    color: var(--color-primary);
    margin: 5px 0 15px 0;
    opacity: 1;
}

.team-card .description {
    font-size: 0.9em;
    font-style: italic;
    line-height: 1.5;
    opacity: 0.8;
    margin: 0;
}


/* ------------------------------------------------------------------- */
/* SECCIÓN HISTORIA (CARRUSEL PROYECTOS) */
/* ------------------------------------------------------------------- */
.carousel-section {
    height: 400vh; 
    padding: 0 !important;
}

.carousel-sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.carousel-track-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.carousel-intro-text {
    position: absolute;
    left: 5%;
    max-width: 300px;
    text-align: left;
    color: var(--color-light);
    z-index: 10;
}

.carousel-intro-text h2 {
    font-size: 2.5em;
}

.carousel-intro-text p {
    font-size: 1.1em;
    opacity: 0.8;
}

.carousel-track {
    display: flex;
    width: calc(7 * 60vw); 
    will-change: transform;
    padding-left: 100vw;
}

.carousel-item {
    width: 60vw;
    height: 75vh;
    margin: 0 2vw;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: transform 0.4s ease;
}

.carousel-item:hover {
    transform: scale(1.03);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    text-align: left;
}

.item-caption h3 {
    margin: 0 0 5px 0;
    font-size: 1.5em;
}

.item-caption p {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.8;
    color: var(--color-primary);
}


/* ------------------------------------------------------------------- */
/* ESTILOS GENÉRICOS PARA CARRUSELES HORIZONTALES */
/* ------------------------------------------------------------------- */
.horizontal-carousel-wrapper {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px;
    margin-top: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.horizontal-carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.horizontal-carousel-inner {
    display: flex;
    width: max-content; 
    gap: 25px; 
    padding: 0 40px; 
}

/* ------------------------------------------------------------------- */
/* CARRUSEL DE PROYECTOS CON VIDEO */
/* ------------------------------------------------------------------- */
.project-video-card {
    flex: 0 0 400px;
    background-color: #2c2c2e;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-video-card::after {
    content: '▶️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: var(--play-icon-display); /* Controlado por variable JS */
    justify-content: center;
    align-items: center;
    line-height: 80px;
    text-align: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding-left: 5px;
}

.project-video-card.is-playing::after {
    opacity: 0;
}


.project-video-card video {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
}

.project-video-card figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.project-video-card h3 {
    margin-bottom: 5px;
    font-size: 1.2em;
}

.project-video-card p {
    font-size: 0.9em;
    opacity: 0.8;
    margin: 0;
}


/* ------------------------------------------------------------------- */
/* CARRUSEL DE MAQUINARIA */
/* ------------------------------------------------------------------- */
.machinery-card {
    flex: 0 0 420px;
    background-color: #2c2c2e; 
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.machinery-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.machinery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px 10px 20px;
}

.machinery-header h3 {
    font-size: 1.2em;
    margin: 0;
    color: var(--color-light);
}

.machinery-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 20px 20px 20px;
    font-size: 0.9em;
    text-align: left;
    color: rgba(255, 255, 255, 0.7);
}

.machinery-specs strong {
    color: var(--color-light);
    display: block;
    font-weight: 600;
}

.machinery-specs .spec-price {
    grid-column: 1 / -1;
    text-align: center;
    background: rgba(255, 140, 0, 0.1);
    padding: 8px;
    border-radius: 6px;
    margin-top: 10px;
    color: var(--color-primary);
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.machinery-specs .spec-price:hover {
    background-color: rgba(255, 140, 0, 0.2);
}

.machinery-header input[type="checkbox"] {
    display: none;
}

.machinery-header .checkbox-label {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}

.machinery-header input[type="checkbox"]:checked + .checkbox-label {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.machinery-header input[type="checkbox"]:checked + .checkbox-label::after {
    content: '✔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: var(--color-dark);
}

/* ------------------------------------------------------------------- */
/* SECCIÓN SERVICIOS */
/* ------------------------------------------------------------------- */
.service-card {
    flex: 0 0 350px;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: scale(1.08);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0) 60%);
    z-index: 1;
    transition: background 0.4s ease;
}

.service-card:hover::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 30%, rgba(0, 0, 0, 0.1) 70%);
}

.service-card-content {
    padding: 25px;
    position: relative;
    z-index: 2;
    color: var(--color-light);
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-content {
    transform: translateY(-10px);
}

.service-card h3 {
    font-size: 1.5em;
    color: var(--color-light);
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.service-card p {
    font-size: 0.95em;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0;
}

/* --- DEMÁS SECCIONES, PIE DE PÁGINA, MODALES, ETC. --- */

.site-footer {
    text-align: right;
    padding: 30px 20px;
    background-color: var(--color-dark); 
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9em;
    opacity: 0.9;
}

.site-footer p { margin: 10px 0; line-height: 1.5; }
.site-footer a { color: var(--color-primary); text-decoration: none; transition: opacity 0.3s; }
.site-footer a:hover { opacity: 0.7; }
.footer-contact { margin-top: 10px; font-size: 0.85em; opacity: 0.8; }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.contact-form input, .contact-form textarea {
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    font-size: 1em; /* IMPORTANTE PARA IOS: Evita Zoom al escribir */
    font-size: 16px; 
}

.contact-form button {
    cursor: pointer;
    background-color: var(--color-primary);
    color: var(--color-dark);
    font-weight: 600;
    border: none;
    padding: 15px;
    border-radius: 50px;
    transition: background-color 0.3s;
}

.map-container {
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.map-container iframe { width: 100%; display: block; }
.modal {
    visibility: hidden;
    position: fixed; 
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}

.modal.active { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-content {
    background-color: var(--color-dark);
    margin: 5% auto;
    padding: 30px 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 80%;
    max-width: 950px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    transform: translateY(-20px);
    transition: transform 0.4s ease;
}

.modal.active .modal-content { transform: translateY(0); }
.close-button {
    color: var(--color-light);
    font-size: 35px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 30px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
}

.close-button:hover,
.close-button:focus { opacity: 1; transform: scale(1.1); }
.modal-body { padding-top: 20px; text-align: left; }
#modal-title { font-size: 2.2em; font-weight: 600; color: var(--color-primary); margin-bottom: 15px; line-height: 1.2; }
#modal-description { font-size: 1.1em; line-height: 1.7; opacity: 0.9; margin-bottom: 30px; }
.modal-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-top: 20px; }
.modal-gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; opacity: 0.85; transition: opacity 0.3s, transform 0.3s; cursor: zoom-in; }
.modal-gallery img:hover { opacity: 1; transform: scale(1.03); }

.logo-scroller {
    width: 100%;
    overflow: hidden;
    margin-top: 30px;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.logo-scroller__inner { display: flex; gap: 40px; width: max-content; animation: scrollAnimation 30s linear infinite; }
.logo-scroller__inner img { height: 160px; width: auto; filter: grayscale(100%) opacity(0.7); transition: filter 0.3s; }
.logo-scroller__inner img:hover { filter: grayscale(0%) opacity(1); }

@keyframes scrollAnimation {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.carousel-arrow {
    background-color: rgba(28, 28, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-light);
    cursor: pointer;
    font-size: 2.5em;
    font-weight: 100;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    margin: 0 25px;
    transition: background-color 0.3s, transform 0.2s;
    user-select: none;
}

.carousel-arrow:hover { background-color: var(--color-primary); color: var(--color-dark); transform: scale(1.1); }
.carousel-arrow.prev { padding-right: 4px; }
.carousel-arrow.next { padding-left: 4px; }

.lightbox {
    visibility: hidden;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}

.lightbox.visible { visibility: visible; opacity: 1; }
.lightbox-content { max-width: 90%; max-height: 90%; object-fit: contain; transform: scale(0.8); transition: transform 0.3s ease; }
.lightbox.visible .lightbox-content { transform: scale(1); }
.lightbox-close-button {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--color-light);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
.lightbox-close-button:hover { color: var(--color-primary); }
.custom-scrollbar { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 25px 0; }
.scrollbar-dot { width: 8px; height: 8px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.2); cursor: pointer; transition: all 0.3s ease; }
.scrollbar-dot.active { width: 28px; background-color: var(--color-light); border-radius: 10px; }

.social-media-links {
    text-align: center;
    margin: 40px 0;
}

.social-media-links p {
    font-size: 1.1em;
    opacity: 0.8;
    margin-bottom: 25px;
}

.icons-wrapper {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-media-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 55px;
    border: 2px solid var(--color-light);
    border-radius: 50%;
    color: var(--color-light);
    text-decoration: none;
    font-size: 1.6em;
    transition: all 0.3s ease;
}

.social-media-links a:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-dark);
    transform: scale(1.1) translateY(-5px);
}

/* ------------------------------------------------------------------- */
/* MEDIA QUERIES (RESPONSIVE DESIGN) */
/* ------------------------------------------------------------------- */
@media (max-width: 768px) {
    
    .navbar { padding: 15px 25px; }
    .navbar nav {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: rgba(28, 28, 30, 0.95);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 10px 0;
        max-height: 80vh;
        overflow-y: auto;
    }
    .navbar nav.active { display: flex; }
    .navbar nav a { margin: 0; padding: 15px 25px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); text-align: left; }
    .menu-toggle { display: block; }
    
    .scrollbar-dot { width: 12px; height: 12px; margin: 0 4px; }
    
    .full-screen { padding-top: 80px; padding-bottom: 80px; min-height: auto; }
    .full-screen h2 { font-size: 2.5em; }
    .full-screen p { font-size: 1em; }
    
    .map-container iframe { height: 300px; }
    .modal-content { width: 95%; margin: 10% auto; padding: 25px 20px; }
    #modal-title { font-size: 1.8em; }
    #modal-description { font-size: 1em; }
    .modal-gallery { grid-template-columns: 1fr; }
    .modal-gallery img { height: 180px; }

    /* Fix para tarjetas de servicio */
    .service-card .service-card-content {
        transform: translateY(0) !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 40%, transparent);
    }
    .service-card::before {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 30%, transparent) !important;
    }

    /* Ajustes generales móvil */
    #inicio h1 { font-size: clamp(2.8em, 10vw, 3.5em); line-height: 1.2; }
    
    /* Configuración de scroll snap */
    .team-scroller,
    .horizontal-carousel-wrapper,
    #historia .carousel-track-wrapper {
        scroll-snap-type: x mandatory;
    }
    .team-card,
    .project-video-card,
    .machinery-card,
    .service-card,
    #historia .carousel-item {
        scroll-snap-align: center;
    }
    
    /* Espaciado lateral en carruseles */
    .team-scroller__inner,
    .horizontal-carousel-inner,
    #historia .carousel-track {
        padding: 0 5vw; /* Ajustado para que se vea más centrado */
    }
    
    /* Ancho de tarjetas */
    .team-card { flex: 0 0 75vw; }
    
    /* CORRECCIÓN #1: Arreglo del scroll fantasma en Historia */
    /* Quitamos el espacio en el selector y forzamos display block */
    #historia.carousel-section { 
        height: auto !important; 
        min-height: auto !important; 
        padding-bottom: 60px !important;
        display: block;
    }
    #historia .carousel-sticky-container { 
        position: relative; 
        height: auto !important; 
        top: 0;
        display: block;
        flex-direction: column; 
    }
    #historia .carousel-track-wrapper { 
        overflow-x: auto; 
        width: 100%; 
    }
    #historia .carousel-track { 
        transform: none !important; 
        width: max-content; 
        padding-left: 5vw; /* Alineación inicial */
    }
    #historia .carousel-item { 
        width: 80vw; 
        height: 50vh; /* Altura más manejable */
        margin-right: 15px; 
    }
    #historia .carousel-intro-text { 
        display: block; 
        position: static; 
        text-align: center; 
        max-width: 100%; 
        padding: 0 20px 30px 20px; 
    }
    #historia .carousel-arrow { display: none; }

    /* CORRECCIÓN #2: Altura de videos */
    .project-video-card video {
        height: 300px; /* Reducido de 550px a 300px */
    }
    .project-video-card {
        flex: 0 0 85vw; /* Tarjeta un poco más ancha */
        max-width: 400px;
    }
    .project-video-card::after { display: var(--play-icon-display, flex); }

    /* CORRECCIÓN #3: Tarjetas de Maquinaria */
    .machinery-card {
        flex: 0 0 85vw;
        max-width: 350px;
        height: auto; /* Permitir que crezca */
        min-height: auto;
    }
    .machinery-card img {
        height: 180px; /* Reducir imagen para dar espacio al texto */
    }
    .machinery-specs {
        font-size: 0.85em; /* Texto un poco más pequeño */
    }

    /* Servicios */
    .service-card { flex: 0 0 70vw; }
}
