/* ===== VARIABLES CSS ===== */
:root {
    /* Colors - Paleta Moderna Inspirada en Appart.agency */
    --primary-color: #E53E3E;        /* Rojo intenso estilo Appart */
    --primary-dark: #C53030;         /* Rojo más profundo */
    --primary-light: #FC8181;        /* Rojo más suave */
    --secondary-color: #000000;      /* Negro puro moderno */
    --secondary-dark: #1A1A1A;       /* Negro ligeramente más claro */
    --accent-color: #00D4AA;         /* Verde turquesa vibrante */
    --accent-secondary: #FFD700;     /* Amarillo dorado */
    --dark-color: #0F0F0F;           /* Negro profundo */
    --darker-color: #000000;         /* Negro absoluto */
    --light-color: #FAFAFA;          /* Gris muy claro */
    --gray-color: #666666;           /* Gris medio moderno */
    --gray-light: #E8E8E8;           /* Gris claro */
    --white: #FFFFFF;                /* Blanco puro */
    --text-color: #1A1A1A;           /* Texto principal */
    --text-light: #666666;           /* Texto secundario */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    --gradient-hero: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    
    /* Typography */
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    padding-top: 90px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* ===== UTILITIES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Responsive utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-none { display: none; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Responsive display utilities */
@media (max-width: 768px) {
    .d-md-none { display: none; }
    .d-md-block { display: block; }
    .text-md-center { text-align: center; }
}

@media (max-width: 575px) {
    .d-sm-none { display: none; }
    .d-sm-block { display: block; }
    .text-sm-center { text-align: center; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 16px;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(25px) saturate(200%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Ensure logo image and brand text are on one row */
.nav-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    image-rendering: crisp-edges;
    padding: 5px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 2px 10px rgba(229, 62, 62, 0.2));
}

.nav-logo:hover .logo-img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 15px rgba(229, 62, 62, 0.4));
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(229, 62, 62, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-logo:hover .logo-text {
    transform: translateY(-1px);
    text-shadow: 0 4px 8px rgba(229, 62, 62, 0.2);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: var(--transition-fast);
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition-fast);
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('../images/galeria/background.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    overflow: hidden;
}



.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--container-padding);
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
    animation: fadeInUp 1s ease-out 0.3s both;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Elementos flotantes decorativos */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    opacity: 0.7;
    animation: floatingElements 8s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.floating-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.floating-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.floating-1 {
    top: 15%;
    left: 8%;
    width: 80px;
    height: 80px;
    animation: rotatingGear 12s linear infinite;
    animation-delay: 0s;
}

.floating-1 img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(96%) saturate(6456%) hue-rotate(351deg) brightness(102%) contrast(97%);
}

.floating-2 {
    top: 55%;
    right: 12%;
    width: 60px;
    height: 60px;
    animation: machineVibration 3s ease-in-out infinite;
    animation-delay: 2s;
}

.floating-2 img {
    filter: brightness(0) saturate(100%) invert(58%) sepia(89%) saturate(2142%) hue-rotate(158deg) brightness(95%) contrast(101%);
}

.floating-3 {
    bottom: 25%;
    left: 15%;
    width: 50px;
    height: 50px;
    animation-delay: 4s;
}

.floating-3 img {
    filter: brightness(0) saturate(100%) invert(83%) sepia(69%) saturate(6515%) hue-rotate(40deg) brightness(106%) contrast(101%);
}

.floating-4 {
    top: 35%;
    right: 25%;
    width: 45px;
    height: 45px;
    animation: rotatingGear 10s linear infinite reverse;
    animation-delay: 1s;
}

.floating-4 img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(96%) saturate(6456%) hue-rotate(351deg) brightness(102%) contrast(97%);
}

.floating-5 {
    bottom: 15%;
    right: 8%;
    width: 70px;
    height: 70px;
    animation: machineVibration 2.5s ease-in-out infinite;
    animation-delay: 3s;
}

.floating-5 img {
    filter: brightness(0) saturate(100%) invert(58%) sepia(89%) saturate(2142%) hue-rotate(158deg) brightness(95%) contrast(101%);
}

