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

html {
    scroll-behavior: smooth
}

:root {
    --navy: #061626;
    --navy2: #09243d;
    --red: #e30613;
    --light: #f4f4f4;
    --dark: #050b12
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--light);
    color: var(--navy);
    overflow-x: hidden
}

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

a {
    text-decoration: none
}

.navbar {
    width: 100%;
    padding: 24px 55px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 50
}

.menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: auto
}

.menu a {
    color: white;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 1px;
    padding-bottom: 12px
}

.menu a:hover,
.menu a.active {
    border-bottom: 4px solid var(--red)
}

.btn-cotizar {
    background: var(--red);
    color: white;
    padding: 15px 24px;
    border-radius: 5px;
    font-weight: 900;
    white-space: nowrap;
    margin-left: 25px
}

.dropdown {
    position: relative
}

.submenu {
    position: absolute;
    top: 38px;
    left: 0;
    width: 285px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .25);
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: .3s;
    z-index: 999
}

.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.submenu a {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--navy) !important;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 800;
    border-bottom: none !important
}

.submenu a:hover {
    background: #f3f3f3;
    color: var(--red) !important;
    padding-left: 28px
}

.hero {
    min-height: 690px;
    background: linear-gradient(90deg, rgba(2, 13, 25, .45), rgba(2, 13, 25, .14), rgba(54, 54, 55, 0)), url('img/portada7.jpeg');
    background-size: cover;
    background-position: center top;
    position: relative
}

.hero-content {
    width: 690px;
    margin-left: 58px;
    padding-top: 150px;
    color: white
}

.hero-label {
    color: var(--red);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 7px;
    margin-bottom: 20px
}

.hero h1 {
    font-size: 58px;
    line-height: .92;
    font-weight: 900;
    letter-spacing: 3px
}

.hero h1 span {
    color: var(--red)
}

.hero-text {
    margin-top: 22px;
    max-width: 650px;
    font-size: 19px;
    line-height: 1.45
}

.hero-actions {
    display: flex;
    gap: 22px;
    margin-top: 30px;
    flex-wrap: wrap
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    font-weight: 900;
    border-radius: 4px;
    transition: .25s
}

.btn-primary {
    background: var(--red);
    color: white;
    padding: 16px 32px
}

.btn-secondary {
    border: 2px solid rgba(255, 255, 255, .86);
    color: white;
    padding: 15px 32px
}

.features {
    background: linear-gradient(90deg, var(--navy), var(--navy2));
    color: white;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 18px 75px
}

.features article {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 62px;
    border-right: 2px solid var(--red);
    padding-right: 22px
}

.features article:last-child {
    border-right: none
}

.feature-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border: 2px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    font-size: 21px
}

.features h3 {
    font-size: 16px;
    font-weight: 900
}

.features p {
    font-size: 13px;
    color: #e6e6e6
}

.section {
    padding: 55px 7%
}

.section-title {
    max-width: 930px;
    margin: 0 auto 32px;
    text-align: center
}

.section-title p,
.project-intro p,
.about p {
    color: var(--red);
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 7px;
    margin-bottom: 14px
}

.section-title h2 {
    font-size: 42px;
    font-weight: 900;
    color: var(--navy);
    letter-spacing: 2px
}

.section-title span {
    display: block;
    max-width: 850px;
    margin: 16px auto 0;
    font-size: 16px;
    line-height: 1.55;
    color: #444
}

.cards-strip {
    width: 100%;
    overflow: hidden;
    margin-top: 28px
}

.cards-track {
    display: flex;
    gap: 22px;
    width: max-content;
    animation: scrollX 55s linear infinite
}

.cards-strip:hover .cards-track {
    animation-play-state: paused
}

.card {
    width: 390px;
    min-width: 390px;
    background: rgb(247, 244, 244);
    border-top: 5px solid var(--red);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .10);
    border-radius: 8px;
    overflow: hidden;
    transition: .3s
}

.card:hover {
    transform: translateY(-5px) scale(1.02)
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: white;
    padding: 16px;
    border-bottom: 1px solid #eee
}

.card-body {
    padding: 22px
}

.card-body span {
    color: var(--red);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 3px
}

