:root {
    --bg-dark: #0b0f15;
    --bg-darker: #06090c;
    --bg-light: #f4f5f7;
    --bg-card: #141a22;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    --primary-green: #10b981;
    --primary-hover: #059669;
    --border-dark: #1e293b;
    --border-light: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

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

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: white;
}

p {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-green {
    background-color: var(--primary-green);
    color: white !important;
}

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

.btn-outline {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: white !important;
}

.btn-outline:hover {
    border-color: var(--primary-green);
    color: var(--primary-green) !important;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(11, 15, 21, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    height: 80px;
    object-fit: contain;
    transform: scale(2.8);
    transform-origin: left center;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-green);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background-color: var(--bg-dark);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: url('assets/oficina.png') center/cover no-repeat;
    /* Optional: filter to make it look a bit darker */
    filter: brightness(0.8);
}

/* Stats Banner */
.stats-banner {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    background-color: var(--bg-darker);
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.stat-text {
    color: var(--primary-green);
    font-size: 1.1rem;
}

.stat-text strong {
    font-weight: 700;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-green);
}

.stat-item div {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.stat-item strong {
    color: white;
    font-size: 1.1rem;
}

/* MAPA Section */
.mapa-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.mapa-section h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.mapa-card {
    padding: 32px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mapa-icon {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.mapa-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.mapa-card p {
    font-size: 0.95rem;
}

/* Products Section */
.products-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.products-section h2 {
    color: var(--text-dark);
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.product-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 40px 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border-color: rgba(16, 185, 129, 0.3);
}

.product-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.product-header h3 {
    color: var(--text-dark);
    margin-bottom: 0;
    font-size: 1.4rem;
}

.p-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--primary-green);
    border-radius: 12px;
    font-size: 1.5rem;
}

.product-card p {
    color: #4b5563;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.product-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

.product-link:hover {
    text-decoration: underline;
}

/* Purpose Section */
.purpose-section {
    position: relative;
    padding: 120px 0;
    background: url('assets/bosque.png') center/cover no-repeat;
    text-align: center;
}

.purpose-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 21, 0.85); /* Dark overlay */
}

.purpose-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.purpose-content h2 {
    font-size: 3rem;
    margin-bottom: 24px;
}

.purpose-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #e2e8f0;
}

/* Technologies Section */
.tech-section {
    padding: 60px 0;
    background-color: var(--bg-darker);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-section h3 {
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.tech-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.tech-logos span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #64748b;
    /* Placeholder styles for logos */
}

/* Success Cases Section */
.cases-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.cases-section h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.case-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid var(--border-dark);
    position: relative;
    overflow: hidden;
}

/* Background images for case cards based on the mockup */
.case-card:nth-child(1) { background: linear-gradient(to top, var(--bg-card) 60%, rgba(20,26,34,0)), url('https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=600') top/cover no-repeat; }
.case-card:nth-child(2) { background: linear-gradient(to top, var(--bg-card) 60%, rgba(20,26,34,0)), url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=600') top/cover no-repeat; }
.case-card:nth-child(3) { background: linear-gradient(to top, var(--bg-card) 60%, rgba(20,26,34,0)), url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=600') top/cover no-repeat; }

.case-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, var(--bg-card) 40%, rgba(20,26,34,0.3) 100%);
    z-index: 1;
}

.case-card > * {
    position: relative;
    z-index: 2;
}

.case-badge {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 100px;
    margin-bottom: 20px;
}

.case-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.case-card p {
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.case-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.case-link:hover {
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(to right, rgba(16, 185, 129, 0.1), transparent), var(--bg-card);
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.cta-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-text h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

/* Footer */
.footer-dark {
    background-color: #06090c;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 24px;
    transform: scale(2.8);
    transform-origin: left center;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-bottom: 24px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: white;
    text-decoration: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.footer-links h4, .footer-contact h4 {
    color: var(--primary-green);
    font-size: 1rem;
    margin-bottom: 24px;
}

.footer-links a, .footer-contact p {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-image-wrapper { height: 400px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .menu-toggle { display: block; }
    .header .btn { display: none; }
    .hero-content h1 { font-size: 2.5rem; }
    .stats-grid { flex-direction: column; align-items: flex-start; }
    .cta-flex { flex-direction: column; text-align: left; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .logo { transform: scale(2.0); transform-origin: center center; margin-left: 20px; }
    .footer-logo { transform: scale(2.0); transform-origin: center center; }
}
