:root {
    --rojo-logo: rgb(166, 43, 43);
    --gris-oscuro: #333333;
    --blanco: #ffffff;
    --fuente: 'Michroma', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: var(--fuente);
    padding-top: 80px;
    overflow-x: hidden;
}

html:not(.page-ready) {
    overflow: hidden;
}

html:not(.page-ready)::before,
html:not(.page-ready)::after {
    content: '';
    position: fixed;
    z-index: 5000;
    pointer-events: auto;
}

html:not(.page-ready)::before {
    inset: 0;
    background: rgba(255, 255, 255, 0.96);
}

html:not(.page-ready)::after {
    top: 50%;
    left: 50%;
    width: clamp(92px, 11vw, 138px);
    aspect-ratio: 1;
    background: url('../img/logo.webp') center / contain no-repeat;
    pointer-events: none;
    animation: loaderSpin 1.1s linear infinite;
}

@keyframes loaderSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.logo-link {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo-link:hover {
    opacity: 0.8;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background-color: white;
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    z-index: 1000;
    border-bottom: 2px solid var(--rojo-logo);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 70px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.main-name {
    font-weight: 600;
    font-size: 0.65rem;
    color: var(--rojo-logo);
    line-height: 1;
}

.sub-name {
    font-size: 0.63rem;
    color: var(--gris-logo);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--gris-logo);
    font-weight: 200;
    font-size: 0.61rem;
    position: relative;
    transition: var(--transition);
}

.nav-item-contact .nav-link {
    background-color: var(--rojo-logo);
    color: var(--blanco) !important;
    padding: 8px 20px !important;
    border-radius: 4px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(165, 42, 42, 0.2);
}

.nav-item-contact .nav-link:hover {
    background-color: var(--gris-logo);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.nav-item-contact .nav-link::after {
    display: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--rojo-logo);
    box-shadow: 0 0 12px var(--rojo-logo);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--rojo-logo);
    filter: drop-shadow(0 0 1px rgba(165, 42, 42, 0.3));
}

.nav-link:hover::after {
    width: 100%;
}

.active {
    color: var(--rojo-logo);
    filter: drop-shadow(0 0 1px rgba(165, 42, 42, 0.3));
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 35px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    border: none;
    outline: none;
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #20ba5a;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--rojo-logo);
    transition: all 0.3s ease-in-out;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.footer {
    background-color: #0a0a0a;
    color: var(--blanco);
    padding: 45px 8% 19px 8%;
    border-top: 1px solid rgba(165, 42, 42, 0.4);
    font-family: var(--fuente);
}

.footer-container {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
    gap: 50px;
}

.footer-container > * { min-width: 0; }

.logo-red-filter {
    height: 70px;
    width: auto;
    margin-bottom: 20px;
    mix-blend-mode: screen; 
    filter: brightness(0) saturate(100%) invert(18%) sepia(50%) saturate(3500%) hue-rotate(345deg) brightness(95%) contrast(105%);
    transition: var(--transition);
}

.footer-ruc p {
    font-size: 0.7rem;
    color: #777;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.4s ease;
}

.social-link:hover {
    background-color: var(--rojo-logo);
    color: white;
    border-color: var(--rojo-logo);
    box-shadow: 0 0 15px rgba(165, 42, 42, 0.5);
    transform: translateY(-5px);
}

.footer-subtitle {
    font-size: 0.8rem;
    color: var(--rojo-logo);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.footer-menu, .footer-contact-list {
    list-style: none;
}

.footer-menu li, .footer-contact-list li {
    margin-bottom: 10px;
    font-size: 0.7rem;
    color: #999;
}

.footer-menu a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--blanco);
    padding-left: 8px;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-wrap: anywhere;
}

.footer-contact-list i {
    color: var(--rojo-logo);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.6rem;
    color: #444;
}

.hero-new {
    position: relative;
    height: calc(100vh - 80px);
    height: calc(100svh - 80px);
    min-height: 620px;
    max-height: 920px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: url('../img/fondo.jpg') no-repeat center / cover;
    background-attachment: fixed;
    overflow: hidden;
    padding: clamp(70px, 10vh, 92px) 5% 32px;
}

.hero-new-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.86);
}

.hero-new-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-new-content {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
    text-align: center;
    padding: 0;
}

.hero-new-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 22px;
}

.hero-new-kicker > span {
    width: 48px;
    height: 2px;
    flex: 0 0 48px;
    background: var(--rojo-logo);
}

.hero-new-kicker p {
    margin: 0;
    color: var(--rojo-logo);
    text-transform: uppercase;
    letter-spacing: 2.6px;
    font-size: 0.65rem;
    font-weight: 700;
}

.hero-new-content h1 {
    max-width: 1040px;
    margin: 0 auto 24px;
    font-size: clamp(2.2rem, 5vw, 4.25rem);
    line-height: 1.12;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: -1.8px;
}

.hero-new-brand {
    display: block;
    color: var(--rojo-logo);
    margin-top: 7px;
}

.hero-new-content > p {
    max-width: 760px;
    margin: 0 auto 26px;
    color: #444;
    font-size: clamp(0.73rem, 1vw, 0.82rem);
    line-height: 1.8;
}

.hero-new-sectors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
}

.hero-new-sectors span {
    padding: 9px 12px;
    color: var(--gris-oscuro);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(51, 51, 51, 0.14);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.hero-new-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn-hero-main, .btn-hero-sec {
    padding: 15px 30px;
    text-decoration: none;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition);
    font-weight: 600;
}

.btn-hero-main {
    background-color: var(--rojo-logo);
    color: white;
    border: 1px solid var(--rojo-logo);
}

.btn-hero-sec {
    border: 1px solid var(--rojo-logo);
    color: var(--rojo-logo);
}

.btn-hero-main:hover, .btn-hero-sec:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(165, 42, 42, 0.2);
}

.about-ultra {
    padding: 105px 0;
    background-color: #fafafa;
    overflow: hidden;
    position: relative;
}

.about-panels {
    width: min(1300px, 100%);
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    gap: 28px;
}

.about-company-panel,
.about-purpose-panel {
    background: #fff;
    border: 1px solid #ededed;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.055);
}

.about-company-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(34px, 5vw, 70px);
    padding: clamp(24px, 3vw, 38px);
}

.about-purpose-panel {
    display: grid;
    grid-template-columns: minmax(230px, 0.38fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 4vw, 54px);
    padding: clamp(24px, 3vw, 36px);
}

.purpose-heading .dynamic-divider {
    margin-bottom: 0;
}

.about-secondary-text {
    margin-bottom: 0;
}

.ultra-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: stretch;
    padding: 0 5%;
}

.ultra-visual { height: 100%; }

.visual-stack {
    position: relative;
    display: flex;
    height: 100%;
    min-height: 470px;
    padding: 20px;
}

.ultra-main-img {
    position: relative; z-index: 2;
    width: 100%; height: 100%;
    border-radius: 4px; overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.08);
}

.ultra-main-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1s ease;
}

.ultra-main-img:hover img { transform: scale(1.08); }

.ultra-shape {
    position: absolute; top: -20px; left: -20px;
    width: 80%; height: 110%;
    background-color: #f8f8f8; z-index: 1;
}

