/* ======================================
   FUSION INGENIERÍA - ESTILOS CSS
   Modern Security Premium (Minimalismo + Glassmorphism)
   ====================================== */

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

html {
    scroll-behavior: smooth;
}

/* clase para text oculto pero accesible para lectores de pantalla */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1C1917;
    background-color: #FAFAF9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== SISTEMA DE TOKENS ===== */
:root {
    /* Colores Primarios (Naranja) */
    --color-primary-50: #FFF7ED;
    --color-primary-100: #FFEDD5;
    --color-primary-500: #F97316;
    --color-primary-600: #EA580C;
    --color-primary-700: #C2410C;
    
    /* Colores Neutrales */
    --color-neutral-50: #FAFAF9;
    --color-neutral-100: #F5F5F4;
    --color-neutral-200: #E7E5E4;
    --color-neutral-400: #A8A29E;
    --color-neutral-700: #44403C;
    --color-neutral-900: #1C1917;
    
    /* Fondos */
    --bg-page: #FAFAF9;
    --bg-surface: #FFFFFF;
    --bg-hero-gradient: linear-gradient(135deg, #F5F5F4 0%, #FAFAF9 50%, #FFFFFF 100%);
    --bg-glass: rgba(255, 255, 255, 0.4);
    
    /* Tipografía */
    --font-heading: 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    /* Tamaños de fuente */
    --text-hero: 72px;
    --text-hero-mobile: 40px;
    --text-h1: 56px;
    --text-h1-mobile: 36px;
    --text-h2: 40px;
    --text-h2-mobile: 28px;
    --text-h3: 28px;
    --text-h3-mobile: 22px;
    --text-body-lg: 20px;
    --text-body-lg-mobile: 18px;
    --text-body: 16px;
    --text-small: 14px;
    --text-caption: 12px;
    
    /* Espaciado (Sistema 8pt) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-16: 64px;
    --space-24: 96px;
    --space-32: 128px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-card: 0 4px 16px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 12px 32px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
    --shadow-glass: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-orange: 0 4px 16px rgba(249,115,22,0.25);
    
    /* Animación */
    --duration-fast: 200ms;
    --duration-normal: 300ms;
    --duration-slow: 400ms;
    --easing-default: ease-out;
    --easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Glassmorphism */
    --glass-blur: 20px;
    --glass-saturate: 150%;
    --glass-border-opacity: 0.25;
    --glass-bg-opacity: 0.4;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ===== NAVEGACIÓN ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--duration-normal) var(--easing-default);
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px) saturate(150%);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo-img {
    height: 45px;
    width: auto;
    filter: brightness(1.1) contrast(1.1);
}

.logo-text {
    font-size: var(--text-body-lg);
    font-weight: 600;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 500;
    font-size: var(--text-body);
    transition: color var(--duration-fast) var(--easing-default);
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.nav-link:hover {
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-500);
    transition: width var(--duration-fast) var(--easing-default);
}

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

/* Estilos específicos cuando la navegación está scrolled */
.nav.scrolled .nav-link {
    color: var(--color-neutral-700);
    text-shadow: none;
}

.nav.scrolled .nav-link:hover {
    color: var(--color-primary-500);
    text-shadow: none;
}

.nav.scrolled .logo-text {
    color: var(--color-neutral-900);
    text-shadow: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-neutral-900);
    transition: all var(--duration-fast) var(--easing-default);
}

