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

:root {
    /* Colores Principales - Energía y Minería (Basados en logotipo Sumpetrol - Bordó) */
    --primary-dark: #0a1a2e;
    --primary-blue: #1e3a5f;
    --primary-accent: #2d5a87;
    --brand-burgundy: #8B1538;
    --brand-burgundy-light: #A52A2A;
    --brand-burgundy-dark: #6B0F1A;
    --brand-accent: #C21807;
    --mining-charcoal: #2b2d42;
    --mining-slate: #4a5568;
    --mining-silver: #718096;
    
    /* Colores Secundarios */
    --green-success: #10b981;
    --green-light: #6ee7b7;
    --white: #ffffff;
    --light-gray: #f7fafc;
    --gray: #e2e8f0;
    --dark-gray: #4a5568;
    --text-dark: #1a202c;
    --text-light: #718096;
    
    /* Gradientes */
    --gradient-energy: linear-gradient(135deg, #8B1538 0%, #A52A2A 50%, #C21807 100%);
    --gradient-mining: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #0a1a2e 100%);
    --gradient-hero: linear-gradient(135deg, #0a1a2e 0%, #1e3a5f 50%, #2d5a87 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(10, 26, 46, 0.95) 0%, rgba(30, 58, 95, 0.9) 100%);
    --gradient-brand: linear-gradient(135deg, #8B1538 0%, #A52A2A 100%);
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --shadow-energy: 0 10px 30px rgba(139, 21, 56, 0.3);
    --shadow-mining: 0 10px 30px rgba(30, 58, 95, 0.3);
    --shadow-brand: 0 10px 30px rgba(139, 21, 56, 0.4);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.99);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-md);
    gap: var(--spacing-md);
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
}

.logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: nowrap;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-external {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-left: var(--spacing-xs);
    padding-left: var(--spacing-sm);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-base);
    position: relative;
    padding: var(--spacing-xs) var(--spacing-xs);
    white-space: nowrap;
}

.nav-external-link {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-external-link i {
    font-size: 0.7rem;
    opacity: 0.7;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-energy);
    transition: var(--transition-base);
}

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

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

.btn-nav {
    background: var(--gradient-energy);
    color: var(--white) !important;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 8px;
    box-shadow: var(--shadow-energy);
}

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

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(244, 162, 97, 0.4);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: var(--transition-base);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: var(--gradient-hero);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.4;
}

.hero-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(139, 21, 56, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(30, 58, 95, 0.3) 0%, transparent 50%);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.15), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(139, 21, 56, 0.2), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.1), transparent);
    background-size: 200px 200px, 300px 300px, 150px 150px;
    animation: particleMove 20s linear infinite;
    z-index: 2;
}

@keyframes particleMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-200px, -200px); }
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.title-line {
    display: block;
    font-weight: 300;
}

.title-highlight {
    display: block;
    background: var(--gradient-energy);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-burgundy-light);
    font-family: 'Playfair Display', serif;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s both;
    margin-bottom: var(--spacing-2xl);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: visible;
    white-space: nowrap;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-energy);
    color: var(--white);
    box-shadow: var(--shadow-energy);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(244, 162, 97, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    animation: fadeInUp 1s ease 1s both;
    padding-top: var(--spacing-xl);
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    margin: 0 auto var(--spacing-xs);
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.5; transform: translateX(-50%) translateY(10px); }
}

.scroll-indicator span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   SERVICES SHOWCASE
   ============================================ */
.services-showcase {
    padding: var(--spacing-2xl) 0;
    background: var(--light-gray);
}

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

.service-showcase-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    text-align: center;
    border: 1px solid var(--gray);
}

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

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: var(--gradient-brand);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    box-shadow: var(--shadow-brand);
}

.service-showcase-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.service-showcase-card p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
}

.service-link:hover {
    gap: var(--spacing-sm);
    color: var(--brand-burgundy);
}

/* ============================================
   INTERACTIVE SECTION (MINERÍA Y ENERGÍAS RENOVABLES)
   ============================================ */
