/* ===== VARIABLES CSS ===== */
:root {
    /* Colores principales */
    --primary-color: #2C3E50;      /* Gris antracita */
    --secondary-color: #34495E;    /* Azul industrial */
    --accent-color: #2E8B8B;       /* Color del logo - turquesa */
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --background-light: #ECF0F1;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    
    /* Tipografía */
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    
    /* Espaciado */
    --max-width: 1200px;
    --section-padding: 5rem 0;
    --container-padding: 0 2rem;
    
    /* Transiciones (preparado para animaciones) */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 1rem = 10px */
}

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

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ===== COMPONENTES REUTILIZABLES ===== */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-0.2rem);
    box-shadow: 0 0.5rem 1rem var(--shadow);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-0.2rem);
    box-shadow: 0 0.5rem 1rem var(--shadow);
}

.btn-full {
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-family: var(--font-primary);
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

/* ===== NAVEGACIÓN ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 0.2rem 1rem var(--shadow);
    z-index: 1000;
    transition: all var(--transition-fast);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 4rem;
    width: auto;
    transition: transform var(--transition-fast);
}

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

/* ===== HERO LOGO GRANDE ===== */
.hero-logo-large {
    margin-bottom: 3rem;
    text-align: left;
}

.hero-logo-img {
    width: 30rem;
    height: auto;
    opacity: 0;
    animation: logoFadeIn 2s ease forwards 0.5s;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-2rem) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-link {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 2.5rem;
    height: 0.3rem;
    background-color: var(--primary-color);
    margin: 0.3rem 0;
    transition: var(--transition-fast);
}

/* ===== SECCIÓN HERO REDISEÑADA ===== */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    /* Fondo que cubre toda la pantalla */
    background: 
        /* Blueprint grid aplicado a toda la pantalla */
        linear-gradient(rgba(52, 73, 94, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 73, 94, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(46, 139, 139, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 139, 139, 0.03) 1px, transparent 1px),
        /* Gradientes de fondo */
        linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%),
        radial-gradient(ellipse at top left, rgba(46, 139, 139, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse at bottom right, rgba(52, 73, 94, 0.1) 0%, transparent 70%);
    background-size: 
        60px 60px,
        60px 60px,
        12px 12px,
        12px 12px,
        100% 100%,
        100% 100%,
        100% 100%;
    animation: heroBlueprint 25s linear infinite;
    backdrop-filter: blur(0.5px);
}

/* Contenedor interno para centrar el contenido */
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 8rem 2rem 5rem;
    min-height: 100vh;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: 
        linear-gradient(135deg, rgba(44, 62, 80, 0.02) 0%, rgba(52, 73, 94, 0.02) 100%),
        radial-gradient(circle at 20% 80%, rgba(46, 139, 139, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(52, 73, 94, 0.03) 0%, transparent 50%);
}

/* ===== ANIMACIÓN DEL BLUEPRINT HERO ===== */
@keyframes heroBlueprint {
    0% {
        background-position: 
            0 0, 0 0, 0 0, 0 0,
            0 0, 0 0, 0 0;
    }
    100% {
        background-position: 
            60px 60px, 60px 60px, 12px 12px, 12px 12px,
            0 0, 0 0, 0 0;
    }
}

/* ===== GRID DE PLANOS ARQUITECTÓNICOS SIMPLIFICADO ===== */
.blueprint-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    /* Ahora solo agrega detalles adicionales sutiles */
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(46, 139, 139, 0.02) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(52, 73, 94, 0.02) 1px, transparent 1px);
    background-size: 
        120px 120px,
        80px 80px;
    animation: blueprintMove 30s linear infinite;
    opacity: 0.7;
}

@keyframes blueprintMove {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 120px 120px, 80px 80px;
    }
}

/* ===== HAZ DE LUZ MÓVIL ===== */
.light-beam {
    position: absolute;
    top: 0;
    left: -200px;
    width: 150px;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(46, 139, 139, 0.1) 20%,
        rgba(46, 139, 139, 0.2) 50%,
        rgba(46, 139, 139, 0.1) 80%,
        transparent 100%
    );
    transform: skewX(-15deg);
    animation: lightBeamMove 12s ease-in-out infinite;
    pointer-events: none;
}

@keyframes lightBeamMove {
    0% {
        left: -200px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: calc(100% + 200px);
        opacity: 0;
    }
}

/* ===== PARTÍCULAS FLOTANTES ===== */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--accent-color);
    border-radius: 50%;
    animation: particleFloat 8s ease-in-out infinite;
}