/* Toggle color en modo normal (sobre imagen de bienvenida) */
.nav:not(.scrolled) .nav-toggle span {
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* ===== IMÁGENES RESPONSIVAS ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy loading para imágenes */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity var(--duration-normal) var(--easing-default);
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([data-src]) {
    opacity: 1;
}

/* ===== BOTONES MEJORADOS PARA MÓVIL ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 14px var(--space-6);
    min-height: 48px;
    min-width: 48px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--easing-default);
    text-align: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

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

.btn-primary:hover {
    background: var(--color-primary-600);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249,115,22,0.35);
}

.btn-primary:active {
    background: var(--color-primary-700);
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--color-neutral-900);
    border: 1.5px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(16px);
    font-weight: 500;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.5);
    border-color: rgba(255,255,255,0.4);
}

.btn-large {
    padding: 18px var(--space-8);
    font-size: var(--text-body-lg);
}

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

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

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-neutral-50) 0%, transparent 50%, var(--color-neutral-50) 100%);
}

/* ===== HERO PRINCIPAL CON IMAGEN DE FONDO ===== */
.hero-principal {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.hero-principal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-principal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.05) 30%,
        rgba(0, 0, 0, 0.05) 70%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 2;
}

.hero-principal-buttons {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    z-index: 10;
    padding: 0 var(--space-4);
}

/* Responsive para hero-principal */
@media (max-width: 768px) {
    .hero-principal {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-principal-image {
        object-position: center center;
    }
    
    .hero-principal-buttons {
        bottom: var(--space-6);
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
        width: 100%;
        padding: 0 var(--space-4);
    }
    
    .hero-principal-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero-principal {
        height: 100vh;
        min-height: 400px;
    }
    
    .hero-principal-image {
        object-position: 60% center;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-24) 0;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-4);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-glass);
}

.badge-text {
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-primary-700);
}

.hero-title {
    font-size: var(--text-hero);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-neutral-900);
    margin-bottom: var(--space-6);
}

.hero-subtitle {
    font-size: var(--text-body-lg);
    line-height: 1.6;
    color: var(--color-neutral-700);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

/* ===== BIENVENIDA SECTION ===== */
.bienvenida-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.bienvenida-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.bienvenida-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.bienvenida-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(28, 25, 23, 0.4) 0%,
        rgba(28, 25, 23, 0.2) 50%,
        rgba(28, 25, 23, 0.5) 100%
    );
}

.bienvenida-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-24) var(--space-4);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100vh;
    /* Ocultar completamente el contenido textual */
    visibility: hidden;
}



.bienvenida-title {
    font-size: var(--text-6xl);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.05em;
    color: #FFFFFF;
    margin-bottom: var(--space-4);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #FFFFFF 0%, #F97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bienvenida-subtitle {
    font-size: var(--text-xl);
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #60A5FA;
    margin-bottom: var(--space-8);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}



.bienvenida-buttons-bottom {
    position: absolute;
    bottom: var(--space-16);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    z-index: 10;
    padding: 0 var(--space-4);
}

.bienvenida-cta {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-8);
    position: relative;
    bottom: var(--space-16);
    align-self: flex-end;
    width: 100%;
    padding-bottom: var(--space-8);
}

/* ===== SECCIONES ===== */
section {
    padding: var(--space-16) 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

.section-title {
    font-size: var(--text-h1);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-neutral-900);
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-body-lg);
    line-height: 1.6;
    color: var(--color-neutral-700);
}

/* ===== SERVICIOS ===== */
.services-section {
    background: var(--bg-surface);
    padding: var(--space-16) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-12);
    margin-top: var(--space-8);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1400px) {
    .services-grid {
        max-width: 1000px;
        gap: var(--space-16);
    }
}

@media (max-width: 1279px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-10);
        max-width: 800px;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
        max-width: 700px;
    }
}

@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        margin-top: var(--space-6);
        max-width: 500px;
    }
}

@media (max-width: 479px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        margin-top: var(--space-4);
        max-width: 400px;
    }
}

.service-card {
    background: var(--bg-surface);
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--radius-lg);
    padding: var(--space-12);
    text-align: center;
    transition: all var(--duration-normal) var(--easing-default);
    box-shadow: var(--shadow-card);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-primary-200);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--color-primary-50);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    color: var(--color-primary-500);
}

.service-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--radius-md);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform var(--duration-normal) var(--easing-default);
}

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

