/* ===============================================
   VARIABLES Y RESET GLOBAL
   =============================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --primary-red: #E94335;
  --light-red: #F26559;
  --deep-red: #C4372B;
  --white: #FFFFFF;
  --light-gray: #F1F1F1;
  --medium-gray: #666666;
  --dark-gray: #2D2D2D;
  
  /* Tamaños de fuente responsivos - AJUSTADOS PARA MEJOR LEGIBILIDAD */
  --fs-hero: clamp(3.2rem, 5vw + 1rem, 5rem);
  --fs-section-title: clamp(2.8rem, 4vw + 1rem, 4.2rem);
  --fs-services-title: clamp(2.8rem, 4vw + 1rem, 5.2rem);
  --fs-subsection: clamp(2.2rem, 3vw + 0.5rem, 2.8rem);
  --fs-body: clamp(1.5rem, 2vw, 1.6rem);
  --fs-small: clamp(1.3rem, 1.5vw, 1.4rem);
}

*, *::after, *::before {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===============================================
   HEADER Y NAVEGACIÓN
   =============================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: transform 0.3s ease;
    padding-inline: 2.8rem;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar {
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 132rem;
    margin: 0 auto;
}

.logo {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-red);
    transition: transform 0.3s ease;
}

a{
    text-decoration: none;
}

.logo:hover {
    transform: scale(1.05);
}

.navigation {
    display: flex;
    gap: 2.8rem;
    list-style: none;
    align-items: center;
}

.navigation li a {
    display: inline-block;
    text-decoration: none;
    font-size: 1.7rem;
    color: var(--dark-gray);
    transition: color 0.3s ease;
    position: relative;
    padding: 1rem 0;
}

.navigation li a:hover,
.navigation li a.active {
    color: var(--primary-red);
}

.navigation li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.navigation li a:hover::after,
.navigation li a.active::after {
    width: 100%;
}

.nav-toggle {
    height: 4.5rem;
    aspect-ratio: 1;
    border-radius: 50%;
    border: none;
    background-color: var(--light-gray);
    padding: .8rem;
    cursor: pointer;
    display: none;
    transition: all 0.3s ease;
}

.nav-toggle img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.nav-toggle img:nth-child(1) {
    display: block;
}

.nav-toggle img:nth-child(2) {
    display: none;
}

.nav-toggle.active {
    background-color: var(--primary-red);
}

.nav-toggle.active img:nth-child(1) {
    display: none;
}

.nav-toggle.active img:nth-child(2) {
    display: block;
}

/* ===============================================
   MAIN Y HERO
   =============================================== */
main {
    width: 100%;
    overflow: hidden;
    min-height: 100vh;
    background-color: var(--light-gray);
    padding-top: 8rem;
}

section {
    width: 100%;
    padding-inline: 2.8rem;
}

.container {
    max-width: 132rem;
    margin-inline: auto;
}

