*,
body,
html,
ul {
    padding: 0;
    margin: 0
}

.btn-pdf,
.btn-pill-action,
a {
    text-decoration: none
}

.banner-cat,
.btn-pdf,
.btn-primary,
.cat-btn,
.close-video,
.hamburger,
.producto-item,
.video-card {
    cursor: pointer
}

*,
.modal-body {
    box-sizing: border-box
}

.btn-volver:hover,
.contact-details-list a:hover {
    text-decoration: underline
}

.btn-pdf,
.btn-pill-action,
.cat-btn,
.w-100,
body,
html {
    font-family: var(--font-main)
}

.badge,
.badge-pill,
.hero-content-static h1 {
    text-transform: uppercase
}

@font-face {
    font-display: swap;
    font-family: Montserrat;
    font-style: normal;
    font-weight: 300;
    src: url('../assets/fonts/montserrat-v31-latin-300.woff2') format('woff2')
}

@font-face {
    font-display: swap;
    font-family: Montserrat;
    font-style: normal;
    font-weight: 400;
    src: url('../assets/fonts/montserrat-v31-latin-regular.woff2') format('woff2')
}

@font-face {
    font-display: swap;
    font-family: Montserrat;
    font-style: normal;
    font-weight: 500;
    src: url('../assets/fonts/montserrat-v31-latin-500.woff2') format('woff2')
}

@font-face {
    font-display: swap;
    font-family: Montserrat;
    font-style: normal;
    font-weight: 600;
    src: url('../assets/fonts/montserrat-v31-latin-600.woff2') format('woff2')
}

@font-face {
    font-display: swap;
    font-family: Montserrat;
    font-style: normal;
    font-weight: 700;
    src: url('../assets/fonts/montserrat-v31-latin-700.woff2') format('woff2')
}

@font-face {
    font-display: swap;
    font-family: Montserrat;
    font-style: normal;
    font-weight: 800;
    src: url('../assets/fonts/montserrat-v31-latin-800.woff2') format('woff2')
}

@font-face {
    font-display: swap;
    font-family: 'Hubot Sans';
    font-style: normal;
    font-weight: 300;
    src: url('../assets/fonts/hubot-sans-v5-latin-300.woff2') format('woff2')
}

@font-face {
    font-display: swap;
    font-family: 'Hubot Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../assets/fonts/hubot-sans-v5-latin-regular.woff2') format('woff2')
}

@font-face {
    font-display: swap;
    font-family: 'Hubot Sans';
    font-style: normal;
    font-weight: 500;
    src: url('../assets/fonts/hubot-sans-v5-latin-500.woff2') format('woff2')
}

@font-face {
    font-display: swap;
    font-family: 'Hubot Sans';
    font-style: normal;
    font-weight: 600;
    src: url('../assets/fonts/hubot-sans-v5-latin-600.woff2') format('woff2')
}

@font-face {
    font-display: swap;
    font-family: 'Hubot Sans';
    font-style: normal;
    font-weight: 700;
    src: url('../assets/fonts/hubot-sans-v5-latin-700.woff2') format('woff2')
}

:root {
    --primary-color: #0f4e83;
    --secondary-color: #002a52;
    --accent-color: #004481;
    --accent-color-hover: #f6f6f6;
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --bg-light: #f8f9fa;
    --gray-border: #e0e0e0;
    --font-main: "Montserrat", sans-serif;
    --max-width: 1200px
}

body,
html {
    width: 100%;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
    overflow-x: hidden
}

a {
    color: inherit
}

ul {
    list-style: none
}

section {
    padding: 60px 0
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0
}

/* Accessibility Fixes */
a,
button {
    position: relative;
}

.footer-links a::after,
.social-icons a::after,
.logo-link::after,
.mobile-link::after,
.cat-btn::after,
.contact-details-list a::after,
.footer-links a::after,
.social-icons a::after,
.logo-link::after,
.mobile-link::after,
.cat-btn::after,
.contact-details-list a::after,
.nav-btn::after,
.btn-link::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 48px;
    min-height: 48px;
    width: 100%;
    height: 100%;
}

.ticker-move img {
    width: auto;
    height: 80px;
    max-width: none;
    display: block;
}

.ticker-wrap .ticker-move {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
}

.ticker-wrap .ticker-item {
    flex: 0 0 auto;
    flex-shrink: 0;
}

.section-title {
    text-align: center;
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 2rem;
    width: 100%;
    display: block
}

.categoria-header span,
.main-header.scrolled .main-nav a,
.section-title span,
.section-title-left span {
    color: var(--primary-color)
}

.badge-pill {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 800;
    font-size: .9rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(15, 78, 131, .3)
}

.badge-outlined,
.btn-pill-action:hover,
.white-pill {
    color: var(--primary-color)
}

.white-pill {
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .2)
}

.badge-outlined {
    background-color: #fff;
    border: 2px solid var(--primary-color);
    box-shadow: none
}

.btn-pill-action,
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    transition: .3s;
    font-weight: 600
}

.btn-pill-action {
    padding: 10px 35px;
    border-radius: 5px;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-top: 25px
}

.btn-pill-action:hover {
    background-color: var(--accent-color-hover)
}

.btn-primary {
    padding: .7rem 1.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    text-align: center
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color)
}

.w-100 {
    width: 100%;
    display: block
}

.btn-pdf {
    display: inline-block;
    font-size: .85rem;
    color: var(--accent-color);
    margin-top: 5px
}

.btn-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
    z-index: 1000;
    transition: .3s
}

.main-header,
.whatsapp-tooltip {
    background-color: var(--primary-color)
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .4)
}

.btn-whatsapp svg {
    animation: 2s ease-in-out infinite whatsapp-latido
}

.btn-whatsapp:hover svg {
    animation-play-state: paused
}

.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .3);
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: .4s cubic-bezier(.68, -.55, .27, 1.55)
}

