:root {
    /* Colores del Logo */
    --primary-color: #25D366; 
    --primary-glow: rgba(37, 211, 102, 0.4);
    
    /* Aclarar Fondo (Light Theme) */
    --bg-color: #f4f6f8;
    --bg-secondary: #ffffff;
    --text-main: #212529;
    --text-muted: #495057;
    
    /* Actualización de Glassmorphism para Light Theme */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    
    font-family: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

/* Evitar conflictos con Bootstrap */
a {
    text-decoration: none;
}

/* Glassmorphism utility */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Sombra suave para fondos claros */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    z-index: 1000;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--text-main);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 0; /* Bootstrap override */
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

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

.btn-primary, .btn-whatsapp {
    background: var(--primary-color);
    color: #fff; /* Blanco sobre verde */
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    display: inline-block;
}

.btn-primary:hover, .btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--primary-glow);
    color: #fff;
}

/* Animaciones */
@keyframes bgMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes bannerPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Hero Logos */
.hero-logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1cm;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.main-hero-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    animation: float 6s ease-in-out infinite;
    background: white; /* Added white background if transparent */
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 100px 5% 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #e0f2e9, #ffffff, #f4f6f8, #e8f5e9);
    background-size: 400% 400%;
    animation: bgMove 15s ease infinite;
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    z-index: 10;
}

.gradient-text {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(90deg, #111, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: bannerPulse 4s ease-in-out infinite;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.tagline {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: 600;
    animation: float 4s ease-in-out infinite;
}

/* Container & Sections */
.section {
    padding: 5rem 5%;
}

.section-dark {
    background-color: var(--bg-secondary);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-main);
    position: relative;
}

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

/* Cards */
.card {
    padding: 2rem;
    text-align: center;
    transition: transform 0.4s, box-shadow 0.4s, background-color 0.4s;
    cursor: pointer;
    border: none;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px) scale(1.03); 
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.2);
    background: #ffffff;
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.4s;
}

.card:hover .card-icon {
    transform: rotate(10deg) scale(1.1);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

/* Custom History Section */
.history-content {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Logos Section */
.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.client-logo {
    max-width: 150px;
    max-height: 100px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Materials List */
.materials-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.material-item {
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    transition: background 0.3s;
}

.material-item:hover {
    background: linear-gradient(90deg, rgba(37, 211, 102, 0.1) 0%, transparent 100%);
}

.material-item h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease, box-shadow 0.5s;
    border-radius: 12px;
}

.gallery-img:hover {
    transform: scale(1.05) rotate(-1deg);
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 5% 1rem;
    background: var(--bg-secondary);
}

.footer-logo {
    width: 80px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

/* Animations Triggered by JS */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.fade-in.appear {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .gradient-text {
        font-size: 2.5rem;
    }
    
    .main-hero-logo {
        width: 180px;
    }
}
