@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #2d5a27; /* Deep Quinchía Green */
    --primary-light: #4a8c41;
    --secondary: #d4a373; /* Earthy Gold/Coffee */
    --accent: #fefae0;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: transparent !important;
    backdrop-filter: none;
    box-shadow: none;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 5px 0;
}

header.scrolled .nav-links a {
    color: var(--dark) !important;
}

header.scrolled .nav-links a:hover {
    color: var(--primary);
}

header.scrolled .mobile-menu-btn span {
    background: var(--primary) !important;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

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

#logo-img {
    height: 60px; /* Ajusta según sea necesario */
    width: auto;
    transition: var(--transition);
}

header.scrolled #logo-img {
    height: 50px;
    filter: none; /* In case we add a filter for the transparent state */
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 10px;
    transition: var(--transition);
}

header.scrolled .mobile-menu-btn span {
    background: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

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

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

.nav-links a.nav-btn {
    background: var(--primary);
    color: white !important;
    padding: 10px 25px;
    border-radius: 50px;
    transition: var(--transition);
}

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

.nav-links a.nav-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

header.scrolled .nav-links a.nav-btn {
    background: var(--primary);
    color: white !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding: 0;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-video-container iframe {
    width: 100vw;
    height: 56.25vw; /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 Aspect Ratio */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(45, 90, 39, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-subtitle {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 0; /* Espacio reducido */
    color: var(--secondary);
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 4rem;
    margin-top: -5px; /* Acercar al subtítulo */
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1.2s ease;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1.4s ease;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 20px;
    z-index: 2;
}

.scroll-indicator span {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

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

/* Floating Socials */
.floating-socials {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
}

.floating-socials a {
    width: 45px;
    height: 45px;
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.floating-socials a:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Section Common */
section {
    padding: 100px 0;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary);
}

.section-title p {
    margin-top: 15px;
}

/* Projects Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.project-info {
    padding: 30px;
}

.project-info h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.news-item {
    display: flex;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.news-date {
    background: var(--accent);
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    min-width: 70px;
    height: fit-content;
}

.news-date span {
    display: block;
    font-weight: 800;
    color: var(--primary);
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 80px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--secondary);
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.footer-col ul li a:hover {
    color: var(--secondary);
    opacity: 1;
    padding-left: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    header { background: rgba(0,0,0,0.95) !important; }
    header.scrolled { background: rgba(255,255,255,0.98) !important; }
    nav { 
        padding: 15px 20px; 
    }
    .hero-content h1 { font-size: 2.5rem; }
    .contact-container { grid-template-columns: 1fr; }
    .nav-links { 
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 10px 0 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        gap: 0;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        color: var(--dark) !important;
        padding: 15px 20px;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    .nav-links a::after { display: none; }
    .nav-links a.nav-btn {
        margin: 15px auto 0;
        width: fit-content;
    }
    .mobile-menu-btn { display: flex; }
}