.card-body h3 {
    font-size: 24px;
    line-height: 1.08;
    margin: 10px 0 12px;
    font-weight: 900;
    color: var(--navy)
}

.card-body p {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
    margin-bottom: 16px
}

.card-body a {
    display: inline-block;
    background: var(--red);
    color: white;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 900;
    border-radius: 3px
}

@keyframes scrollX {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

.videos-section {
    background: var(--navy);
    padding: 55px 0;
    overflow: hidden
}

.videos-section .section-title h2,
.videos-section .section-title span {
    color: white
}

.video-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scrollX 45s linear infinite
}

.video-strip {
    overflow: hidden;
    width: 100%
}

.video-card {
    width: 280px;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .22)
}

.video-card video {
    width: 100%;
    height: 500px;
    object-fit: contain;
    background: #000
}

.video-card h3 {
    padding: 16px;
    color: var(--navy);
    font-size: 18px
}

/* EXPERIENCIA / PROYECTOS: tarjetas más anchas, alineadas y menos largas */
.projects {
    background: linear-gradient(90deg, var(--navy), var(--navy2));
    color: white;
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 70px 6% !important
}

.project-intro {
    max-width: 950px;
    text-align: center;
    margin: 0 auto 10px
}

.project-intro h2 {
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.02;
    color: white;
    font-weight: 900
}

.project-intro span {
    display: block;
    max-width: 780px;
    margin: 18px auto 0;
    font-size: 18px;
    line-height: 1.6;
    color: white
}

.project-grid {
    max-width: 1450px;
    width: 100%;
    margin: 20px auto 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: 26px
}

.project-card {
    min-height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 14px 35px rgba(0, 0, 0, .20);
    display: flex;
    flex-direction: column;
    transition: .3s
}

.project-card:hover {
    transform: translateY(-8px)
}

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

.project-card div {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex: 1
}

.project-card h3 {
    color: white;
    font-size: 26px;
    line-height: 1.12;
    font-weight: 900;
    margin-bottom: 12px;
    min-height: 60px
}

.project-card p {
    color: #e7e7e7;
    font-size: 17px;
    line-height: 1.55;
    margin-top: 0
}

.capacity-grid {
    max-width: 1250px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px
}

.capacity-grid article {
    position: relative;
    background: white;
    padding: 34px 30px;
    min-height: 245px;
    text-align: left;
    border-left: none;
    border-top: 5px solid var(--red);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    overflow: hidden
}

.capacity-grid article::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    width: 62px;
    height: 62px;
    background: var(--red);
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 26px;
    margin-bottom: 20px;
    box-shadow: 0 10px 22px rgba(227, 6, 19, .28)
}

.capacity-grid article:nth-child(1)::before {
    content: '\f568'
}

.capacity-grid article:nth-child(2)::before {
    content: '\f275'
}

.capacity-grid article:nth-child(3)::before {
    content: '\f0ad'
}

.capacity-grid article:nth-child(4)::before {
    content: '\f3ed'
}

.capacity-grid h3 {
    font-size: 27px;
    line-height: 1.1;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 12px
}

.capacity-grid p {
    font-size: 16.5px;
    line-height: 1.6;
    color: #444
}

.about {
    background: linear-gradient(90deg, var(--navy), var(--navy2));
    color: white
}

.about div {
    max-width: 1100px;
    margin: auto
}

.about h2 {
    font-size: 40px;
    line-height: 1;
    color: white;
    font-weight: 900
}

.about span {
    display: block;
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.6;
    color: white
}

.contacto-completo {
    background: #061626
}

.contacto-contenedor {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.4fr .9fr;
    gap: 42px
}

.formulario {
    background: white;
    padding: 48px;
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18)
}

.titulo-rojo {
    color: var(--red);
    font-weight: 900;
    letter-spacing: 4px
}

.formulario h2 {
    font-size: 44px;
    color: var(--navy);
    margin: 12px 0 18px;
    line-height: 1.05
}

.formulario p {
    color: #555;
    line-height: 1.65;
    margin-bottom: 30px;
    font-size: 17px
}

.formulario form {
    display: grid;
    gap: 16px
}

.formulario input,
.formulario textarea {
    width: 100%;
    border: 1px solid #d8d8d8;
    padding: 16px;
    font-size: 17px;
    outline: none
}

