/* ============================================
   CONACERO - Estilos Principales
   Moderno, Limpio y Profesional
   ============================================ */

/* Variables CSS */
:root {
    /* Colores principales */
    --primary: #1a365d;
    --primary-dark: #0f2744;
    --primary-light: #2c5282;
    --accent: #F70D1A;
    --accent-dark: #d60b17;
    --accent-light: #ff4d4d;
    --mobile-red: #F70D1A;

    /* Colores base */
    --white: #ffffff;
    --text-color: #1f2937;

    /* Colores neutros */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* TipografÃ­a */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Montserrat', var(--font-primary);

    /* TamaÃ±os de fuente */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Espaciado */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Bordes */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Transiciones */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-tooltip: 400;
}

/* Reset y base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* TipografÃ­a */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--space-4);
    color: var(--text-color);
}

/* Utilidades de texto */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-white {
    color: var(--white);
}

.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

.text-gray {
    color: var(--gray-500);
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.text-sm {
    font-size: var(--text-sm);
}

.text-lg {
    font-size: var(--text-lg);
}

.text-xl {
    font-size: var(--text-xl);
}

/* Contenedor */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-narrow {
    max-width: 960px;
}

/* Secciones */
.section {
    padding: var(--space-24) 0;
}

.section-sm {
    padding: var(--space-16) 0;
}

.section-lg {
    padding: var(--space-24) 0;
}

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

.section-gray {
    background-color: var(--gray-50);
}

/* Header */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1240px;
    z-index: var(--z-sticky);
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-lg);
    top: 10px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

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

.logo-img {
    max-height: 60px;
    width: auto;
    height: auto;
    padding: var(--space-1) 0;
    transition: max-height var(--transition-base), transform var(--transition-base);
    display: block;
}

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

/* Logo responsive - mÃ³vil */
@media (max-width: 768px) {
    .header {
        top: 5px;
    }

    .header.scrolled {
        top: 5px;
    }

    .logo-img {
        max-height: 45px;
    }
}

/* NavegaciÃ³n */
.nav {
    display: flex;
    align-items: center;
}

.nav-mobile-body {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.nav-link {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-700);
    text-transform: none;
    letter-spacing: 0;
    position: relative;
    padding: var(--space-3) var(--space-5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    border-radius: var(--radius-lg);
}

.nav-link i {
    display: block;
    font-size: var(--text-lg);
    color: var(--gray-500);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--mobile-red);
    background-color: var(--gray-50);
}

.nav-link:hover i {
    color: var(--mobile-red);
}

.nav-link.active {
    background-color: #f1f5f9;
    color: var(--mobile-red);
}

.nav-link.active i {
    color: var(--mobile-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: #8ac054;
    border-radius: var(--radius-full);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link.active::after {
    width: 25px;
}

/* Ocultar elementos mÃ³viles por defecto */
.nav-mobile-header,
.nav-mobile-footer {
    display: none;
}

.nav-overlay {
    display: none;
}

/* BotÃ³n mÃ³vil */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(247, 13, 26, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 13, 26, 0.5);
}

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

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

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

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

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

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

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.4;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 39, 68, 0.85) 0%, rgba(15, 39, 68, 0.7) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: var(--space-8);
}

.hero-subtitle {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: var(--space-4);
}