.whatsapp-tooltip::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--primary-color)
}

.btn-whatsapp:hover .whatsapp-tooltip,
.whatsapp-tooltip.show-msg {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0)
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    z-index: 1000;
    transition: .4s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1)
}

.header-transparent {
    background-color: transparent;
    box-shadow: none
}

.main-header.scrolled {
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .1)
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.logo-link {
    display: flex;
    align-items: center
}

.logo-img {
    width: 170px;
    height: auto;
    display: block;
    transition: filter .3s
}

.main-header.scrolled .logo-img {
    filter: none
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center
}

.main-nav a {
    position: relative;
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .5px;
    transition: color .3s
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width .3s ease-in-out
}

.main-nav a:hover::after,
.video-column .video-card {
    width: 100%
}

.hamburger.open span,
.main-header.scrolled .hamburger span,
.main-header.scrolled .main-nav a::after {
    background-color: var(--primary-color)
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: 0 0;
    border: none;
    z-index: 2000;
    padding: 0
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: .3s linear
}

.hamburger.open span:first-child {
    transform: rotate(45deg) translate(5px, 6px)
}

.hamburger.open span:nth-child(2) {
    opacity: 0
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px)
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, .2);
    z-index: 1500;
    transition: right .4s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center
}

.mobile-nav-overlay.active {
    right: 0
}

.mobile-nav-content ul {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: left;
    padding-left: 0;
    width: 100%
}

.mobile-nav-content a {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700
}

.main-footer {
    background-image: url(../assets/img/background-footer.png);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 0 20px;
    position: relative;
    overflow: hidden
}

.relative-z {
    position: relative;
    z-index: 1
}

.grid-footer {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px
}

.logo-footer {
    width: 180px;
    margin-bottom: 20px
}

.footer-slogan {
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: .9
}

.footer-col h4,
.footer-col h3 {
    color: #f6f6f6;
    font-size: 1.1rem;
    margin-bottom: 25px;
    letter-spacing: 1px;
    font-weight: 700
}

.contact-col address,
.footer-links a,
.contact-col p {
    font-size: .9rem;
    color: #ffffff
}

.footer-links li {
    margin-bottom: 12px
}

.footer-links a {
    font-weight: 500;
    transition: color .3s, padding .3s;
    display: inline-block;
    padding: 5px 0
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px
}

.contact-col address {
    font-style: normal;
    line-height: 1.6
}

.contact-col p {
    margin-bottom: 15px
}

.contact-col strong {
    color: #fff;
    font-weight: 700
}

.social-icons {
    margin-top: 25px;
    display: flex;
    gap: 15px
}

.social-icons img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: transform .3s
}

.social-icons a:hover img {
    transform: scale(1.2)
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 20px;
    font-size: .85rem;
    color: rgba(255, 255, 255, .9)
}

@keyframes bounce {

    0%,
    100%,
    20%,
    50%,
    80% {
        transform: translateX(-50%) translateY(0)
    }

    40% {
        transform: translateX(-50%) translateY(-10px)
    }

    60% {
        transform: translateX(-50%) translateY(-5px)
    }
}

@keyframes whatsapp-latido {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.08)
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes zoomIn {
    from {
        transform: scale(.9);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: .8s ease-out
}

.reveal.active {
    opacity: 1;
    transform: translateY(0)
}

.hero-video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    background-color: var(--secondary-color);
    overflow: hidden
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    opacity: .8
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .7) 0, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    pointer-events: none
}

.blue-wave-wrapper,
.cat-bg {
    background-size: cover;
    will-change: transform
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    text-align: center;
    font-weight: 300;
    font-size: 1.2rem;
    animation: 2s infinite bounce
}

.cat-content h3,
.section-title-left,
.ticker-item h4,
.ticker-item h3 {
    font-weight: 700;
    line-height: 1.2
}

.arrow-down {
    width: 20px;
    height: 20px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin: 10px auto 0
}

.blue-wave-wrapper,
.cat-card,
.clients-section,
.grid-cats {
    transform: translate3d(0, 0, 0)
}

.specialists-section {
    padding: 80px 0 0;
    background-color: #fff;
    position: relative;
    z-index: 5;
}



.grid-history,
.grid-specialists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center
}

.icon-placeholder,
.spec-image {
    justify-content: center;
    display: flex
}

.section-title-left {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: left
}

.spec-text {
    margin-left: 1rem;
    margin-right: 1rem
}

.spec-text p {
    text-wrap: pretty;
    text-align: left;
    margin-bottom: 20px;
    color: #333333;
    font-size: 1.05rem
}

.spec-text h2 {
    text-align: left;
    text-wrap: balance
}

.spec-image {
    align-items: center
}

.spec-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .15))
}

.ticker-section {
    padding: 20px 0;
    background-color: #fff;
    overflow: hidden;
    position: relative;
    z-index: 4;
    border-bottom: none;
}

.ticker-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center
}

.ticker-wrap::after,
.ticker-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none
}

.ticker-wrap::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent)
}

.ticker-wrap::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent)
}

.ticker-wrap .ticker-move {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    align-items: center;
    animation: 50s linear infinite ticker
}

.ticker-wrap .ticker-item {
    flex: 0 0 auto;
    flex-shrink: 0;
    width: 300px;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.icon-placeholder {
    align-items: center;
    height: 130px;
    margin-bottom: 15px
}

.icon-placeholder img {
    height: 120px;
    width: auto;
    object-fit: contain;
    transition: .3s;
    box-shadow: 2px 8px 8px rgba(15, 78, 131, .3)
}

.ticker-item:hover .icon-placeholder img {
    filter: none;
    transform: scale(1.1)
}

.ticker-item h4,
.ticker-item h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin: 0;
    max-width: 160px
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0)
    }

    100% {
        transform: translate3d(-50%, 0, 0)
    }
}