.interactive-section {
    padding: var(--spacing-2xl) 0;
    background: var(--white);
    position: relative;
    overflow: visible;
    z-index: 1;
}

.interactive-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

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

.interactive-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.text-gradient-brand {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.interactive-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.interactive-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--light-gray);
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.tab-button i {
    font-size: 1.3rem;
}

.tab-button.active {
    background: var(--gradient-brand);
    color: var(--white);
    box-shadow: var(--shadow-brand);
    border-color: var(--brand-burgundy);
}

.tab-button:hover:not(.active) {
    background: rgba(139, 21, 56, 0.1);
    border-color: var(--brand-burgundy);
    color: var(--brand-burgundy);
}

.interactive-content {
    position: relative;
    min-height: 600px;
    z-index: 1;
}

.tab-content {
    display: none;
    animation: fadeInSlide 0.6s ease;
    position: relative;
    z-index: 2;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.content-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 500px;
    box-shadow: var(--shadow-xl);
    z-index: 1;
}

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

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.2) 0%, rgba(165, 42, 42, 0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

.content-text {
    padding: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.content-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--gradient-mining);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-mining);
    position: relative;
    z-index: 1;
}

.badge-energy {
    background: var(--gradient-brand);
    box-shadow: var(--shadow-brand);
}

.content-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.content-text > p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.content-features {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.content-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    position: relative;
}

.content-features li i {
    color: var(--brand-burgundy);
    font-size: 1.2rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.content-features li strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.content-highlights {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: rgba(139, 21, 56, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(139, 21, 56, 0.1);
    position: relative;
    z-index: 1;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--white);
    border-radius: 12px;
    transition: var(--transition-base);
}

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

.highlight-item i {
    color: var(--brand-burgundy);
    font-size: 1.5rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.highlight-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

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

.content-button-wrapper {
    margin-top: var(--spacing-xl);
    position: relative;
    z-index: 1;
    clear: both;
}

.swipe-indicator {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-md);
    color: var(--text-light);
}

.swipe-hint {
    display: block;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.swipe-arrows {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    color: var(--brand-burgundy);
    font-size: 1.2rem;
    animation: pulseArrows 2s infinite;
}

@keyframes pulseArrows {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Responsive Interactive Section */
@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-image {
        height: 400px;
    }
    
    .content-highlights {
        gap: var(--spacing-sm);
    }
    
    .highlight-item {
        padding: var(--spacing-sm);
    }
}

/* ============================================
   MODAL DE SERVICIOS
   ============================================ */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-modal.active {
    display: flex;
    opacity: 1;
}

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

.modal-content {
    position: relative;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    margin: auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    z-index: 10001;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(139, 21, 56, 0.1);
    color: var(--brand-burgundy);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-base);
    z-index: 10002;
}

.modal-close:hover {
    background: var(--brand-burgundy);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-header {
    padding: var(--spacing-2xl) var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    border-bottom: 1px solid var(--gray);
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.05) 0%, rgba(30, 58, 95, 0.05) 100%);
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: var(--gradient-brand);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: var(--shadow-brand);
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
    margin: 0;
}

.modal-body {
    padding: var(--spacing-xl);
}

.modal-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xl);
}

.modal-details {
    margin-bottom: var(--spacing-xl);
}

.modal-details h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-md);
}

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

.modal-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.modal-features li i {
    color: var(--brand-burgundy);
    font-size: 1.1rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.modal-extended {
    padding: var(--spacing-lg);
    background: var(--light-gray);
    border-radius: 12px;
    margin-top: var(--spacing-lg);
}

.modal-extended h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-md);
}

.modal-extended p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.modal-footer {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-top: 1px solid var(--gray);
    text-align: center;
    background: var(--light-gray);
}

.service-card {
    cursor: pointer;
    transition: var(--transition-base);
}

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

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-md);
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: var(--spacing-lg);
    }
    
    .modal-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .interactive-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-button {
        width: 100%;
        justify-content: center;
    }
    
    .content-text h3 {
        font-size: 2rem;
    }
}

/* ============================================
   SECTIONS (MINERÍA Y ENERGÍA)
   ============================================ */
