/* ===================================
   ERTCORP - Stylesheet
   Responsive, Modern & Elegant Design
   =================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - ERTCORP Brand */
    --primary-color: #002849;
    --primary-dark: #001a33;
    --primary-light: #1b3f91;
    --secondary-color: #a7732a;
    --accent-color: #cf9b46;
    --accent-light: #010101;
    --accent-lighter: #ffe59e;
    --success-color: #20ad83;
    --text-dark: #002849;
    --text-light: #5a6c7d;
    --white: #ffffff;
    --light-bg: #fafbfc;
    --border-color: #e8e8e8;

    /* Company Gradients */
    --solaudit-gradient: linear-gradient(135deg, rgba(27, 63, 145, 0.85), rgba(32, 173, 131, 0.85));
    --ert-gradient: linear-gradient(135deg, rgba(30, 169, 225, 0.85), rgba(111, 111, 110, 0.85));
    --pro-gradient: linear-gradient(135deg, rgba(67, 160, 71, 0.6), rgba(26, 35, 126, 0.6));
    --valuert-gradient: linear-gradient(135deg, rgba(230, 126, 34, 0.85), rgba(26, 35, 126, 0.85));

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Font Weights */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   Header & Navigation
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: all var(--transition-normal);
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo h1 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all var(--transition-normal);
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    transition: all var(--transition-normal);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.btn-contacto {
    background: var(--primary-color);
    color: var(--white) !important;
    border-radius: var(--radius-md);
    padding: 0.6rem 1.5rem !important;
}

.btn-contacto::after {
    display: none;
}

.btn-contacto:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown>.nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-dropdown>.nav-link i {
    font-size: 0.75rem;
    transition: transform var(--transition-normal);
}

.nav-dropdown:hover>.nav-link i,
.nav-dropdown.active>.nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 1000;
    margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.dropdown-menu a i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.dropdown-menu a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.dropdown-menu a:hover i {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* ===================================
   Hero Section - Video Background
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #002849;
}

/* Video Background - Full Coverage */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 40, 73, 0.4) 0%, rgba(0, 53, 87, 0.35) 60%, rgba(167, 115, 42, 0.3) 100%);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.08;
    mix-blend-mode: overlay;
    z-index: 2;
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    z-index: 2;
    padding: var(--spacing-md);
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.highlight {
    color: var(--accent-color);
    display: inline-block;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Animations */
.animate-fade-in {
    animation: fadeInUp 1s ease forwards;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down {
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ===================================
   Section Styles
   =================================== */

section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    margin: 0 auto var(--spacing-sm);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   About Section
   =================================== */

.about {
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-text h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.about-text p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-sm);
    background: linear-gradient(135deg, var(--light-bg), var(--white));
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    min-width: 150px;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: var(--spacing-xs);
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.about-real-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-slow);
}

.about-real-image:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.about-image-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

.about-badge {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.about-badge i {
    font-size: 2rem;
}

.about-badge span {
    line-height: 1.3;
    font-size: 0.95rem;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
}

.image-placeholder i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ===================================
   Companies Section - 3D Row Layout
   =================================== */

.companies {
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.company-row {
    padding: 0;
    position: relative;
    min-height: 500px;
    height: 500px;
}

/* Company-specific backgrounds - colores visibles y distintivos */
.company-row.solaudit-bg {
    position: relative;
}

.company-row.solaudit-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--solaudit-gradient);
    opacity: 0.8;
    z-index: 0;
}

.company-row.solaudit-bg .company-content {
    position: relative;
    z-index: 1;
}

.company-row.ert-consulting-bg {
    position: relative;
}

.company-row.ert-consulting-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ert-gradient);
    opacity: 0.8;
    z-index: 0;
}

.company-row.ert-consulting-bg .company-content {
    position: relative;
    z-index: 1;
}

.company-row.ert-training-bg {
    position: relative;
}

.company-row.ert-training-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--pro-gradient);
    opacity: 0.8;
    z-index: 0;
}

.company-row.ert-training-bg .company-content {
    position: relative;
    z-index: 1;
}

.company-row.valuert-bg {
    position: relative;
}

.company-row.valuert-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--valuert-gradient);
    opacity: 0.8;
    z-index: 0;
}

.company-row.valuert-bg .company-content {
    position: relative;
    z-index: 1;
}

.company-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    height: 100%;
    gap: 2rem;
}

.company-row.reverse .company-content {
    direction: rtl;
}

.company-row.reverse .company-text {
    direction: ltr;
}

.company-row.reverse .company-visual {
    direction: ltr;
}

/* Company Text */
.company-text {
    position: relative;
    z-index: 2;
    padding: var(--spacing-lg);
}

.company-number {
    font-family: var(--font-primary);
    font-size: 6rem;
    font-weight: 800;
    color: var(--accent-color);
    opacity: 0.2;
    line-height: 0.8;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.company-name {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.company-tagline {
    font-family: var(--font-primary);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.company-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.company-services {
    list-style: none;
    margin-bottom: var(--spacing-md);
    display: grid;
    gap: var(--spacing-xs);
}

.company-services li {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
}

.company-services i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.company-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.company-btn:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.company-btn i {
    transition: transform var(--transition-normal);
}

.company-btn:hover i {
    transform: translateX(5px);
}

/* Company Visual - Single Large 3D Image */
.company-visual {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    height: 500px;
    perspective: 1000px;
}

.company-hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 0;
    background: transparent;
    mix-blend-mode: multiply;
    filter: brightness(1.05) contrast(1.1);
    transform: translateZ(0);
    will-change: transform;
    transition: transform 0.3s ease;
}

.company-hero-image:hover {
    transform: scale(1.02);
}

@keyframes floatSmoothly {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}



@keyframes morphShape {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg);
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        transform: rotate(5deg);
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}



/* ===================================
   Services Section
   =================================== */

.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.service-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.service-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.service-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.service-item:hover .service-icon {
    transform: rotate(360deg);
}

.service-icon i {
    font-size: 3rem;
    color: var(--white);
}

.service-item h4 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xs);
}

.service-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===================================
   Contact Section
   =================================== */

.contact {
    background: linear-gradient(180deg, var(--light-bg), var(--white));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.info-item {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.info-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    color: var(--white);
    font-size: 1.3rem;
}

.info-text h4 {
    font-family: var(--font-primary);
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
}

.info-text p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-form-wrapper {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #e53935;
}

.error-message {
    color: #e53935;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: none;
}

.error-message.show {
    display: block;
}

.btn-submit {
    margin-top: var(--spacing-sm);
    position: relative;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-sm);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-primary);
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color);
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: all var(--transition-normal);
}

.footer-section a:hover {
    opacity: 1;
    padding-left: 5px;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
    transform: translateY(-3px);
    padding: 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* ===================================
   WhatsApp Floating Button
   =================================== */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--success-color);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 2rem;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    animation: pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-dark);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    white-space: nowrap;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ===================================
   Scroll to Top Button
   =================================== */