.particle-1 {
    width: 3px;
    height: 3px;
    top: 20%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 8s;
    opacity: 0.4;
}

.particle-2 {
    width: 4px;
    height: 4px;
    top: 60%;
    left: 15%;
    animation-delay: 1s;
    animation-duration: 9s;
    background: var(--secondary-color);
    opacity: 0.3;
}

.particle-3 {
    width: 4px;
    height: 4px;
    top: 30%;
    right: 25%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.particle-4 {
    width: 6px;
    height: 6px;
    top: 80%;
    right: 15%;
    animation-delay: 3s;
    animation-duration: 10s;
    background: var(--secondary-color);
}

.particle-5 {
    width: 3px;
    height: 3px;
    top: 45%;
    right: 35%;
    animation-delay: 4s;
    animation-duration: 6s;
}

.particle-6 {
    width: 5px;
    height: 5px;
    top: 15%;
    right: 10%;
    animation-delay: 5s;
    animation-duration: 8s;
    background: var(--secondary-color);
}

.particle-7 {
    width: 4px;
    height: 4px;
    top: 70%;
    right: 30%;
    animation-delay: 6s;
    animation-duration: 9s;
}

.particle-8 {
    width: 3px;
    height: 3px;
    top: 25%;
    right: 5%;
    animation-delay: 7s;
    animation-duration: 7s;
    background: var(--secondary-color);
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(-100px) translateX(50px) scale(1.2);
        opacity: 1;
    }
    90% {
        opacity: 0.6;
    }
}

/* ===== ONDAS DE ENERGÍA ===== */
.energy-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.wave {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    animation: waveExpand 6s ease-out infinite;
}

.wave-1 {
    width: 80px;
    height: 80px;
    top: 30%;
    left: 8%;
    animation-delay: 0s;
    opacity: 0.4;
}

.wave-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 20%;
    animation-delay: 2s;
    border-color: var(--secondary-color);
}

.wave-3 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes waveExpand {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    70% {
        opacity: 0.4;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* ===== SVG DINÁMICO MEJORADO ===== */
.dynamic-construction {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    opacity: 0.15;
    pointer-events: none;
}

.construction-svg {
    width: 100%;
    height: 100%;
}

/* Animaciones para elementos arquitectónicos */
.main-tower {
    transform-origin: bottom;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
}

.crane-group {
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.2));
}

.crane-mast {
    stroke-linecap: round;
}

.crane-arm {
    stroke-linecap: round;
}

.measurement-lines text {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* ===== FORMAS GEOMÉTRICAS ANIMADAS ===== */
.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    opacity: 0.1;
    animation: floatShape 6s ease-in-out infinite;
}

.shape-1 {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 12rem;
    height: 12rem;
    background: transparent;
    border: 0.3rem solid var(--accent-color);
    opacity: 0.2;
    top: 60%;
    right: 20%;
    animation-delay: 1s;
}

.shape-3 {
    width: 6rem;
    height: 6rem;
    background: var(--secondary-color);
    opacity: 0.15;
    top: 80%;
    left: 15%;
    transform: rotate(45deg);
    animation-delay: 2s;
}

.shape-4 {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, var(--accent-color));
    opacity: 0.1;
    top: 20%;
    right: 15%;
    animation-delay: 3s;
}

.shape-5 {
    width: 15rem;
    height: 0.5rem;
    background: var(--accent-color);
    opacity: 0.2;
    top: 40%;
    left: 5%;
    animation-delay: 4s;
}

.shape-6 {
    width: 4rem;
    height: 4rem;
    background: var(--secondary-color);
    opacity: 0.15;
    top: 30%;
    right: 40%;
    border-radius: 50%;
    animation-delay: 5s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-2rem) rotate(120deg);
    }
    66% {
        transform: translateY(1rem) rotate(240deg);
    }
}

/* Estilos antiguos eliminados - reemplazados por .dynamic-construction */