.blue-wave-wrapper {
    position: relative;
    background-image: linear-gradient(to bottom, rgba(0, 42, 82, .92) 0, rgba(15, 78, 131, .92) 100%), url("../assets/img/cable-fondo.webp");
    background-position: center center, center -150px;
    background-repeat: no-repeat;
    background-attachment: scroll;
    padding-top: 480px;
    padding-bottom: 80px;
    z-index: 1;
    overflow: hidden;
    margin-top: -2px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    pointer-events: none
}

.blue-wave-wrapper .container {
    pointer-events: auto
}

.blue-wave-wrapper::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    width: 100%;
    height: 420px;
    background-color: #fff;
    border-bottom-left-radius: 50% 100%;
    border-bottom-right-radius: 50% 100%;
    z-index: 1
}

.client-logo:hover,
.video-card:hover img {
    transform: scale(1.1)
}

.clients-img-container {
    width: 160px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem;
    box-sizing: border-box;
}

.clients-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 340px;
    z-index: 10;
    contain: layout paint;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none
}

.container-clients-centered {
    pointer-events: auto;
    width: 100%;
    text-align: center
}

.clients-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap
}

.client-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform .3s, opacity .3s
}

.client-logo:hover {
    opacity: 1
}

.white-title {
    color: #fff;
    margin-bottom: 20px
}

.section-subtitle {
    text-align: center;
    color: var(--gray-border);
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1rem
}

.categorias-home.transparent-bg {
    background: 0 0;
    padding-top: 40px;
    position: relative;
    z-index: 2
}

.categorias-home .badge-pill {
    display: table;
    margin: 0 auto 30px
}

.grid-cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    z-index: 1;
    position: relative;
    will-change: transform
}

.cat-card {
    position: relative;
    height: 380px;
    overflow: hidden;
    border-radius: 8px;
    display: block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .15);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform
}

.cat-bg {
    width: 100%;
    height: 100%;
    background-position: center;
    transition: transform .6s
}

.cat-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, .8) 0, rgba(0, 0, 0, 0) 60%);
    z-index: 1
}

.cat-content {
    position: absolute;
    bottom: 30px;
    left: 20px;
    right: 20px;
    z-index: 2;
    color: #fff;
    display: flex;
    flex-direction: column
}

.cat-content h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .5)
}

.cat-content p {
    font-size: .95rem;
    opacity: .9;
    margin-bottom: 15px;
    font-weight: 300
}

.btn-link,
.cta-strip h3,
.video-info h3 {
    margin: 0;
    font-weight: 600
}

.btn-link {
    display: none;
    padding: .7rem 1.8rem;
    font-size: 1rem;
    border: 1px solid var(--gray-border);
    border-radius: 10px;
    color: var(--accent-color-hover);
    align-self: center;
    position: relative
}

.cta-strip {
    background-color: #4a4a4a;
    padding: 40px 0;
    color: #fff;
    position: relative;
    z-index: 2;
    margin-top: -60px
}

.btn-cta,
.video-card:hover::after {
    background-color: var(--accent-color)
}

.flex-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    text-align: center
}

.cta-strip h3 {
    font-size: 1.5rem
}

.btn-cta {
    border-color: var(--accent-color);
    padding: 10px 30px;
    font-size: 1.1rem
}

.btn-cta:hover {
    background-color: #fff;
    color: var(--text-dark)
}

.videos-section {
    padding: 80px 0;
    background-color: #fff
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px
}

.video-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
    transition: transform .3s
}

.banner-cat:hover,
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .2)
}

.video-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
    z-index: 1
}

.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent);
    color: #fff;
    z-index: 2
}

.video-info h3 {
    font-size: 1.1rem;
    text-align: left
}

.video-card::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 51, 102, .6);
    border: 2px solid #fff;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 55% 50%;
    background-size: 40%;
    z-index: 3;
    transition: .3s
}

.video-card:hover::after {
    transform: translate(-50%, -50%) scale(1.1)
}

.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .9);
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity .3s;
    z-index: 10000;
}

.video-modal-overlay.active {
    display: flex;
    opacity: 1;
    transition: opacity .3s;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    background: #000;
    box-shadow: 0 0 30px rgba(0, 0, 0, .5);
    border-radius: 8px;
    overflow: hidden;
    animation: .3s zoomIn;
    transition: .3s;
}

.video-modal-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: .3s;
}

.close-video {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    transition: color .3s;
    line-height: 1;
    background: 0 0;
    border: none
}

.close-video:hover {
    color: var(--accent-color)
}

#vista-categorias {
    padding-top: 140px;
    padding-bottom: 90px
}

.seccion-banners {
    padding: 40px 20px 90px;
    margin-bottom: 1rem;
    text-align: center
}

.seccion-banners h1 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    margin-top: 1.5rem
}

.cat-btn:hover,
.catalogo-content h1,
.sidebar h3 {
    color: var(--primary-color)
}

.intro-text {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #666
}

.grid-banners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px
}

.banner-cat {
    position: relative;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
    transition: transform .3s
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform .5s;
    filter: brightness(.6)
}

.banner-cat:hover .banner-bg {
    transform: scale(1.1);
    filter: brightness(.5)
}

.banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 20px
}

.banner-content h2 {
    line-height: 1.2;
    font-size: 2rem;
    margin-bottom: 10px;
    letter-spacing: 1px
}

.banner-content p {
    font-size: 1rem;
    max-width: 80%
}

.layout-productos {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    padding-top: 140px;
    padding-bottom: 40px;
    align-items: start
}

.sidebar {
    background-color: var(--text-light);
    padding: 20px;
    border-radius: 8px;
    position: sticky;
    top: 100px
}

.sidebar h3 {
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px
}

.btn-volver,
.category-list li {
    margin-bottom: 10px
}

.cat-btn {
    background: 0 0;
    border: none;
    text-align: left;
    font-size: 1rem;
    color: var(--text-dark);
    padding: 8px 10px;
    width: 100%;
    border-radius: 5px;
    transition: .3s
}