.section {
    position: relative;
    padding: var(--spacing-2xl) 0;
    min-height: auto;
    display: block;
}

.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.section-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    z-index: 0;
    filter: grayscale(30%);
    pointer-events: none;
    display: block;
}

.section-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

.section-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, var(--primary-dark) 10px, var(--primary-dark) 20px);
    z-index: 2;
    pointer-events: none;
    display: none;
}

.pattern-energy {
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, var(--brand-burgundy) 10px, var(--brand-burgundy) 20px);
    opacity: 0;
    display: none;
}

.mineria-section .container,
.energia-section .container,
.obras-section .container {
    position: relative;
    z-index: 10;
}

.mineria-section .section-bg-image {
    opacity: 1;
    z-index: 0;
}

.mineria-overlay {
    background: linear-gradient(135deg, rgba(10, 26, 46, 0.75) 0%, rgba(30, 58, 95, 0.85) 50%, rgba(139, 21, 56, 0.7) 100%);
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.mineria-pattern {
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(255, 255, 255, 0.03) 15px, rgba(255, 255, 255, 0.03) 30px),
        repeating-linear-gradient(-45deg, transparent, transparent 15px, rgba(255, 255, 255, 0.02) 15px, rgba(255, 255, 255, 0.02) 30px);
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    display: none;
}

.obras-overlay {
    background: linear-gradient(135deg, rgba(10, 26, 46, 0.3) 0%, rgba(30, 58, 95, 0.2) 100%);
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.section .container {
    position: relative;
    z-index: 10;
}

.section-header {
    position: relative;
    z-index: 1;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
}

.services-grid {
    position: relative;
    z-index: 1;
}

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

.energia-section .section-overlay {
    background: linear-gradient(135deg, rgba(240, 248, 255, 0.7) 0%, rgba(224, 242, 255, 0.7) 100%);
}

/* ============================================
   OBRAS SECTION
   ============================================ */
.obras-section {
    background: var(--gradient-hero);
    background: linear-gradient(135deg, #0a1a2e 0%, #1e3a5f 50%, #2d5a87 100%);
    position: relative;
    min-height: 100vh;
}

.obras-section .section-title {
    color: var(--white) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.obras-section .section-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.obras-section .text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #e0f2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.obras-section .section-background {
    display: none; /* Ocultar imagen de fondo, usar degradado */
}

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

.obra-category-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid var(--gray);
    position: relative;
    z-index: 1;
}

.obra-category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-burgundy);
}

.obra-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-brand);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-brand);
}

.obra-category-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xs);
}

.obra-percentage {
    color: var(--brand-burgundy);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-sm);
}

.obra-category-card p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.obra-clients,
.obra-locations {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
}

.client-tag,
.location-tag {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: rgba(139, 21, 56, 0.1);
    color: var(--brand-burgundy);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(139, 21, 56, 0.2);
}

.location-tag {
    background: rgba(30, 58, 95, 0.1);
    color: var(--primary-accent);
    border-color: rgba(30, 58, 95, 0.2);
}

.obras-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.05) 0%, rgba(30, 58, 95, 0.05) 100%);
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

.highlight-card {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

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

.highlight-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-burgundy);
    font-family: 'Playfair Display', serif;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.highlight-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.trabajos-recientes {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 255, 0.95) 100%);
    border-radius: 20px;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.trabajos-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.trabajos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.trabajo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    text-align: center;
}

.trabajo-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--gradient-brand);
    color: var(--white);
}

.trabajo-item i {
    font-size: 2rem;
    color: var(--brand-burgundy);
    margin-bottom: var(--spacing-xs);
}

.trabajo-item:hover i {
    color: var(--white);
}

.trabajo-item span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.trabajo-item:hover span {
    color: var(--white);
}

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

.section-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--gradient-mining);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-mining);
}

.badge-energy {
    background: var(--gradient-energy);
    box-shadow: var(--shadow-energy);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.text-gradient {
    background: var(--gradient-mining);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-energy {
    background: var(--gradient-energy);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.service-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid var(--gray);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

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

.card-energy {
    border-top: 4px solid var(--brand-burgundy);
}

.service-card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-mining);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-mining);
}