.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 998;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    /* Company Rows Responsive */
    .company-content {
        grid-template-columns: 1fr;
    }

    .company-row.reverse .company-content {
        direction: ltr;
    }

    .company-visual {
        min-height: 400px;
        order: -1;
    }

    .company-3d-icon {
        width: 250px;
        height: 250px;
    }

    .company-3d-icon i {
        font-size: 6rem;
    }

    .floating-element {
        width: 60px;
        height: 60px;
    }

    .floating-element i {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 5rem 2rem;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-normal);
        align-items: flex-start;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Dropdown mobile */
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        overflow: hidden;
        transition: all var(--transition-normal);
        background: rgba(255, 255, 255, 0.1);
    }

    .nav-dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
        padding: 0.5rem 0;
        margin-top: 0.5rem;
    }
    
    /* Fix dropdown link alignment in mobile */
    .nav-dropdown>.nav-link {
        justify-content: flex-start;
    }
    
    .nav-dropdown>.nav-link i {
        margin-left: 0.3rem;
    }

    .dropdown-menu a {
        color: var(--white);
        padding: 0.75rem 1.5rem;
        justify-content: flex-start;
        text-align: left;
    }

    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .dropdown-menu a i {
        color: var(--accent-color);
    }

    .hero {
        min-height: 90vh;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    /* Company Rows Mobile */
    .company-row {
        padding: var(--spacing-lg) 0;
    }

    .company-number {
        font-size: 4rem;
    }

    .company-services {
        grid-template-columns: 1fr;
    }

    .company-visual {
        min-height: 300px;
    }

    .company-hero-image {
        max-width: 320px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 1.8rem;
    }

    .whatsapp-tooltip {
        display: none;
    }

    .scroll-top {
        bottom: 85px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .image-placeholder i {
        font-size: 5rem;
    }
}

/* ===================================
   Company Pages Styles
   =================================== */

.company-hero {
    max-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 70px;
    overflow: hidden;
}

.company-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.25;
    mix-blend-mode: overlay;
}

.company-hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity var(--transition-normal);
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb span {
    opacity: 0.6;
}

.company-logo {
    margin: var(--spacing-md) auto var(--spacing-sm);
    max-width: 300px;
}

.hero-logo {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.hero-icon {
    width: 150px;
    height: 150px;
    margin: var(--spacing-md) auto 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: morphShape 8s ease-in-out infinite;
}

.hero-icon i {
    font-size: 4rem;
    color: var(--white);
}

.company-about {
    padding: var(--spacing-xl) 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.content-text h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.content-text .lead {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.content-text p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
    color: var(--text-light);
}

.content-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
}

.stat-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-normal);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-box h3 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-box p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.company-services {
    padding: var(--spacing-xl) 0;
    background: var(--light-bg);
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.service-detail {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.service-detail:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.service-icon-large i {
    font-size: 2rem;
    color: var(--white);
}

.service-detail h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.service-detail p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.service-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xs);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-dark);
    padding: 0.3rem 0;
}

.service-features i {
    color: var(--success-color);
}

.why-choose {
    padding: var(--spacing-xl) 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.benefit-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.benefit-item h4 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xs);
}

.benefit-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Company Pages Responsive */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .services-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .content-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-features {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Accessibility
   =================================== */

/* Focus states */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===================================
   Enhanced Hero Section Styles
   =================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 40, 73, 0.7) 0%, rgba(27, 63, 145, 0.2) 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(167, 115, 42, 0.2);
    border: 1px solid var(--accent-color);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    color: var(--accent-lighter);
    font-size: 0.875rem;
    font-weight: var(--fw-medium);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--fw-extrabold);
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-align: center;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 800px;
    line-height: 1.8;
    font-weight: var(--fw-regular);
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-stat strong {
    font-size: 2.5rem;
    font-weight: var(--fw-extrabold);
    color: var(--accent-lighter);
    line-height: 1;
}

.hero-stat span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: var(--fw-medium);
}

.hero-trust-badges {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: var(--fw-medium);
}

.trust-badge i {
    font-size: 1.25rem;
    color: var(--success-color);
}

/* ===================================
   Success Cases Section
   =================================== */

.success-cases {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
}

.section-badge {
    display: inline-block;
    background: var(--accent-lighter);
    color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.cases-grid {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
}

.case-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.case-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-category {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(0, 40, 73, 0.95);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.case-content {
    padding: 2.5rem;
}

.case-content h3 {
    font-size: 1.75rem;
    font-weight: var(--fw-bold);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.case-challenge {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--light-bg);
    border-left: 4px solid var(--accent-color);
    border-radius: var(--radius-md);
}

.case-solution {
    margin-bottom: 2rem;
}

.case-solution ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.case-solution li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.case-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: var(--radius-lg);
}

.result-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: var(--fw-extrabold);
    color: var(--accent-lighter);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--fw-medium);
}

.case-testimonial {
    border-left: 4px solid var(--success-color);
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: var(--radius-md);
    font-style: italic;
    color: var(--text-light);
    margin-top: 2rem;
}

.case-testimonial cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: var(--fw-semibold);
    color: var(--primary-color);
    font-size: 0.875rem;
}

.cases-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-xl);
    color: var(--white);
}

.cases-cta h3 {
    font-size: 2rem;
    font-weight: var(--fw-bold);
    margin-bottom: 1rem;
}

.cases-cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ===================================
   Blog Section
   =================================== */

