/* ===== VARIABLES GLOBALES ===== */
:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --primary-soft: #A5D6A7;
    --bg-light: #F5F7F6;
    --text-dark: #1F2933;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --accent-tech: #1E88E5;
    --accent-tech-dark: #1565C0;
    --cta: #43A047;
    --cta-dark: #2E7D32;
    --white: #FFFFFF;
    --black: #000000;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --border-radius-full: 9999px;
    --font-title: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
    --z-index-dropdown: 1000;
    --z-index-sticky: 1020;
    --z-index-fixed: 1030;
    --z-index-modal-backdrop: 1040;
    --z-index-modal: 1050;
    --z-index-popover: 1060;
    --z-index-tooltip: 1070;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    font-size: 16px;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

/* ===== CONTENEDOR ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2.5rem;
    }
}

/* ===== HEADER ===== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: var(--z-index-sticky);
    width: 100%;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    width: 100%;
}

.logo img {
    height: 50px;
    width: auto;
    max-width: 100%;
    transition: var(--transition-base);
}

.logo img:hover {
    opacity: 0.9;
}

/* Navegación principal - Desktop */
.main-nav {
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition-base);
    position: relative;
    padding: 0.5rem 0;
}

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

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

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

/* Contacto desktop */
.desktop-contact {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-full);
    background: var(--bg-light);
}

.phone-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.phone-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.social-icons-header {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icons-header a {
    color: var(--text-muted);
    transition: var(--transition-base);
    display: inline-flex;
    padding: 0.5rem;
    border-radius: var(--border-radius-full);
    background: transparent;
}

.social-icons-header a:hover {
    color: var(--white);
    background: var(--primary);
    transform: translateY(-2px);
}

.social-icons-header svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Botón menú móvil */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
    z-index: calc(var(--z-index-sticky) + 1);
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-dark);
    position: absolute;
    left: 0;
    transition: var(--transition-base);
    border-radius: var(--border-radius-full);
}

.mobile-menu-toggle span:nth-child(1) {
    top: 6px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 14px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 22px;
}

.mobile-menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 14px;
}

.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 14px;
}

/* Contacto móvil (dentro del menú) */
.mobile-contact {
    display: none;
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.mobile-contact .phone-link {
    justify-content: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.mobile-contact .social-icons-header {
    justify-content: center;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    width: 100%;
}

.hero-video,
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video video,
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 94, 32, 0.65) 0%, rgba(46, 125, 50, 0.55) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    margin: 0 auto;
}

.hero-pre-title {
    display: inline-block;
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius-full);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #A5D6A7;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius-full);
    display: inline-block;
    backdrop-filter: blur(2px);
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--cta-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

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

.btn-light:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-cta {
    background: var(--white);
    color: var(--primary);
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.btn-cta:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-cta-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.btn-cta-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-base);
    background: transparent;
    padding: 0.5rem 0;
}

.btn-link:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

/* ===== SECCIONES ===== */
.section {
    padding: 6rem 0;
}

.bg-light {
    background: var(--bg-light);
}

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

.bg-primary h2,
.bg-primary p {
    color: var(--white);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 1.5rem auto 0;
    border-radius: var(--border-radius-full);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 4rem;
}