.formulario textarea {
    height: 165px;
    resize: none
}

.formulario button {
    width: 240px;
    padding: 16px;
    background: var(--red);
    color: white;
    border: none;
    font-weight: 900
}

.datos-contacto-box {
    background: linear-gradient(180deg, #0d2035, #061626);
    color: white;
    padding: 44px;
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18)
}

.datos-contacto-box h3 {
    font-size: 30px;
    margin-bottom: 28px
}

.dato-contacto {
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .15)
}

.dato-contacto h4 {
    color: var(--red);
    margin-bottom: 10px;
    font-size: 20px
}

.dato-contacto i {
    margin-right: 8px
}

.dato-contacto p {
    color: #ddd;
    line-height: 1.65;
    font-size: 17px
}

.redes {
    display: flex;
    gap: 18px
}

.redes a {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px
}

.facebook {
    background: #1877F2
}

.whatsapp-red {
    background: #25D366
}

.footer {
    background: #050b12;
    color: white;
    text-align: center;
    padding: 24px;
    font-size: 14px
}

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 62px;
    height: 62px;
    background: #25D366;
    color: white;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 34px;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .35)
}

.page-hero {
    min-height: 520px;
    background: linear-gradient(90deg, rgba(2, 13, 25, .82), rgba(2, 13, 25, .45), rgba(2, 13, 25, .15)), url('../img/portada-general.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 140px 7% 70px;
    color: rgb(243, 239, 239)
}

.portada-mantenimiento {
    background: linear-gradient(90deg, rgba(16, 20, 24, 0.082), rgba(77, 86, 95, 0.014), rgba(66, 86, 99, 0.053)), url('img/MANTENIMIENTO\ EDGAR.jpeg') !important;
    background-size: cover !important;
    background-position: center !important
}

.portada-fabricacion {
    background: linear-gradient(90deg, rgba(2, 13, 25, 0.347), rgba(49, 50, 51, 0.114), rgba(63, 64, 66, 0.15)), url('img/proyecto3.png') !important;
    background-size: cover !important;
    background-position: center !important
}

.portada-cnc {
    background: linear-gradient(90deg, rgba(13, 34, 56, 0), rgba(14, 43, 75, 0), rgba(6, 39, 74, 0)), url('img/PORTADA\ CNC.jpeg') !important;
    background-size: cover !important;
    background-position: center !important
}

.portada-laser {
    background: linear-gradient(90deg, rgba(2, 13, 25, 0.021), rgba(2, 13, 25, 0.007), rgba(2, 13, 25, 0.066)), url('img/corte\ laser.png') !important;
    background-size: cover !important;
    background-position: center !important
}

.portada-soldadura {
    background: linear-gradient(90deg, rgba(2, 13, 25, 0), rgba(2, 13, 25, 0), rgba(2, 13, 25, 0)), url('img/portadasol.png') !important;
    background-size: cover !important;
    background-position: center !important
}

.portada-diseno {
    background: linear-gradient(90deg, rgba(2, 13, 25, 0), rgba(2, 13, 25, .45), rgba(2, 13, 25, 0)), url('img/portada\ dibujo.jpeg') !important;
    background-size: cover !important;
    background-position: center !important
}

.portada-maniobras {
    background: linear-gradient(90deg, rgba(2, 13, 25, 0.027), rgba(2, 13, 25, 0.014), rgba(2, 13, 25, 0.014)), url('img/gruaaaa.jpeg') !important;
    background-size: cover !important;
    background-position: center !important
}

.page-hero h1 {
    font-size: 58px;
    line-height: 1;
    font-weight: 900
}

.page-hero p {
    max-width: 720px;
    font-size: 19px;
    line-height: 1.6;
    margin-top: 20px
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 38px;
    align-items: center;
    background: rgb(223, 223, 223);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(250, 249, 249, 0.018);
    padding: 35px
}

.detail-layout img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    background: rgb(241, 238, 238);
    border-radius: 8px
}

.detail-text h2 {
    font-size: 38px;
    margin-bottom: 18px

}


.detail-text p {
    font-size: 18px;
    line-height: 1.7;
    color: #101010;
    margin-bottom: 20px
}

