/* ===============================================
   VARIABLES Y RESET GLOBAL
   =============================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary-red: #E94335;
  --light-red: #F26559;
  --deep-red: #C4372B;
  --white: #FFFFFF;
  --light-gray: #F1F1F1;
  --medium-gray: #666666;
  --dark-gray: #2D2D2D;
  --footer-bg: #1a1a1a;
  --footer-text: #b0b0b0;
  --flexcode-blue: #3B82F6;
  
  /* Tamaños de fuente responsivos */
  --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 - SIN ANIMACIÓN para mejor rendimiento */
.shape-1, .shape-2, .shape-3, .shape-4 {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(233, 67, 53, 0.05);
    z-index: 0;
}

.shape-1 {
    width: 20rem;
    height: 20rem;
    top: 20%;
    left: -10rem;
}

.shape-2 {
    width: 15rem;
    height: 15rem;
    bottom: -5rem;
    left: 20%;
}

.shape-3 {
    width: 25rem;
    height: 25rem;
    top: -12rem;
    right: 30%;
}

.shape-4 {
    width: 18rem;
    height: 18rem;
    bottom: 10%;
    right: -5rem;
}

.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;
    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;
}

.hero-text p strong {
    color: var(--dark-gray);
    font-weight: 600;
}

.cta-container {
    display: flex;
    gap: 1.5rem;
}

.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 */
.hero-img {
    width: 100%;
    max-width: 55rem;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 2;
    content-visibility: auto;
}

.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;
}

.decoration-dot:nth-child(1) {
    width: 15px;
    height: 15px;
    top: 10%;
    left: 5%;
}

.decoration-dot:nth-child(2) {
    width: 20px;
    height: 20px;
    top: 25%;
    right: 10%;
}

.decoration-dot:nth-child(3) {
    width: 10px;
    height: 10px;
    bottom: 15%;
    left: 15%;
    background-color: var(--deep-red);
}

.decoration-dot:nth-child(4) {
    width: 12px;
    height: 12px;
    bottom: 20%;
    right: 8%;
}

.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);
}

.services-title strong {
    color: var(--primary-red);
}

.service {
    text-align: center;
    margin: 20px 0;
}

.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;
}

.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;
    content-visibility: auto;
}

.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;
    content-visibility: auto;
}

.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 - CARROUSEL CON LOGOS UNIFORMES
   =============================================== */
.clients-section {
    width: 100%;
    padding: 0;
    margin: 8rem 0;
    position: relative;
}

.clients-background {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.clients-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-red) 50%, 
        transparent 100%);
}

.clients-header {
    text-align: center;
    margin-bottom: 5rem;
}

.clients-title {
    font-size: var(--fs-section-title);
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.clients-title strong {
    color: var(--primary-red);
}

.clients-subtitle {
    font-size: 1.8rem;
    color: var(--medium-gray);
    margin-bottom: 2rem;
    font-weight: 300;
}

.clients-carousel-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.clients-carousel {
    padding: 2rem 0;
}

.client-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

/* TARJETA DE CLIENTE CON TAMAÑO FIJO */
.client-card {
    background: var(--white);
    border-radius: 1.2rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 140px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--light-red) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.client-card:hover::before {
    opacity: 0.05;
}

.client-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(233, 67, 53, 0.15);
}

/* IMÁGENES DE LOGOS - TAMAÑO UNIFORME */
.client-card img {
    width: 130px;
    height: 70px;
    object-fit: contain;
    object-position: center;
    filter: grayscale(100%) opacity(0.6);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.client-card:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.08);
}