.hero {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Shapes decorativos - OPTIMIZADOS */
.shape-1, .shape-2, .shape-3, .shape-4 {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(233, 67, 53, 0.05);
    z-index: 0;
    will-change: transform;
    transform: translateZ(0);
}

.shape-1 {
    width: 20rem;
    height: 20rem;
    top: 20%;
    left: -10rem;
    animation: floatSmooth 8s ease-in-out infinite;
}

.shape-2 {
    width: 15rem;
    height: 15rem;
    bottom: -5rem;
    left: 20%;
    animation: floatSmooth 6s ease-in-out infinite 1s;
}

.shape-3 {
    width: 25rem;
    height: 25rem;
    top: -12rem;
    right: 30%;
    animation: floatSmooth 7s ease-in-out infinite 0.5s;
}

.shape-4 {
    width: 18rem;
    height: 18rem;
    bottom: 10%;
    right: -5rem;
    animation: floatSmooth 9s ease-in-out infinite 1.5s;
}

.hero-container {
    min-height: calc(100vh - 8rem);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    padding-top: 4rem;
    padding-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 2rem;
}

.hero-text h1 {
    font-size: var(--fs-hero);
    color: var(--dark-gray);
    font-weight: 600;
    line-height: 1.2;
    animation: fade-up 0.8s ease;
    margin-bottom: 2rem;
}

.hero-text h1 .highlight {
    color: var(--primary-red);
}

.hero-text p {
    font-size: var(--fs-body);
    color: var(--medium-gray);
    margin-bottom: 3.5rem;
    line-height: 1.6;
    animation: fade-up 1s ease;
}

.hero-text p strong {
    color: var(--dark-gray);
    font-weight: 600;
}

.cta-container {
    display: flex;
    gap: 1.5rem;
    animation: fade-up 1.2s ease;
}

.btn {
    font-size: 1.6rem;
    padding: 1.4rem 3.2rem;
    border-radius: 0.4rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.primary-btn {
    background-color: var(--primary-red);
    color: var(--white);
}

.primary-btn:hover {
    background-color: var(--deep-red);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(196, 55, 43, 0.2);
}

.hero-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* IMAGEN HERO - SIN ANIMACIÓN FLOAT PARA EVITAR LAG */
.hero-img {
    width: 100%;
    max-width: 55rem;
    height: auto;
    animation: fade-in 1s ease; /* Solo fade-in, sin float */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 2;
    transform: translateZ(0); /* Optimización GPU */
    will-change: opacity; /* Solo opacidad, no transform */
}

/* Efecto hover suave en lugar de animación continua */
.hero-img:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* ===============================================
   SECCIÓN DE SERVICIOS
   =============================================== */
.services-section {
    width: 100%;
    margin-top: 6%;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.decoration-dot {
    position: absolute;
    border-radius: 50%;
    background-color: var(--primary-red);
    opacity: 0.2;
    z-index: 0;
    will-change: transform;
    transform: translateZ(0);
}

.decoration-dot:nth-child(1) {
    width: 15px;
    height: 15px;
    top: 10%;
    left: 5%;
    animation: floatSmooth 8s ease-in-out infinite;
}

.decoration-dot:nth-child(2) {
    width: 20px;
    height: 20px;
    top: 25%;
    right: 10%;
    animation: floatSmooth 10s ease-in-out infinite 1s;
}

.decoration-dot:nth-child(3) {
    width: 10px;
    height: 10px;
    bottom: 15%;
    left: 15%;
    background-color: var(--deep-red);
    animation: floatSmooth 12s ease-in-out infinite 2s;
}

.decoration-dot:nth-child(4) {
    width: 12px;
    height: 12px;
    bottom: 20%;
    right: 8%;
    animation: floatSmooth 9s ease-in-out infinite 3s;
}

.inner-width {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.services-title {
    text-align: center;
    font-size: var(--fs-services-title);
    font-weight: 500;
    margin-bottom: 80px;
    color: var(--dark-gray);
    animation: fadeIn 0.8s ease-out;
}

.services-title strong {
    color: var(--primary-red);
}

.service {
    text-align: center;
    margin: 20px 0;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: calc(var(--item-index, 0) * 0.1s);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: auto;
    background: var(--light-gray);
    border-radius: 50%;
    color: var(--primary-red);
    line-height: 60px;
    font-size: 25px;
}

.service-name {
    font-weight: 600;
    font-size: clamp(1.7rem, 2vw, 1.9rem);
    margin: 20px 0;
    color: var(--dark-gray);
}

.service-desc {
    max-width: 400px;
    margin: auto;
    color: var(--medium-gray);
    font-size: clamp(1.5rem, 1.8vw, 1.6rem);
    line-height: 1.6;
}

.owl-dots {
    text-align: center;
    margin-top: 40px;
    animation: fadeIn 0.8s ease-out 0.5s forwards;
    opacity: 0;
}

.owl-dot {
    width: 14px;
    height: 14px;
    background: var(--medium-gray) !important;
    margin: 0 6px;
    border-radius: 14px;
    outline: none;
    transition: .3s linear;
}

.owl-dot.active,
.owl-dot:hover {
    width: 36px;
    background: var(--primary-red) !important;
}

/* ===============================================
   SECCIÓN SOBRE NOSOTROS
   =============================================== */
.about-section {
    background-color: var(--light-gray);
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
}

.about-header {
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
    z-index: 2;
}

.section-tag {
    display: inline-block;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--primary-red);
    background-color: rgba(233, 67, 53, 0.08);
    padding: 0.6rem 1.5rem;
    border-radius: 3rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: var(--fs-section-title);
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.section-title .highlight {
    color: var(--primary-red);
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 0 auto;
}

.divider-dot {
    width: 0.8rem;
    height: 0.8rem;
    background-color: var(--primary-red);
    border-radius: 50%;
}

.divider-line {
    width: 6rem;
    height: 2px;
    background-color: var(--primary-red);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    position: relative;
    z-index: 2;
}

.about-image-wrapper {
    position: relative;
}

.about-image-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.1);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image-container:hover .about-image {
    transform: scale(1.05);
}

.about-pattern {
    position: absolute;
    top: -3rem;
    left: -3rem;
    width: 12rem;
    height: 12rem;
    background-image: 
        radial-gradient(var(--primary-red) 2px, transparent 2px),
        radial-gradient(var(--primary-red) 2px, transparent 2px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    z-index: -1;
    opacity: 0.1;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-subtitle {
    font-size: var(--fs-subsection);
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 2.5rem;
    line-height: 1.4;
}

.about-description {
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--medium-gray);
    margin-bottom: 2.5rem;
}

.about-description strong {
    color: var(--dark-gray);
    font-weight: 600;
}

.company-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    background-color: var(--white);
    border-radius: 1rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.value-item:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--primary-red);
}

.value-icon {
    width: 6rem;
    height: 6rem;
    background-color: rgba(233, 67, 53, 0.1);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.value-item:hover .value-icon {
    background-color: var(--primary-red);
    color: var(--white);
    transform: rotateY(180deg);
}

.value-text h4 {
    font-size: clamp(1.7rem, 2vw, 1.9rem);
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.8rem;
}

.value-text p {
    font-size: var(--fs-small);
    color: var(--medium-gray);
    line-height: 1.5;
}

.about-cta {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

/* ===============================================
   SECCIÓN DE PRODUCTOS
   =============================================== */
.container-cards-products {
    padding: 6rem 1.5rem;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.section_title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section_title h2 {
    font-size: var(--fs-section-title);
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.section_title h2 strong {
    color: var(--primary-red);
}

.title-line {
    height: 4px;
    width: 80px;
    background-color: var(--primary-red);
    margin: 0 auto;
    border-radius: 2px;
}

.card__container {
    display: grid;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    max-width: 1200px;
}

.card__article {
    background-color: var(--white);
    border-radius: 1.2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    position: relative;
}

.card__article:hover {
    transform: translateY(-10px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.card__image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card__article:hover .card__img {
    transform: scale(1.1);
}

.card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.card__article:hover .card__overlay {
    opacity: 0.7;
}

.card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-red);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card__data {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    height: calc(100% - 250px);
    background-color: var(--white);
}

.card__category {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 0.8rem;
}

.card__category::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--primary-red);
    border-radius: 2px;
}

.card__title {
    font-size: clamp(1.5rem, 2vw, 1.7rem);
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.8rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.card__article:hover .card__title {
    color: var(--primary-red);
}

.card__description {
    font-size: clamp(1.1rem, 1.5vw, 1.15rem);
    color: var(--medium-gray);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card__button,
.card__consult {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-red);
    transition: color 0.3s ease;
    margin-top: auto;
    padding: 0.5rem 0;
    position: relative;
}

.card__arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.card__article:hover .card__arrow {
    transform: translateX(5px);
}

.desktop-only {
    display: inline-flex;
}

.mobile-only {
    display: none;
}

/* ===============================================
   SECCIÓN DE CLIENTES - MEJORADA
   =============================================== */
.partners_section {
    padding: 80px 0;
    background-color: var(--white);
    margin-top: 2rem;
    position: relative;
}

.partners_section .section_title h2 {
    font-size: var(--fs-section-title);
    font-weight: bold;
    color: var(--primary-red);
}

.logos_slider {
    overflow: hidden;
    margin-top: 3rem;
}

.overflow {
    display: flex;
    padding: 1rem 0;
    overflow: hidden;
    margin-bottom: 2rem;
}

.overflow:last-child {
    margin-bottom: 0;
}

.reverse .logos_wrapper {
    animation-direction: reverse;
}

.logos_wrapper {
    display: flex;
    align-items: center;
    justify-content: space-around;
    animation: logoLoop 30s linear infinite;
    gap: 4rem;
}

.logo_item {
    padding: 1.5rem;
    aspect-ratio: 30/9;
    display: flex;
    place-items: center;
    border-radius: 1rem;
    background: var(--white);
    flex-shrink: 0;
    margin: 0 2rem;
}

.logo_item img {
    height: 7rem;
    width: auto;
    min-width: 9rem;
    max-width: 12rem;
    object-fit: contain;
}

/* ===============================================
   FOOTER
   =============================================== */
footer {
    position: relative;
    width: 100%;
    background: var(--primary-red);
    min-height: 100px;
    padding: 20px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 4rem;
}

footer .social_icon,
footer .menu {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    flex-wrap: wrap;
    list-style: none;
}

footer .social_icon li a {
    font-size: 2.5rem;
    color: var(--white);
    margin: 0 10px;
    display: inline-block;
    transition: 0.5s;
}

footer .social_icon li a:hover {
    transform: translateY(-10px);
}

footer .menu li a {
    font-size: 1.7rem;
    color: var(--white);
    margin: 0 10px;
    display: inline-block;
    text-decoration: none;
    opacity: 0.75;
}

footer .menu li a:hover {
    opacity: 1;
}

footer p {
    color: var(--white);
    text-align: center;
    margin-top: 13px;
    margin-bottom: 10px;
    font-size: 1.7rem;
}

footer p a {
    color: var(--white);
    text-decoration: underline;
}

footer .wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url(/IMG/wave.png);
    background-size: 1000px 100px;
}

footer .wave#wave1 {
    z-index: 1000;
    opacity: 1;
    bottom: 0;
    animation: animateWave 4s linear infinite;
}

footer .wave#wave2 {
    z-index: 999;
    opacity: 0.5;
    bottom: 10px;
    animation: animateWave_02 4s linear infinite;
}

footer .wave#wave3 {
    z-index: 1000;
    opacity: 0.2;
    bottom: 15px;
    animation: animateWave 3s linear infinite;
}

footer .wave#wave4 {
    z-index: 999;
    opacity: 0.7;
    bottom: 20px;
    animation: animateWave_02 3s linear infinite;
}

/* ===============================================
   ANIMACIONES - OPTIMIZADAS
   =============================================== */

/* Animación suave para elementos pequeños solamente */
@keyframes floatSmooth {
    0%, 100% {
        transform: translateY(0) translateZ(0);
    }
    50% {
        transform: translateY(-10px) translateZ(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes logoLoop {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes animateWave {
    0% {
        background-position-x: 1000px;
    }
    100% {
        background-position-x: 0px;
    }
}

@keyframes animateWave_02 {
    0% {
        background-position-x: 0px;
    }
    100% {
        background-position-x: 1000px;
    }
}

/* Clases de animación */
.animate {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.animate.fade-in {
    animation: fadeIn 1.2s ease-out forwards;
}

/* ===============================================
   MEDIA QUERIES - RESPONSIVE
   =============================================== */
@media (max-width: 991px) {
    .nav-toggle {
        display: block;
    }
    
    .navigation {
        position: fixed;
        top: 8rem;
        right: -100%;
        width: 80%;
        height: calc(100vh - 8rem);
        background-color: var(--white);
        flex-direction: column;
        padding: 4rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 999;
        align-items: flex-start;
    }
    
    .navigation.active {
        right: 0;
    }
    
    .navigation li {
        width: 100%;
    }
    
    .navigation li a {
        width: 100%;
        padding: 0.5rem 1rem;
        border-radius: 0.4rem;
        font-size: 1.8rem;
    }
    
    .navigation li a:hover {
        background-color: rgba(233, 67, 53, 0.05);
    }
    
    .navigation li a::after {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-block: 6rem;
        gap: 4rem;
    }
    
    .hero-text {
        padding-right: 0;
        text-align: center;
    }
    
    .cta-container {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
    
    .about-image-wrapper {
        order: 2;
        max-width: 60rem;
        margin: 0 auto;
    }
    
    .about-text {
        order: 1;
    }
    
    .about-subtitle {
        text-align: center;
    }
    
    .company-values {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .logos_wrapper {
        gap: 3rem;
    }
    
    .logo_item {
        padding: 1.2rem;
        margin: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --fs-body: clamp(1.6rem, 2.5vw, 1.7rem);
        --fs-small: clamp(1.4rem, 2vw, 1.5rem);
    }
    
    .header {
        padding-inline: 1.5rem;
    }
    
    .navbar {
        height: 7rem;
    }
    
    main {
        padding-top: 7rem;
    }
    
    .navigation {
        top: 7rem;
        width: 85%;
    }
    
    .navigation li a {
        font-size: 1.9rem;
    }
    
    .cta-container {
        width: 100%;
        max-width: 30rem;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
        font-size: 1.7rem;
    }
    
    .about-section {
        padding: 6rem 2rem;
    }
    
    .company-values {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .value-item {
        padding: 2rem 1rem;
    }
    
    .value-icon {
        width: 5rem;
        height: 5rem;
        font-size: 2.2rem;
    }
    
    .primary-btn {
        width: 80%;
    }
    
    .container-cards-products {
        padding: 7rem 2rem;
    }
    
    .card__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .card__image-container {
        height: 220px;
    }
    
    .card__title {
        font-size: 1.6rem;
    }
    
    .card__description {
        font-size: 1.2rem;
    }
    
    .partners_section {
        margin-bottom: 10rem;
        padding: 60px 0;
    }
    
    .logos_slider {
        margin-top: 2rem;
    }
    
    .overflow {
        padding: 2rem 0;
        margin-bottom: 3rem;
    }
    
    .logos_wrapper {
        gap: 5rem;
        animation: logoLoop 25s linear infinite;
    }
    
    .logo_item {
        padding: 2rem;
        margin: 0 3rem;
        background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }
    
    .logo_item img {
        height: 6rem;
        min-width: 8rem;
        max-width: 10rem;
    }
    
    footer .menu li a {
        font-size: 1.5rem;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: inline-flex;
    }
}

@media (max-width: 480px) {
    :root {
        --fs-hero: clamp(2.8rem, 6vw, 3.5rem);
        --fs-section-title: clamp(2.4rem, 5vw, 3rem);
        --fs-body: clamp(1.5rem, 3vw, 1.6rem);
        --fs-small: clamp(1.3rem, 2.5vw, 1.4rem);
    }
    
    .header, section {
        padding-inline: 1.5rem;
    }
    
    .navbar {
        height: 7rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .navigation {
        width: 100%;
        padding: 3rem 1.5rem;
    }
    
    .navigation li a {
        font-size: 1.8rem;
    }
    
    .hero-text h1 {
        font-size: clamp(2.6rem, 6vw, 3.2rem);
    }
    
    .hero-text p {
        font-size: 1.5rem;
    }
    
    .service-name {
        font-size: 1.8rem;
    }
    
    .service-desc {
        font-size: 1.5rem;
    }
    
    .about-section {
        padding: 5rem 1.5rem;
    }
    
    .section-tag {
        font-size: 1.4rem;
    }
    
    .about-description {
        font-size: 1.5rem;
    }
    
    .company-values {
        grid-template-columns: 1fr;
    }
    
    .value-icon {
        width: 4.5rem;
        height: 4.5rem;
        font-size: 2rem;
    }
    
    .value-text h4 {
        font-size: 1.8rem;
    }
    
    .value-text p {
        font-size: 1.4rem;
    }
    
    .primary-btn {
        width: 100%;
        font-size: 1.6rem;
    }
    
    .card__container {
        max-width: 480px;
        margin: 0 auto;
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .card__image-container {
        height: 200px;
    }
    
    .card__data {
        padding: 1.5rem;
        height: calc(100% - 200px);
    }
    
    .card__category {
        font-size: 1.1rem;
    }
    
    .card__title {
        font-size: 1.7rem;
    }
    
    .card__description {
        font-size: 1.3rem;
    }
    
    .card__button,
    .card__consult {
        font-size: 1.2rem;
    }
    
    .partners_section {
        padding: 50px 0;
        margin-bottom: 8rem;
    }
    
    .partners_section .section_title h2 {
        font-size: 2.4rem;
    }
    
    .logos_slider {
        margin-top: 1.5rem;
    }
    
    .overflow {
        padding: 1.5rem 0;
        margin-bottom: 2.5rem;
    }
    
    .logos_wrapper {
        gap: 6rem;
        animation: logoLoop 20s linear infinite;
    }
    
    .logo_item {
        padding: 1.5rem;
        margin: 0 4rem;
        min-width: 120px;
    }
    
    .logo_item img {
        height: 5rem;
        min-width: 7rem;
        max-width: 9rem;
    }
    
    footer {
        padding: 20px 20px;
    }
    
    footer p {
        font-size: 1.5rem;
    }
    
    footer .menu li a {
        font-size: 1.4rem;
        margin: 0 8px;
    }
}

@media (min-width: 992px) {
    .container-cards-products {
        padding: 8rem 3rem;
    }
    
    .card__container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .card__image-container {
        height: 280px;
    }
    
    .card__data {
        padding: 2rem;
        height: calc(100% - 280px);
    }
}

@media (min-width: 1024px) and (max-width: 1440px) {
    .hero-container {
        min-height: calc(100vh - 8rem);
    }
    
    .partners_section {
        margin-top: 4rem;
    }
}

/* ===============================================
   UTILIDADES
   =============================================== */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* Mejora de accesibilidad */
:focus-visible {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* Prevenir el salto de scroll cuando se abre el menú móvil */
body.menu-open {
    overflow: hidden;
}

/* Mejora de rendimiento - OPTIMIZADA */
.card__article,
.about-image {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* La imagen hero NO debe tener will-change para evitar lag */
.hero-img {
    backface-visibility: hidden;
    transform: translateZ(0);
}