.detail-text ul {
    list-style: none;
    margin-bottom: 25px
}

.detail-text li {
    margin-bottom: 10px;
    font-weight: 800
}

.detail-text li::before {
    content: '✓';
    color: var(--red);
    margin-right: 10px
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.gallery-grid img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12)
}

.gallery-grid video {
    width: 100%;
    height: 430px;
    object-fit: contain;
    background: #000;
    border-radius: 8px
}

@media(max-width:1200px) {
    .menu {
        gap: 18px
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr))
    }

    .capacity-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:900px) {
    .menu {
        display: none
    }

    .navbar {
        justify-content: flex-start;
        padding: 25px
    }

    .btn-cotizar {
        margin-left: auto;
        padding: 14px 18px;
        font-size: 12px
    }

    .hero {
        min-height: 640px
    }

    .hero-content {
        width: auto;
        margin: 0 25px;
        padding-top: 145px
    }

    .hero h1 {
        font-size: 42px
    }

    .hero-label {
        font-size: 13px;
        letter-spacing: 4px
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        text-align: center
    }

    .features,
    .project-grid,
    .capacity-grid,
    .contacto-contenedor,
    .detail-layout,
    .gallery-grid {
        grid-template-columns: 1fr
    }

    .features {
        padding: 18px 25px
    }

    .features article {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .22);
        padding: 13px 0
    }

    .features article:last-child {
        border-bottom: none
    }

    .section,
    .projects,
    .about,
    .contacto-completo {
        padding: 42px 25px
    }

    .card {
        width: 300px;
        min-width: 300px
    }

    .card img {
        height: 200px
    }

    .video-card {
        width: 230px
    }

    .video-card video {
        height: 410px
    }

    .formulario,
    .datos-contacto-box {
        padding: 34px
    }

    .formulario h2 {
        font-size: 36px
    }

    .formulario button {
        width: 100%
    }

    .page-hero h1 {
        font-size: 40px
    }

    .project-card {
        min-height: auto
    }

    .project-card img {
        height: 230px
    }
}
/*=========================
PORTADAS GALERÍA
==========================*/

.portada-instalaciones{

    background:
    linear-gradient(
        rgba(5, 20, 35, 0.002),
        rgba(5, 20, 35, 0.032)
    ),
    url("img/portada\ taller.jpeg");

    background-size:cover;
    background-position:center;
}

.portada-manufactura{

    background:
    linear-gradient(
        rgba(5, 20, 35, 0),
        rgba(5, 20, 35, 0)
    ),
    url("img/portada\ proyectos\ cen\ \(3\).png");

    background-size:cover;
    background-position:center;
}

.portada-videos{

    background:
    linear-gradient(
        rgba(5, 20, 35, 0),
        rgba(5, 20, 35, 0)
    ),
    url("img/SEGURIDAD\ \(2\).jpeg");

    background-size:cover;
    background-position:center;
}

.portada-proyectos{

    background:
    linear-gradient(
        rgba(5, 20, 35, 0),
        rgba(5, 20, 35, 0)
    ),
    url("img/portada\ proyec.jpeg");

    background-size:cover;
    background-position:center;
}

/* ===== HPM 2026: carrusel accesible y mejoras SEO/UX ===== */
.carousel-shell { position: relative; }
.carousel-shell .cards-strip { overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-inline: contain; padding: 8px 4px 18px; }
.carousel-shell .cards-strip::-webkit-scrollbar { display: none; }
.carousel-shell .cards-track { animation: none; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 8; width: 50px; height: 50px; border: 0; border-radius: 50%; background: rgba(6,22,38,.94); color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.28); transition: transform .2s ease, background .2s ease, opacity .2s ease; }
.carousel-arrow:hover { background: var(--red); transform: translateY(-50%) scale(1.08); }
.carousel-arrow:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.carousel-arrow--prev { left: 10px; }
.carousel-arrow--next { right: 10px; }
@media (max-width: 700px) { .carousel-arrow { width: 42px; height: 42px; font-size: 17px; } .carousel-arrow--prev { left: 4px; } .carousel-arrow--next { right: 4px; } .card { width: 82vw; min-width: 82vw; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