.floating-experience {
    position: absolute; bottom: 40px; right: -20px;
    background: var(--rojo-logo); color: white;
    padding: 20px 25px; z-index: 3;
    animation: floatVertical 5s ease-in-out infinite;
}

.exp-num { font-size: 1.6rem; font-weight: 900; display: block; }
.exp-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 2px; line-height: 1.3; }

.upper-tag {
    color: var(--rojo-logo); font-size: 0.7rem; font-weight: 800;
    letter-spacing: 4px; text-transform: uppercase; display: block; margin-bottom: 15px;
}

.ultra-title { font-size: 2.4rem; color: #1a1a1a; line-height: 1.1; margin-bottom: 20px; }
.text-dynamic { color: var(--rojo-logo); }
.dynamic-divider { width: 45px; height: 4px; background: var(--rojo-logo); margin-bottom: 35px; }
.text-p { font-size: 0.9rem; color: #555; line-height: 1.8; margin-bottom: 40px; }

.about-company-panel .text-p { margin-bottom: 18px; }
.about-company-panel .text-p strong { color: #111; }

.focus-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }

.focus-card {
    position: relative;
    background: #fff; padding: 22px 24px; border: 1px solid #f0f0f0;
    transition: var(--transition); display: grid; grid-template-columns: 50px minmax(0, 1fr); grid-template-rows: 50px auto; align-content: start; column-gap: 18px; row-gap: 18px;
}

.focus-icon {
    width: 50px; height: 50px; background: var(--rojo-logo); color: white;
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 2;
}

.focus-info { display: contents; }
.focus-info h3 { grid-column: 2; grid-row: 1; align-self: start; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; margin: 4px 0 0; }
.focus-divider { grid-column: 2; grid-row: 1; align-self: end; width: 25px; height: 2px; background: var(--rojo-logo); margin-bottom: 5px; }
.focus-info p { grid-column: 1 / -1; grid-row: 2; font-size: 0.75rem; color: #777; line-height: 1.7; }

.link-explore {
    display: inline-block; margin-top: 26px; text-decoration: none;
    color: #1a1a1a; font-size: 0.65rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 2px;
    padding-bottom: 4px; transition: 0.3s;
    border-bottom: 2px solid var(--rojo-logo);
}

.link-explore:hover { color: var(--rojo-logo); letter-spacing: 3px; border-bottom: 2px solid var(--rojo-logo);}

@keyframes floatVertical {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.fade-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.fade-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.fade-item.active {
    opacity: 1;
    z-index: 2;
}

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

.fade-indicators {
    position: absolute;
    bottom: 30px;
    left: 40px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.fade-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.indicator-bar {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.indicator-bar.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: var(--rojo-logo);
    animation: progressLine 5s linear forwards;
}

@keyframes progressLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

.clientes-section {
    padding: 0 8% 120px;
    background: #ffffff;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 50px;
    padding: 0;
}

.clients-track {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    width: 100%;
}

.clients-track::-webkit-scrollbar { display: none; }

.client-item {
    flex: 0 0 280px;
    height: 180px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eee;
    cursor: pointer;
    transition: var(--transition);
    background: #fff;
    padding: 0;
    font-family: var(--fuente);
    display: block;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.035);
}

.client-item > img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 24px;
    object-fit: contain;
    background: #fff;
    filter: grayscale(100%);
    image-rendering: -webkit-optimize-contrast;
    transition: filter 0.35s ease, transform 0.35s ease;
}

.client-item:hover,
.client-item:focus-visible {
    transform: translateY(-6px);
    border-color: var(--rojo-logo);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
    outline: none;
}

.client-item:hover img,
.client-item:focus-visible img {
    filter: grayscale(0%);
    transform: scale(1.04);
}

.arrow-btn {
    position: absolute;
    width: 45px;
    height: 45px;
    background: var(--rojo-logo); color: white;
    border: none; border-radius: 50%; cursor: pointer;
    z-index: 10; display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(166, 43, 43, 0.22);
}

.arrow-btn:hover:not(:disabled) { transform: scale(1.08); }
.arrow-btn:disabled { opacity: 0.28; cursor: default; box-shadow: none; }
.prev-btn { left: -25px; }
.next-btn { right: -25px; }

.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.9);
    display: none; justify-content: center; align-items: center; z-index: 3000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
}

.modal-box {
    position: relative;
    width: min(90vw, 760px);
    max-height: 88vh;
    padding: clamp(26px, 5vw, 48px);
    text-align: center;
    background: rgba(18, 18, 18, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    overflow: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.modal-box img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(62vh, 520px);
    object-fit: contain;
    margin: 0 auto;
    padding: clamp(18px, 3vw, 30px);
    border-radius: 8px;
    background: linear-gradient(145deg, #f7f7f7 0%, #dedede 100%);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 18px 38px rgba(0, 0, 0, 0.24);
}

#modalName {
    color: #fff;
    margin: 24px 28px 0;
    font-size: 0.78rem;
    line-height: 1.5;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.close-x {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 42px;
    height: 42px;
    color: #fff;
    background: rgba(0, 0, 0, 0.22);
    border: 0;
    border-radius: 50%;
    font-family: Arial, sans-serif;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.close-x:hover,
.close-x:focus-visible { color: var(--rojo-logo); outline: none; }

.hero-full {
    position: relative;
    height: calc(100vh - 80px);
    height: calc(100svh - 80px);
    min-height: 620px;
    max-height: 920px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 10%;
    color: white;
}

.hero-tag {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--rojo-logo);
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    margin: 20px 0;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-content h1 span { color: var(--rojo-logo); }

.hero-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
    transition: opacity 3.5s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 2;
}

.services-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 110px 8%;
    background-color: var(--blanco);
}

.services-intro {
    max-width: 830px;
    margin-bottom: 55px;
}

.services-lead {
    max-width: 760px;
    color: #666;
    font-size: 0.82rem;
    line-height: 1.9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.service-flip-card {
    position: relative;
    height: clamp(370px, 31vw, 430px);
    border-radius: 4px;
    perspective: 1300px;
    cursor: default;
    outline: none;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.48s cubic-bezier(0.2, 0.72, 0.2, 1);
}

.service-flip-card.is-flipped .service-card-inner {
    transform: rotateY(180deg);
}

.service-flip-card.is-flipped .service-card-back {
    pointer-events: auto;
}

.service-flip-card.is-flipped .service-card-front {
    pointer-events: none;
}

@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
    .service-flip-card:hover .service-card-inner {
        transform: rotateY(180deg);
    }

    .service-flip-card:hover .service-card-back {
        pointer-events: auto;
    }

    .service-flip-card:hover .service-card-front {
        pointer-events: none;
    }
}

.service-front-trigger:focus-visible,
.service-back-hint:focus-visible {
    outline: 3px solid rgba(166, 43, 43, 0.32);
    outline-offset: 4px;
}

.service-card-face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.service-card-front {
    background: #232020;
    color: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.13);
}

.service-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-cover--single {
    width: 210%;
    max-width: none;
    object-position: left center;
}

.service-card-front::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 8%, rgba(0, 0, 0, 0.88) 100%);
    pointer-events: none;
}

.service-front-num {
    position: absolute;
    z-index: 1;
    top: 24px;
    right: 26px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
}