.blog-section {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.blog-featured {
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
}

.featured-post:hover {
    transform: translateY(-5px);
}

.featured-image {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-category {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.separator {
    color: var(--border-color);
}

.featured-content h3 {
    font-size: 2rem;
    font-weight: var(--fw-bold);
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.post-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: var(--fw-medium);
    border: 1px solid var(--border-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 1.75rem;
}

.post-date {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: block;
}

.blog-content h4 {
    font-size: 1.25rem;
    font-weight: var(--fw-bold);
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.read-time {
    color: var(--text-light);
    font-size: 0.875rem;
}

.read-more {
    color: var(--secondary-color);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap var(--transition-fast);
}

.read-more:hover {
    gap: 0.75rem;
}

.blog-cta {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    padding: 3rem;
    border-radius: var(--radius-xl);
    text-align: center;
    color: var(--white);
    margin-bottom: 3rem;
}

.cta-content i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-lighter);
}

.cta-content h3 {
    font-size: 2rem;
    font-weight: var(--fw-bold);
    margin-bottom: 0.75rem;
}

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.input-group i {
    position: absolute;
    left: 1.5rem;
    color: var(--text-light);
}

.input-group input {
    flex: 1;
    border: none;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    background: transparent;
    outline: none;
}

.input-group button {
    border-radius: 50px;
    padding: 1rem 2rem;
    white-space: nowrap;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.blog-explore {
    text-align: center;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ===================================
   Responsive Design - New Sections
   =================================== */

@media (max-width: 768px) {
    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat strong {
        font-size: 2rem;
    }

    .hero-trust-badges {
        gap: 1rem;
    }

    .case-results {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .metric-value {
        font-size: 2rem;
    }

    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 250px;
    }

    .featured-content {
        padding: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .input-group {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 1rem;
    }

    .input-group i {
        position: static;
        margin-bottom: 0.5rem;
    }

    .input-group input {
        padding: 1rem;
        text-align: center;
        width: 100%;
    }

    .input-group button {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --text-light: #000000;
        --border-color: #000000;
    }
}

/* Print styles */
@media print {

    .header,
    .whatsapp-float,
    .scroll-top,
    .hero-buttons,
    .contact-form {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}

/* ===================================
   Blog Page Specific Styles
   =================================== */

.blog-hero {
    position: relative;
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.blog-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0.03) 50%, transparent 50%, transparent 80%, rgba(255, 255, 255, 0.03) 80%),
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    background-size: 100px 100px, 300px 300px, 400px 400px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

.blog-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: var(--fw-extrabold);
    margin-bottom: 1rem;
}

.blog-hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: var(--accent-lighter);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--white);
}

.blog-filters {
    padding: 1.5rem 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 900;
    transition: box-shadow var(--transition-fast);
}

.blog-filters.scrolled {
    box-shadow: var(--shadow-xl);
}

.filter-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.category-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    padding-top: 0.25rem;
}

.category-filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 0.65rem 1.25rem;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-dark);
    border-radius: 50px;
    font-weight: var(--fw-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.search-box {
    position: relative;
    min-width: 220px;
    max-width: 250px;
    flex-shrink: 0;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.blog-articles {
    padding: 4rem 0;
    background: var(--light-bg);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.article-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.article-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.article-card.featured .article-image {
    height: 100%;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.article-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.article-category.solaudit {
    background: rgba(27, 63, 145, 0.9);
    color: var(--white);
}

.article-category.ert-consulting {
    background: rgba(30, 169, 225, 0.9);
    color: var(--white);
}

.article-category.ert-training {
    background: rgba(231, 76, 60, 0.9);
    color: var(--white);
}

.article-category.valuert {
    background: rgba(142, 68, 173, 0.9);
    color: var(--white);
}

.article-content {
    padding: 2rem;
}

.article-card.featured .article-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-card.featured h2 {
    font-size: 2rem;
    font-weight: var(--fw-bold);
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: var(--fw-bold);
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.load-more-section {
    text-align: center;
    margin-top: 4rem;
}

.articles-count {
    margin-top: 1rem;
    color: var(--text-light);
}

.newsletter-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: var(--white);
}

.cta-wrapper {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 3rem;
    align-items: center;
}

.cta-icon {
    font-size: 4rem;
    color: var(--accent-lighter);
}

.cta-text h2 {
    font-size: 2rem;
    font-weight: var(--fw-bold);
    margin-bottom: 0.5rem;
}

.cta-text p {
    font-size: 1.125rem;
    opacity: 0.9;
}

.newsletter-form-inline {
    min-width: 400px;
}

.newsletter-form-inline .form-group {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    background: linear-gradient(135deg, #B8860B, #8B6914);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.newsletter-form-inline .form-group input {
    flex: 1;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background: transparent;
    outline: none;
    border-radius: 50px;
    color: white;
    font-weight: 500;
}

.newsletter-form-inline .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-form-inline .form-group button {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    flex-shrink: 0;
}

.newsletter-form-inline .form-group button i {
    margin: 0;
    font-size: 1.2rem;
}

.privacy-note {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 1024px) {
    .article-card.featured {
        grid-template-columns: 1fr;
    }

    .cta-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-icon {
        justify-self: center;
    }

    .newsletter-form-inline {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .category-filters {
        justify-content: center;
    }

    .search-box {
        min-width: 100%;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-card.featured .article-content {
        padding: 2rem;
    }

    .form-group {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 1rem;
    }

    .form-group input {
        text-align: center;
    }

    .form-group button {
        width: 100%;
    }
}

/* ===================================
   Company Pages Enhanced Styles
   =================================== */

.company-case-study {
    padding: var(--spacing-xl) 0;
}

.case-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.case-visual {
    position: relative;
}

.case-metrics-overlay {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.metric-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 200px;
}

.metric-card strong {
    font-size: 2rem;
    font-weight: var(--fw-extrabold);
    color: var(--primary-color);
}

.metric-card span {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: var(--fw-medium);
}

.case-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.case-section h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: var(--fw-bold);
}

.case-section h4 i {
    color: var(--secondary-color);
}

.solution-list {
    list-style: none;
    padding: 0;
}

.solution-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.7;
}

.solution-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: var(--fw-bold);
    font-size: 1.25rem;
}

.client-quote {
    background: var(--light-bg);
    padding: 1.5rem;
    border-left: 4px solid var(--secondary-color);
    border-radius: var(--radius-md);
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
}

.client-quote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: var(--fw-semibold);
    color: var(--primary-color);
    font-size: 0.875rem;
}

/* Team Section */
.company-team {
    padding: var(--spacing-xl) 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.member-photo {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--light-bg);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 40, 73, 0.9);
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.team-member:hover .member-social {
    transform: translateY(0);
}

.member-social a {
    color: var(--white);
    font-size: 1.25rem;
    transition: color var(--transition-fast);
}

.member-social a:hover {
    color: var(--accent-lighter);
}

.team-member h4 {
    font-size: 1.25rem;
    font-weight: var(--fw-bold);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--secondary-color);
    font-weight: var(--fw-semibold);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.member-desc {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.938rem;
}

.member-badges {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background: var(--primary-light);
    color: var(--white);
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.5px;
}

/* Certifications */
.certifications {
    padding: var(--spacing-xl) 0;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cert-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.cert-card h4 {
    font-size: 1.25rem;
    font-weight: var(--fw-bold);
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.cert-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Lead Magnet */
.lead-magnet {
    padding: var(--spacing-xl) 0;
}

.lead-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
}

.lead-form input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    outline: none;
    border-radius: 50px;
}

.lead-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    white-space: nowrap;
    cursor: pointer;
    font-weight: var(--fw-semibold);
    transition: background var(--transition-fast);
}

.lead-form button:hover {
    background: var(--primary-dark);
}

/* Responsive - Company Pages */
@media (max-width: 768px) {
    .case-content-grid {
        grid-template-columns: 1fr;
    }

    .case-metrics-overlay {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .lead-form {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 1rem;
    }

    .lead-form input {
        text-align: center;
    }

    .lead-form button {
        width: 100%;
    }
}

/* ========================================
   COMPANIES MODERN SECTION
   ======================================== */
.companies-modern {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f0f4f8 100%);
    position: relative;
    overflow: hidden;
}

.companies-modern::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 119, 182, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.companies-modern::after {
    content: '';
    position: absolute;
    bottom: -250px;
    left: -250px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(27, 63, 145, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 30px) scale(1.1);
    }
}

.companies-modern .section-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 2;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0077B6, #00A8E8);
    color: white;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 8px 25px rgba(0, 119, 182, 0.25);
    }

    50% {
        box-shadow: 0 12px 35px rgba(0, 119, 182, 0.35);
    }
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 45px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.company-card {
    background: white;
    border-radius: 24px;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    animation: none;
}

/* Company Card Image */
.company-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.company-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.company-card:hover .company-card-image img {
    transform: scale(1.1);
}

.company-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%); */
}