/* Estilos para Owl Carousel de Clientes */
.clients-carousel .owl-nav {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.clients-carousel .owl-nav button {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--white) !important;
    color: var(--primary-red) !important;
    font-size: 2.5rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.clients-carousel .owl-nav button:hover {
    background: var(--primary-red) !important;
    color: var(--white) !important;
    border-color: var(--primary-red);
    transform: scale(1.1);
}

.clients-carousel .owl-dots {
    text-align: center;
    margin-top: 3rem;
}

.clients-carousel .owl-dot {
    width: 12px;
    height: 12px;
    background: var(--medium-gray) !important;
    margin: 0 6px;
    border-radius: 50%;
    outline: none;
    transition: all 0.3s ease;
}

.clients-carousel .owl-dot.active,
.clients-carousel .owl-dot:hover {
    width: 30px;
    border-radius: 10px;
    background: var(--primary-red) !important;
}

/* ===============================================
   FOOTER MODERNO PROFESIONAL - SIN ANIMACIONES
   =============================================== */
.modern-footer {
    background: linear-gradient(135deg, var(--footer-bg) 0%, #252525 100%);
    color: var(--footer-text);
    padding: 6rem 0 0;
    position: relative;
    margin-top: 8rem;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-red) 50%, 
        transparent 100%);
}

.footer-container {
    max-width: 132rem;
    margin: 0 auto;
    padding: 0 2.8rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-brand .footer-logo {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.footer-description {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--footer-text);
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 67, 53, 0.3);
}

.footer-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 4rem;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links li a {
    color: var(--footer-text);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 1.5rem;
}

.footer-links li a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--primary-red);
}

.footer-links li a:hover {
    color: var(--white);
    padding-left: 2rem;
}

.footer-links li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    font-size: 1.5rem;
    color: var(--footer-text);
}

.footer-contact li i {
    color: var(--primary-red);
    font-size: 1.8rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.footer-contact li span {
    line-height: 1.6;
}

.footer-bottom {
    padding: 3rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-copyright {
    font-size: 1.4rem;
    color: var(--footer-text);
}

.footer-copyright strong {
    color: var(--white);
}

.footer-developer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.4rem;
    color: var(--footer-text);
}

.developer-link {
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.developer-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--flexcode-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

/* LOGO FLEXCODE - EN AZUL AL HOVER */
.flexcode-logo {
    height: 3rem;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.developer-link:hover .flexcode-logo {
    filter: none !important;
    transform: scale(1.05);
}

/* ===============================================
   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);
    }
    
    /* Footer responsive */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@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;
    }
    
    /* Clientes responsive */
    .clients-background {
        padding: 6rem 0;
    }
    
    .clients-header {
        margin-bottom: 4rem;
    }
    
    .client-card {
        height: 120px;
        padding: 1.5rem;
    }
    
    .client-card img {
        width: 110px;
        height: 60px;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: inline-flex;
    }
    
    /* Footer responsive */
    .modern-footer {
        padding: 5rem 0 0;
        margin-top: 6rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-bottom: 3rem;
    }
    
    .footer-brand {
        grid-column: 1;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@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;
    }
    
    /* Clientes responsive móvil */
    .clients-background {
        padding: 5rem 0;
    }
    
    .clients-title {
        font-size: 2.4rem;
    }
    
    .clients-subtitle {
        font-size: 1.5rem;
    }
    
    .client-card {
        height: 100px;
        padding: 1.2rem;
    }
    
    .client-card img {
        width: 90px;
        height: 50px;
    }
    
    /* Footer responsive móvil */
    .modern-footer {
        padding: 4rem 0 0;
        margin-top: 5rem;
    }
    
    .footer-container {
        padding: 0 1.5rem;
    }
    
    .footer-brand .footer-logo {
        font-size: 2.4rem;
    }
    
    .footer-description {
        font-size: 1.4rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .social-link {
        width: 4rem;
        height: 4rem;
        font-size: 1.8rem;
    }
    
    .footer-title {
        font-size: 1.6rem;
    }
    
    .footer-links li a {
        font-size: 1.4rem;
    }
    
    .footer-contact li {
        font-size: 1.4rem;
    }
    
    .footer-contact li i {
        font-size: 1.6rem;
    }
    
    .footer-bottom {
        padding: 2rem 0;
    }
    
    .footer-copyright {
        font-size: 1.3rem;
    }
    
    .footer-developer {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .flexcode-logo {
        height: 2.5rem;
    }
}

@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);
    }
}

/* ===============================================
   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;
}

/* Optimización de renderizado con content-visibility */
.card__article,
.about-image,
.hero-img,
.client-card {
    content-visibility: auto;
}