.about-hero,
.card-mission,
.modal-actions,
.page-header,
.producto-item {
    text-align: center
}

.modal-descripcion,
.video-desc {
    font-family: Montserrat, sans-serif;
    color: #333333
}

.cat-btn:hover {
    background-color: #e0e0e0;
    padding-left: 15px
}

.cat-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 700
}

.btn-volver {
    color: #666;
    font-size: .9rem
}

.btn-volver:hover {
    color: var(--accent-color);
    background: 0 0;
    padding-left: 0;
}

.separator {
    height: 1px;
    background-color: #ddd;
    margin: 10px 0
}

.catalogo-content h1 {
    margin-bottom: 30px
}

.grupo-categoria {
    margin-bottom: 50px;
    padding: 20px;
    animation: .5s ease-in fadeIn
}

.categoria-header {
    margin-bottom: 20px;
    border-left: 5px solid var(--accent-color);
    padding-left: 15px
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px
}

.form-row,
.grid-contacto {
    grid-template-columns: 1fr 1fr
}

.producto-item {
    background: #fff;
    border: 1px solid var(--gray-border);
    padding: 15px;
    border-radius: 8px;
    transition: transform .2s
}

.producto-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1)
}

.producto-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 4px
}

.producto-item h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-dark)
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    padding: 20px;
    backdrop-filter: blur(5px)
}

.modal-content {
    background-color: #fff;
    width: 95%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
    position: relative;
    animation: .3s zoomIn;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow: visible
}

.btn-cerrar,
.nav-btn {
    position: absolute;
    cursor: pointer
}

.modal-img-container {
    width: 100%;
    height: 200px;
    background: radial-gradient(circle at center, #fff 0, #f0f2f5 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0
}

.modal-img-container img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .15));
    transition: transform .3s
}

.modal-img-container img:hover {
    transform: scale(1.05)
}

.modal-body {
    padding: 25px;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain
}

.btn-cerrar,
.modal-actions {
    justify-content: center;
    display: flex
}

.modal-body h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    line-height: 1.2
}

.badge {
    align-self: flex-start;
    background-color: var(--accent-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: .7rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px
}

.modal-descripcion {
    font-size: .95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px
}

.modal-actions {
    margin-top: 30px;
    gap: 15px;
    flex-wrap: wrap
}

.btn-cerrar {
    top: 15px;
    right: 20px;
    font-size: 2rem;
    background: rgba(255, 255, 255, .8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-dark);
    z-index: 10;
    align-items: center;
    transition: .2s
}

.btn-cerrar:hover {
    background: var(--accent-color);
    color: #fff;
    transform: rotate(90deg)
}

.nav-btn {
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: #fff;
    border: 1px solid var(--gray-border);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    transition: .3s;
    fill: var(--primary-color)
}

.nav-btn svg {
    width: 28px;
    height: 28px;
    display: block
}

.nav-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    fill: #fff;
    transform: translateY(-50%) scale(1.1)
}

.page-header {
    background-image: linear-gradient(rgba(0, 0, 0, 0.281), rgba(0, 0, 0, .6)), url("../assets/img/Banner-contactanos.webp");
    background-size: cover;
    background-position: center 15%;
    padding: 250px 0;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
    width: 100%;
    font-size: 2rem
}

.contact-section {
    padding-bottom: 80px
}

.grid-contacto {
    padding-top: 60px;
    display: grid;
    gap: 50px;
    align-items: start
}

.info-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--accent-color)
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px
}

.contact-details-list {
    margin-top: 20px
}

.contact-details-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 0
}

.contact-details-list .icon {
    width: 45px;
    flex-shrink: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 10px
}

.contact-details-list a {
    color: var(--primary-color);
    font-weight: 600;
    transition: color .3s
}

.contact-details-list a.whatsapp-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700
}

.contact-details-list a.whatsapp-link:hover {
    color: #128c7e
}

.info-horario {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd
}

.info-horario p {
    color: #666;
    margin: 0
}

.info-horario strong {
    color: var(--text-dark)
}

.contact-socials {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 20px
}

.map-spacer {
    margin-top: 30px
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
    height: 350px;
    width: 100%
}

.mapa {
    width: 100%;
    height: 100%;
    border: 0
}

.form-box {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, .08);
    border: 1px solid var(--gray-border)
}

.form-box h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.8rem
}

.form-intro {
    color: #666;
    margin-bottom: 30px;
    font-size: .95rem
}

.form-warning {
    color: #d9534f;
    font-size: .85rem;
    font-weight: 600;
    display: block;
    margin-top: 5px
}

.form-group {
    margin-bottom: 20px
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--text-dark)
}

.required {
    color: #d9534f;
    font-weight: 700;
    margin-left: 3px
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color .3s, box-shadow .3s
}

.card-mission,
.history-img-wrapper img {
    border-radius: 10px;
    transition: transform .3s
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 5px rgba(15, 78, 131, .2)
}

.form-row {
    display: grid;
    gap: 20px
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    opacity: 0;
    transition: opacity .3s
}

.contact-form input:focus::placeholder,
.contact-form textarea:focus::placeholder {
    opacity: 1
}

@media (max-width:768px) {

    .form-row,
    .grid-contacto {
        grid-template-columns: 1fr
    }

    .seccion-banners h1 {
        margin-top: 0
    }

    .grid-contacto {
        gap: 40px
    }

    .form-wrapper {
        order: -1
    }

    .form-box {
        padding: 25px
    }

    .form-row {
        gap: 0
    }

    .contact-form .btn-primary {
        width: 100%
    }

    .page-header {
        font-size: 1rem;
        padding: 70px 0;
        background-position: center center
    }
}

.about-hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff
}

.hero-content-static h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .5)
}

.hero-content-static p {
    font-size: 1.3rem;
    font-weight: 300
}