.service-title {
    font-size: var(--text-h3);
    font-weight: 600;
    color: var(--color-neutral-900);
    margin-bottom: var(--space-3);
}

.service-description {
    font-size: var(--text-body);
    line-height: 1.5;
    color: var(--color-neutral-700);
    margin-bottom: var(--space-6);
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-primary-500);
    font-size: var(--text-body);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--duration-fast) var(--easing-default);
}

.service-link:hover {
    color: var(--color-primary-600);
    text-decoration: underline;
}

/* ===== EXPERIENCIA ===== */
.experience-section {
    background: var(--color-neutral-50);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-16);
}

.metric-card {
    text-align: center;
    padding: var(--space-8);
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform var(--duration-normal) var(--easing-default);
}

.metric-card:hover {
    transform: translateY(-2px);
}

.metric-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary-500);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.metric-label {
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-neutral-900);
    margin-bottom: var(--space-1);
}

.metric-description {
    font-size: var(--text-small);
    color: var(--color-neutral-700);
}

.value-proposition {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.value-content h3 {
    font-size: var(--text-h2);
    font-weight: 600;
    color: var(--color-neutral-900);
    margin-bottom: var(--space-6);
}

.value-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.value-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-body);
    color: var(--color-neutral-700);
}

.value-list svg {
    color: var(--color-primary-500);
    flex-shrink: 0;
}

.value-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* ===== PROCESO ===== */
.process-section {
    background: var(--bg-surface);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.process-step {
    text-align: center;
    position: relative;
    padding: var(--space-4);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--color-primary-500);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-body-lg);
    font-weight: 700;
    margin: 0 auto var(--space-3);
    box-shadow: var(--shadow-orange);
}

.step-title {
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-neutral-900);
    margin-bottom: var(--space-2);
}

.step-description {
    font-size: var(--text-small);
    color: var(--color-neutral-700);
    line-height: 1.5;
}

.process-image {
    text-align: center;
    margin-top: var(--space-6);
}

.process-img {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* ===== CONTACTO ===== */
.contact-section {
    background: var(--color-neutral-50);
}

.contact-content {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: var(--space-12);
}

.contact-form-container {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-12);
    box-shadow: var(--shadow-card);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-group label {
    font-size: var(--text-body);
    font-weight: 500;
    color: var(--color-neutral-900);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 16px;
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--radius-md);
    font-size: var(--text-body);
    background: var(--bg-surface);
    transition: all var(--duration-fast) var(--easing-default);
}

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

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

.info-card {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.info-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-600);
    flex-shrink: 0;
    overflow: hidden;
}

.info-icon-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: var(--radius-md);
    filter: drop-shadow(0 4px 8px rgba(249, 115, 22, 0.25));
    transition: all 0.3s ease;
}

.info-icon-img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(249, 115, 22, 0.35));
}

.info-content h3 {
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-neutral-900);
    margin-bottom: var(--space-1);
}

.info-content p {
    font-size: var(--text-body);
    color: var(--color-neutral-700);
}

.whatsapp-link {
    font-size: var(--text-body);
    color: var(--color-primary-500);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--duration-fast) var(--easing-default);
}

.whatsapp-link:hover {
    color: var(--color-primary-600);
    text-decoration: underline;
}

.cta-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    box-shadow: var(--shadow-card);
}

.cta-card h3 {
    font-size: var(--text-body-lg);
    font-weight: 600;
    color: var(--color-neutral-900);
    margin-bottom: var(--space-3);
}

.cta-card p {
    font-size: var(--text-body);
    color: var(--color-neutral-700);
    margin-bottom: var(--space-4);
}

.btn-small {
    padding: 12px var(--space-4);
    font-size: var(--text-small);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-neutral-900);
    color: var(--color-neutral-400);
    padding: var(--space-16) 0 var(--space-8);
}

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

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

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: var(--space-4);
    filter: brightness(1.05) contrast(1.05);
}

.footer-description {
    font-size: var(--text-body);
    line-height: 1.6;
}