/* ===== CONTENIDO DEL HERO ===== */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    animation: heroContentFadeIn 1.5s ease forwards;
    
    /* Contenedor glassmorphism */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2.5rem;
    padding: 4rem 3rem;
    box-shadow: 
        0 2rem 6rem rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@keyframes heroContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(3rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.title-line-1 {
    display: block;
    font-size: 4.2rem;
    opacity: 0;
    animation: titleSlideIn 1s ease forwards 1s;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    color: var(--primary-color);
}

.title-line-2 {
    display: block;
    font-size: 5.5rem;
    opacity: 0;
    animation: titleSlideIn 1s ease forwards 1.3s;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    color: var(--primary-color);
}

.highlight-word {
    color: var(--accent-color);
    position: relative;
}

.highlight-word::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 0.4rem;
    background: var(--accent-color);
    opacity: 0.3;
    animation: highlightGrow 1s ease forwards 2s;
    transform: scaleX(0);
    transform-origin: left;
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-3rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes highlightGrow {
    to {
        transform: scaleX(1);
    }
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 4rem;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.6s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

/* ===== ESTADÍSTICAS DEL HERO ===== */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.9s;
}

.hero-stat {
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    box-shadow: 
        0 1rem 3rem rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all var(--transition-fast);
}

.hero-stat:hover {
    transform: translateY(-0.5rem) scale(1.02);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 
        0 2rem 4rem rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero-stat .stat-number {
    display: block;
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.hero-stat .stat-text {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 2.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== VISUALIZACIÓN DERECHA ===== */
.hero-visualization {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroVisualizationFadeIn 2s ease forwards 0.5s;
}

.construction-showcase {
    position: relative;
    width: 100%;
    height: 60rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 
        0 2rem 6rem rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.showcase-construction-svg {
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

/* Estilos para elementos específicos del showcase */
.showcase-main-tower {
    filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.15));
    transform-origin: bottom;
}

.showcase-crane-group {
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

.showcase-crane-mast,
.showcase-crane-arm {
    stroke-linecap: round;
}

.showcase-measurement-lines text {
    font-family: 'Courier New', monospace;
}

.progress-indicators text {
    font-family: var(--font-primary);
}

@keyframes heroVisualizationFadeIn {
    from {
        opacity: 0;
        transform: translateX(3rem) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* ===== SECCIÓN SERVICIOS ===== */
.services {
    padding: var(--section-padding);
    background-color: var(--background-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
}

.service-card {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 0.5rem 2rem var(--shadow);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 3rem var(--shadow);
}

.service-icon {
    display: inline-block;
    width: 8rem;
    height: 8rem;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

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

.service-title {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

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

/* ===== SECCIÓN PROYECTOS ===== */
.projects {
    padding: var(--section-padding);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    align-items: start;
}

.project-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
    transition: all var(--transition-fast);
    background: var(--white);
    height: 450px;
}

.project-card:hover {
    transform: translateY(-1rem) scale(1.02);
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.25);
}

.project-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-medium);
    display: block;
}

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

.project-content {
    padding: 2.5rem 2rem;
    background: var(--white);
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.project-category {
    font-size: 1.4rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    position: relative;
}

.project-category::before {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 0.3rem;
    background: var(--accent-color);
    border-radius: 0.15rem;
}

/* Variaciones de altura para diversidad visual */
.project-card.tall {
    height: 520px;
}

.project-card.tall .project-image {
    height: 370px;
}

.project-card.short {
    height: 380px;
}

.project-card.short .project-image {
    height: 230px;
}

/* ===== SECCIÓN SOBRE NOSOTROS ===== */
.about {
    padding: var(--section-padding);
    background-color: var(--background-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
}

.about-description {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.7;
}

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

.stat {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem var(--shadow);
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.4rem;
    color: var(--text-light);
}

.about-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 2rem 4rem var(--shadow);
}

/* ===== SECCIÓN CONTACTO ===== */
.contact {
    padding: var(--section-padding);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-icon {
    width: 6rem;
    height: 6rem;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.contact-details h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-light);
}

.contact-form {
    background-color: var(--background-light);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 2rem var(--shadow);
}

.form-group {
    margin-bottom: 2rem;
}

.form-input {
    width: 100%;
    padding: 1.2rem 1.6rem;
    font-size: 1.4rem;
    border: 0.2rem solid transparent;
    border-radius: 0.5rem;
    background-color: var(--white);
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-input::placeholder {
    color: var(--text-light);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo-img {
    width: 20rem;
    height: auto;
    margin-bottom: 1rem;
}

.footer-services {
    font-size: 1.2rem;
    color: #BDC3C7;
    font-weight: 600;
    margin-top: 1rem;
    letter-spacing: 0.1rem;
}

.footer-section h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #BDC3C7;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: var(--secondary-color);
    border-radius: 50%;
    color: var(--white);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-0.2rem);
}

.footer-bottom {
    border-top: 0.1rem solid var(--secondary-color);
    padding-top: 2rem;
    text-align: center;
    color: #BDC3C7;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .hero {
        background-size: 
            50px 50px,
            50px 50px,
            10px 10px,
            10px 10px,
            100% 100%,
            100% 100%,
            100% 100%;
        animation-duration: 30s;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
        padding: 8rem 2rem 5rem;
    }
    
    .hero-content {
        max-width: 90%;
        margin: 0 auto;
        padding: 3rem 2.5rem;
        border-radius: 2rem;
        text-align: center;
    }
    
    .hero-logo-large {
        text-align: center;
    }
    
    .hero-logo-img {
        width: 25rem;
        height: auto;
    }
    
    .title-line-1 {
        font-size: 3.5rem;
    }
    
    .title-line-2 {
        font-size: 4.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .construction-showcase {
        height: 45rem;
    }
    
    .dynamic-construction {
        width: 80%;
        opacity: 0.3;
    }
    
    .blueprint-grid {
        background-size: 
            100px 100px,
            60px 60px;
        animation-duration: 35s;
        opacity: 0.5;
    }
    
    .particle {
        animation-duration: 12s;
    }
    
    .wave {
        animation-duration: 8s;
    }
    
    .light-beam {
        width: 100px;
        animation-duration: 15s;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    /* Ajustes para galería en tablet */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2.5rem;
    }
    
    .project-card {
        height: 400px;
    }
    
    .project-card.tall {
        height: 450px;
    }
    
    .project-card.short {
        height: 350px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 7rem;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 1rem 2rem var(--shadow);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(0.8rem) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-0.8rem) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 56.25%; /* 1rem = 9px */
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn {
        padding: 1rem 2rem;
        font-size: 1.3rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* Galería en móvil - una sola columna */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-card,
    .project-card.tall,
    .project-card.short {
        height: 350px;
    }
    
    .project-image {
        height: 220px;
    }
    
    .project-card.tall .project-image,
    .project-card.short .project-image {
        height: 220px;
    }
    
    .project-content {
        height: 130px;
        padding: 2rem 1.5rem;
    }
    
    .project-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .project-category {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        background-size: 
            40px 40px,
            40px 40px,
            8px 8px,
            8px 8px,
            100% 100%,
            100% 100%,
            100% 100%;
        animation-duration: 35s;
    }
    
    .hero-container {
        gap: 3rem;
        padding: 8rem 1rem 5rem;
    }
    
    .hero-content {
        max-width: 95%;
        padding: 2.5rem 2rem;
        border-radius: 1.5rem;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(15px);
    }
    
    .hero-logo-img {
        width: 20rem;
        height: auto;
    }
    
    .title-line-1 {
        font-size: 2.8rem;
    }
    
    .title-line-2 {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
        margin-bottom: 3rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-stat {
        padding: 2rem 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .construction-showcase {
        height: 35rem;
    }
    
    .dynamic-construction {
        display: none; /* Ocultar SVG complejo en móviles pequeños */
    }
    
    .blueprint-grid {
        background-size: 
            80px 80px,
            50px 50px;
        opacity: 0.4;
        animation-duration: 40s;
    }
    
    .floating-particles {
        opacity: 0.6; /* Reducir intensidad de partículas */
    }
    
    .particle {
        animation-duration: 15s;
    }
    
    .energy-waves {
        opacity: 0.7; /* Suavizar ondas */
    }
    
    .wave {
        animation-duration: 10s;
    }
    
    .shape {
        opacity: 0.05; /* Reducir opacidad de formas */
    }
    
    .light-beam {
        width: 80px;
        animation-duration: 18s;
        background: linear-gradient(
            90deg, 
            transparent 0%, 
            rgba(46, 139, 139, 0.05) 20%,
            rgba(46, 139, 139, 0.1) 50%,
            rgba(46, 139, 139, 0.05) 80%,
            transparent 100%
        );
    }
    
    /* Galería optimizada para móviles pequeños */
    .projects-grid {
        gap: 1.5rem;
    }
    
    .project-card,
    .project-card.tall,
    .project-card.short {
        height: 320px;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-card.tall .project-image,
    .project-card.short .project-image {
        height: 200px;
    }
    
    .project-content {
        height: 120px;
        padding: 1.5rem;
    }
    
    .project-title {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }
    
    .project-category {
        font-size: 1.2rem;
    }
}

/* ===== KEYFRAMES PARA ANIMACIONES FUTURAS ===== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-3rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(3rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(3rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ESTILOS SIMPLES PARA IMÁGENES ===== */
.project-image img {
    transition: opacity 0.3s ease, transform 0.5s ease;
}

/* ===== UTILIDADES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.hidden { display: none; }
.visible { display: block; }