.section-history {
    padding: 80px 20px
}

.history-text h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
    border-left: 5px solid var(--accent-color);
    padding-left: 15px
}

.history-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #454545
}

.history-img-wrapper img {
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15)
}

.history-img-wrapper img:hover {
    transform: scale(1.02)
}

.section-mission {
    background-color: var(--bg-light);
    padding: 80px 0
}

.grid-mission {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px
}

.card-mission {
    background: #fff;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
    border-top: 4px solid var(--primary-color)
}

.card-mission:hover {
    transform: translateY(-5px)
}

.icon-mission {
    font-size: 3rem;
    margin-bottom: 20px
}

.card-mission h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem
}

@media (min-width:769px) {
    #vista-categorias {
        padding-top: 80px;
        padding-bottom: 40px
    }

    .modal-content {
        flex-direction: row;
        height: auto;
        min-height: 400px;
        max-height: 85vh
    }

    .modal-img-container {
        width: 45%;
        height: auto;
        border-bottom: none;
        border-right: 1px solid #eee
    }

    .modal-body {
        justify-content: flex-start;
        padding: 40px
    }

    .btn-link {
        display: inline-block;
        opacity: 0;
        transform: translateY(10px);
        transition: .4s
    }

    .cat-content {
        align-items: flex-start;
        text-align: left
    }

    .cat-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 69, 129, .8);
        z-index: 1;
        opacity: 0;
        transition: opacity .4s;
        pointer-events: none
    }

    .cat-card:hover .cat-bg {
        transform: scale(1.1)
    }

    .cat-card:hover::after {
        opacity: 0
    }

    .cat-card:hover::before {
        opacity: 1
    }

    .cat-card:hover .btn-link {
        opacity: 1;
        transform: translateY(-8.5rem)
    }

    .btn-link:hover {
        color: var(--text-dark);
        background-color: var(--text-light)
    }

    .cat-content h3,
    .cat-content p {
        transition: .5s
    }

    .cat-card:hover .cat-content h3,
    .cat-card:hover .cat-content p {
        opacity: 0;
        transform: translateY(-10rem)
    }
}

@media (min-width:1024px) {
    .nav-btn {
        background-color: transparent;
        border: 2px solid rgba(255, 255, 255, .5);
        fill: rgba(255, 255, 255, 0.8)
    }

    .nav-btn:hover {
        background-color: rgba(255, 255, 255, .1);
        border-color: var(--accent-color);
        fill: #fff
    }

    .prev-btn {
        left: -80px
    }

    .next-btn {
        right: -80px
    }
}

@media (max-width:1023px) {
    .seccion-banners h1 {
        margin-top: .5rem
    }

    #vista-categorias {
        padding-top: 80px;
        padding-bottom: 20px
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, .9);
        box-shadow: 0 2px 5px rgba(0, 0, 0, .2)
    }

    .prev-btn {
        left: 10px;
        top: 150px
    }

    .next-btn {
        right: 10px;
        top: 150px
    }

    .clients-grid {
        gap: 20px
    }
}

@media (max-width:840px) {
    .section-title {
        margin-top: 80px;
        margin-bottom: 20px
    }

    .clients-grid {
        z-index: 1000
    }
}

@media (min-width:769px) and (max-width:1440px) {
    .blue-wave-wrapper {
        background-position: center center, center 40px
    }
}

