/* ===== VARIABLES & GLOBALS ===== */
:root {
    --primary: #0b8043; /* Verde Textil */
    --primary-dark: #075e31;
    --primary-light: #e6f4ea;
    --secondary: #1a1a1a; /* Negro Suave */
    --accent: #25D366; /* WhatsApp Green */
    
    --bg-main: #ffffff;
    --bg-alt: #f4f6f8;
    
    --text-main: #2c3e50;
    --text-light: #64748b;
    --text-inverse: #ffffff;
    
    --font-main: 'Inter', sans-serif;
    
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== UTILITIES ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    gap: 0.5rem;
}

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

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

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-inverse);
}

.btn-secondary:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-inverse);
    color: var(--text-inverse);
}

.btn-outline:hover {
    background-color: var(--text-inverse);
    color: var(--secondary);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.mt-2 { margin-top: 2rem; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: transparent;
    z-index: 1000;
    transition: background-color var(--transition), box-shadow var(--transition), height var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    height: 80px;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-link img {
    height: 65px;
    object-fit: contain;
    transition: height var(--transition);
}

.navbar.scrolled .logo-link img {
    height: 55px;
    /* Filtrar logo para que contraste con fondo blanco (dependiendo del logo), aqui asumo logo opcional */
}

/* En caso que el logo original sea blanco para el hero, aquí podríamos aplicarle un filtro invert */

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-inverse);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding-bottom: 0.3rem;
}

.navbar.scrolled .nav-link {
    color: var(--text-main);
}

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

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

.nav-link.highlight-link {
    color: var(--primary);
    font-weight: 700;
}

.navbar.scrolled .nav-link.highlight-link {
    color: var(--primary);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-inverse);
    font-size: 1.5rem;
    cursor: pointer;
}

.navbar.scrolled .hamburger {
    color: var(--secondary);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

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

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
    color: var(--text-inverse);
}

.hero-content h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    color: var(--text-inverse);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

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

/* ===== PRODUCTOS (COLLAGE) ===== */
.collage-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    gap: 1.5rem;
}

.collage-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.collage-item.tall {
    grid-row: span 2;
}

.collage-item.wide {
    grid-column: span 2;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.collage-item:hover img {
    transform: scale(1.08); /* Zoom effect on hover */
}

/* ===== SERVICIOS ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-alt);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.service-card:hover {
    background-color: var(--bg-main);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== GENERA INGRESOS (LANDING) ===== */
.landing-section {
    background-color: var(--secondary);
    color: var(--text-inverse);
    overflow: hidden;
}

.landing-section .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.landing-content {
    flex: 1;
}

.landing-content h2 {
    color: var(--text-inverse);
    margin-bottom: 1.5rem;
}

.landing-content h2 span {
    color: var(--primary);
}

.landing-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.badge {
    display: inline-block;
    background-color: rgba(11, 128, 67, 0.2);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid var(--primary);
}

.benefits-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
}

.benefits-list li i {
    color: var(--primary);
    font-size: 1.2rem;
}

.landing-image {
    flex: 1;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.landing-image img {
    border-radius: var(--border-radius);
    height: 500px;
    width: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--primary);
    color: white;
    padding: 2rem;
    border-radius: 50%;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 8px solid var(--secondary);
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 5px;
}

/* ===== PROCESO ===== */
.process-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
}

.process-text {
    flex: 1;
    position: sticky;
    top: 150px;
}

.process-media {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.main-process-img {
    border-radius: var(--border-radius);
    width: 100%;
    height: 400px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.sub-process-imgs {
    display: flex;
    gap: 1.5rem;
}

.sub-process-imgs img {
    border-radius: var(--border-radius);
    width: calc(50% - 0.75rem);
    height: 250px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

/* ===== CONTACTO ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background-color: var(--bg-main);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    padding: 3rem;
    overflow: hidden;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.info-item p, .info-item a {
    color: var(--text-light);
    font-size: 0.95rem;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--bg-main);
    transition: transform var(--transition);
}

.social-icon.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-icon.whatsapp {
    background-color: #25D366;
}

.social-icon:hover {
    transform: scale(1.1);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    background-color: var(--bg-alt);
    transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-main);
    box-shadow: 0 0 0 3px rgba(11, 128, 67, 0.1);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--secondary);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
    /* Invert filter temporal en caso de que el logo sea oscuro, se podría ajustar */
    filter: brightness(0) invert(1);
}

.brand-col p {
    font-size: 0.95rem;
    max-width: 350px;
}

.footer-col h4 {
    color: var(--text-inverse);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.footer-col ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.footer-col ul li i {
    margin-top: 4px;
    color: var(--primary);
}

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

.footer-bottom {
    background-color: rgba(0,0,0,0.3);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
}

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

/* ===== ANIMATIONS ===== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay staggered items inside grid */
.collage-gallery .collage-item:nth-child(1) { transition-delay: 0.1s; }
.collage-gallery .collage-item:nth-child(2) { transition-delay: 0.15s; }
.collage-gallery .collage-item:nth-child(3) { transition-delay: 0.2s; }
.collage-gallery .collage-item:nth-child(4) { transition-delay: 0.25s; }
.collage-gallery .collage-item:nth-child(5) { transition-delay: 0.3s; }
.collage-gallery .collage-item:nth-child(6) { transition-delay: 0.35s; }
.collage-gallery .collage-item:nth-child(7) { transition-delay: 0.4s; }
.collage-gallery .collage-item:nth-child(8) { transition-delay: 0.45s; }

/* ===== RESPONSIVE (MOBILE FIRST APPROACH - WELL MAX-WIDTH FOR SIMPLICITY) ===== */
@media (max-width: 1024px) {
    .landing-section .container,
    .process-wrapper,
    .contact-grid {
        flex-direction: column;
        gap: 3rem;
    }
    
    .landing-image img, 
    .main-process-img {
        height: auto;
        max-height: 400px;
    }
    
    .experience-badge {
        width: 140px;
        height: 140px;
        bottom: -10px;
        left: -10px;
        padding: 1.5rem;
    }
    
    .experience-badge .number {
        font-size: 1.8rem;
    }
    
    .process-text {
        position: static;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .navbar {
        height: 70px;
    }
    
    .navbar.scrolled {
        height: 70px;
    }
    
    .logo-link img {
        height: 45px;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        background-color: var(--bg-main);
        flex-direction: column;
        width: 100%;
        height: calc(100vh - 70px);
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transition: left 0.4s ease;
        box-shadow: var(--shadow-md);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        color: var(--secondary);
        font-size: 1.2rem;
    }
    
    .nav-link.highlight-link {
        color: var(--primary);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section {
        padding: 4rem 0;
    }

    /* Correcciones para la galería en móviles */
    .collage-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-auto-rows: 200px;
        gap: 1rem;
    }

    .collage-item.wide {
        grid-column: span 1;
    }
    
    .experience-badge {
        width: 110px;
        height: 110px;
        bottom: 10px;
        left: 10px;
        padding: 1rem;
        border-width: 4px;
    }

    .experience-badge .number {
        font-size: 1.4rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-container p {
        margin: 0 auto;
    }
    
    .footer-col ul li {
        justify-content: center;
    }
    
    .contact-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .contact-info {
        gap: 1.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .social-links {
        justify-content: center;
    }
}