.service-front-content {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 32px;
}

.service-front-content > i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--rojo-logo);
    color: #fff;
    font-size: 1.2rem;
}

.service-front-content h3 {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.55;
    text-transform: uppercase;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.7);
}

.service-front-trigger {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 0.62rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
}

.service-card-back {
    transform: rotateY(180deg);
    pointer-events: none;
    background: #fff;
    border: 1px solid var(--rojo-logo);
    padding: 32px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
}

.service-back-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.service-back-top span {
    color: rgba(51, 51, 51, 0.14);
    font-size: 2.35rem;
    font-weight: 900;
    line-height: 1;
}

.service-back-top i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--rojo-logo);
    color: #fff;
    font-size: 1.15rem;
}

.service-card-back h3 {
    color: var(--gris-oscuro);
    font-size: 0.84rem;
    line-height: 1.55;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.service-card-back p {
    color: #707070;
    font-size: 0.73rem;
    line-height: 1.75;
}

.service-back-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: auto;
    padding: 20px 0 0;
    border: 0;
    background: transparent;
    color: var(--rojo-logo);
    font-family: inherit;
    font-size: 0.58rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
}

.service-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.service-gallery-modal.is-open {
    display: flex;
}

.service-gallery-dialog {
    position: relative;
    width: min(1120px, 100%);
    max-height: 92vh;
    padding: 64px 68px 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(20, 20, 20, 0.72);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}

.service-gallery-dialog h2 {
    margin: 0 auto 24px;
    color: #fff;
    font-size: clamp(0.8rem, 1.4vw, 1.1rem);
    line-height: 1.5;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.service-gallery-close,
.service-gallery-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    background: rgba(166, 43, 43, 0.9);
    cursor: pointer;
    transition: var(--transition);
}

.service-gallery-close:hover,
.service-gallery-arrow:hover {
    background: var(--rojo-logo);
    transform: scale(1.05);
}

.service-gallery-close:focus-visible,
.service-gallery-arrow:focus-visible,
.service-gallery-dot:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.75);
    outline-offset: 3px;
}

.service-gallery-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1rem;
}

.service-gallery-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: min(66vh, 650px);
    min-height: 360px;
}

.service-gallery-stage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    transform: translateY(-50%);
}

.service-gallery-arrow:hover {
    transform: translateY(-50%) scale(1.05);
}

.service-gallery-arrow[hidden] { display: none; }

.service-gallery-prev { left: 14px; }
.service-gallery-next { right: 14px; }

.service-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 22px;
}

.service-gallery-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.service-gallery-dot.is-active {
    background: var(--rojo-logo);
    transform: scale(1.25);
}

body.service-gallery-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .service-card-inner { transition: none; }
}

.services-grid + .quote-premium-section { margin-top: 90px; }

.quote-premium-section {
    padding: 50px 0;
    background-color: #1a1a1a;
    overflow: hidden;
    position: relative;
    border-radius: 15px;
}

.container-premium {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.glass-quote-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 80px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 70px rgba(166, 43, 43, 0.1);
}

.card-deco-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(166, 43, 43, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    z-index: 1;
}

.quote-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.quote-tag {
    color: var(--rojo-logo);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}

.quote-text h3 {
    color: #ffffff;
    font-size: 2rem;
    margin: 15px 0;
    font-weight: 900;
}

.quote-text h3 span {
    color: #ffffff;
    opacity: 0.7;
}

.quote-text p {
    color: #ccc;
    font-size: 0.8rem;
    max-width: 500px;
    line-height: 1.6;
}

.quote-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 280px;
}