/* ===== SECCIÓN SOLUCIONES ===== */
.solutions-section {
    padding: 5rem 0;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.solution-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

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

.solution-image {
    height: 200px;
    overflow: hidden;
}

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

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

.solution-content {
    padding: 1.5rem;
}

.solution-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.solution-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* ===== AUTORIDAD TÉCNICA ===== */
.authority-section {
    padding: 5rem 0;
}

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

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

.authority-image {
    height: 150px;
    width: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.authority-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.authority-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== CASOS DE ÉXITO ===== */
.cases-section {
    padding: 5rem 0;
}

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

.case-item {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

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

.case-image {
    height: 300px;
    overflow: hidden;
}

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

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

.case-content {
    padding: 2rem;
}

.case-location {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.case-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.case-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ===== MAPA INTERACTIVO ===== */
.coverage-interactive-section {
    padding: 5rem 0;
}

.map-interactive-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.map-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-background {
    width: 100%;
    height: auto;
    display: block;
}

map area {
    cursor: pointer;
}

.city-info-panel {
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.city-info-header {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.city-info-header h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
}

.city-state-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: var(--border-radius-md);
    margin: 0 auto 1.5rem;
    display: block;
    box-shadow: var(--shadow-sm);
    background-color: var(--white);
    padding: 0.5rem;
}

.city-info-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    text-align: center;
    font-size: 1rem;
}

.coverage-cities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

.city-tag {
    background: var(--white);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-full);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 0.95rem;
}

.city-tag:hover,
.city-tag.active {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== CTA FINAL ===== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== MÉTRICAS ===== */
.metrics-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.metric-item {
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

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

.metric-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-title);
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.eu-cert {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
}

.metric-label {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ===== CARRUSEL COMERCIAL ===== */
.commercial-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    padding: 4rem 0;
}

.commercial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.commercial-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--primary);
    text-align: center;
}

.commercial-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    height: 400px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    position: relative;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.carousel-caption h3 {
    color: white;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.carousel-caption p {
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-size: 0.95rem;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* ===== POR QUÉ LÖSUNG ===== */
.why-us-section {
    padding: 5rem 0;
}

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

.why-us-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 300px;
}

.why-us-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.why-us-item:hover img {
    transform: scale(1.05);
}

.why-us-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
}

.why-us-content h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.why-us-content p {
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
    min-height: 60vh;
}

.about-content {
    background: var(--white);
}

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

.about-text h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.values-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
}

.values-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
}

.values-list li::before {
    content: "✓";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: 700;
    font-size: 1.2rem;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-slow);
}

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

/* Trayectoria */
.trajectory-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
}

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

.trajectory-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    position: relative;
}

.trajectory-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

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

.trajectory-desc {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

/* Certificaciones */
.certifications-section {
    background: var(--white);
}

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

.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.cert-item svg {
    width: 56px;
    height: 56px;
    stroke: var(--primary);
    transition: var(--transition-base);
}

.cert-item:hover svg {
    transform: scale(1.1);
}

.cert-item span {
    font-weight: 600;
    text-align: center;
    color: var(--text-dark);
}

/* ===== SERVICIOS PAGE ===== */
.services-hero {
    min-height: 50vh;
}

.services-detail {
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: 1.5rem 2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    transition: var(--transition-base);
}

.accordion-header:hover {
    background: var(--bg-light);
}

.accordion-title {
    font-size: 1.25rem;
    color: var(--text-dark);
}

.accordion-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background: var(--primary);
    transition: var(--transition-base);
}

.accordion-icon::before {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.accordion-icon::after {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.accordion-item.open .accordion-icon::before {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.accordion-content {
    display: none;
    padding: 0 2rem 2rem;
    background: var(--white);
}

.accordion-item.open .accordion-content {
    display: block;
}

.accordion-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accordion-content li {
    padding: 0.75rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-content li:last-child {
    border-bottom: none;
}

.accordion-content li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 700;
}

/* ===== CONTACTO PAGE ===== */
.contact-hero {
    min-height: 50vh;
}

.contact-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
}

.contact-info h2 {
    color: var(--primary);
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-info a {
    color: var(--text-dark);
    font-weight: 500;
}

.contact-info a:hover {
    color: var(--primary);
}

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

.contact-form h2 {
    color: var(--primary);
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-base);
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: var(--primary-light);
}

.hidden {
    display: none;
}

.form-feedback {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    text-align: center;
}

.form-feedback.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-feedback.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><path d="M20 20 L80 20 L80 80 L20 80 Z" fill="none" stroke="white" stroke-width="2"/></svg>');
    background-size: 50px 50px;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-base);
    display: inline-block;
}

.footer-col a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.social-icons-footer {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.social-icons-footer a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition-base);
    display: inline-flex;
    padding: 0.5rem;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.1);
}

