* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2b9348;
    --secondary: #52b788;
    --dark: #3a3a3a;
    --light: #f8f9fa;
    --accent: #1b7a3d;
    --gray: #6c757d;
    --text-dark: #2d2d2d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-image: url("media/Media/logos/Logo Ingeocc-01.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
    opacity: 1;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(58, 58, 58, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar.scrolled {
    padding: 0.7rem 5%;
    background: rgba(58, 58, 58, 1);
}
.logo {
    font-size: 2.2rem;
    font-weight: bold;
    color: white;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.logo span {
    color: var(--primary);
}
.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}
.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    font-size: 1rem;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    height: 90vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(43, 147, 72, 0.85), rgba(27, 122, 61, 0.75));
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 1000px;
    padding: 0 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
    background-image: url("media/Media/logos/Logo Ingeocc-01.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
    opacity: 1;
}
.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.5);
    line-height: 1.2;
    font-weight: 800;
}
.hero .tagline {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}
.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-btn {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(43, 147, 72, 0.4);
}
.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(43, 147, 72, 0.6);
    background: var(--accent);
}
.cta-btn-outline {
    background: transparent;
    border: 3px solid white;
    box-shadow: none;
}
.cta-btn-outline:hover {
    background: white;
    color: var(--primary);
}

/* Stats Bar */
.stats-bar {
    background: var(--dark);
    padding: 3rem 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.stat-item {
    text-align: center;
    color: white;
}
.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 1.1rem;
    color: #ccc;
}

/* Services */
.services {
    padding: 6rem 5%;
    background: white;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}
.services.visible {
    opacity: 1;
    transform: translateY(0);
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-title {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--primary);
}
.section-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    max-width: 800px;
    margin: 1.5rem auto 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}
.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}
.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border-color: var(--primary);
}
.service-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 15px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
}
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 700;
}
.service-card p {
    color: #666;
    line-height: 1.8;
}

/* Products */
.products {
    padding: 6rem 5%;
    background: var(--light);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}
.products.visible {
    opacity: 1;
    transform: translateY(0);
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    opacity: 0;
    transform: scale(0.9);
}
.product-card.visible {
    opacity: 1;
    transform: scale(1);
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #666, #999);
    position: relative;
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.1);
}
.product-content {
    padding: 1.5rem;
}
.product-title {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.product-desc {
    color: #666;
    font-size: 0.95rem;
}

/* Clients */
.clients {
    padding: 5rem 5%;
    background: var(--primary);
    color: white;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}
.clients.visible {
    opacity: 1;
    transform: translateY(0);
}
.clients .section-title {
    color: white;
}
.clients .section-subtitle {
    color: rgba(255,255,255,0.8);
}
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}
.client-logo {
    padding: 3rem 2rem;
    background: white;
    border-radius: 20px;
    transition: all 0.4s ease;
    font-weight: bold;
    color: var(--dark);
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    opacity: 0;
    transform: translateY(30px);
}
.client-logo.visible {
    opacity: 1;
    transform: translateY(0);
}
.client-logo:hover {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 15px 40px rgba(255,255,255,0.3);
}

/* Blog */
.blog-preview {
    padding: 6rem 5%;
    background: white;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}
.blog-preview.visible {
    opacity: 1;
    transform: translateY(0);
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}
.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}
.blog-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.blog-image {
    height: 250px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
    overflow: hidden;
}
.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-content {
    padding: 2rem;
}
.blog-date {
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}
.blog-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}
.blog-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}
.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}
.read-more:hover {
    gap: 1rem;
    color: var(--accent);
}

/* CTA */
.cta-section {
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}
.cta-section.visible {
    opacity: 1;
    transform: translateY(0);
}
.cta-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
    border-radius: 50%;
    top: -250px;
    right: -250px;
}
.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.cta-section p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 5% 2rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-section h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}
.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}
.footer-section a:hover {
    color: var(--primary);
    padding-left: 5px;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(43, 147, 72, 0.5);
}
.scroll-top.visible {
    opacity: 1;
}
.scroll-top:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero .tagline {
        font-size: 1.3rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .cta-buttons {
        flex-direction: column;
    }
    .nav-links {
        gap: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .hero {
        height: 60vh;
    }
    .services,
    .products,
    .clients,
    .blog-preview,
    .cta-section,
    .gallery-section,
    .video-section,
    .about-section,
    .politica-section {
        padding: 4rem 5%;
    }
    .services-grid,
    .products-grid,
    .clients-grid,
    .blog-grid,
    .gallery-grid,
    .video-grid,
    .about-content,
    .politica-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 2rem 1rem;
    }
    .stat-number {
        font-size: 2.5rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .footer-section h4 {
        font-size: 1.2rem;
    }
    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1.1rem;
    }
    .hero-banner h1 {
        font-size: 2.5rem;
    }
}

/* Hero Banner Nosotros */
.hero-banner {
    height: 60vh;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}
.hero-banner::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 124, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}
@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}
.hero-banner h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}
.hero-banner p {
    font-size: 1.5rem;
    color: #e0e0e0;
}

/* Timeline Section */
.timeline-section {
    padding: 5rem 5%;
    background: white;
}
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--secondary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}
.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}
.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 4rem;
}
.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 4rem;
}
.timeline-content {
    background: var(--light);
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.timeline-year {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
    z-index: 1;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.timeline-item:nth-child(odd) .timeline-year {
    right: -4rem;
}
.timeline-item:nth-child(even) .timeline-year {
    left: -4rem;
}
.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}
.timeline-content p {
    color: #666;
    line-height: 1.8;
}

/* Responsive Timeline */
@media (max-width: 968px) {
    .timeline::after {
        left: 30px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 2rem;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 80px;
    }
    .timeline-item:nth-child(odd) .timeline-year,
    .timeline-item:nth-child(even) .timeline-year {
        left: -25px;
    }
    .hero-banner h1 {
        font-size: 2.5rem;
    }
}