.btn-dynamic {
    position: relative;
    display: block;
    width: 100%;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.btn-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.btn-content i {
    font-size: 1.4rem;
}

.btn-hover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.btn-email {
    background-color: var(--rojo-logo);
    box-shadow: 0 10px 20px rgba(166, 43, 43, 0.2);
}

.btn-email .btn-hover-bg {
    background-color: white;
}

.btn-dynamic:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.btn-dynamic:hover .btn-hover-bg {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-email:hover .btn-content {
    color: var(--rojo-logo);
}

.contact-ultra-modern {
    padding: 100px 0;
    background-color: #ffffff;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.contact-hero-modern {
    padding: 60px 0 1px;
    background: #ffffff;
    overflow: hidden;
    position: relative;
}

.hero-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.bg-text-outline {
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 10rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.04);
    user-select: none;
    z-index: 1;
    font-family: var(--fuente);
}

.main-title-box {
    position: relative;
    z-index: 2;
}

.upper-tag {
    font-size: 0.75rem;
    letter-spacing: 5px;
    color: var(--rojo-logo);
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.dynamic-title {
    font-size: 3.2rem;
    line-height: 1.1;
    color: var(--gris-oscuro);
    font-weight: 900;
    text-transform: uppercase;
}

.red-stroke {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--rojo-logo);
}

.filled-red {
    color: var(--rojo-logo);
    position: relative;
}

.geometric-decorator {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.geometric-decorator .line {
    width: 60px;
    height: 4px;
    background: var(--rojo-logo);
    display: inline-block;
}

.geometric-decorator .dot {
    width: 8px;
    height: 8px;
    background: var(--gris-oscuro);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .dynamic-title {
        font-size: 2.2rem;
    }
    .bg-text-outline {
        font-size: 5rem;
        top: 0;
    }
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 100px;
}

.field-box {
    position: relative;
    margin-bottom: 35px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.field-box label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #333;
    text-transform: uppercase;
}

.field-box input, .field-box textarea {
    width: 100%;
    padding: 18px;
    border: none;
    background: #f8f8f8;
    font-family: var(--fuente);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.field-box input:focus, .field-box textarea:focus {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    outline: none;
}

.field-box.has-error input, .field-box.has-error textarea {
    background: #fff5f5;
    box-shadow: inset 0 0 0 2px var(--rojo-logo);
}

.error-indicator {
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 0.6rem;
    color: var(--rojo-logo);
    font-weight: bold;
    opacity: 0;
    transform: translateY(-5px);
    transition: 0.3s ease;
}

.field-box.has-error .error-indicator {
    opacity: 1;
    transform: translateY(0);
}

.btn-send-exclusive {
    width: 100%;
    padding: 25px;
    background: var(--rojo-logo);
    color: #fff;
    border: none;
    font-family: var(--fuente);
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.5s;
}

.btn-send-exclusive:hover {
    background: var(--gris-oscuro);
    padding-left: 35px;
}

.sidebar-item {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.sidebar-item i {
    font-size: 1.5rem;
    color: var(--rojo-logo);
    margin-top: 5px;
}

.sidebar-text h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--gris-oscuro);
}

.sidebar-text p {
    font-size: 0.8rem;
    color: #777;
    margin: 0;
    overflow-wrap: anywhere;
}

.status-msg {
    margin-top: 20px;
    padding: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    display: none;
}

.status-msg.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.status-msg.success {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border: 1px solid #25D366;
}

.status-msg.error-final {
    background: rgba(166, 43, 43, 0.1);
    color: var(--rojo-logo);
    border: 1px solid var(--rojo-logo);
}

.status-msg {
    font-family: var(--fuente);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.map-section {
    padding: 10px 0 110px;
    background: #fff;
    border: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
}

.map-section::before,
.map-heading::before {
    content: none;
    display: none;
}

.map-heading {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
}

.map-heading-icon {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--rojo-logo);
    border-radius: 50%;
    font-size: 1.45rem;
    box-shadow: 0 12px 26px rgba(166, 43, 43, 0.22);
}

.map-heading .upper-tag { margin-bottom: 7px; }

.map-heading h2 {
    color: var(--gris-oscuro);
    font-size: 1.35rem;
    line-height: 1.3;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.map-heading p {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.65;
}

.map-frame {
    position: relative;
    width: 100%;
    height: clamp(430px, 50vw, 590px);
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid #2b2b2b;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.16);
    background: #171717;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: grayscale(60%) brightness(58%) contrast(118%);
}

.map-external-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: var(--gris-oscuro);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 2px solid var(--rojo-logo);
    padding-bottom: 6px;
    transition: var(--transition);
}

.map-external-link:hover { color: var(--rojo-logo); }

.legal-hero {
    padding: 60px 0 60px;
    background: #fff;
    overflow: hidden;
}

.hero-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.bg-text-outline {
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 8rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(51, 51, 51, 0.05);
    user-select: none;
    z-index: 1;
}

.main-title-box { position: relative; z-index: 2; }

.dynamic-title {
    font-size: 3rem;
    line-height: 1.1;
    color: var(--gris-oscuro);
    font-weight: 900;
    text-transform: uppercase;
}

.red-stroke {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--rojo-logo);
}

.filled-red {
    color: var(--rojo-logo);
}

.grid-legal {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    padding-bottom: 80px;
}

.article-card {
    background: #fff;
    padding: 35px;
    margin-bottom: 25px;
    border-left: 4px solid #eee;
    position: relative;
    transition: 0.3s ease;
}

.article-card:hover {
    border-left-color: var(--rojo-logo);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.article-card:hover .art-num {
    color: var(--rojo-logo);
    transition: 0.3s ease;
}

.article-card h3 {
    font-size: 1rem;
    color: var(--gris-oscuro);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.article-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.7;
}

.art-num {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    font-weight: 900;
    color: rgba(90, 13, 13, 0.1);
}

.dual-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.warranty-feature-box {
    display: flex;
    gap: 20px;
    background: var(--gris-suave);
    padding: 30px;
    border-radius: 2px;
}

.warranty-feature-box i { font-size: 2rem; }
.warranty-feature-box h4 { font-size: 0.9rem; margin-bottom: 10px; color: var(--gris-oscuro); }
.warranty-feature-box p { font-size: 0.8rem; color: #555; }


@media (max-width: 1024px) {
    .grid-legal {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .legal-sidebar {
        width: 50%;
        text-align: center;
    }

    .legal-sidebar .sticky-box {
        justify-content: center;
    }

    .dynamic-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 100px 5% 40px;
    }

    .bg-text-outline {
        font-size: 4rem;
        top: 0;
        left: 5%;
    }

    .dynamic-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .article-card {
        padding: 25px 20px;
        margin-bottom: 20px;
    }

    .article-card h3 {
        font-size: 0.9rem;
        padding-right: 40px;
    }

    .art-num {
        font-size: 1.5rem;
        top: 15px;
        right: 15px;
    }

    .dual-grid-modern {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .warranty-feature-box {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .warranty-feature-box i {
        margin-bottom: 10px;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .dynamic-title {
        font-size: 1.5rem;
    }

    .article-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 992px) {
    .contact-main-grid { grid-template-columns: 1fr; gap: 60px; }
    .input-row { grid-template-columns: 1fr; }
    .contact-header-new h1 { font-size: 2.5rem; }
}

@media (max-width: 992px) {
    .quote-content-wrapper { flex-direction: column; text-align: center; }
    .glass-quote-card { padding: 50px 30px; }
    .quote-text h3 { font-size: 2.2rem; }
    .quote-text p { max-width: 100%; }
}

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-flip-card { height: 410px; }
    .service-flip-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 12px);
        justify-self: center;
    }
}

@media (max-width: 700px) {
    .services-container { padding: 80px 5%; }
    .services-grid { grid-template-columns: 1fr; }
    .service-flip-card,
    .service-flip-card:last-child {
        grid-column: auto;
        width: 100%;
        height: 400px;
    }
    .service-front-content,
    .service-card-back { padding: 27px; }
    .service-gallery-modal { padding: 10px; }
    .service-gallery-dialog {
        max-height: 96svh;
        padding: 58px 12px 18px;
    }
    .service-gallery-dialog h2 {
        margin-bottom: 16px;
        padding: 0 28px;
        font-size: 0.72rem;
    }
    .service-gallery-stage {
        height: min(58svh, 520px);
        min-height: 240px;
    }
    .service-gallery-arrow {
        width: 38px;
        height: 38px;
    }
    .service-gallery-prev { left: 6px; }
    .service-gallery-next { right: 6px; }
    .service-gallery-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
    }
    .service-gallery-dots { margin-top: 16px; }
    .hero-content h1 { font-size: 2rem; }
}

@media (max-width: 992px) {
    .about-company-panel,
    .about-purpose-panel { grid-template-columns: 1fr; }
    .about-company-panel { gap: 34px; }
    .about-purpose-panel { gap: 28px; }
    .purpose-heading { text-align: center; }
    .purpose-heading .dynamic-divider { margin: 0 auto; }
    .ultra-visual { height: auto; }
    .visual-stack { height: auto; min-height: 440px; }
    .ultra-main-img,
    .fade-container { height: 440px; }
    .dynamic-divider { margin: 0 auto 35px; }
    .focus-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; }
}

@media (max-width: 768px) {
    .hero-new {
        background-attachment: scroll;
        align-items: flex-start;
        justify-content: center;
        height: calc(100svh - 80px);
        min-height: 620px;
        padding: 32px 5% 24px;
        text-align: center;
    }

    .hero-new-overlay {
        background: rgba(255, 255, 255, 0.9);
    }

    .hero-new-content {
        max-width: 100%;
        padding: 28px 0;
        text-align: center;
    }

    .hero-new-kicker {
        justify-content: center;
        gap: 10px;
        margin-bottom: 18px;
    }

    .hero-new-kicker > span {
        width: 28px;
        flex-basis: 28px;
    }

    .hero-new-kicker p {
        font-size: 0.52rem;
        letter-spacing: 1.4px;
    }

    .hero-new-btns {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-top: 25px;
    }

    .btn-hero-main,
    .btn-hero-sec {
        width: min(100%, 290px);
        text-align: center;
    }

    .hero-new-content h1 {
        font-size: clamp(1.45rem, 7vw, 2rem);
        letter-spacing: -0.8px;
    }

    .hero-new-content > p {
        font-size: 0.67rem;
        line-height: 1.75;
    }

    .hero-new-sectors {
        justify-content: center;
    }

    .hero-new-sectors span {
        padding: 8px 9px;
        font-size: 0.49rem;
    }

    .about-ultra { padding: 80px 0; }
    .about-panels { gap: 20px; padding: 0 5%; }
    .about-company-panel { padding: 18px; gap: 28px; }
    .about-purpose-panel { padding: 28px 22px; }
    .visual-stack { min-height: 0; padding: 0; }
    .ultra-main-img,
    .fade-container { height: min(92vw, 420px); }
    .floating-experience { right: 0; bottom: 24px; padding: 16px 18px; }
    .ultra-title { font-size: clamp(1.5rem, 7vw, 2rem); }
    .text-p { font-size: 0.8rem; line-height: 1.75; }
    .focus-cards { grid-template-columns: 1fr; }
    .focus-card { padding: 24px; }

    .clientes-section { padding: 0 5% 85px; }
    .carousel-container { padding: 0; margin-top: 30px; }
    .arrow-btn { display: none; }
    .client-item { flex-basis: min(76vw, 250px); height: 165px; }
    .client-item > img { padding: 20px; }
    .clients-track { gap: 14px; padding-bottom: 22px; }

    .modal-overlay { padding: 12px; }
    .modal-box { width: 96vw; max-height: 90vh; padding: 50px 18px 24px; }
    .modal-box img { max-height: 54vh; }
    #modalName { margin: 20px 8px 0; font-size: 0.68rem; }

    .hero-full {
        height: calc(100vh - 80px);
        height: calc(100svh - 80px);
        min-height: 520px;
        max-height: none;
    }

    .contact-ultra-modern { padding: 70px 0; }
    .contact-main-grid { gap: 45px; }
    .input-row { gap: 0; }
    .glass-quote-card { padding: 38px 22px; }
    .quote-text h3 { font-size: 1.45rem; line-height: 1.3; }
    .quote-actions { width: 100%; min-width: 0; }

    .map-section { padding: 0 0 75px; }
    .map-heading { align-items: flex-start; gap: 16px; margin-bottom: 22px; }
    .map-heading-icon { width: 50px; height: 50px; flex-basis: 50px; font-size: 1.15rem; }
    .map-heading h2 { font-size: 1.05rem; }
    .map-heading p { font-size: 0.72rem; }
    .map-frame { height: 440px; }
    .whatsapp-float {
        width: 52px;
        height: 52px;
        right: 20px;
        bottom: 20px;
        font-size: 29px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .brand-section, .footer-social, .footer-contact-list li {
        justify-content: center;
        align-items: center;
    }

    .footer-subtitle::after {
        display: none;
    }

    .footer-contact-list li {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.5s ease-in-out;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        padding: 40px 0;
        height: calc(100dvh - 80px);
        overflow-y: auto;
    }
    .nav-menu.active { left: 0; }

    .logo-text { display: none; }

    .nav-menu::before {
        content: '';
        display: block;
        width: 100px;
        height: 100px;
        margin: 0 auto 20px;
        background: url('../img/logo.webp') no-repeat center;
        background-size: contain;
        opacity: 0.1;
    }

}

@media (max-width: 854px) {
    .logo-text { display: none; }
}

/* Identidad visual y experiencia */
:root {
    --rojo-logo: #B02C34;
    --gris-logo: #262626;
    --gris-oscuro: #202020;
    --gris-suave: #f3f3f1;
    --surface-dark: #121212;
    --surface-light: #f6f6f4;
    --border-soft: rgba(22, 22, 22, 0.1);
    --shadow-premium: 0 24px 70px rgba(20, 20, 20, 0.1);
}

html {
    scroll-behavior: smooth;
    background: var(--surface-dark);
}

body {
    color: var(--gris-oscuro);
    background: var(--surface-light);
}

html.is-loading body {
    pointer-events: none;
    user-select: none;
    cursor: wait;
}

html:not(.page-ready)::before {
    z-index: 100000;
    background:
        linear-gradient(135deg, rgba(176, 44, 52, 0.13), transparent 32%),
        radial-gradient(circle at 50% 50%, #242424 0%, #111 62%, #090909 100%);
}

html:not(.page-ready)::after {
    z-index: 100001;
    width: clamp(94px, 10vw, 132px);
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.5));
    animation: loaderSpin 1.15s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.navbar {
    height: 80px;
    padding: 0 clamp(5%, 9vw, 10%);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(176, 44, 52, 0.38);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.055);
}

.logo-img {
    height: 64px;
}

.nav-menu {
    align-items: center;
    gap: clamp(24px, 3vw, 44px);
}

.nav-link {
    color: #242424;
    font-weight: 600;
    letter-spacing: 0.6px;
    padding: 11px 14px;
    border-radius: 7px;
}

.nav-link.active,
.nav-link[aria-current="page"] {
    color: var(--rojo-logo);
    font-weight: 800;
    background: rgba(176, 44, 52, 0.08);
    box-shadow: inset 0 -2px 0 var(--rojo-logo);
}

.nav-link.active::after,
.nav-link[aria-current="page"]::after {
    width: calc(100% - 24px);
}

.nav-item-contact .nav-link {
    padding: 12px 23px !important;
    border-radius: 7px;
    box-shadow: 0 10px 24px rgba(176, 44, 52, 0.22);
}

.nav-item-contact .nav-link.active,
.nav-item-contact .nav-link[aria-current="page"] {
    color: #fff !important;
    background: #202020;
    box-shadow: inset 0 -3px 0 var(--rojo-logo), 0 12px 28px rgba(0, 0, 0, 0.2);
}

.hero-new {
    height: calc(100svh - 80px);
    min-height: 610px;
    max-height: 900px;
    align-items: center;
    padding: clamp(36px, 6vh, 68px) 5% 46px;
    background: url('../img/inicio-ingenieria.webp') center / cover no-repeat;
    background-attachment: scroll;
}

.hero-new::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 5px;
    background: linear-gradient(90deg, transparent 4%, var(--rojo-logo) 30%, #262626 70%, transparent 96%);
}

.hero-new-overlay {
    background:
        linear-gradient(90deg, rgba(250, 250, 248, 0.9), rgba(250, 250, 248, 0.7) 52%, rgba(250, 250, 248, 0.52)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.7));
}