/* ===== ABOUT SECTION - OPTIMIZED ===== */
.about {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    padding: var(--section-padding);
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23dee2e6" fill-opacity="0.3"><circle cx="30" cy="30" r="1.5"/></g></svg>');
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* ===== ABOUT TEXT SECTION ===== */
.about-intro {
    margin-bottom: 40px;
}

.about-intro h3 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.3;
    position: relative;
}

.about-intro h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.company-highlight {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.year-badge,
.location-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.year-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.location-badge {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-light);
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-color);
    margin-bottom: 0;
}

.about-description strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== COMPANY STATS ===== */
.company-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 40px 0;
    padding: 30px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(122, 132, 113, 0.1);
    border: 1px solid rgba(122, 132, 113, 0.1);
}

.stat-item {
    text-align: center;
    padding: 20px 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    transition: var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(122, 132, 113, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== ENHANCED FEATURES ===== */
.about-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
}

.feature {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(122, 132, 113, 0.08);
    border: 1px solid rgba(122, 132, 113, 0.1);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
    transform: scaleY(0);
    transition: var(--transition-normal);
}

.feature:hover::before {
    transform: scaleY(1);
}

.feature:hover {
    transform: translateX(8px);
    box-shadow: 0 15px 40px rgba(122, 132, 113, 0.15);
}

.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.feature-content h4 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-content p {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 6px 0;
    color: var(--gray-color);
    font-size: 0.9rem;
    position: relative;
    padding-left: 20px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== MISSION & VISION ===== */
.about-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.mission-item {
    padding: 30px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 16px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mission-item::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
}

.mission-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.mission-content h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.mission-content p {
    line-height: 1.6;
    opacity: 0.95;
}

/* ===== VISUAL SECTION ===== */
.about-visual {
    position: sticky;
    top: 100px;
}

.image-showcase {
    margin-bottom: 30px;
}

.main-image {
    position: relative;
    margin-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(122, 132, 113, 0.2);
    transition: var(--transition-slow);
}

.main-image:hover {
    transform: translateY(-8px) rotateY(5deg);
    box-shadow: 0 30px 60px rgba(122, 132, 113, 0.25);
}

.main-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.main-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px 20px 20px;
    color: white;
    transform: translateY(100%);
    transition: var(--transition-normal);
}

.main-image:hover .image-overlay {
    transform: translateY(0);
}

.image-caption h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.image-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.secondary-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.small-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 100px;
    box-shadow: 0 5px 20px rgba(122, 132, 113, 0.15);
    transition: var(--transition-normal);
}

.small-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(122, 132, 113, 0.2);
}

.small-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.small-image:hover img {
    transform: scale(1.1);
}

.small-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(122, 132, 113, 0.9));
    padding: 10px;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

/* ===== CERTIFICATIONS ===== */
.certifications {
    background: var(--white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(122, 132, 113, 0.1);
    border: 1px solid rgba(122, 132, 113, 0.1);
}

.certifications h4 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-align: center;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== TECHNICAL CAPABILITIES ===== */
.technical-capabilities {
    background: var(--white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(122, 132, 113, 0.1);
    border: 1px solid rgba(122, 132, 113, 0.1);
    margin-bottom: 25px;
}

.technical-capabilities h4 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-align: center;
    position: relative;
}

.technical-capabilities h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.capability-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.capability-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition-normal);
}

.capability-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(122, 132, 113, 0.15);
}

.capability-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.capability-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.capability-title {
    font-size: 0.9rem;
    color: var(--gray-color);
    font-weight: 500;
}

.capability-value {
    font-size: 1.1rem;
    color: var(--dark-color);
    font-weight: 600;
}

/* ===== INDUSTRY SECTORS ===== */
.industry-sectors {
    background: var(--white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(122, 132, 113, 0.1);
    border: 1px solid rgba(122, 132, 113, 0.1);
    margin-bottom: 25px;
}

.industry-sectors h4 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-align: center;
    position: relative;
}