.hero-title {
    font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
    color: var(--white);
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

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

.hero-description {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Stats bar */
.stats-bar {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    padding: var(--space-8) 0;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    text-align: center;
}

.stat-item {
    color: var(--white);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Section header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-16);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: var(--space-4);
}

.section-label::before,
.section-label::after {
    content: '';
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.section-title {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
    margin-bottom: var(--space-4);
}

.section-description {
    font-size: var(--text-lg);
    color: var(--gray-500);
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

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

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

.card-content {
    padding: var(--space-6);
}

.card-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.card-text {
    color: var(--gray-500);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent);
    margin-top: var(--space-4);
    transition: gap var(--transition-fast);
}

.card-link:hover {
    gap: var(--space-3);
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.service-card {
    background-color: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    color: var(--white);
    font-size: var(--text-3xl);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 20px rgba(247, 13, 26, 0.2);
}

.service-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.service-text {
    color: var(--gray-500);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* About section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.about-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-badge-number {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: 800;
    line-height: 1;
}

.about-badge-text {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content {
    padding-right: var(--space-8);
}

.about-list {
    margin-top: var(--space-6);
}

.about-list-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    font-weight: 500;
}

.about-list-item i {
    color: var(--accent);
    font-size: var(--text-lg);
}

/* Projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.project-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.project-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

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

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-6);
    background: linear-gradient(to top, rgba(15, 39, 68, 0.95) 0%, transparent 100%);
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-base);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

.project-title {
    font-size: var(--text-xl);
    color: var(--white);
    margin-bottom: var(--space-2);
}

.project-location {
    font-size: var(--text-sm);
    color: var(--white);
    margin-bottom: var(--space-3);
}

.project-meta {
    display: flex;
    gap: var(--space-4);
    font-size: var(--text-xs);
    color: var(--white);
}

.project-overlay p {
    color: var(--white) !important;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* Filter buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-10);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-600);
    background-color: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

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

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: var(--space-20) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(247, 13, 26, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-10);
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    color: var(--white);
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.cta-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-lg);
}

.cta-buttons {
    display: flex;
    justify-content: flex-end;
}

/* Values grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

.value-card {
    text-align: center;
    padding: var(--space-8);
    background-color: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
    color: var(--white);
    font-size: var(--text-2xl);
}

.value-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
}

.value-text {
    font-size: var(--text-sm);
    color: var(--gray-500);
    line-height: 1.7;
}

/* Team grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

.team-card {
    text-align: center;
}

.team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto var(--space-5);
    border: 4px solid var(--white);
    box-shadow: var(--shadow-lg);
}

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

.team-name {
    font-size: var(--text-lg);
    margin-bottom: var(--space-1);
}

.team-role {
    font-size: var(--text-sm);
    color: var(--accent);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.team-bio {
    font-size: var(--text-sm);
    color: var(--gray-500);
    line-height: 1.6;
}

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-16);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.contact-card {
    background-color: var(--white);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    color: var(--white);
    font-size: var(--text-xl);
}

.contact-card-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.contact-card-text {
    font-size: var(--text-sm);
    color: var(--gray-500);
    line-height: 1.6;
}

/* Formulario */
.form-container {
    background-color: var(--white);
    padding: var(--space-10);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.form-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-6);
    text-align: center;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
}

.form-group {
    margin-bottom: var(--space-5);
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

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

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    background-color: var(--white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(247, 13, 26, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.checkbox-item label {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: var(--space-20) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-lg);
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 800;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: var(--space-5);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

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

.footer-social-link:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.footer-title {
    font-size: var(--text-lg);
    color: var(--white);
    margin-bottom: var(--space-5);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent);
    padding-left: var(--space-2);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item i {
    color: var(--accent);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-copyright {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
}

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

/* Page header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: calc(80px + var(--space-20)) 0 var(--space-16);
    text-align: center;
    color: var(--white);
}

.page-title {
    color: var(--white);
    font-size: var(--text-5xl);
    margin-bottom: var(--space-4);
}

.page-breadcrumb {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
}

.page-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
}

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

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

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

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

@keyframes pulse {

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

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

@keyframes float {

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

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {

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

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

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

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

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

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

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

    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 300px;
        height: 100vh;
        height: 100dvh; /* Modern browsers support dynamic viewport height */
        background-color: var(--white);
        z-index: calc(var(--z-sticky) + 2);
        display: flex;
        flex-direction: column;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none !important;
        border-radius: 0 !important;
        overflow-y: auto;
        overscroll-behavior: contain; /* Prevents scroll chaining */
    }

    .nav.active {
        right: 0;
    }

    /* Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: transparent;
        z-index: calc(var(--z-sticky) + 1);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Header */
    .nav-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: var(--space-8) var(--space-6);
        background-color: var(--white);
        width: 100%;
    }

    .nav-mobile-title {
        font-family: var(--font-heading);
        font-size: var(--text-2xl);
        font-weight: 800;
        color: var(--mobile-red);
        text-transform: uppercase;
        letter-spacing: 1px;
        flex-shrink: 0;
    }

    .nav-close-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: var(--gray-100);
        color: var(--gray-600);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: var(--text-lg);
        transition: all 0.2s ease;
        margin-left: auto;
    }

    .nav-close-btn:hover {
        background-color: var(--gray-200);
        color: var(--gray-800);
    }

    /* Mobile Body */
    .nav-mobile-body {
        padding: var(--space-4) var(--space-4);
        display: flex;
        flex-direction: column;
        gap: var(--space-3);
    }

    .nav-link {
        display: flex;
        align-items: center;
        gap: var(--space-4);
        padding: var(--space-4) var(--space-6);
        font-size: var(--text-base);
        font-weight: 600;
        color: var(--gray-700);
        text-transform: none;
        letter-spacing: 0;
        border-radius: var(--radius-lg);
        background-color: var(--gray-50);
        border: 1px solid transparent;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-link i {
        display: block;
        width: 24px;
        font-size: var(--text-lg);
        color: var(--mobile-red);
        transition: all 0.3s ease;
        text-align: center;
    }

    .nav-link:hover {
        background-color: var(--gray-100);
        color: var(--gray-900);
        transform: translateX(5px);
    }

    .nav-link.active {
        background: linear-gradient(135deg, var(--mobile-red) 0%, #d60b17 100%);
        color: var(--white);
        box-shadow: 0 8px 20px rgba(247, 13, 26, 0.3);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .nav-link.active i {
        color: var(--white);
    }

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

    /* Mobile Footer */
    .nav-mobile-footer {
        display: flex;
        flex-direction: column;
        margin-top: 1.5rem;
        padding: 0 1.5rem 1.5rem;
        border-top: 1px solid var(--gray-100);
        gap: var(--space-4);
    }

    .nav-mobile-contact {
        display: flex;
        flex-direction: column;
        gap: var(--space-3);
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .nav-mobile-contact a {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        font-size: var(--text-sm);
        color: var(--gray-500);
        font-weight: 500;
    }

    .nav-mobile-contact a i {
        color: var(--accent);
        font-size: var(--text-base);
    }

    .nav-mobile-social {
        display: flex;
        gap: var(--space-4);
    }

    .nav-mobile-social a {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background-color: var(--mobile-red);
        color: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: var(--text-base);
        box-shadow: 0 4px 10px rgba(247, 13, 26, 0.2);
        transition: all 0.3s ease;
    }

    .nav-mobile-social a:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(247, 13, 26, 0.3);
    }

    .nav-mobile-header {
        display: flex;
    }

    .nav-overlay {
        display: block;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .services-grid,
    .projects-grid,
    .stats-grid,
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

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

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

    .form-group.full-width {
        grid-column: span 1;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .filter-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3);
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .filter-btn {
        width: 100%;
        max-width: none;
        padding: var(--space-3) var(--space-2);
    }

    .about-badge {
        position: absolute;
        bottom: 0;
        right: 0;
        transform: translate(15%, 40%);
        margin-top: 0;
        padding: var(--space-4);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-xl);
    }

    .about-badge-number {
        font-size: var(--text-4xl);
    }

    .section {
        padding: var(--space-16) 0;
    }

    .page-title {
        font-size: var(--text-3xl);
    }
}

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

    .logo-text {
        font-size: var(--text-lg);
    }

    .hero-title {
        font-size: var(--text-3xl);
    }

    .stat-number {
        font-size: var(--text-4xl);
    }

    .section-title {
        font-size: var(--text-2xl);
    }
}

/* Utilidades adicionales */
.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

.body-fixed {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

/* Ocultar botÃ³n volver arriba cuando el menÃº estÃ¡ abierto */
.body-fixed .back-to-top {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: var(--space-4) var(--space-6);
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-modal);
    animation: slideInRight 0.3s ease;
}

.toast.success {
    background-color: #10b981;
}

.toast.error {
    background-color: #ef4444;
}
 / *   O c u l t a r   e l   h e a d e r   f l o t a n t e   c u a n d o   e l   m e n ú   e s t á   a b i e r t o   p a r a   e v i t a r   s o m b r a s   f a n t a s m a l e s   * / 
 b o d y . b o d y - f i x e d   . h e a d e r   { 
         o p a c i t y :   0   ! i m p o r t a n t ; 
         v i s i b i l i t y :   h i d d e n   ! i m p o r t a n t ; 
         p o i n t e r - e v e n t s :   n o n e   ! i m p o r t a n t ; 
         t r a n s i t i o n :   o p a c i t y   0 . 3 s   e a s e ; 
 }  
 