.hero-new-content {
    max-width: 1320px;
    padding: clamp(24px, 4vw, 42px);
    transform: translateY(-3vh);
}

.hero-new-kicker {
    margin-bottom: 20px;
}

.hero-new-kicker p {
    font-size: clamp(0.58rem, 0.85vw, 0.72rem);
    letter-spacing: 3.2px;
}

.hero-new-content h1 {
    max-width: 1320px;
    margin-bottom: 22px;
    font-size: clamp(1.95rem, 3.5vw, 3.45rem);
    line-height: 1.16;
    letter-spacing: -1.8px;
    text-shadow: 0 12px 38px rgba(255, 255, 255, 0.8);
    text-wrap: balance;
}

.hero-new-brand {
    margin-top: 10px;
    font-size: clamp(1.75rem, 3.2vw, 3.2rem);
    line-height: 1.2;
    white-space: nowrap;
}

.hero-new-content > p {
    max-width: 790px;
    color: #363636;
    font-size: clamp(0.72rem, 1vw, 0.86rem);
}

.hero-new-sectors span {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(32, 32, 32, 0.14);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.btn-hero-main,
.btn-hero-sec {
    min-width: 210px;
    padding: 16px 28px;
    border-radius: 7px;
}

.btn-hero-sec {
    background: rgba(255, 255, 255, 0.72);
}

.about-ultra {
    padding: clamp(76px, 9vw, 130px) 0;
    background:
        radial-gradient(circle at 0 20%, rgba(176, 44, 52, 0.07), transparent 28%),
        var(--surface-light);
}

.about-panels {
    width: min(1320px, 100%);
    gap: 26px;
}

.about-company-panel,
.about-purpose-panel {
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.about-company-panel {
    grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(34px, 5vw, 68px);
    padding: clamp(24px, 3vw, 42px);
}

.visual-stack {
    min-height: 430px;
    padding: 12px;
}

.ultra-main-img {
    border-radius: 12px;
}

.ultra-shape {
    border-radius: 14px;
    background: linear-gradient(145deg, #f3f3f1, #e9e9e6);
}

.floating-experience {
    right: -10px;
    bottom: 30px;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 16px 34px rgba(176, 44, 52, 0.25);
}

.ultra-title {
    font-size: clamp(1.65rem, 2.6vw, 2.3rem);
    line-height: 1.18;
    letter-spacing: -1.1px;
    text-wrap: balance;
}

.text-p {
    color: #626262;
}

.about-purpose-panel {
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
    gap: clamp(26px, 4vw, 50px);
    padding: clamp(28px, 3.3vw, 46px);
    background:
        radial-gradient(circle at 8% 20%, rgba(176, 44, 52, 0.26), transparent 34%),
        #171717;
}

.purpose-heading .upper-tag,
.purpose-heading .ultra-title {
    color: #fff;
}

.purpose-heading .text-dynamic {
    color: #ef7c82;
}

.focus-cards {
    gap: 18px;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.focus-card {
    min-height: 0;
    padding: 24px;
    border-radius: 12px;
    border-color: rgba(32, 32, 32, 0.11);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.055);
    background: #fff;
    color: #242424;
    overflow: hidden;
}

.focus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--rojo-logo);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.32s ease;
}

.focus-icon,
.focus-info h3,
.focus-divider {
    transition: transform 0.32s ease, color 0.32s ease, width 0.32s ease;
}

@media (hover: hover) and (pointer: fine) {
    .focus-card:hover {
        transform: translateY(-5px);
        border-color: rgba(176, 44, 52, 0.45);
        box-shadow: 0 20px 44px rgba(0, 0, 0, 0.15);
    }

    .focus-card:hover::before { transform: scaleY(1); }
    .focus-card:hover .focus-icon { transform: translateY(-3px) rotate(-5deg); }
    .focus-card:hover .focus-info h3 { color: var(--rojo-logo); }
    .focus-card:hover .focus-divider { width: 46px; }
}

.focus-icon {
    border-radius: 9px;
}

.clientes-section {
    padding: clamp(82px, 9vw, 120px) 8%;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(176, 44, 52, 0.08), transparent 42%),
        #111;
}