.industry-sectors h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.sector-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(122, 132, 113, 0.05), rgba(122, 132, 113, 0.1));
    border-radius: 10px;
    border: 1px solid rgba(122, 132, 113, 0.2);
    transition: var(--transition-normal);
    font-size: 0.85rem;
    font-weight: 500;
}

.sector-badge:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(122, 132, 113, 0.2);
}

.sector-badge i {
    font-size: 1rem;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

.sector-badge:hover i {
    color: white;
}

/* ===== CLIENT HIGHLIGHT ===== */
.client-highlight {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    padding: 25px;
    border-radius: 16px;
    color: white;
    position: relative;
    overflow: hidden;
}

.client-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
}

.highlight-content {
    position: relative;
    z-index: 1;
}

.quote-icon {
    font-size: 2rem;
    opacity: 0.7;
    margin-bottom: 15px;
}

.client-highlight blockquote {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    opacity: 0.95;
}

.client-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.client-info strong {
    font-size: 1rem;
    font-weight: 600;
}

.client-info span {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===== LEGACY CERTIFICATIONS STYLES (REMOVED) ===== */
.cert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: var(--transition-normal);
}

.cert-item:hover {
    background: rgba(122, 132, 113, 0.05);
    transform: translateX(5px);
}

.cert-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.cert-item span {
    font-size: 0.9rem;
    color: var(--gray-color);
    font-weight: 500;
}

/* ===== LEGACY COMPATIBILITY ===== */
.about-text h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 24px;
    font-weight: 600;
}

.about-text > p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--text-color);
}

.about-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-frame {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(122, 132, 113, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1);
    border: 8px solid var(--white);
    background: var(--white);
    transition: var(--transition-normal);
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition-normal);
}

.image-frame::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 30px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 15px 15px 0 0;
    opacity: 0.6;
    pointer-events: none;
}

.image-frame:hover::before {
    opacity: 1;
}

.image-frame:hover {
    transform: translateY(-8px) rotateY(5deg);
    box-shadow: 
        0 30px 60px rgba(122, 132, 113, 0.25),
        0 15px 30px rgba(0, 0, 0, 0.15);
}

.image-frame img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    transition: var(--transition-slow);
}

.image-frame:hover img {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(122, 132, 113, 0.9));
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: var(--transition-normal);
}

.image-frame:hover .image-overlay {
    transform: translateY(0);
}

.image-caption h4 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.image-caption p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: var(--section-padding);
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 16px;
}

.service-card p {
    color: var(--gray-color);
    line-height: 1.6;
}

/* ===== GALLERY SECTION ===== */
.gallery {
    padding: var(--section-padding);
    background: var(--light-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1) saturate(1);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.7) saturate(1.2);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    backdrop-filter: blur(5px);
}

.gallery-overlay i {
    font-size: 2.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(0.8) translateY(20px);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1) translateY(0);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: var(--section-padding);
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 32px;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
}

.contact-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 4px;
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