@media (max-width:768px) {

    .form-wrapper,
    .history-img-wrapper,
    .sidebar {
        order: -1
    }

    .grid-cats,
    .grid-contacto,
    .grid-footer,
    .grid-history,
    .grid-specialists,
    .layout-productos {
        grid-template-columns: 1fr
    }

    .grupo-categoria {
        padding: 20px 0
    }

    .section-title {
        margin-top: 40px
    }

    .spec-text {
        margin-bottom: 20px
    }

    .container {
        padding: 0 10px
    }

    .main-footer .container,
    .main-header .container,
    .page-header .container {
        padding: 0 20px
    }

    .main-footer {
        background-image: url('../assets/img/background-footer-movil.png');
        background-size: cover;
        background-position: center;
        margin-top: 2rem
    }

    .main-header .container {
        flex-direction: row
    }

    .logo-img {
        width: 120px
    }

    .desktop-nav {
        display: none
    }

    .hamburger {
        display: flex
    }

    .grid-footer {
        text-align: center;
        gap: 0
    }

    .footer-col {
        border-bottom: 1px solid rgba(255, 255, 255, .15);
        padding-bottom: 30px;
        margin-bottom: 30px;
        width: 100%
    }

    .footer-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0
    }

    .logo-footer {
        margin: 0 auto 20px;
        display: block
    }

    .footer-links {
        align-items: center;
        display: flex;
        flex-direction: column
    }

    .social-icons {
        justify-content: center
    }

    .grid-specialists {
        text-align: left
    }

    .spec-image {
        order: -1;
        margin-bottom: -40px;
    }

    .section-title-left {
        text-align: center;
        font-size: 1.8rem
    }

    .ticker-wrap {
        height: 160px
    }

    .ticker-item {
        width: 150px;
        min-width: auto
    }

    .icon-placeholder {
        height: 100px
    }

    .blue-wave-wrapper::before,
    .clients-section {
        height: 280px;
        width: 100%
    }

    .icon-placeholder img {
        height: 80px
    }

    .blue-wave-wrapper {
        background-size: cover, 170% auto;
        background-position: center center, center 120px;
        padding-top: 320px
    }

    .clients-section {
        position: absolute;
        top: 0;
        left: 0;
        padding-top: 10px;
        margin: 0;
        z-index: 10;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center
    }

    .clients-section .section-title {
        margin-bottom: 10px;
        font-size: 1.4rem;
        color: var(--text-dark);
        display: block;
        opacity: 1;
        position: relative;
        z-index: 11
    }

    .clients-grid {
        display: grid;
        grid-template-areas: "stack";
        place-items: center;
        width: 100%;
        height: 150px;
        gap: 0;
        margin-top: 10px
    }

    .clients-img-container {
        grid-area: stack;
        opacity: 0;
        transition: .8s ease-in-out;
        margin: 0;
        width: 220px;
        height: 110px;
        transform: scale(1)
    }

    .clients-img-container.active {
        opacity: 1;
        transform: scale(1.05)
    }

    .videos-section {
        padding: 0
    }

    .grid-cats {
        gap: 20px;
        padding-left: 15px;
        padding-right: 15px
    }

    .cat-card {
        height: 220px;
        width: 100%
    }

    .cat-content {
        top: 0;
        bottom: 0;
        justify-content: center;
        align-items: center;
        text-align: center
    }

    .cat-content h3 {
        font-size: 1.9rem;
        margin-bottom: 5px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, .8)
    }

    .cat-content p {
        font-size: .95rem;
        margin-bottom: 0;
        color: #f0f0f0
    }

    .categorias-home .badge-pill {
        font-size: .8rem;
        padding: 6px 20px;
        margin-top: -30px
    }

    .flex-cta {
        flex-direction: column;
        gap: 20px
    }

    .layout-productos {
        gap: 15px;
        padding-top: 20px
    }

    #vista-detalle {
        padding-top: 50px
    }

    #vista-detalle .grid-productos {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .sidebar {
        position: relative;
        top: 0;
        margin-top: 20px;
        margin-bottom: 10px;
        padding: 10px
    }

    .producto-item {
        padding: 8px;
        min-height: 200px;
        display: flex;
        flex-direction: column;
        justify-content: space-between
    }

    .producto-item img {
        height: 90px;
        object-fit: contain;
        margin-bottom: 5px
    }

    .producto-item h4 {
        font-size: .75rem;
        line-height: 1.2;
        margin-bottom: 5px;
        height: 2.4em;
        overflow: hidden
    }

    .btn-pdf {
        font-size: .7rem;
        width: 100%;
        text-align: center;
        padding: 4px
    }

    .grid-contacto {
        gap: 40px
    }

    .form-box {
        padding: 25px
    }

    .contact-form .btn-primary,
    .contact-form button[type=submit] {
        display: block;
        width: 100%;
        margin: 20px auto 0
    }

    .about-hero {
        height: 40vh;
        margin-top: 60px
    }

    .hero-content-static h1 {
        font-size: 2rem
    }

    .grid-history {
        gap: 30px
    }

    .btn-whatsapp {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px
    }

    .btn-whatsapp svg {
        width: 28px;
        height: 28px
    }

    .video-card {
        height: 200px
    }
}

@media (max-width:600px) {
    .grid-banners {
        grid-template-columns: 1fr
    }

    .banner-cat {
        height: 200px
    }
}

@media (max-width:480px) {
    .modal-actions {
        flex-direction: column;
        gap: 10px
    }

    .modal-actions .btn-primary,
    .modal-actions .btn-secondary {
        width: 100%
    }
}

.video-column {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.video-desc {
    text-align: left;
    font-size: var(--font-main);
    color: var(--text-dark);
    line-height: 1.5;
    margin: 0;
    padding: 0 5px
}

@keyframes entradaEscalonada {
    from {
        opacity: 0;
        transform: translateY(50px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.grid-banners .banner-cat {
    opacity: 0;
    animation: .8s cubic-bezier(.25, .46, .45, .94) forwards entradaEscalonada;
    will-change: opacity, transform
}

.grid-banners .banner-cat:first-child {
    animation-delay: .1s
}

.grid-banners .banner-cat:nth-child(2) {
    animation-delay: .3s
}

.grid-banners .banner-cat:nth-child(3) {
    animation-delay: .5s
}

.grid-banners .banner-cat:nth-child(4) {
    animation-delay: .7s
}

@media (max-width:960px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0
    }

    .form-row .form-group:first-child {
        margin-bottom: 20px
    }
}

.honeypot {
    display: none
}

/* Aumentar área táctil del menú principal sin afectar la animación existente */
.main-nav a::before,
.mobile-nav-content a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 48px;
    min-height: 48px;
    z-index: 1;
}

/* Asegurar contexto para el posicionamiento */
.main-nav a,
.mobile-nav-content a {
    position: relative;
    display: inline-block;
}

/* --- Nueva Sección Interactiva de Beneficios (CORREGIDO) --- */
.interactive-benefits-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Divide el espacio en dos mitades iguales */
    gap: 25px;
    align-items: stretch;
    /* Altura mínima para asegurar buen aspecto en pantallas grandes */
    min-height: 450px;
}

.benefit-display-panel {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    /* CRÍTICO: Recorta cualquier imagen que intente salirse */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    /* Asegura que el panel ocupe toda la altura de su celda */
    height: 100%;
    display: flex;
}

#benefit-main-img {
    /* Forzamos a la imagen a ocupar exactamente el 100% de su contenedor */
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Mantiene la proporción y recorta el exceso */
    display: block;
    transition: opacity 1s ease-in-out;
}

.promo-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 5;
    /* Aseguramos que el badge tampoco se salga */
    max-width: 30%;
}

.promo-badge img {
    /* Asegura que la imagen del badge sea responsiva dentro de su contenedor */
    max-width: 100%;
    height: auto;
}

.benefits-interaction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    /* Distribuye en 2 filas iguales */
    gap: 12px;
    height: 100%;
    /* Ocupa la misma altura que la imagen principal */
}

.benefit-box {
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    background: #fff;
    cursor: pointer;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Eliminamos altura mínima fija para que se adapte al grid */
    height: 100%;
}

/* Estados activo y hover */
.benefit-box.active,
.benefit-box:hover {
    box-shadow: 0 4px 12px var(--accent-color);
    /* Quitamos el transform para evitar problemas de renderizado en algunos navegadores durante el hover rápido */
    /* transform: translateY(-2px); */
}