.clientes-section .ultra-title {
    color: #fff;
}

.clientes-section .upper-tag {
    color: #ef777d;
}

.client-item {
    flex-basis: 260px;
    height: 168px;
    border-radius: 12px;
    border-color: rgba(255, 255, 255, 0.14);
    background: #f0f0ee;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.client-item > img {
    background: linear-gradient(145deg, #f8f8f7, #dededb);
    filter: grayscale(100%);
}

.client-item:hover,
.client-item:focus-visible {
    border-color: #e96e75;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.36);
}

.arrow-btn {
    box-shadow: 0 10px 28px rgba(176, 44, 52, 0.35);
}

.modal-overlay {
    z-index: 5000;
    background: rgba(5, 5, 5, 0.92);
}

.modal-box {
    width: min(92vw, 820px);
    padding: clamp(58px, 7vw, 78px) clamp(20px, 5vw, 54px) clamp(24px, 4vw, 40px);
    background: rgba(17, 17, 17, 0.88);
    border-color: rgba(255, 255, 255, 0.18);
}

.modal-box img {
    width: min(100%, 680px);
    max-height: min(60vh, 520px);
    background: linear-gradient(145deg, #f4f4f2, #d7d7d3);
}

.hero-full {
    height: calc(100svh - 80px);
    min-height: 580px;
    max-height: 880px;
}

.hero-full::after {
    content: '';
    position: absolute;
    inset: auto 8% 44px;
    z-index: 8;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5.4vw, 4.65rem);
    letter-spacing: -1.6px;
    line-height: 1.12;
    text-shadow: 0 18px 48px rgba(0, 0, 0, 0.7);
    text-wrap: balance;
}

.hero-slider .slide {
    background-position: center;
    transform: scale(1.02);
}

.services-container {
    max-width: none;
    padding: clamp(80px, 8vw, 124px) max(5%, calc((100vw - 1240px) / 2));
    background:
        radial-gradient(circle at 100% 0, rgba(176, 44, 52, 0.07), transparent 28%),
        var(--surface-light);
}

.services-intro {
    max-width: 1040px;
    margin-bottom: 58px;
}

.services-intro .ultra-title,
.dynamic-title {
    text-wrap: balance;
}

.services-grid {
    gap: 26px;
}

.service-flip-card {
    height: clamp(390px, 30vw, 440px);
    border-radius: 16px;
}

.service-card-face {
    border-radius: 16px;
}

.service-card-front {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16);
}

.service-card-front::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: inherit;
    pointer-events: none;
}

.service-front-num {
    top: 22px;
    right: 24px;
    font-size: 2rem;
}

.service-front-content {
    padding: 30px;
}

.service-front-content > i,
.service-back-top i {
    border-radius: 10px;
    box-shadow: 0 12px 26px rgba(176, 44, 52, 0.26);
}