.social-icons-footer a:hover {
    opacity: 1;
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

.social-icons-footer svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* ===== BOTONES FLOTANTES ===== */
.floating-btn {
    position: fixed;
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius-full);
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    z-index: var(--z-index-fixed);
    right: 20px;
    border: none;
    outline: none;
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.floating-btn a {
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.floating-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.whatsapp-btn {
    bottom: 160px;
    background: #25D366;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    background: #128C7E;
}

.share-btn {
    bottom: 90px;
    background: var(--primary);
}

.back-to-top {
    bottom: 20px;
    background: var(--accent-tech);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.share-panel {
    position: fixed;
    bottom: 160px;
    right: 90px;
    left: auto;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    width: 260px;
    z-index: calc(var(--z-index-fixed) + 1);
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.share-panel.open {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-panel-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.close-panel {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-base);
    line-height: 1;
    padding: 0 0.5rem;
}

.close-panel:hover {
    color: var(--text-dark);
    transform: scale(1.1);
}

.share-panel-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-option {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    text-align: left;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.share-option:hover {
    background: var(--bg-light);
    transform: translateX(5px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .commercial-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .authority-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trajectory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-grid {
        gap: 1.5rem;
    }
    
    .map-interactive-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .desktop-contact {
        display: none;
    }
    
    /* Menú móvil - CORREGIDO */
    .main-nav {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-xl);
        transition: left 0.3s ease;
        z-index: calc(var(--z-index-fixed) - 1);
        padding: 80px 1.5rem 2rem;
        overflow-y: auto;
    }
    
    .main-nav.open {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0;
        width: 100%;
    }
    
    .main-nav ul li {
        width: 100%;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-size: 1.1rem;
        width: 100%;
    }
    
    .main-nav ul li a::after {
        display: none;
    }
    
    .mobile-contact {
        display: block;
        width: 100%;
    }
    
    .commercial-carousel {
        height: 300px;
    }
    
    .why-us-item {
        height: 250px;
    }
    
    .authority-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .authority-image {
        width: 120px;
        height: 120px;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .case-image {
        height: 250px;
    }
    
    .map-interactive-container {
        padding: 1rem;
    }
    
    .hero h1 {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
        background: rgba(0, 0, 0, 0.3);
        width: 100%;
        max-width: 100%;
    }
    
    .hero-pre-title {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .hero-ctas .btn {
        width: 100%;
        margin: 0;
    }
    
    .city-info-header h3 {
        font-size: 1.25rem;
    }
    
    .city-state-image {
        width: 160px;
        height: 160px;
    }
    
    .city-tag {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .social-icons-footer {
        justify-content: center;
    }
    
    .floating-btn {
        width: 48px;
        height: 48px;
        right: 15px;
    }
    
    .whatsapp-btn {
        bottom: 140px;
    }
    
    .share-btn {
        bottom: 75px;
    }
    
    .back-to-top {
        bottom: 15px;
    }
    
    .share-panel {
        right: 75px;
        bottom: 140px;
        width: 200px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .btn-cta,
    .btn-cta-outline {
        width: 100%;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .solution-card {
        width: 100%;
    }
    
    .solution-image {
        height: 180px;
    }
    
    .solution-content {
        padding: 1.25rem;
    }
    
    .solution-content h3 {
        font-size: 1.2rem;
    }
    
    .solution-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .metric-item {
        padding: 1.5rem;
    }
    
    .metric-number {
        font-size: 2.5rem;
    }
    
    .eu-cert {
        font-size: 2.5rem;
    }
    
    .coverage-cities-list {
        gap: 0.5rem;
    }
    
    .coverage-cities-list .city-tag {
        font-size: 0.8rem;
        padding: 0.35rem 0.8rem;
    }
    
    .trajectory-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
    
    .case-content {
        padding: 1.5rem;
    }
    
    .case-content h3 {
        font-size: 1.25rem;
    }
    
    .city-state-image {
        width: 140px;
        height: 140px;
    }
    
    .main-nav {
        width: 85%;
        padding: 70px 1rem 2rem;
    }
    
    .main-nav ul li a {
        font-size: 1rem;
        padding: 0.8rem 0;
    }
    
    .mobile-contact .phone-link {
        font-size: 0.95rem;
    }
    
    .social-icons-header a svg {
        width: 18px;
        height: 18px;
    }
}