.icon-energy {
    background: var(--gradient-energy);
    box-shadow: var(--shadow-energy);
}

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

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

.service-features {
    list-style: none;
    padding: 0;
    margin-top: auto;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
}

.service-features i {
    color: var(--green-success);
    font-size: 0.8rem;
}

.section-info {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.info-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray);
    position: relative;
    z-index: 1;
}

.info-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-md);
    font-family: 'Playfair Display', serif;
}

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

.info-card p:last-child {
    margin-bottom: 0;
}

.section-cta {
    text-align: center;
    margin-top: var(--spacing-xl);
    position: relative;
    z-index: 1;
    clear: both;
    padding: var(--spacing-md) 0;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    padding: var(--spacing-2xl) 0;
    background: var(--gradient-hero);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.about-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.about-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.2;
    filter: grayscale(40%);
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

.about-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 21, 56, 0.2) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    border-radius: 50%;
    z-index: 2;
}

.about-content {
    position: relative;
    z-index: 3;
}

.about-text {
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    text-align: center;
}

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

.about-description {
    font-size: 1.1rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

.about-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xl);
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-base);
}

.about-stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.about-stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-burgundy-light);
    font-family: 'Playfair Display', serif;
    margin-bottom: var(--spacing-xs);
}

.about-stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ============================================
   VALUES SECTION
   ============================================ */
.values-section {
    padding: var(--spacing-2xl) 0;
    background: var(--white);
}

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

.value-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--light-gray);
    border-radius: 16px;
    transition: var(--transition-base);
}

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

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: var(--gradient-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    box-shadow: var(--shadow-brand);
}

.value-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

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

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: var(--spacing-2xl) 0;
    background: var(--light-gray);
}

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

.contact-info {
    position: sticky;
    top: 100px;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.contact-details {
    margin-bottom: var(--spacing-xl);
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-brand);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-brand);
}

.contact-detail-content h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-detail-content a,
.contact-detail-content p {
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
}

.contact-detail-content a:hover {
    color: var(--brand-burgundy);
}

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

.social-link {
    width: 45px;
    height: 45px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--gradient-brand);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-brand);
}

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

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--brand-burgundy);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--gray);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition-base);
    background: var(--light-gray);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-burgundy);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(139, 21, 56, 0.1);
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-social-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--brand-burgundy);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.footer-logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-social a:hover {
    background: var(--gradient-brand);
    transform: translateY(-3px);
    box-shadow: var(--shadow-brand);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--brand-burgundy);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
}

.footer-links a i {
    color: var(--brand-burgundy);
    margin-right: var(--spacing-xs);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--brand-burgundy);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
}

.footer-contact p a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-contact p a:hover {
    color: var(--brand-burgundy-light);
}

.email-link {
    text-decoration: none !important;
    border-bottom: none !important;
}

.email-link:hover {
    color: var(--brand-burgundy-light) !important;
}

.footer-contact i {
    color: var(--brand-burgundy);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-made {
    margin-top: var(--spacing-xs);
}

.footer-made i {
    color: var(--brand-burgundy);
    margin: 0 5px;
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-element.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        position: static;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-image {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-xl);
        gap: var(--spacing-md);
        transition: var(--transition-base);
        box-shadow: var(--shadow-lg);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-main,
    .nav-external {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-sm);
        border-left: none;
        padding-left: 0;
        margin-left: 0;
    }

    .nav-link {
        width: 100%;
        padding: var(--spacing-sm);
        font-size: 1rem;
    }
    
    .nav.active {
        left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .logo-img {
        height: 80px;
    }
    
    .hero-stats {
        gap: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .interactive-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-button {
        width: 100%;
        justify-content: center;
    }
    
    .content-text h3 {
        font-size: 1.8rem;
    }
    
    .content-stats {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .logo-img {
        height: 60px;
    }
    
    .hero {
        min-height: auto;
        padding: 120px 0 var(--spacing-xl);
    }
    
    .section {
        padding: var(--spacing-xl) 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .about-stat-number {
        font-size: 2rem;
    }
}