.service-front-trigger {
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.service-card-back {
    padding: 30px;
    border: 0;
    border-top: 5px solid var(--rojo-logo);
    background: linear-gradient(145deg, #fff, #f2f2ef);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.15);
}

.service-back-hint {
    padding-top: 18px;
    padding-bottom: 5px;
    border-bottom: 1px solid currentColor;
}

.service-back-hint.is-unavailable {
    color: #8a8a8a;
    border-bottom-color: transparent;
    cursor: default;
    opacity: 0.78;
    pointer-events: none;
}

.service-gallery-modal {
    z-index: 6000;
    padding: clamp(10px, 2vw, 24px);
    background: rgba(5, 5, 5, 0.94);
}

.service-gallery-dialog {
    width: min(1180px, 100%);
    max-height: 94svh;
    padding: 62px clamp(16px, 4vw, 54px) 26px;
    border-radius: 18px;
    background: rgba(17, 17, 17, 0.88);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.58);
}

.service-gallery-dialog h2 {
    min-height: 2.8em;
    max-width: 900px;
    margin-bottom: 18px;
    font-size: clamp(0.68rem, 1vw, 0.88rem);
}

.service-gallery-stage {
    height: min(65vh, 660px);
    min-height: 320px;
    overflow: hidden;
    border-radius: 12px;
    background: #090909;
}

.service-gallery-stage img {
    object-fit: contain;
    background: #090909;
}

.service-gallery-close,
.service-gallery-arrow {
    background: rgba(176, 44, 52, 0.94);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.quote-premium-section {
    margin-top: 90px;
    border-radius: 18px;
    background:
        linear-gradient(110deg, rgba(176, 44, 52, 0.18), transparent 45%),
        #151515;
}

.glass-quote-card {
    padding: clamp(42px, 6vw, 72px);
    border-radius: 16px;
}

.contact-hero-modern,
.legal-hero {
    background:
        radial-gradient(circle at 82% 30%, rgba(176, 44, 52, 0.09), transparent 27%),
        var(--surface-light);
}

.contact-ultra-modern {
    padding: clamp(70px, 8vw, 110px) 0;
    background: #fff;
}

.contact-main-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: clamp(30px, 4vw, 50px);
    padding: clamp(22px, 3vw, 38px);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    background: #f6f6f4;
    box-shadow: var(--shadow-premium);
}

.form-wrapper-new,
.contact-sidebar,
#contact-form-premium,
.input-row,
.field-box,
.sidebar-item,
.sidebar-text {
    min-width: 0;
}

.form-wrapper-new {
    width: 100%;
    max-width: 840px;
    margin-inline: auto;
    padding: clamp(24px, 3.5vw, 42px);
    border: 1px solid #e8e8e5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(20, 20, 20, 0.045);
}

.form-heading {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #ebebe9;
}

.form-heading .upper-tag { margin-bottom: 12px; letter-spacing: 2px; font-size: 0.6rem; }
.form-heading h2 { color: #222; font-size: clamp(1.05rem, 2vw, 1.4rem); line-height: 1.55; text-wrap: balance; }
.form-heading p { max-width: 680px; margin-top: 12px; color: #666; font-size: 0.73rem; line-height: 1.85; }

.input-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.field-box {
    margin-bottom: 24px;
}

.field-box input,
.field-box textarea {
    display: block;
    min-width: 0;
    max-width: 100%;
    padding: 14px 16px;
    font-size: 0.76rem;
    line-height: 1.55;
    border: 1px solid #ececea;
    border-radius: 8px;
    background: #f6f6f4;
}

.field-box input { min-height: 56px; }
.field-box input:focus,
.field-box textarea:focus { border-color: var(--rojo-logo); box-shadow: 0 0 0 3px rgba(166, 43, 43, 0.1); }

.field-box textarea {
    min-height: 145px;
    max-height: 360px;
    resize: vertical;
    overflow-wrap: anywhere;
}

.error-indicator {
    position: static;
    display: none;
    margin-top: 8px;
    font-size: 0.58rem;
    line-height: 1.6;
    opacity: 1;
    transform: none;
}

.field-box.has-error .error-indicator { display: block; transform: none; }

.btn-send-exclusive {
    min-height: 54px;
    padding: 15px 18px;
    font-size: 0.7rem;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(176, 44, 52, 0.2);
}

.sidebar-item {
    gap: 14px;
    margin-bottom: 0;
    padding: 18px;
    border: 1px solid #ececea;
    border-radius: 12px;
    background: #fff;
}

.sidebar-item i { flex: 0 0 20px; font-size: 1.2rem; }
.sidebar-text h4 { font-size: 0.67rem; line-height: 1.5; overflow-wrap: anywhere; }
.sidebar-text p { font-size: 0.64rem; line-height: 1.6; overflow-wrap: anywhere; }

.contact-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
}

@media (max-width: 820px) {
    .contact-sidebar { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
    .contact-ultra-modern { padding: 48px 0; }
    .contact-main-grid { gap: 28px; padding: 16px 12px; }
    .form-wrapper-new { padding: 22px 16px; }
    .form-heading { margin-bottom: 23px; }
    .contact-hero-modern .dynamic-title { font-size: clamp(1.15rem, 6vw, 1.65rem); line-height: 1.3; }
    .contact-hero-modern .bg-text-outline { font-size: clamp(2.6rem, 11vw, 4.5rem); }
}

.map-section {
    position: relative;
    padding: clamp(54px, 6vw, 86px) 0;
    overflow: hidden;
    color: var(--gris-oscuro);
    background: #f5f5f3 !important;
}

.map-section::before {
    content: none !important;
}

.location-shell {
    display: grid;
    grid-template-columns: minmax(410px, 0.85fr) minmax(0, 1fr);
    min-height: 580px;
    overflow: hidden;
    border: 1px solid #e5e5e2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 58px rgba(18, 18, 18, 0.09);
}

.location-panel {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: clamp(36px, 4vw, 64px);
    overflow: hidden;
    background: #fff;
}

.location-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--rojo-logo);
}

.location-symbol {
    position: relative;
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin-bottom: 30px;
    color: #fff;
    font-size: 1.5rem;
    border-radius: 16px;
    background: var(--rojo-logo);
    box-shadow: 0 9px 22px rgba(166, 43, 43, 0.17);
}

.location-symbol::after {
    content: none;
}

.location-panel .upper-tag {
    margin-bottom: 14px;
    color: var(--rojo-logo);
    letter-spacing: 2px;
}

.location-panel h2 {
    margin: 0 0 34px;
    color: #202020;
    font-size: clamp(1.4rem, 2.25vw, 2.05rem);
    line-height: 1.3;
    letter-spacing: -0.4px;
}

.location-address-label {
    margin-bottom: 10px;
    color: #777;
    font-size: 0.56rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.location-panel address {
    width: 100%;
    max-width: 440px;
    margin-bottom: 34px;
    padding: 20px;
    color: #353535;
    font-size: clamp(0.76rem, 1vw, 0.88rem);
    font-style: normal;
    line-height: 1.9;
    border-radius: 10px;
    background: #f6f6f4;
}

.map-frame {
    position: relative;
    min-height: 580px;
    overflow: hidden;
    background: #242424;
    isolation: isolate;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
    filter: grayscale(100%) invert(91%) hue-rotate(180deg) brightness(70%) contrast(112%);
}

.map-lock {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(6, 6, 6, 0.02), rgba(6, 6, 6, 0.12));
}

.map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    width: 56px;
    height: 56px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.map-pin-marker {
    position: absolute;
    inset: 6px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.2rem;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--rojo-logo);
    box-shadow: 0 0 0 6px rgba(176, 44, 52, 0.2), 0 12px 26px rgba(0, 0, 0, 0.35);
    animation: mapPinGlow 2.4s ease-in-out infinite;
}

.map-pin-pulse {
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(176, 44, 52, 0.82);
    border-radius: 50%;
    animation: mapPinPulse 2.4s ease-out infinite;
}

.map-external-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 225px;
    padding: 16px 22px;
    color: #fff;
    text-decoration: none;
    font-size: 0.62rem;
    border: 1px solid var(--rojo-logo);
    border-radius: 8px;
    background: var(--rojo-logo);
    transition: var(--transition);
}

.map-external-link:hover,
.map-external-link:focus-visible {
    color: var(--rojo-logo);
    border-color: var(--rojo-logo);
    background: #fff;
    transform: translateY(-2px);
}

@keyframes mapPinGlow {
    0%, 100% { box-shadow: 0 0 0 8px rgba(176, 44, 52, 0.18), 0 18px 36px rgba(0, 0, 0, 0.35); }
    50% { box-shadow: 0 0 0 14px rgba(176, 44, 52, 0.08), 0 18px 42px rgba(176, 44, 52, 0.42); }
}