.footer-section h4 {
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--color-neutral-200);
    margin-bottom: var(--space-4);
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-section a {
    color: var(--color-neutral-400);
    text-decoration: none;
    transition: color var(--duration-fast) var(--easing-default);
}

.footer-section a:hover {
    color: var(--color-primary-500);
}

.footer-bottom {
    border-top: 1px solid var(--color-neutral-700);
    padding-top: var(--space-8);
    text-align: center;
    font-size: var(--text-small);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .hero-title {
        font-size: var(--text-h1);
    }
    
    .bienvenida-title {
        font-size: var(--text-5xl);
    }
    

    
    .section-title {
        font-size: var(--text-h2);
    }
    
    .value-proposition,
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --text-hero: var(--text-hero-mobile);
        --text-h1: var(--text-h1-mobile);
        --text-h2: var(--text-h2-mobile);
        --text-h3: var(--text-h3-mobile);
        --text-body-lg: var(--text-body-lg-mobile);
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .bienvenida-section {
        min-height: 80vh;
    }
    
    .bienvenida-title {
        font-size: var(--text-4xl);
    }
    

    

    
    .bienvenida-cta {
        flex-direction: column;
        align-items: center;
        margin-top: var(--space-16);
        padding-bottom: var(--space-12);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    .bienvenida-title {
        font-size: var(--text-3xl);
        line-height: 1.2;
    }
    
    .bienvenida-logo-img {
        width: 120px;
    }

    
    section {
        padding: var(--space-16) 0;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: var(--space-6);
    }
}

/* ===== MENÚ MÓVIL MEJORADO ===== */
@media (max-width: 768px) {
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: var(--space-16) var(--space-6);
        gap: var(--space-4);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        z-index: 1001;
        animation: slideIn 0.3s ease-out;
    }
    
    @keyframes slideIn {
        from {
            transform: translateX(100%);
        }
        to {
            transform: translateX(0);
        }
    }
    
    .nav-menu.active .nav-link {
        color: var(--color-neutral-900);
        font-size: var(--text-body-lg);
        padding: var(--space-3) 0;
        border-bottom: 1px solid var(--color-neutral-200);
        text-shadow: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .nav-menu.active .nav-cta {
        display: inline-flex;
        margin-top: var(--space-4);
        width: 100%;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }
    
    .nav-overlay.active {
        display: block;
    }
}

/* ===== FORMULARIOS RESPONSIVOS ===== */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: var(--space-4);
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        width: 100%;
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-body);
        min-height: 48px;
    }
    
    .form-label {
        display: block;
        margin-bottom: var(--space-2);
        font-weight: 500;
        font-size: var(--text-body);
        color: var(--color-neutral-700);
    }
    
    .contact-form-container {
        padding: var(--space-6);
    }
}

/* ===== MEJORAS DE ACCESIBILIDAD MÓVIL ===== */
@media (max-width: 768px) {
    :focus-visible {
        outline: 2px solid var(--color-primary-500);
        outline-offset: 2px;
    }
    
    .btn:focus-visible,
    .nav-link:focus-visible {
        outline: 2px solid var(--color-primary-500);
        outline-offset: 2px;
    }
    
    /* Alto contraste para mejor legibilidad */
    body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
}

/* ===== ANIMACIONES ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all var(--duration-slow) var(--easing-smooth);
}

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

/* ===== FALLBACK GLASSMORPHISM ===== */
@supports not (backdrop-filter: blur(16px)) {
    .glass-element {
        background: rgba(255, 255, 255, 0.92);
    }
}

/* ===== OCULTAR MENSAJES DE ATRIBUCIÓN ===== */
/* Ocultar cualquier elemento que pueda contener mensajes de atribución */
[class*="attribution"],
[class*="watermark"],
[class*="powered"],
[class*="created-by"],
[id*="attribution"],
[id*="watermark"],
[id*="powered"],
[id*="created-by"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    z-index: -9999 !important;
}