.company-card.animate-in {
    animation: slideInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.company-card:nth-child(1).animate-in {
    animation-delay: 0.1s;
}

.company-card:nth-child(2).animate-in {
    animation-delay: 0.2s;
}

.company-card:nth-child(3).animate-in {
    animation-delay: 0.3s;
}

.company-card:nth-child(4).animate-in {
    animation-delay: 0.4s;
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }

    60% {
        transform: translateY(-10px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #0077B6, #00A8E8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.company-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 119, 182, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.company-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2), 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 119, 182, 0.2);
}

.company-card:hover::before {
    transform: scaleX(1);
}

.company-card:hover::after {
    top: -30%;
    right: -30%;
    width: 250px;
    height: 250px;
}

/* Card specific colors */
.solaudit-card::before {
    background: linear-gradient(90deg, #1B3F91, #20AD83);
}

.solaudit-card::after {
    background: radial-gradient(circle, rgba(27, 63, 145, 0.05) 0%, transparent 70%);
}

.consulting-card::before {
    background: linear-gradient(90deg, #1EA9E1, #6F6F6E);
}

.consulting-card::after {
    background: radial-gradient(circle, rgba(30, 169, 225, 0.05) 0%, transparent 70%);
}

.training-card::before {
    background: linear-gradient(90deg, #43A047, #1A237E);
}

.training-card::after {
    background: radial-gradient(circle, rgba(67, 160, 71, 0.05) 0%, transparent 70%);
}

.valuert-card::before {
    background: linear-gradient(90deg, #E67E22, #1A237E);
}

.valuert-card::after {
    background: radial-gradient(circle, rgba(230, 126, 34, 0.05) 0%, transparent 70%);
}

.company-card-header {
    padding: 40px 35px 30px;
    position: relative;
    z-index: 1;
}

.company-icon {
    width: 75px;
    height: 75px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    background: linear-gradient(135deg, #0077B6, #00A8E8);
    box-shadow: 0 12px 30px rgba(0, 119, 182, 0.3);
    transition: all 0.4s ease;
    position: relative;
}

.company-card:hover .company-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(0, 119, 182, 0.4);
}

.company-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 20px;
    padding: 3px;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.company-card:hover .company-icon::before {
    opacity: 1;
}

.solaudit-card .company-icon {
    background: linear-gradient(135deg, #1B3F91, #20AD83);
    box-shadow: 0 12px 30px rgba(27, 63, 145, 0.3);
}

.consulting-card .company-icon {
    background: linear-gradient(135deg, #1EA9E1, #6F6F6E);
    box-shadow: 0 12px 30px rgba(30, 169, 225, 0.3);
}

.training-card .company-icon {
    background: linear-gradient(135deg, #43A047, #1A237E);
    box-shadow: 0 12px 30px rgba(67, 160, 71, 0.3);
}

.valuert-card .company-icon {
    background: linear-gradient(135deg, #E67E22, #1A237E);
    box-shadow: 0 12px 30px rgba(230, 126, 34, 0.3);
}

.company-icon i {
    font-size: 34px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.company-badge {
    display: inline-block;
    background: rgba(0, 119, 182, 0.12);
    color: #0077B6;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid rgba(0, 119, 182, 0.2);
}

.solaudit-card .company-badge {
    background: rgba(27, 63, 145, 0.12);
    color: #1B3F91;
    border-color: rgba(27, 63, 145, 0.2);
}

.consulting-card .company-badge {
    background: rgba(30, 169, 225, 0.12);
    color: #1EA9E1;
    border-color: rgba(30, 169, 225, 0.2);
}

.training-card .company-badge {
    background: rgba(67, 160, 71, 0.12);
    color: #43A047;
    border-color: rgba(67, 160, 71, 0.2);
}

.valuert-card .company-badge {
    background: rgba(230, 126, 34, 0.12);
    color: #E67E22;
    border-color: rgba(230, 126, 34, 0.2);
}

.company-card-body {
    padding: 0 35px 30px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.company-card-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1d3557;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.company-card-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.company-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.company-features li {
    padding: 12px 0;
    color: #555;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
}

.company-card:hover .company-features li {
    transform: translateX(5px);
}

.company-features li i {
    color: #0077B6;
    font-size: 12px;
    width: 24px;
    height: 24px;
    background: rgba(0, 119, 182, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 119, 182, 0.15);
}

.solaudit-card .company-features li i {
    color: #1B3F91;
    background: rgba(27, 63, 145, 0.15);
    box-shadow: 0 2px 8px rgba(27, 63, 145, 0.15);
}

.consulting-card .company-features li i {
    color: #1EA9E1;
    background: rgba(30, 169, 225, 0.15);
    box-shadow: 0 2px 8px rgba(30, 169, 225, 0.15);
}

.training-card .company-features li i {
    color: #43A047;
    background: rgba(67, 160, 71, 0.15);
    box-shadow: 0 2px 8px rgba(67, 160, 71, 0.15);
}

.valuert-card .company-features li i {
    color: #E67E22;
    background: rgba(230, 126, 34, 0.15);
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.15);
}

.company-card-footer {
    padding: 28px 35px 35px;
    border-top: 2px solid rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1;
}

.company-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #0077B6, #00A8E8);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 119, 182, 0.3);
}

.company-card-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.company-card-btn:hover::before {
    left: 100%;
}

.solaudit-card .company-card-btn {
    background: linear-gradient(135deg, #1B3F91, #20AD83);
    box-shadow: 0 8px 20px rgba(27, 63, 145, 0.3);
}

.consulting-card .company-card-btn {
    background: linear-gradient(135deg, #1EA9E1, #6F6F6E);
    box-shadow: 0 8px 20px rgba(30, 169, 225, 0.3);
}

.training-card .company-card-btn {
    background: linear-gradient(135deg, #43A047, #1A237E);
    box-shadow: 0 8px 20px rgba(67, 160, 71, 0.3);
}

.valuert-card .company-card-btn {
    background: linear-gradient(135deg, #E67E22, #1A237E);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.3);
}

.company-card-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 119, 182, 0.4);
}

.company-card-btn i {
    transition: transform 0.3s ease;
}

.company-card-btn:hover i {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .companies-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .companies-modern {
        padding: 60px 0;
    }

    .company-card-title {
        font-size: 1.5rem;
    }
}

/* ===================================
   Trusted By Section (Logos Clientes)
   =================================== */

.trusted-by {
    background: linear-gradient(180deg, var(--white), var(--light-bg));
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(167, 115, 42, 0.1), rgba(0, 40, 73, 0.1));
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border: 2px solid rgba(167, 115, 42, 0.2);
}

/* Logos Carousel - Infinite Scroll */
.logos-carousel-wrapper {
    margin-top: var(--spacing-lg);
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.logos-carousel-wrapper::before,
.logos-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logos-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--light-bg), transparent);
}

.logos-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--light-bg), transparent);
}

.logos-carousel {
    display: flex;
    gap: 4rem;
    animation: scroll-logos 30s linear infinite;
    will-change: transform;
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logos-carousel:hover {
    animation-play-state: paused;
}

.logos-carousel .logo-item {
    flex-shrink: 0;
    width: 180px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.logos-carousel .logo-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.logos-carousel .logo-item img {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: filter var(--transition-normal);
}

.logos-carousel .logo-item:hover img {
    filter: grayscale(0%) opacity(1);
}

/* Fallback for old styles */
.clients-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    align-items: center;
}

/* ===================================
   Success Stories Showcase
   =================================== */

.success-showcase {
    background: var(--white);
    padding: var(--spacing-xl) 0;
}

.success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.success-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.success-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.success-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.success-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.success-card:hover .success-image img {
    transform: scale(1.1);
}

.success-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.success-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.success-content h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.success-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.success-metrics {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    border-top: 2px solid var(--light-bg);
    border-bottom: 2px solid var(--light-bg);
}

.metric {
    flex: 1;
    text-align: center;
}

.metric strong {
    display: block;
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.metric span {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.success-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.success-link:hover {
    color: var(--accent-color);
    gap: 0.8rem;
}

.section-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* ===================================
   Why Choose Us Section
   =================================== */

.why-choose {
    background: linear-gradient(180deg, var(--light-bg), var(--white));
    padding: var(--spacing-xl) 0;
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.why-image {
    position: relative;
}

.why-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-slow);
}

.why-image:hover img {
    transform: scale(1.02);
}

.why-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.why-badge i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.why-badge strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-dark);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.why-badge span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.why-text h2 {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.why-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.why-features {
    display: grid;
    gap: var(--spacing-sm);
}

.why-feature {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--white);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.why-feature:hover {
    border-color: rgba(167, 115, 42, 0.3);
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.feature-text h4 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   Responsive Adjustments
   =================================== */

@media (max-width: 768px) {
    .logos-carousel {
        gap: 2rem;
    }

    .logos-carousel .logo-item {
        width: 140px;
        height: 70px;
    }

    .clients-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .success-grid {
        grid-template-columns: 1fr;
    }

    .why-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .why-image img {
        height: 400px;
    }

    .company-card-image {
        height: 180px;
    }

    .about-real-image {
        height: 350px;
    }
}

/* ===================================
   Animation Classes
   =================================== */

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Animation Utility Classes */
.animate-fade-up {
    animation: fadeInUp 0.8s ease-out both;
}

.animate-fade-down {
    animation: fadeInDown 0.8s ease-out both;
}

.animate-fade-left {
    animation: fadeInLeft 0.8s ease-out both;
}

.animate-fade-right {
    animation: fadeInRight 0.8s ease-out both;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Animation Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

/* Hover Effects */
.hover-lift {
    transition: all 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hover-scale {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.hover-slide-right {
    transition: transform 0.3s ease;
}

.hover-slide-right:hover {
    transform: translateX(10px);
}

.hover-rotate-icon {
    transition: transform 0.4s ease;
}

.hover-rotate-icon:hover {
    transform: rotate(360deg) scale(1.1);
}

.hover-card-elevate {
    transition: all 0.4s ease;
}

.hover-card-elevate:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(167, 115, 42, 0.2);
    border-color: rgba(167, 115, 42, 0.3);
}

.hover-badge-scale {
    transition: all 0.3s ease;
}

.hover-badge-scale:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(167, 115, 42, 0.3);
}

.hover-icon-rotate {
    transition: transform 0.3s ease;
}

.hover-icon-rotate:hover {
    transform: rotate(10deg) scale(1.1);
}

.hover-button-elevate {
    transition: all 0.4s ease;
}

.hover-button-elevate:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(167, 115, 42, 0.4);
}

/* Image Zoom Effect */
.image-container {
    overflow: hidden;
    border-radius: 20px;
}

.image-zoom {
    transition: transform 0.5s ease;
}

.image-container:hover .image-zoom {
    transform: scale(1.1);
}

/* Card Base Styles with Animations */
.animated-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
}

.animated-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(167, 115, 42, 0.2);
    border-color: rgba(167, 115, 42, 0.3);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Stats Counter Base */
.stats-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 35px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.stats-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ===================================
   RESPONSIVE DESIGN - COMPLETE OVERHAUL
   =================================== */

/* ===================================
   Large Tablets & Small Desktops (1024px - 1200px)
   =================================== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

/* ===================================
   Tablets (768px - 1024px)
   =================================== */
@media (max-width: 1024px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2.5rem;
    }
    
    .container {
        max-width: 720px;
        padding: 0 var(--spacing-md);
    }
    
    /* ========== Navigation for Tablet - Hamburger Menu ========== */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 350px;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 5rem 2rem;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-normal);
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        color: var(--white);
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Fix dropdown alignment in tablet */
    .nav-dropdown>.nav-link {
        justify-content: flex-start;
    }
    
    .nav-dropdown>.nav-link i {
        margin-left: 0.3rem;
    }
    
    .btn-contacto {
        width: 100%;
        text-align: center;
        margin-top: var(--spacing-sm);
    }
    
    /* Dropdown mobile */
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        overflow: hidden;
        transition: all var(--transition-normal);
        background: rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-md);
    }
    
    .nav-dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 400px;
        padding: 0.5rem 0;
        margin-top: 0.5rem;
    }
    
    .dropdown-menu a {
        color: var(--white);
        padding: 0.75rem 1.5rem;
    }
    
    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.15);
    }

    .dropdown-menu a i {
        color: var(--accent-color);
    }
    
    /* Typography adjustments */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.6;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Hero Section */
    .hero {
        min-height: 75vh;
    }
    
    .hero-content {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
        max-width: 100%;
    }
    
    .hero-stat {
        padding: 1rem 0.5rem;
    }
    
    .hero-stat strong {
        font-size: 2rem;
    }
    
    .hero-stat span {
        font-size: 0.85rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: var(--spacing-sm);
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-buttons .btn {
        flex: 0 1 auto;
        min-width: 200px;
    }
    
    /* Grid adjustments */
    .about-content,
    .contact-content,
    .company-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .about-image,
    .company-visual {
        order: -1;
        min-height: 350px;
    }
    
    .about-real-image {
        height: 350px;
    }
    
    /* Stats Grid */
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .stat-item {
        padding: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
    
    /* Companies Grid - Single Column */
    .companies-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .company-card {
        max-width: 100%;
    }
    
    .company-card-image {
        height: 250px;
    }
    
    .company-card-body {
        padding: var(--spacing-lg);
    }
    
    .company-card-title {
        font-size: 1.75rem;
    }
    
    .company-card-description {
        font-size: 1rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .service-card {
        padding: var(--spacing-md);
    }
    
    /* Company specific */
    .company-3d-icon {
        width: 200px;
        height: 200px;
    }
    
    .company-3d-icon i {
        font-size: 5rem;
    }
    
    .floating-element {
        width: 50px;
        height: 50px;
    }
    
    .company-services {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Success Stories - Single Column */
    .success-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .success-image {
        height: 250px;
    }
    
    .success-card {
        font-size: 1rem;
    }
    
    .success-card h3 {
        font-size: 1.5rem;
    }
    
    /* ========== Why Choose Us Section ========== */
    .why-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .why-image img {
        height: 380px;
        object-fit: cover;
        object-position: center top;
    }
    
    .why-text h2 {
        font-size: 2rem;
        line-height: 1.25;
    }
    
    .why-text p {
        font-size: 1rem;
    }
    
    .why-features {
        gap: 0.75rem;
    }
    
    .why-feature {
        padding: var(--spacing-sm);
        align-items: flex-start;
    }
    
    .feature-icon {
        width: 52px;
        height: 52px;
        flex-shrink: 0;
    }
    
    .feature-icon i {
        font-size: 1.3rem;
    }
    
    .feature-text h4 {
        font-size: 1.05rem;
    }
    
    .feature-text p {
        font-size: 0.95rem;
    }
    
    /* About Section */
    .about-image,
    .company-visual {
        min-height: 300px;
    }
    
    .about-real-image {
        height: 300px;
    }
    
    /* Trusted By */
    .logo-item {
        padding: 1rem 1.5rem;
    }
    
    .logo-item img {
        max-height: 55px;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
        padding: var(--spacing-sm) 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-section:last-child {
        border-bottom: none;
    }
    
    .footer-section ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section a:hover {
        padding-left: 0;
    }
    
    .contact-list li {
        justify-content: center;
        text-align: center;
        flex-wrap: wrap;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ===================================
   Mobile Landscape & Large Phones (600px - 768px)
   =================================== */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 2.5rem;
        --spacing-lg: 2rem;
        --spacing-md: 1.5rem;
    }
    
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* ========== Navigation ========== */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 5rem 2rem;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-normal);
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        color: var(--white);
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Fix dropdown alignment in mobile */
    .nav-dropdown>.nav-link {
        justify-content: flex-start;
    }
    
    .nav-dropdown>.nav-link i {
        margin-left: 0.3rem;
    }
    
    .btn-contacto {
        width: 100%;
        text-align: center;
        margin-top: var(--spacing-sm);
    }
    
    /* Dropdown mobile */
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        overflow: hidden;
        transition: all var(--transition-normal);
        background: rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-md);
    }
    
    .nav-dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 400px;
        padding: 0.5rem 0;
        margin-top: 0.5rem;
    }
    
    .dropdown-menu a {
        color: var(--white);
        padding: 0.75rem 1.5rem;
        justify-content: flex-start;
        text-align: left;
    }
    
    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    
    /* ========== Hero Section ========== */
    .hero {
        min-height: 70vh;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .hero-stat strong {
        font-size: 1.75rem;
    }
    
    .hero-stat span {
        font-size: 0.85rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-sm);
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* ========== Sections ========== */
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* ========== Stats ========== */
    .stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .stat-item {
        min-width: auto;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* ========== Grids ========== */
    .services-grid,
    .companies-grid,
    .company-services {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .service-card,
    .company-card {
        margin: 0;
    }
    
    /* ========== Company Pages ========== */
    .company-hero {
        min-height: 25vh;
        margin-top: 60px;
    }
    
    .company-logo {
        max-width: 200px;
    }
    
    .hero-logo {
        max-height: 80px;
    }
    
    .hero-icon {
        width: 120px;
        height: 120px;
    }
    
    .hero-icon i {
        font-size: 3rem;
    }
    
    .company-number {
        font-size: 3.5rem;
    }
    
    .company-visual {
        min-height: 300px;
    }
    
    .company-3d-icon {
        width: 180px;
        height: 180px;
    }
    
    .company-3d-icon i {
        font-size: 4rem;
    }
    
    /* ========== Footer ========== */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
        padding: var(--spacing-sm) 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-section:last-child {
        border-bottom: none;
    }
    
    .footer-section ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section a:hover {
        padding-left: 0;
    }
    
    .contact-list li {
        justify-content: center;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* ========== Floating Elements ========== */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 1.8rem;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
    
    .scroll-top {
        bottom: 85px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* ========== Forms ========== */
    .contact-form {
        padding: var(--spacing-md);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    /* ========== Breadcrumb ========== */
    .breadcrumb {
        font-size: 0.85rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* ========== Blog & Cases ========== */
    .blog-grid,
    .cases-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .blog-card,
    .case-card {
        margin: 0;
    }
    
    /* ========== Animations - Reduce motion on mobile ========== */
    .animated-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .stats-card:hover {
        transform: translateY(-5px) scale(1.02);
    }
}

/* ===================================
   Small Mobile (480px - 600px)
   =================================== */
@media (max-width: 600px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .company-hero-image {
        max-width: 280px;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
}

/* ===================================
   Extra Small Mobile (< 480px)
   =================================== */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    :root {
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
        --spacing-md: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* ========== Typography ========== */
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* ========== Logo ========== */
    .logo h1 {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    /* ========== Hero ========== */
    .hero {
        min-height: 60vh;
    }
    
    .hero-stat strong {
        font-size: 1.5rem;
    }
    
    .hero-stat span {
        font-size: 0.8rem;
    }
    
    /* ========== Stats ========== */
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-item p {
        font-size: 0.85rem;
    }
    
    /* ========== Buttons ========== */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .hero-buttons .btn {
        padding: 1rem;
    }
    
    /* ========== Company Elements ========== */
    .company-number {
        font-size: 3rem;
        margin-bottom: var(--spacing-xs);
    }
    
    .company-3d-icon {
        width: 150px;
        height: 150px;
    }
    
    .company-3d-icon i {
        font-size: 3.5rem;
    }
    
    .company-visual {
        min-height: 250px;
    }
    
    .company-hero-image {
        max-width: 240px;
    }
    
    .hero-icon {
        width: 100px;
        height: 100px;
    }
    
    .hero-icon i {
        font-size: 2.5rem;
    }
    
    /* ========== Navigation ========== */
    .nav-menu {
        width: 85%;
        max-width: 280px;
        padding: 4rem 1.5rem;
    }
    
    /* ========== Cards ========== */
    .service-card,
    .company-card,
    .blog-card,
    .case-card {
        padding: var(--spacing-md);
    }
    
    .service-icon,
    .company-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    /* ========== Images ========== */
    .about-real-image {
        height: 300px;
    }
    
    /* ========== Footer ========== */
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }
    
    .footer-logo {
        height: 35px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    /* ========== Floating Elements ========== */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
        font-size: 1.6rem;
    }
    
    .scroll-top {
        width: 35px;
        height: 35px;
        bottom: 75px;
        right: 15px;
        font-size: 1rem;
    }
    
    /* ========== Forms ========== */
    .contact-form {
        padding: var(--spacing-sm);
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    /* ========== Spacing ========== */
    section {
        padding: var(--spacing-md) 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-md);
    }
}

/* ===================================
   Landscape Orientation Fixes
   =================================== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: var(--spacing-md) 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-stats {
        display: none;
    }
    
    .company-hero {
        min-height: 20vh;
    }
    
    .nav-menu {
        padding: 3rem 1.5rem;
    }
}

/* ===================================
   High DPI / Retina Displays
   =================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-background,
    .about-real-image,
    .company-hero-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ===================================
   Print Styles (Enhanced)
   =================================== */
@media print {
    .header,
    .nav-toggle,
    .whatsapp-float,
    .scroll-top,
    .hero-background,
    video {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* ===================================
   Universal Responsive Utilities
   =================================== */

/* Responsive Images & Media */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Tables */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    
    /* Table wrapper for better mobile display */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Alternative: Stack table on mobile */
    .table-stack thead {
        display: none;
    }
    
    .table-stack tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
    }
    
    .table-stack td {
        display: flex;
        justify-content: space-between;
        padding: 0.75rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .table-stack td:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--primary-color);
    }
    
    .table-stack td:last-child {
        border-bottom: none;
    }
}

/* Responsive Embeds (Videos, Maps, etc.) */
.embed-responsive {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.embed-responsive::before {
    display: block;
    content: "";
}

.embed-responsive-16by9::before {
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.embed-responsive-4by3::before {
    padding-top: 75%; /* 4:3 Aspect Ratio */
}

.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Text Utilities for Responsive */
@media (max-width: 768px) {
    .text-mobile-center {
        text-align: center !important;
    }
    
    .text-mobile-left {
        text-align: left !important;
    }
    
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
    
    .show-mobile-only {
        display: none !important;
    }
}

/* Responsive Spacing Utilities */
@media (max-width: 768px) {
    .p-mobile-0 { padding: 0 !important; }
    .p-mobile-sm { padding: var(--spacing-sm) !important; }
    .p-mobile-md { padding: var(--spacing-md) !important; }
    
    .m-mobile-0 { margin: 0 !important; }
    .m-mobile-sm { margin: var(--spacing-sm) !important; }
    .m-mobile-md { margin: var(--spacing-md) !important; }
    
    .mt-mobile-0 { margin-top: 0 !important; }
    .mb-mobile-0 { margin-bottom: 0 !important; }
}

/* Responsive Grid Utilities */
@media (max-width: 1024px) {
    .grid-tablet-1 {
        grid-template-columns: 1fr !important;
    }
    
    .grid-tablet-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .grid-mobile-1 {
        grid-template-columns: 1fr !important;
    }
    
    .flex-mobile-column {
        flex-direction: column !important;
    }
    
    .flex-mobile-wrap {
        flex-wrap: wrap !important;
    }
}

/* Touch-specific Improvements */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets for touch devices */
    .btn,
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .hover-lift:hover,
    .hover-scale:hover,
    .hover-card-elevate:hover {
        transform: none;
    }
    
    /* Better spacing for touch */
    .nav-link {
        padding: 1rem;
    }
}

/* Accessibility - Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support (Future-proofing) */
@media (prefers-color-scheme: dark) {
    /* Placeholder for dark mode styles if needed in future */
    /* Currently maintaining light theme for brand consistency */
}

/* ===================================
   Additional Mobile Optimizations
   =================================== */

/* Improve text readability on small screens */
@media (max-width: 480px) {
    body {
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Prevent horizontal scroll */
    body, html {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Better line breaks */
    p, li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

/* Optimize images for mobile */
@media (max-width: 768px) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Button stacking on very small screens */
@media (max-width: 360px) {
    .btn-group,
    .button-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn,
    .button-group .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
}

/* Safe areas for notched devices (iPhone X, etc.) */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(var(--spacing-md), env(safe-area-inset-left));
        padding-right: max(var(--spacing-md), env(safe-area-inset-right));
    }
    
    .header {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .footer {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        padding-bottom: max(var(--spacing-md), env(safe-area-inset-bottom));
    }
}

/* PWA - Standalone Mode */
@media (display-mode: standalone) {
    .header {
        padding-top: max(1rem, env(safe-area-inset-top));
    }
}

/* ===================================
   Component-Specific Responsive Fixes
   =================================== */

/* Blog Filters Responsive */
@media (max-width: 1024px) {
    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .category-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6rem;
        overflow-x: visible;
        justify-content: flex-start;
    }
    
    .filter-btn {
        flex-shrink: 0;
        font-size: 0.85rem;
        padding: 0.55rem 1rem;
    }
    
    .search-box {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .category-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        overflow-x: visible;
        white-space: normal;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0;
        justify-content: flex-start;
    }
    
    .filter-btn {
        display: inline-flex;
        flex-shrink: 0;
        margin-right: 0;
        font-size: 0.85rem;
        padding: 0.55rem 1rem;
    }
    
    .search-box {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        margin-top: 0;
    }
}

/* Case Study Content Grid */
@media (max-width: 768px) {
    .case-content-grid,
    .content-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md);
    }
    
    .case-metric {
        text-align: center;
        padding: var(--spacing-md);
    }
    
    .case-image,
    .content-image {
        order: -1;
        margin-bottom: var(--spacing-md);
    }
}

/* Newsletter Form Responsive */
@media (max-width: 600px) {
    .newsletter-form-inline {
        flex-direction: column;
    }
    
    .newsletter-form-inline .form-group {
        width: 100%;
    }
    
    .newsletter-form-inline button {
        width: 100%;
        border-radius: var(--radius-md) !important;
    }
}

/* Testimonials Carousel */
@media (max-width: 768px) {
    .testimonial-card {
        padding: var(--spacing-md);
    }
    
    .testimonial-author img {
        width: 50px;
        height: 50px;
    }
}

/* Timeline Component (if exists) */
@media (max-width: 768px) {
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .timeline::before {
        left: 0;
    }
}

/* Card Grid Improvements */
@media (max-width: 1200px) {
    .card-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .card-grid-4,
    .card-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .card-grid-4,
    .card-grid-3,
    .card-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Modal/Dialog Responsive */
@media (max-width: 768px) {
    .modal,
    .dialog {
        width: 95%;
        max-width: 95%;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Ensure smooth scrolling is disabled on older browsers */
@supports not (scroll-behavior: smooth) {
    html {
        scroll-behavior: auto;
    }
}

/* ===================================
   Mobile Video Optimization
   =================================== */

/* Hide video background on smaller devices for better performance */
@media (max-width: 768px) {
    .hero-background {
        display: none;
    }
    
    /* Use gradient background instead on mobile */
    .hero {
        background: linear-gradient(135deg, rgba(0, 40, 73, 0.95) 0%, rgba(27, 63, 145, 0.9) 100%);
    }
}

/* Optimize video for tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-background {
        object-position: center;
        transform: scale(1.1);
    }
}

/* ===================================
   CSS Custom Properties for Mobile
   =================================== */

:root {
    /* Use CSS custom property for viewport height on mobile */
    --app-height: 100vh;
}

@media (max-width: 768px) {
    :root {
        --app-height: calc(var(--vh, 1vh) * 100);
    }
    
    .hero {
        min-height: var(--app-height);
    }
}

/* ===================================
   Accessibility Improvements for Mobile
   =================================== */

/* Increase touch target sizes */
@media (max-width: 768px) {
    a, button, input[type="submit"], input[type="button"] {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Exception for icon-only buttons */
    .icon-button {
        padding: 12px;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Remove focus outline for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* ===================================
   Final Mobile Performance Tweaks
   =================================== */

/* Disable animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-play-state: paused !important;
        transition: none !important;
    }
}

/* GPU acceleration for better mobile performance */
@media (max-width: 768px) {
    .nav-menu,
    .dropdown-menu,
    .modal,
    .animated-card,
    .company-card,
    .service-card {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
    }
}

/* Optimize font rendering on mobile */
@media (max-width: 768px) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
}

/* Prevent text selection on interactive elements (mobile) */
@media (max-width: 768px) {
    button,
    .btn,
    .nav-link,
    .filter-btn {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

/* Remove tap highlight on mobile */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Better scrolling on iOS */
@supports (-webkit-overflow-scrolling: touch) {
    .nav-menu,
    .modal,
    .overflow-scroll {
        -webkit-overflow-scrolling: touch;
    }
}

/* End of Responsive Styles */

/* ===================================
   Nosotros Page - Mobile Fixes
   =================================== */

/* Override inline styles for Nosotros page on mobile */
@media (max-width: 1024px) {
    /* Quiénes Somos - 2 column grid to 1 column */
    section > .container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    /* Service cards - repeat(2,1fr) to 1 column */
    section > .container > div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    /* Valores - 3 column grid to 2 columns */
    section > .container > div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
    
    /* Stats - 4 columns to 2 */
    section > .container > div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
    
    /* Reduce section padding */
    section[style*="padding: 80px 0"],
    section[style*="padding: 100px 0"] {
        padding: 60px 0 !important;
    }
    
    /* Fix image heights */
    section img[style*="height: 500px"] {
        height: 380px !important;
    }
    
    section img[style*="height: 250px"] {
        height: 220px !important;
    }
}

@media (max-width: 768px) {
    /* All 2-column grids to 1 column */
    section > .container > div[style*="grid-template-columns: 1fr 1fr"],
    section > .container > div[style*="grid-template-columns: 2fr 1fr"],
    section > .container > div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    /* All 3-column grids to 1 column */
    section > .container > div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* All 4-column grids to 1 column */
    section > .container > div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Reduce padding on sections */
    section[style*="padding: 80px 0"],
    section[style*="padding: 100px 0"] {
        padding: 50px 0 !important;
    }
    
    /* Fix image heights */
    section img[style*="height: 550px"],
    section img[style*="height: 500px"] {
        height: 350px !important;
    }
    
    section img[style*="height: 250px"] {
        height: 200px !important;
    }
    
    /* Adjust card padding */
    section > .container > div > div[style*="padding: 40px"] {
        padding: 25px !important;
    }
    
    section > .container > div > div[style*="padding: 35px"] {
        padding: 20px !important;
    }
    
    /* Fix absolute positioned badge on image */
    section img + div[style*="position: absolute"] {
        position: static !important;
        margin-top: 20px !important;
        display: inline-block !important;
    }
    
    /* Adjust gaps */
    section > .container > div[style*="gap: 60px"] {
        gap: 30px !important;
    }
    
    /* Fix stats cards */
    .stats-card[style*="padding: 35px 20px"] {
        padding: 25px 15px !important;
    }
    
    .stats-card h3[style*="font-size: 3.5rem"] {
        font-size: 2.5rem !important;
    }
    
    .stats-card p[style*="font-size: 1.1rem"] {
        font-size: 0.95rem !important;
    }
    
    /* Reduce icon sizes */
    div[style*="width: 70px; height: 70px"] {
        width: 55px !important;
        height: 55px !important;
    }
    
    div[style*="width: 65px; height: 65px"] {
        width: 50px !important;
        height: 50px !important;
    }
    
    div[style*="width: 50px; height: 50px"] {
        width: 45px !important;
        height: 45px !important;
    }
    
    /* Adjust font sizes in inline styles */
    h2[style*="font-size: 2.8rem"] {
        font-size: 2rem !important;
    }
    
    h2[style*="font-size: 2.5rem"] {
        font-size: 1.8rem !important;
    }
    
    h3[style*="font-size: 1.8rem"] {
        font-size: 1.4rem !important;
    }
    
    h4[style*="font-size: 2.5rem"] {
        font-size: 1.8rem !important;
    }
    
    h4[style*="font-size: 1.3rem"] {
        font-size: 1.15rem !important;
    }
    
    h4[style*="font-size: 1.2rem"] {
        font-size: 1.05rem !important;
    }
    
    /* Adjust text sizes */
    p[style*="font-size: 1.2rem"],
    p[style*="font-size: 1.15rem"],
    p[style*="font-size: 1.1rem"] {
        font-size: 1rem !important;
    }
    
    p[style*="font-size: 1.05rem"] {
        font-size: 0.95rem !important;
    }
    
    /* Fix flex containers with gaps - wrap stat cards but NOT feature items */
    div[style*="display: flex; gap: 20px"] {
        flex-wrap: wrap !important;
    }
    
    /* Keep ventaja/feature items as row (icon left + text right) - do NOT wrap */
    div[style*="display: flex; gap: 20px; align-items: start"],
    div[style*="display: flex; align-items: center; gap: 1rem"] {
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
    }
    
    /* Ensure icon stays fixed width */
    div[style*="display: flex; gap: 20px; align-items: start"] > div[style*="min-width: 50px"],
    div[style*="display: flex; gap: 20px; align-items: start"] > div[style*="width: 50px"] {
        flex-shrink: 0 !important;
    }
    
    /* Adjust margin bottoms */
    div[style*="margin-bottom: 70px"] {
        margin-bottom: 40px !important;
    }
    
    div[style*="margin-bottom: 60px"] {
        margin-bottom: 35px !important;
    }
    
    /* CTA buttons */
    section a[style*="padding: 18px 40px"] {
        padding: 14px 28px !important;
        font-size: 1rem !important;
    }
    
    /* Hero section adjustments */
    .page-hero[style*="min-height: 60vh"] {
        min-height: 50vh !important;
        padding: 40px 0 !important;
    }
    
    /* Fix ventajas/advantages list */
    section div[style*="display: flex; gap: 20px; align-items: start"] {
        gap: 15px !important;
    }
    
    /* Stats section background adjustments */
    section[style*="padding: 100px 0"][style*="background-size: cover"] {
        padding: 60px 0 !important;
    }
    
    /* Decorative circles */
    div[style*="width: 400px; height: 400px"][style*="position: absolute"],
    div[style*="width: 500px; height: 500px"][style*="position: absolute"] {
        display: none !important;
    }
}

@media (max-width: 480px) {
    /* Further reduce padding */
    section[style*="padding: 80px 0"],
    section[style*="padding: 100px 0"],
    section[style*="padding: 60px 0"] {
        padding: 40px 0 !important;
    }
    
    /* Smaller images */
    section img[style*="height: 350px"] {
        height: 280px !important;
    }
    
    section img[style*="height: 200px"] {
        height: 180px !important;
    }
    
    /* More compact cards */
    section > .container > div > div[style*="padding: 25px"] {
        padding: 20px !important;
    }
    
    section > .container > div > div[style*="padding: 20px"] {
        padding: 15px !important;
    }
    
    /* Smaller stats */
    .stats-card h3[style*="font-size: 2.5rem"] {
        font-size: 2rem !important;
    }
    
    /* Compact icon containers */
    div[style*="width: 55px; height: 55px"] {
        width: 45px !important;
        height: 45px !important;
    }
    
    div[style*="width: 50px; height: 50px"] {
        width: 40px !important;
        height: 40px !important;
    }
    
    /* Adjust icon font sizes */
    div[style*="border-radius: 50%"] i[style*="font-size: 2rem"] {
        font-size: 1.5rem !important;
    }
    
    div[style*="border-radius: 50%"] i[style*="font-size: 1.8rem"] {
        font-size: 1.4rem !important;
    }
    
    div[style*="border-radius: 50%"] i[style*="font-size: 1.3rem"] {
        font-size: 1.1rem !important;
    }
    
    /* Hero title */
    .page-hero h1[style*="font-size: clamp"] {
        font-size: 1.75rem !important;
    }
    
    /* Section titles */
    h2[style*="font-size: 2rem"] {
        font-size: 1.6rem !important;
    }
    
    h2[style*="font-size: 1.8rem"] {
        font-size: 1.5rem !important;
    }
}

/* End of Nosotros Page Mobile Fixes */

/* ===================================
   Casos de Éxito Page - Mobile Fixes
   =================================== */

/* Override inline styles for Casos de Éxito page on mobile */
@media (max-width: 1024px) {
    /* Case cards with image - 2 columns to 1 column */
    section > .container > div > div[style*="grid-template-columns: 400px 1fr"],
    section > .container > div > div[style*="grid-template-columns: 1fr 400px"] {
        grid-template-columns: 1fr !important;
    }

    /* Fix image height when stacked - prevent stretching to full card height */
    .image-container[style*="height: 100%; min-height: 400px"] {
        height: 300px !important;
        min-height: 300px !important;
    }
    
    /* Results grid - 3 columns to 2 */
    section > .container > div > div > div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 768px) {
    /* All case card grids to 1 column stacked */
    section > .container > div > div[style*="grid-template-columns: 400px 1fr"],
    section > .container > div > div[style*="grid-template-columns: 1fr 400px"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Image containers - remove fixed width, make full width */
    .image-container[style*="height: 100%; min-height: 400px"] {
        min-height: 280px !important;
        height: 280px !important;
    }
    
    /* Results metrics - 3 columns to 1 column */
    section > .container > div > div > div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    /* Adjust metrics padding and font sizes */
    div[style*="text-align: center; padding: 20px"] h4[style*="font-size: 2rem"] {
        font-size: 1.6rem !important;
    }
    
    div[style*="text-align: center; padding: 20px"] {
        padding: 15px !important;
    }
    
    /* Blockquote citations */
    blockquote {
        margin: 20px 0 !important;
        padding-left: 15px !important;
        font-size: 0.95rem !important;
    }
    
    blockquote cite {
        font-size: 0.9rem !important;
    }
    
    /* Case card padding */
    section > .container > div > div > div[style*="padding: 40px"] {
        padding: 25px !important;
    }
    
    /* Solution lists */
    ul[style*="list-style: none"] {
        padding: 0 !important;
    }
    
    ul[style*="list-style: none"] li {
        font-size: 0.9rem !important;
        flex-wrap: wrap;
    }
    
    /* Badges */
    div[style*="display: inline-block"][style*="border-radius: 20px"] {
        font-size: 0.75rem !important;
        padding: 0.35rem 0.85rem !important;
    }
    
    /* Case titles */
    h3[style*="font-size: 1.8rem"] {
        font-size: 1.4rem !important;
        margin-bottom: 15px !important;
    }
    
    /* Fix case card margin bottom */
    section > .container > div[style*="margin-bottom: 40px"] {
        margin-bottom: 25px !important;
    }
    
    /* Solution boxes */
    div[style*="background: #f8f9fa; padding: 20px"] {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }
}

@media (max-width: 600px) {
    /* Further reduce spacing */
    .image-container[style*="min-height: 280px"] {
        min-height: 220px !important;
        height: 220px !important;
    }
    
    /* Compact metrics */
    div[style*="text-align: center; padding: 15px"] h4[style*="font-size: 1.6rem"] {
        font-size: 1.4rem !important;
    }
    
    div[style*="text-align: center; padding: 15px"] p {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    /* Ultra compact for small phones */
    section > .container > div > div > div[style*="padding: 25px"] {
        padding: 20px !important;
    }
    
    .image-container[style*="min-height: 220px"] {
        min-height: 200px !important;
        height: 200px !important;
    }
    
    /* Smaller case titles */
    h3[style*="font-size: 1.4rem"] {
        font-size: 1.2rem !important;
    }
    
    /* Compact result cards */
    div[style*="text-align: center; padding: 15px"] {
        padding: 12px !important;
    }
    
    div[style*="text-align: center; padding: 15px"] h4 {
        font-size: 1.3rem !important;
        margin-bottom: 3px !important;
    }
}

/* End of Casos de Éxito Page Mobile Fixes */

/* ===================================
   Success/Error Modals
   =================================== */

.success-modal,
.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-icon {
    margin-bottom: 1.5rem;
    animation: scaleIn 0.5s ease 0.2s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0) rotate(-180deg);
    }
    to {
        transform: scale(1) rotate(0deg);
    }
}

.modal-content h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.modal-content p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0.25rem;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 40, 73, 0.3);
}

.modal-btn.retry {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.modal-btn.secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.modal-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
}

.modal-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-modal .modal-content h2 {
    color: #f44336;
}

@media (max-width: 576px) {
    .modal-content {
        padding: 2rem 1.5rem;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}