@keyframes mapPinPulse {
    0% { opacity: 0.85; transform: scale(0.72); }
    75%, 100% { opacity: 0; transform: scale(1.65); }
}

@keyframes locationSymbolPulse {
    0%, 100% { opacity: 0.35; transform: scale(0.96); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.footer {
    padding-top: 58px;
    background: #080808;
}

.article-card {
    border-radius: 10px;
    border-left-color: var(--rojo-logo);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.05);
}

@media (max-width: 1024px) {
    .about-company-panel {
        grid-template-columns: minmax(290px, 0.9fr) minmax(0, 1.1fr);
    }

    .about-purpose-panel {
        grid-template-columns: 1fr;
        background: #171717;
    }

    .purpose-heading {
        max-width: 680px;
        text-align: left;
    }

    .purpose-heading .dynamic-divider {
        margin-left: 0;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-flip-card:last-child {
        grid-column: auto;
        width: 100%;
    }

    .location-shell {
        grid-template-columns: minmax(390px, 0.85fr) minmax(0, 1fr);
        min-height: 550px;
    }

    .map-frame {
        min-height: 550px;
    }
}

@media (max-width: 900px) {
    .location-shell { grid-template-columns: minmax(0, 1fr); }
    .location-panel { padding: 42px; }
    .map-frame { height: 440px; min-height: 440px; }
}

@media (max-width: 768px) {
    body {
        padding-top: 72px;
    }

    .navbar {
        height: 72px;
        padding: 0 5%;
    }

    .logo-img {
        height: 58px;
    }

    .nav-menu {
        top: 72px;
        height: calc(100dvh - 72px);
        gap: 30px;
        padding: 28px 0;
    }

    .nav-menu::before {
        width: 78px;
        height: 78px;
        margin-bottom: 8px;
    }

    .nav-link {
        font-size: 0.7rem;
    }

    .hero-new {
        height: auto;
        min-height: calc(100svh - 72px);
        max-height: none;
        align-items: center;
        padding: 32px 5%;
        background-position: 60% center;
    }

    .hero-new-overlay {
        background: rgba(250, 250, 248, 0.82);
    }

    .hero-new-content {
        padding: 22px 0;
        transform: translateY(-1vh);
    }

    .hero-new-content h1 {
        font-size: clamp(1.55rem, 7.6vw, 2.45rem);
        line-height: 1.2;
        letter-spacing: -0.9px;
    }

    .hero-new-brand {
        font-size: clamp(1.32rem, 6.7vw, 2.2rem);
        line-height: 1.28;
        white-space: normal;
    }

    .hero-new-kicker > span {
        width: 22px;
        flex-basis: 22px;
    }

    .hero-new-kicker p {
        font-size: 0.48rem;
        letter-spacing: 1.3px;
    }

    .hero-new-content > p {
        font-size: 0.66rem;
        line-height: 1.68;
    }

    .hero-new-sectors {
        gap: 7px;
    }

    .hero-new-sectors span {
        padding: 7px 9px;
        font-size: 0.47rem;
    }

    .hero-new-btns {
        margin-top: 22px;
    }

    .btn-hero-main,
    .btn-hero-sec {
        width: min(100%, 310px);
        min-width: 0;
    }

    .about-company-panel {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .visual-stack,
    .ultra-main-img,
    .fade-container {
        min-height: 0;
        height: min(92vw, 410px);
    }

    .ultra-content {
        padding: 12px 8px 10px;
    }

    .about-purpose-panel {
        padding: 22px 16px;
        background: #171717;
    }

    .focus-cards {
        grid-template-columns: 1fr;
    }

    .focus-card {
        min-height: 0;
        padding: 18px;
        grid-template-columns: 42px minmax(0, 1fr);
        grid-template-rows: 42px auto;
        column-gap: 12px;
        row-gap: 12px;
    }

    .focus-icon { width: 42px; height: 42px; }
    .focus-info h3 { font-size: 0.72rem; line-height: 1.35; }
    .focus-info p { font-size: 0.68rem; line-height: 1.6; }

    .clientes-section {
        padding: 76px 5%;
    }

    .client-item {
        flex-basis: min(78vw, 265px);
    }

    .hero-full {
        height: calc(100svh - 72px);
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: clamp(1.9rem, 9vw, 2.85rem);
    }

    .services-container {
        padding: 58px 5%;
    }

    .services-intro {
        margin-bottom: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-flip-card,
    .service-flip-card:last-child {
        height: clamp(355px, 92vw, 390px);
    }

    .service-front-num { font-size: 1.55rem; }
    .service-front-content > i { width: 42px; height: 42px; margin-bottom: 12px; }
    .service-front-content h3 { font-size: 0.76rem; line-height: 1.45; }
    .service-back-top { margin-bottom: 14px; }
    .service-back-top span { font-size: 1.75rem; }
    .service-back-top i { width: 42px; height: 42px; }
    .service-card-back h3 { margin-bottom: 10px; font-size: 0.74rem; }
    .service-card-back p { font-size: 0.68rem; line-height: 1.6; }
    .service-card-back { overflow-y: auto; }
    .service-back-hint { padding-top: 12px; }

    .service-gallery-modal {
        padding: 10px;
    }

    .service-gallery-dialog {
        padding: 58px 10px 18px;
        border-radius: 12px;
    }

    .service-gallery-dialog h2 {
        min-height: 0;
        margin-bottom: 12px;
        padding: 0 34px;
        font-size: 0.68rem;
        line-height: 1.55;
    }

    .service-gallery-stage {
        height: min(52svh, 390px);
        min-height: 190px;
        aspect-ratio: auto;
    }

    .service-gallery-arrow {
        width: 38px;
        height: 38px;
    }

    .service-gallery-prev { left: 5px; }
    .service-gallery-next { right: 5px; }

    .contact-main-grid {
        padding: 20px 12px;
        border-radius: 12px;
    }

    .map-section {
        padding: 52px 0;
    }

    .location-shell {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 16px;
    }

    .location-panel {
        min-height: 0;
        padding: 36px 28px;
    }

    .location-symbol {
        width: 58px;
        height: 58px;
        margin-bottom: 22px;
        font-size: 1.25rem;
        border-radius: 12px;
    }

    .map-frame {
        height: min(60svh, 480px);
        min-height: 390px;
    }

    .map-external-link {
        width: min(100%, 300px);
    }

    .footer-container {
        gap: 34px;
    }
}

@media (max-width: 430px) {
    .hero-new {
        padding-top: 20px;
    }

    .hero-new-content h1 {
        font-size: clamp(1.42rem, 7.4vw, 1.95rem);
    }

    .hero-new-brand {
        margin-top: 7px;
    }

    .hero-new-btns {
        gap: 10px;
    }

    .btn-hero-main,
    .btn-hero-sec {
        padding: 13px 18px;
    }

    .about-purpose-panel {
        background: #171717;
    }

    .map-frame {
        height: 380px;
        min-height: 380px;
    }

    .map-pin {
        width: 52px;
        height: 52px;
    }

    .location-panel {
        min-height: 0;
        padding: 32px 22px;
    }

    .service-front-content,
    .service-card-back {
        padding: 24px;
    }

    .service-card-back p {
        font-size: 0.68rem;
    }

    .modal-box {
        padding-inline: 12px;
    }
}