/* Ocultar elementos que contengan texto específico */
*:not(input):not(textarea):not([type="text"]):not([type="email"]):not([type="tel"]):not([type="search"]):not([contenteditable="true"]):not([role="textbox"]) {
    &::after,
    &::before {
        &[class*="minimax"],
        &[class*="agent"],
        &[id*="minimax"],
        &[id*="agent"],
        &[data-*="minimax"],
        &[data-*="agent"] {
            display: none !important;
            visibility: hidden !important;
        }
    }
}

/* ===== SERVICIOS MODERNOS - REDISEÑO ===== */

/* Hero de Servicios */
.services-modern-section {
    background: var(--bg-page);
}

.services-hero {
    background: linear-gradient(135deg, #1C1917 0%, #292524 50%, #44403C 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(249, 115, 22, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(96, 165, 250, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.services-hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    color: #FFFFFF;
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.services-hero-subtitle {
    font-size: var(--text-body-lg);
    color: #D1D5DB;
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid de Servicios */
.services-grid-section {
    padding: var(--space-24) 0;
    background: var(--bg-surface);
}

.services-section-title {
    font-size: var(--text-h1);
    font-weight: 700;
    text-align: center;
    color: var(--color-neutral-900);
    margin-bottom: var(--space-16);
}

.services-modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    max-width: 1200px;
    margin: 0 auto;
}

.service-modern-card {
    background: var(--bg-surface);
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary-500), #60A5FA);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--color-primary-200);
}

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

.service-modern-icon {
    width: 64px;
    height: 64px;
    background: var(--color-primary-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-500);
    margin-bottom: var(--space-4);
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: all 0.3s ease;
}

.service-modern-card:hover .service-modern-icon {
    background: var(--color-primary-500);
    transform: scale(1.1);
}

.service-modern-card:hover .service-icon-img {
    opacity: 0.95;
}

.service-modern-title {
    font-size: var(--text-body-lg);
    font-weight: 600;
    color: var(--color-neutral-900);
    margin-bottom: var(--space-3);
    line-height: 1.3;
}

.service-modern-description {
    font-size: var(--text-body);
    color: var(--color-neutral-700);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.service-modern-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-primary-500);
    font-size: var(--text-body);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-modern-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.service-modern-link:hover {
    color: var(--color-primary-600);
}

.service-modern-link:hover::after {
    transform: translateX(4px);
}

/* Por qué elegirnos */
.why-choose-section {
    padding: var(--space-24) 0;
    background: var(--color-neutral-50);
}

.why-choose-title {
    font-size: var(--text-h1);
    font-weight: 700;
    text-align: center;
    color: var(--color-neutral-900);
    margin-bottom: var(--space-16);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    max-width: 1000px;
    margin: 0 auto;
}

.why-choose-item {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    border: 1px solid var(--color-neutral-200);
    transition: all 0.3s ease;
}

.why-choose-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-primary-200);
}

.why-choose-icon {
    width: 56px;
    height: 56px;
    background: var(--color-primary-50);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-500);
    flex-shrink: 0;
}

.why-choose-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--radius-md);
    filter: drop-shadow(0 4px 8px rgba(249, 115, 22, 0.25));
    transition: all 0.3s ease;
}

.why-choose-icon-img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(249, 115, 22, 0.35));
}

.why-choose-content h3 {
    font-size: var(--text-body-lg);
    font-weight: 600;
    color: var(--color-neutral-900);
    margin-bottom: var(--space-1);
}

.why-choose-content p {
    font-size: var(--text-body);
    color: var(--color-neutral-700);
    line-height: 1.5;
}