.contact-form {
    background: var(--light-color);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 12px 8px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition-fast);
    background: var(--white);
    font-family: var(--font-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    top: 16px;
    left: 12px;
    font-size: 16px;
    color: var(--gray-color);
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label,
.form-group select:focus + label,
.form-group select:valid + label {
    top: 4px;
    font-size: 12px;
    color: var(--primary-color);
}

/* ===== FORM SECURITY ===== */
.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.error-message {
    display: block;
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-top: 4px;
    min-height: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.show {
    opacity: 1;
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: var(--gray-color);
    margin-top: 4px;
}

.captcha-group {
    background: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 2px solid var(--gray-light);
    margin: 20px 0;
}

.captcha-label {
    position: static !important;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 12px;
    display: block;
}

.math-captcha {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.math-captcha span {
    font-weight: 500;
    color: var(--dark-color);
}

.math-captcha input {
    width: 80px !important;
    text-align: center;
    position: static !important;
}

.submit-protection {
    margin-top: 30px;
}

.btn-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.rate-limit-message {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border-radius: var(--border-radius);
    margin-top: 10px;
    text-align: center;
    border: 1px solid #ffeaa7;
}

/* ===== BUTTON STATES ===== */
.btn-spinner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: pulse 1.5s ease-in-out infinite;
}

.btn-spinner::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
}

/* Character counter */
.char-counter {
    font-size: 0.8rem;
    color: var(--gray-color);
    text-align: right;
    margin-top: 5px;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: var(--primary-color);
    background-color: rgba(229, 62, 62, 0.05);
}

.form-group input.success,
.form-group textarea.success,
.form-group select.success {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
}

/* ===== FOOTER ===== */
.footer {
    background-image: url('../images/galeria/ejes.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section p {
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--white);
    transition: var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
}

.footer-bottom p {
    color: var(--white);
    font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes heroBackground {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    33% {
        transform: scale(1.1) rotate(2deg);
    }
    66% {
        transform: scale(0.9) rotate(-1deg);
    }
}

@keyframes floatingElements {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes rotatingGear {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(90deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
    75% {
        transform: translateY(-10px) rotate(270deg);
    }
    100% {
        transform: translateY(0px) rotate(360deg);
    }
}

@keyframes machineVibration {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-5px) translateX(2px);
    }
    50% {
        transform: translateY(-10px) translateX(0px);
    }
    75% {
        transform: translateY(-5px) translateX(-2px);
    }
}

@keyframes slideInBounce {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    60% {
        transform: translateX(20px);
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}



@keyframes wordReveal {
    0% {
        opacity: 0;
        transform: translateY(100px) rotateX(-90deg);
    }
    50% {
        opacity: 0.7;
        transform: translateY(20px) rotateX(-30deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

@keyframes letterFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(229, 62, 62, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(229, 62, 62, 0.6), 0 0 30px rgba(229, 62, 62, 0.4);
    }
}

@keyframes cursorBlink {
    0%, 50% {
        opacity: 1;
        transform: scaleY(1);
    }
    51%, 100% {
        opacity: 0.3;
        transform: scaleY(0.8);
    }
}

@keyframes rotateIn {
    0% {
        transform: rotate(-10deg) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

/* Clases de animación */
.slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.rotate-in {
    animation: rotateIn 0.8s ease-out forwards;
}

/* ===== RESPONSIVE DESIGN ===== */
/* ===== BREAKPOINTS ===== */
/* Desktop Large: 1200px and up */
/* Desktop: 992px - 1199px */
/* Tablet: 768px - 991px */
/* Mobile Large: 576px - 767px */
/* Mobile: 575px and below */

/* ===== DESKTOP LARGE (1200px+) ===== */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== TABLET & SMALL DESKTOP (768px - 1199px) ===== */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        gap: 40px;
    }
    
    .contact-content {
        gap: 40px;
    }
    
    .service-card {
        padding: 35px 25px;
    }
    
    .contact-info {
        padding: 30px;
    }
    
    /* Floating icons adjustments */
    .floating-icon {
        opacity: 0.5;
    }
}

/* ===== TABLET (768px - 991px) ===== */
@media (max-width: 991px) and (min-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 20px;
    }
    
    .hero-content {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-visual {
        position: static;
        order: -1;
    }
    
    .company-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 25px;
        margin: 30px 0;
    }
    
    .about-mission {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .secondary-images {
        grid-template-columns: 1fr 1fr;
    }
    
    .image-frame {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 40px;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 16px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(122, 132, 113, 0.1);
    }
    
    .nav-link:hover {
        background: rgba(122, 132, 113, 0.05);
    }
    
    /* Container adjustments */
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* Hero */
    .hero-content {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    /* About Section Responsive */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .about-intro h3 {
        font-size: 1.8rem;
    }
    
    .about-intro h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .about-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .company-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px;
        margin: 25px 0;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .about-features {
        gap: 20px;
        margin: 30px 0;
    }
    
    .feature {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .feature-icon {
        margin: 0 auto 15px;
    }
    
    .feature-content h4 {
        font-size: 1.2rem;
    }
    
    .feature-list {
        text-align: left;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .about-mission {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .mission-item {
        padding: 25px 20px;
    }
    
    .mission-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .mission-content h4 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .about-visual {
        position: static;
        order: -1;
    }
    
    .main-image {
        margin-bottom: 15px;
    }
    
    .main-image img {
        height: 200px;
    }
    
    .secondary-images {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .small-image {
        height: 80px;
    }
    
    .technical-capabilities,
    .industry-sectors,
    .client-highlight {
        margin-bottom: 20px;
        padding: 20px;
    }
    
    .technical-capabilities h4,
    .industry-sectors h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .capability-item {
        padding: 12px;
        gap: 12px;
    }
    
    .capability-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .capability-title {
        font-size: 0.85rem;
    }
    
    .capability-value {
        font-size: 1rem;
    }
    
    .sectors-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .sector-badge {
        padding: 10px;
        font-size: 0.8rem;
        justify-content: center;
    }
    
    .client-highlight {
        padding: 20px;
        text-align: center;
    }
    
    .quote-icon {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .client-highlight blockquote {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .client-info strong {
        font-size: 0.9rem;
    }
    
    .client-info span {
        font-size: 0.8rem;
    }

    .certifications {
        padding: 20px;
    }
    
    .certifications h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .cert-item {
        padding: 8px;
    }
    
    .cert-item span {
        font-size: 0.85rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
        text-align: center;
    }
    
    .service-icon {
        margin: 0 auto 20px;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .image-frame {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .image-frame img {
        height: 280px;
        width: 100%;
        object-fit: cover;
    }
    
    .image-frame:hover {
        transform: translateY(-4px) rotateY(0deg);
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature {
        padding: 25px 20px;
        text-align: center;
    }
    
    /* Floating icons - reduce size on mobile */
    .floating-icon {
        opacity: 0.3;
        animation-duration: 8s;
    }
    
    .floating-1 {
        width: 50px;
        height: 50px;
        top: 8%;
        left: 3%;
    }
    
    .floating-2 {
        width: 35px;
        height: 35px;
        top: 45%;
        right: 5%;
    }
    
    .floating-3 {
        width: 30px;
        height: 30px;
        bottom: 25%;
        left: 8%;
    }
    
    .floating-4 {
        width: 25px;
        height: 25px;
        top: 25%;
        right: 15%;
    }
    
    .floating-5 {
        width: 40px;
        height: 40px;
        bottom: 8%;
        right: 3%;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info {
        padding: 25px 20px;
        text-align: center;
    }
    
    .contact-item {
        text-align: left;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .contact-form {
        padding: 25px 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    /* Sections */
    :root {
        --section-padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .section-header p {
        font-size: 1rem;
    }
}

/* ===== MOBILE LARGE (576px - 767px) ===== */
@media (max-width: 767px) and (min-width: 576px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .service-card {
        padding: 25px 18px;
    }
    
    .contact-form {
        padding: 25px 18px;
    }
    
    .section-header h2 {
        font-size: 1.9rem;
    }
    
    /* About optimizations for mobile large */
    .about-intro h3 {
        font-size: 2rem;
    }
    
    .company-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 25px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
}

/* ===== MOBILE SMALL (575px and below) ===== */
@media (max-width: 575px) {
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .navbar {
        padding: 8px 0;
        height: 60px;
    }
    
    .nav-brand {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .nav-toggle {
        width: 25px;
        height: 25px;
    }
    
    .nav-toggle span {
        height: 2px;
    }
    
    /* Hero */
    .hero-content {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .hero-buttons {
        gap: 12px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        max-width: 250px;
    }
    
    /* Services */
    .service-card {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* About Section - Mobile Small */
    .about-intro h3 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .company-highlight {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .year-badge,
    .location-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .about-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .company-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
        margin: 20px 0;
    }
    
    .stat-item {
        padding: 15px 8px;
    }
    
    .stat-number {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }
    
    .stat-label {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    /* New Right Side Content - Mobile Small */
    .technical-capabilities,
    .industry-sectors,
    .client-highlight {
        margin-bottom: 15px;
        padding: 15px;
    }
    
    .technical-capabilities h4,
    .industry-sectors h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .capability-list {
        gap: 10px;
    }
    
    .capability-item {
        padding: 10px;
        gap: 10px;
        flex-direction: column;
        text-align: center;
    }
    
    .capability-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        margin: 0 auto;
    }
    
    .capability-title {
        font-size: 0.8rem;
    }
    
    .capability-value {
        font-size: 0.9rem;
    }
    
    .sectors-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .sector-badge {
        padding: 8px;
        font-size: 0.75rem;
        justify-content: center;
        gap: 8px;
    }
    
    .sector-badge i {
        font-size: 0.9rem;
    }
    
    .client-highlight {
        padding: 15px;
    }
    
    .quote-icon {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .client-highlight blockquote {
        font-size: 0.85rem;
        margin-bottom: 12px;
        line-height: 1.5;
    }
    
    .client-info strong {
        font-size: 0.85rem;
    }
    
    .client-info span {
        font-size: 0.75rem;
    }

    .about-features {
        gap: 15px;
        margin: 20px 0;
    }
    
    .feature {
        padding: 15px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .feature-content h4 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .feature-content p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 10px;
    }
    
    .feature-list li {
        font-size: 0.8rem;
        padding: 4px 0;
    }
    
    .about-mission {
        gap: 15px;
        margin-top: 20px;
    }
    
    .mission-item {
        padding: 20px 15px;
    }
    
    .mission-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .mission-content h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .mission-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .main-image img {
        height: 180px;
    }
    
    .secondary-images {
        gap: 8px;
    }
    
    .small-image {
        height: 70px;
    }
    
    .small-overlay {
        padding: 6px;
        font-size: 0.7rem;
    }
    
    .certifications {
        padding: 15px;
    }
    
    .certifications h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .cert-item {
        padding: 6px;
        gap: 8px;
    }
    
    .cert-item i {
        font-size: 1rem;
    }
    
    .cert-item span {
        font-size: 0.8rem;
    }

    /* About */
    .about-text h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .about-text p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .image-frame img {
        height: 220px;
    }
    
    /* Features */
    .feature {
        padding: 20px 15px;
    }
    
    .feature h4 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .feature p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Contact */
    .contact-info {
        padding: 20px 15px;
    }
    
    .contact-item {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .contact-item h4 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .contact-item p {
        font-size: 0.85rem;
    }
    
    .contact-form {
        padding: 20px 12px;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    /* Math captcha */
    .captcha-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .math-question {
        font-size: 0.9rem;
        text-align: center;
        margin-bottom: 8px;
    }
    
    .captcha-input {
        max-width: 120px;
        margin: 0 auto;
    }
    
    /* Error messages */
    .error-message {
        font-size: 0.8rem;
    }
    
    /* Footer */
    .footer {
        padding: 30px 0 20px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .footer-bottom {
        padding-top: 20px;
        font-size: 0.8rem;
    }
    
    /* Sections */
    :root {
        --section-padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .section-header p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Floating icons - minimal on small mobile */
    .floating-1 {
        width: 35px;
        height: 35px;
        top: 5%;
        left: 2%;
    }
    
    .floating-2 {
        width: 25px;
        height: 25px;
        top: 40%;
        right: 3%;
    }
    
    .floating-3 {
        width: 20px;
        height: 20px;
        bottom: 30%;
        left: 5%;
    }
    
    .floating-4 {
        width: 18px;
        height: 18px;
        top: 20%;
        right: 12%;
    }
    
    .floating-5 {
        width: 30px;
        height: 30px;
        bottom: 5%;
        right: 2%;
    }
}

/* ===== MOBILE EXTRA SMALL (below 400px) ===== */
@media (max-width: 399px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        max-width: 220px;
    }
    
    .service-card,
    .contact-form,
    .contact-info {
        padding: 15px 10px;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .nav-brand {
        font-size: 1.1rem;
    }
    
    /* Hide some floating icons on very small screens */
    .floating-3,
    .floating-4 {
        display: none;
    }
}

/* ===== FORM RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
    }
    
    .captcha-group {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .captcha-input {
        max-width: 150px;
        text-align: center;
    }
    
    .math-question {
        font-size: 1rem;
        text-align: center;
        padding: 10px;
        background: rgba(122, 132, 113, 0.05);
        border-radius: 6px;
    }
}

/* ===== NAVIGATION RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 768px) {
    .nav-menu {
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.95);
    }
    
    .nav-link {
        position: relative;
        transition: all 0.3s ease;
    }
    
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    
    .nav-link:hover::after {
        width: 60%;
    }
    
    .nav-toggle span {
        transition: all 0.3s ease;
    }
    
    .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, -6px);
    }
}

/* ===== TABLE RESPONSIVE ===== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 600px;
}

@media (max-width: 768px) {
    .table-responsive {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}

/* ===== RESPONSIVE IMAGES ===== */
.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* ===== RESPONSIVE VIDEOS ===== */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-responsive iframe,
.video-responsive video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== SCROLL IMPROVEMENTS FOR MOBILE ===== */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-text-size-adjust: 100%;
    }
    
    body {
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
    }
    
    /* Improved touch targets */
    .btn,
    .nav-link,
    .contact-item {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Better spacing for touch */
    .service-card,
    .feature {
        margin-bottom: 20px;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ===== LANDSCAPE MOBILE ORIENTATION ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-content {
        padding: 30px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        height: calc(100vh - 60px);
        padding-top: 20px;
    }
    
    .section {
        padding: 40px 0;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .nav-toggle,
    .floating-icon,
    .btn,
    .contact-form {
        display: none;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .hero,
    .section {
        page-break-inside: avoid;
    }
    
    .hero-title {
        color: #000 !important;
        font-size: 24pt;
    }
    
    .section-header h2 {
        color: #000 !important;
        font-size: 18pt;
    }
}
/* Efectos modernos con colores SIRVELTSA */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 20px 20px 0;
    border-color: transparent var(--primary-light) transparent transparent;
    opacity: 0;
    transition: var(--transition-normal);
}

.service-card:hover::after {
    opacity: 1;
}

/* Botón con efecto moderno */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition-slow);
}

.btn-primary:hover::before {
    left: 100%;
}

/* Líneas decorativas modernas */
.section-header::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* Efectos de hover mejorados */
.feature:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(122, 132, 113, 0.15);
    border-left: 4px solid var(--primary-color);
}

.contact-item:hover {
    transform: translateX(8px);
    border-left: 4px solid var(--primary-color);
}

/* ===== ANIMATION CLASSES FOR INTERSECTION OBSERVER ===== */
.service-card,
.feature,
.contact-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.service-card.animate-in,
.feature.animate-in,
.contact-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }

.feature:nth-child(1) { transition-delay: 0.1s; }
.feature:nth-child(2) { transition-delay: 0.2s; }

.contact-item:nth-child(1) { transition-delay: 0.1s; }
.contact-item:nth-child(2) { transition-delay: 0.2s; }
.contact-item:nth-child(3) { transition-delay: 0.3s; }

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .feature,
    .contact-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Animaciones modernas */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.about-text {
    animation: slideInFromLeft 0.8s ease-out;
}

.about-image {
    animation: slideInFromRight 0.8s ease-out;
}

/* Animación especial para el frame de imagen */
@keyframes imageFrameEntry {
    0% {
        transform: translateX(100px) rotateY(45deg);
        opacity: 0;
    }
    100% {
        transform: translateX(0) rotateY(0deg);
        opacity: 1;
    }
}

.image-frame {
    animation: imageFrameEntry 1s ease-out;
}

/* Navbar con nueva paleta */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(122, 132, 113, 0.1);
}

/* Botones secundarios mejorados */
.btn-secondary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(122, 132, 113, 0.3);
}

/* ========================================
   FORMULARIO DE CONTACTO MEJORADO
   ======================================== */

.contact-form-custom {
    max-width: 100%;
}

.form-description {
    color: var(--gray-color);
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.6;
}

/* Alertas de éxito/error */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    animation: slideDown 0.3s ease-out;
}

.alert i {
    font-size: 1.2rem;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filas del formulario */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

/* Grupos de formulario mejorados */
.contact-form-custom .form-group {
    position: relative;
    margin-bottom: 25px;
}

.contact-form-custom .form-group label {
    position: static;
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
    pointer-events: auto;
}

.contact-form-custom .form-group label i {
    color: var(--primary-color);
    margin-right: 6px;
}

.contact-form-custom .form-group input,
.contact-form-custom .form-group textarea,
.contact-form-custom .form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--white);
    font-family: var(--font-primary);
    color: var(--dark-color);
}

.contact-form-custom .form-group input:focus,
.contact-form-custom .form-group textarea:focus,
.contact-form-custom .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(122, 132, 113, 0.1);
}

.contact-form-custom .form-group input::placeholder,
.contact-form-custom .form-group textarea::placeholder {
    color: #999;
}

.contact-form-custom .form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 45px;
}

.contact-form-custom .form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

/* Checkbox personalizado */
.checkbox-group {
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--dark-color);
    gap: 10px;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 2px 0 0 0;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.checkbox-label span {
    line-height: 1.5;
    flex: 1;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.checkbox-label a:hover {
    color: var(--secondary-color);
}

/* Botón de envío mejorado */
.btn-submit {
    width: 100%;
    padding: 16px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(122, 132, 113, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.btn-submit:hover i {
    transform: translateX(3px);
}

/* Nota del formulario */
.form-note {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-top: 15px;
    text-align: center;
}

/* Estilos de validación */
.contact-form-custom .form-group input:invalid:not(:placeholder-shown),
.contact-form-custom .form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.contact-form-custom .form-group input:valid:not(:placeholder-shown),
.contact-form-custom .form-group textarea:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

/* Mensajes de error */
.contact-form-custom .form-group input.error,
.contact-form-custom .form-group textarea.error,
.contact-form-custom .form-group select.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.error-message {
    display: none;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    animation: slideDown 0.2s ease-out;
}

/* Responsive para formulario */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .contact-form-custom .form-group input,
    .contact-form-custom .form-group textarea,
    .contact-form-custom .form-group select {
        font-size: 16px; /* Evita zoom en iOS */
    }
}

@media (max-width: 480px) {
    .btn-submit {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

/* ========================================
   SECCIÓN DE CONTACTO EN FOOTER
   ======================================== */

.contact-cta-text {
    color: var(--gray-color);
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.contact-cta-buttons .btn {
    flex: 1 1 240px;
    min-width: 220px;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.95rem;
    white-space: normal; /* permitir salto de línea para textos largos */
    line-height: 1.3;
}

.contact-cta-buttons .btn i {
    margin-right: 8px;
}

.quick-contact-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.quick-contact-info p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.quick-contact-info i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
}

.quick-contact-info a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.quick-contact-info a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .contact-cta-buttons {
        flex-direction: column;
    }
    
    .contact-cta-buttons .btn {
        width: 100%;
        min-width: auto;
    }
}


/* ========================================
   OVERRIDES SOLICITADAS (padding/logo/form)
   ======================================== */
/* Agregar padding al body */
body {
    padding-top: 90px !important;
}

/* Agregar padding al logo */
.nav-logo {
    padding: 7px 0 !important;
}

.logo-img {
    width: 50px !important;
    height: 50px !important;
    padding: 5px !important;
}

.nav-container {
    padding: 0 5px !important; /* corregido de 'px 5px' */
    min-height: 60px !important;
}

/* Corregir labels del formulario de contacto */
.contact-form-custom .form-group label {
    position: static !important;
    display: block !important;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
    top: auto !important;
    left: auto !important;
    pointer-events: auto !important;
    transform: none !important;
}

.contact-form-custom .form-group input,
.contact-form-custom .form-group textarea,
.contact-form-custom .form-group select {
    width: 100%;
    padding: 14px 16px !important;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
}

/* Asegurar que los placeholders no se solapen */
.contact-form-custom .form-group input::placeholder,
.contact-form-custom .form-group textarea::placeholder {
    color: #999;
    opacity: 1;
}