.benefit-box-icon {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CORRECCIÓN: Evita que los iconos pequeños se salgan */
.benefit-box-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.benefit-box h3 {
    font-size: 0.85rem;
    color: var(--secondary-color);
    line-height: 1.3;
    font-weight: 700;
    margin: 0;
    /* Resetea márgenes */
}

/* ... (El CSS del footer se mantiene igual por ahora) ... */
.certification-footer-bar {
    font-size: 1.5rem;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 40px 40px;
}

.cert-logos-row {
    display: flex;
    gap: 40px;
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .cert-logos-row {
        gap: 40px;
    }

    .certification-footer-bar p {
        display: none;
    }

    .certification-footer-bar img {
        width: 50px;
    }

    .interactive-benefits-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
        /* Resetea altura en móviles */
    }

    .benefit-display-panel {
        height: 250px;
        /* Altura fija para la imagen principal en móvil */
    }

    .benefits-interaction-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Mantiene 3 columnas en móvil pequeño */
        grid-template-rows: auto;
        /* Altura automática */
        height: auto;
    }

    .benefit-box {
        min-height: 120px;
    }

    /* Altura mínima para que sean fáciles de tocar */
    /* ... resto del media query ... */
}

/* --- Sección de Beneficios (Efecto Overlap y Sin Bordes) --- */

.interactive-benefits-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    /* La imagen ocupa un poco más de base */
    gap: 0;
    align-items: stretch;
}

.benefit-display-panel {
    position: relative;
    z-index: 1;
    /* Por debajo de la cuadrícula */
    border-top-left-radius: 80px;
    /* Esquina superior izquierda muy curva */
    overflow: hidden;
    /* Eliminamos padding para que la imagen ocupe todo el espacio */
}

#benefit-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Elimina espacio inferior fantasma */
    transition: opacity 1s ease;
}

.benefits-interaction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    z-index: 10;
    /* Asegura que los cuadros estén por encima */
    margin-left: -100px;
    /* Empuja la cuadrícula sobre la imagen */
    padding: 30px 0;
    /* Espacio para que no se corten los iconos al agrandarse */
}

.benefit-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    /* Sombra para dar profundidad sobre la foto */
    border: none;
    /* ELIMINADOS LOS BORDES POR COMPLETO */
    transition: transform 0.5s ease, background-color 0.5s ease;
}

/* EFECTO DE AGRANDAMIENTO DEL ICONO */
/* Cuando está activo o en hover, el icono crece pero NO hay bordes */
.benefit-box.active .benefit-box-icon,
.benefit-box:hover .benefit-box-icon {
    transform: scale(1.2);
    /* Agranda el icono un 20% */
}

/* Opcional: un cambio muy sutil de fondo en lugar de bordes para saber cuál está activo */
.benefit-box.active {
    background-color: #fcfcfc;
}

.benefit-box-icon {
    width: 100px;
    /* Iconos más grandes como pediste */
    height: 100px;
    margin-bottom: 10px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.benefit-box-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Asegura que el icono se vea completo */
}

.benefit-box h3 {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin: 0;
}

/* BARRA AZUL INFERIOR (Unida a la imagen) */
.certification-footer-bar {
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom-left-radius: 60px;
    /* Curva inferior izquierda */
    border-bottom-right-radius: 60px;
    /* Curva inferior derecha */
    margin-top: 0;
    /* ELIMINA EL ESPACIO entre imagen y barra */
    position: relative;
    z-index: 5;
}

/* --- Ajuste para móviles --- */
@media (max-width: 768px) {
    .benefit-display-panel {
        border-top-left-radius: 12px;
    }

    .certification-footer-bar {
        justify-content: center;
        font-size: .8rem;
        padding: 20px 20px;
    }

    .interactive-benefits-wrapper {
        grid-template-columns: 1fr;
    }

    .benefits-interaction-grid {
        margin-left: 0;
        padding: 20px;
        grid-template-columns: repeat(2, 1fr);
    }

    .benefit-box-icon {
        width: 70px;
        height: 70px;
    }

}

/* --- DISEÑO PROFESIONAL SOBRE NOSOTROS --- */

/* Hero Moderno */
.about-hero-modern {
    background-color: var(--secondary-color);
    padding: 160px 0 100px;
    color: #fff;
    overflow: hidden;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-top: 20px;
}

.hero-image-capsule {
    border-radius: 100px 0 100px 0;
    /* Forma de cápsula invertida */
    overflow: hidden;
    height: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-image-capsule img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Barra de Estadísticas */
.stats-bar {
    background: #fff;
    padding: 40px 0;
    margin-top: -50px;
    /* Solapamiento con el hero */
    position: relative;
    z-index: 10;
}

.grid-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* Historia con Card Flotante */
.grid-history-modern {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0;
    align-items: center;
    padding: 80px 0;
}

.history-img-capsule {
    border-radius: 0 80px 0 80px;
    overflow: hidden;
    height: 500px;
    z-index: 1;
}

.history-img-capsule img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-content-card {
    background: #fff;
    padding: 50px;
    margin-left: -100px;
    /* Solapamiento */
    z-index: 2;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Misión y Visión */
.grid-cards-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding-bottom: 80px;
}

.modern-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.modern-card:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Responsivo */
@media (max-width: 992px) {

    .hero-split,
    .grid-history-modern,
    .grid-cards-modern {
        grid-template-columns: 1fr;
    }

    .hero-text-content {
        text-align: center;
    }

    .history-content-card {
        margin-left: 0;
        margin-top: -50px;
    }

    .hero-text-content h1 {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }

    .grid-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-hero-modern {
        padding: 120px 0 40px;
    }

    .hero-image-capsule {
        margin-bottom: 2rem;
    }
}

/* --- Diseño de Solapamiento para Misión y Visión --- */

.grid-overlap-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0;
    align-items: center;
    padding: 60px 0;
}