/* CTA Final */
.services-cta-section {
    padding: var(--space-24) 0;
    background: linear-gradient(135deg, #1C1917 0%, #292524 100%);
    position: relative;
    overflow: hidden;
}

.services-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(249, 115, 22, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 70% 50%, rgba(96, 165, 250, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.services-cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.services-cta-content h2 {
    font-size: var(--text-h1);
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: var(--space-4);
}

.services-cta-content p {
    font-size: var(--text-body-lg);
    color: #D1D5DB;
    margin-bottom: var(--space-8);
}

/* Responsive para Servicios Modernos */
@media (max-width: 1024px) {
    .services-hero-title {
        font-size: 44px;
    }
    
    .services-modern-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 100px 0 60px;
    }
    
    .services-hero-title {
        font-size: 36px;
    }
    
    .services-hero-subtitle {
        font-size: var(--text-body);
    }
    
    .services-modern-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .services-cta-content h2 {
        font-size: var(--text-h2);
    }
}

@media (max-width: 640px) {
    .services-hero {
        padding: 80px 0 50px;
    }
    
    .services-hero-title {
        font-size: 28px;
    }
    
    .services-section-title,
    .why-choose-title {
        font-size: var(--text-h2-mobile);
    }
    
    .service-modern-card {
        padding: var(--space-6);
    }
    
    .why-choose-item {
        flex-direction: column;
        text-align: center;
    }
    
    .why-choose-icon {
        margin: 0 auto;
    }
}

/* ===== SERVICIOS DESTACADOS ===== */
.service-featured {
    background: linear-gradient(135deg, var(--color-primary-50) 0%, #fff 100%);
    border: 2px solid var(--color-primary-500);
    position: relative;
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.15);
    overflow: visible;
}

.featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary-500);
    color: white;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    white-space: nowrap;
}
/* ===== SECCIÓN TRAYECTORIA TÉCNICA ===== */
.trayectoria-section {
    padding: 80px 0;
    background: #FAFAF9;
}

.trayectoria-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1C1917;
    text-align: center;
    margin-bottom: 16px;
}

.trayectoria-subtitle {
    font-size: 1.25rem;
    color: #57534E;
    text-align: center;
    margin-bottom: 48px;
}

.trayectoria-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.trayectoria-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #44403C;
}

.trayectoria-text p {
    margin-bottom: 16px;
}

.trayectoria-highlights {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.trayectoria-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trayectoria-year {
    font-size: 1rem;
    font-weight: 600;
    color: #F97316;
}

.trayectoria-desc {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1C1917;
}

@media (max-width: 768px) {
    .trayectoria-content {
        grid-template-columns: 1fr;
    }
    
    .trayectoria-title {
        font-size: 2rem;
    }
}

/* ===== SECCIÓN ENERGÍA SOLAR RESIDENCIAL ===== */
.solar-residencial-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #FFF7ED 0%, #FAFAF9 100%);
}

.solar-residencial-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1C1917;
    text-align: center;
    margin-bottom: 16px;
}

.solar-residencial-subtitle {
    font-size: 1.25rem;
    color: #57534E;
    text-align: center;
    margin-bottom: 24px;
}

.solar-residencial-intro {
    font-size: 1.1rem;
    color: #44403C;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 24px;
    line-height: 1.6;
}

.solar-residencial-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto 48px;
    padding: 0 24px;
}

.solar-benefit {
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solar-benefit:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.solar-benefit h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1C1917;
    margin-bottom: 12px;
}

.solar-benefit p {
    font-size: 1rem;
    color: #57534E;
    line-height: 1.6;
}

.solar-residencial-section .btn {
    display: block;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
}

@media (max-width: 768px) {
    .solar-residencial-benefits {
        grid-template-columns: 1fr;
    }
    
    .solar-residencial-title {
        font-size: 2rem;
    }
}/* ===== TEXTO LEGAL DEL FORMULARIO ===== */
.form-legal-text {
    font-size: 11px;
    color: #6B7280;
    margin-top: 12px;
    text-align: center;
    line-height: 1.4;
}

.form-legal-text a {
    color: #6B7280;
    text-decoration: underline;
}

.form-legal-text a:hover {
    color: #F97316;
}