/* Invierte el orden para la sección de Visión */
.grid-overlap-layout.reverse-layout {
    grid-template-columns: 0.8fr 1.2fr;
}

.overlap-img-capsule {
    height: 450px;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Curva superior izquierda para Misión */
.grid-overlap-layout:not(.reverse-layout) .overlap-img-capsule {
    border-top-left-radius: 80px;
}

/* Curva superior derecha para Visión */
.grid-overlap-layout.reverse-layout .overlap-img-capsule {
    border-top-right-radius: 80px;
}

.overlap-img-capsule img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlap-content-card {
    background: #fff;
    padding: 40px;
    z-index: 2;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Empujamos la tarjeta sobre la imagen según el orden */
.grid-overlap-layout:not(.reverse-layout) .overlap-content-card {
    margin-left: -80px;
}

.grid-overlap-layout.reverse-layout .overlap-content-card {
    margin-right: -80px;
}

.overlap-content-card h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Responsivo para móvil */
@media (max-width: 992px) {

    .grid-overlap-layout,
    .grid-overlap-layout.reverse-layout {
        grid-template-columns: 1fr;
    }

    .overlap-content-card {
        margin-left: auto;
        margin-right: auto;
        margin-top: -40px;
        padding: 30px;
    }

    .overlap-img-capsule {
        height: 300px;
    }
}

/* --- Lógica de Diseño en Zigzag --- */

.grid-overlap-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    /* Proporción para que la imagen sea más grande */
    gap: 0;
    align-items: center;
}

/* Invierte las columnas para el diseño de Misión */
.grid-overlap-layout.reverse-layout {
    grid-template-columns: 0.9fr 1.1fr;
}

/* Márgenes negativos para el solapamiento */
.margin-left-overlap {
    margin-left: -120px;
    /* La tarjeta se monta sobre la imagen de la izquierda */
}

.margin-right-overlap {
    margin-right: -120px;
    /* La tarjeta se monta sobre la imagen de la derecha */
}

/* Curvas de cápsula para las imágenes */
.overlap-img-capsule {
    height: 480px;
    overflow: hidden;
    z-index: 1;
}

.curve-top-left {
    border-top-left-radius: 80px;
}

.curve-top-right {
    border-top-right-radius: 80px;
}

/* Tarjeta flotante */
.overlap-content-card {
    background: #fff;
    padding: 50px;
    z-index: 10;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

/* Category Backgrounds - Moved from inline styles */
.cat-bg-potencia {
    background-image: url('../assets/img/products/potencia/banner-potencia.webp');
}

.cat-bg-potencia-index {
    background-image: url('../assets/img/products/potencia/banner-potencia-vert.webp');
}

.cat-bg-instrumentacion {
    background-image: url('../assets/img/products/instrumentacion/banner-instrumentacion.webp');
}

.cat-bg-instrumentacion-index {
    background-image: url('../assets/img/products/instrumentacion/banner-instrumentacion-vert.webp');
}

.cat-bg-control {
    background-image: url('../assets/img/products/control/banner-control.webp');
}

.cat-bg-control-index {
    background-image: url('../assets/img/products/control/banner-control-vert.webp');
}

.cat-bg-comerciales {
    background-image: url('../assets/img/products/comerciales/banner-comerciales.webp');
}

.cat-bg-comerciales-index {
    background-image: url('../assets/img/products/comerciales/banner-comerciales-vert.webp');
}

/* --- FIX SOBRE NOSOTROS: VERSIÓN MÓVIL --- */
/* --- ADAPTACIÓN MÓVIL: PATRÓN CONSTANTE (IMAGEN -> TEXTO) --- */
@media (max-width: 992px) {

    .grid-overlap-layout,
    .grid-overlap-layout.reverse-layout {
        display: flex;
        flex-direction: column;
        /* Apilado vertical */
        gap: 0;
        padding: 0 15px;
    }

    /* 1. Forzamos que la IMAGEN sea el primer elemento visual */
    .overlap-img-capsule {
        order: 1;
        width: 100%;
        height: 300px;
        /* Altura controlada para móvil */
        border-radius: 40px 40px 0 0;
        /* Curva solo arriba */
    }

    /* 2. Forzamos que el TEXTO sea el segundo elemento visual */
    #overlap-content-card {
        order: 2;
        width: 100%;
        margin: -45px auto 40px auto;
        /* Solapamiento vertical centrado */
        padding: 35px 20px;
        text-align: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        left: 0;
        /* Reset de posiciones de PC */
    }

    /* 3. Eliminamos los márgenes laterales de PC que rompen el ancho */
    .margin-left-overlap,
    .margin-right-overlap {
        margin-left: 0;
        margin-right: 0;
    }

    .overlap-content-card h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
}

#videos {
    text-align: left;
    margin-left: 10px;
}

.special-text-size {
    font-size: 5.5rem;
}

.special-text-size1 {
    text-wrap: nowrap;
    font-size: 3.5rem;
}

@media (max-width: 992px) {
    .special-text-size1 {
        text-wrap: wrap;
        font-size: 2.5rem;
    }
}

#special-text-size2 {
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.3;
}

#special-text-size3 {
    font-weight: 500;
    font-size: 1rem;
    text-align: right;
}

@media (max-width: 992px) {
    #special-text-size2 {
        text-wrap: wrap;
        margin-left: 0;
        font-size: 0.9rem;
    }

    #special-text-size3 {
        text-align: left;
        font-size: 0.9rem;
    }
}

.spec-img {
    max-width: 100%;
}

.stat-item p {
    font-size: 1rem;
    font-weight: 500;
}

.updown-text-form {
    margin-top: 1.2rem;
    text-align: center;
    font-size: 0.75em;
    font-family: var(--font-main);
    color: var(--text-dark);
}