/* ==========================================
   LifeSmart - Estilos CSS Responsivos
   ========================================== */

/* CSS Variables */
:root {
    --color-primary: #1A1A1A;
    --color-secondary: #666666;
    --color-tertiary: #888888;
    --color-muted: #AAAAAA;
    --color-accent: #0D6E6E;
    --color-bg-light: #FAFAFA;
    --color-bg-white: #FFFFFF;
    --color-bg-dark: #1A1A1A;
    --color-bg-card-dark: #2A2A2A;
    --color-border: #E5E5E5;
    --color-border-dark: #3A3A3A;
    --color-divider: #333333;

    --font-primary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --max-width: 1440px;
    --content-padding: 80px;
    --section-padding: 80px;
    --card-radius: 16px;
    --btn-radius: 8px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-primary);
    background-color: var(--color-bg-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* ==========================================
   Header
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-secondary);
    transition: color 0.3s ease;
}

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

.btn-contact {
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--btn-radius);
    transition: background-color 0.3s ease;
}

.btn-contact:hover {
    background-color: #333;
}

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--color-bg-white);
    z-index: 999;
    padding: 24px;
    display: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-link {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-secondary);
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.btn-contact-mobile {
    margin-top: 16px;
    width: 100%;
    padding: 16px 24px;
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--btn-radius);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    height: 600px;
    margin-top: 80px;
    overflow: hidden;
}

.carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

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

.hero-content {
    position: absolute;
    z-index: 10;
    left: 80px;
    top: 150px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.125);
    border-radius: 20px;
    width: fit-content;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    color: #fff;
}

.hero-badge span {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    max-width: 700px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background-color: var(--color-bg-white);
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--btn-radius);
    transition: all 0.3s ease;
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background-color: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #fff;
    border-radius: var(--btn-radius);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: #fff;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

/* ==========================================
   Sections
   ========================================== */
.section {
    padding: var(--section-padding);
}

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

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

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--color-secondary);
}

.section-label-dark {
    color: var(--color-tertiary);
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--color-primary);
}

.section-title-dark {
    color: #fff;
}

.section-desc {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-secondary);
    line-height: 1.6;
}

.section-desc-dark {
    color: var(--color-muted);
}

/* ==========================================
   Product Cards
   ========================================== */
.products-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    width: 380px;
    background-color: var(--color-bg-white);
    border-radius: var(--card-radius);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-card-dark {
    background-color: var(--color-bg-card-dark);
    border-color: var(--color-border-dark);
}

.product-card-dark:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Nature Pro centered image style */
.product-image-center {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F5F5F5;
    padding: 30px;
}

.product-image-center img {
    width: auto;
    max-width: 251px;
    height: auto;
    max-height: 114px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.product-card:hover .product-image-center img {
    transform: scale(1.08);
}

/* Proyecto cards - taller images */
.proyecto-image {
    height: 260px;
}

.proyecto-content {
    gap: 12px;
}

.product-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
}

.product-name-dark {
    color: #fff;
}

.product-desc {
    font-size: 14px;
    color: var(--color-secondary);
    line-height: 1.5;
}

.product-desc-dark {
    color: var(--color-muted);
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-features svg {
    width: 16px;
    height: 16px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.product-features span {
    font-size: 13px;
    color: var(--color-secondary);
}

.product-card-dark .product-features span {
    color: var(--color-tertiary);
}

.family-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background-color: #000;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: 8px;
}

.family-card-btn:hover {
    background-color: #EEE;
    color: #333;
    transform: translateY(-2px);
}
.family-card-btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background-color: #FFF;
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: 8px;
}

.family-card-btn-light:hover {
    background-color: #BBB;
    transform: translateY(-2px);
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--color-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--btn-radius);
    transition: all 0.3s ease;
}

.btn-download:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.btn-download svg {
    width: 16px;
    height: 16px;
}

.btn-download-light {
    background-color: #fff;
    color: var(--color-primary);
}

.btn-download-light:hover {
    background-color: #f0f0f0;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background-color: var(--color-bg-dark);
    padding: 60px var(--content-padding);
}

.footer-main {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.footer-tagline {
    font-size: 14px;
    color: var(--color-tertiary);
    line-height: 1.5;
}

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

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-col-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-secondary);
}

.footer-col a {
    font-size: 14px;
    color: var(--color-muted);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #fff;
}

.footer-divider {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 1px;
    background-color: var(--color-divider);
    margin-bottom: 24px;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 13px;
    color: var(--color-secondary);
}

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

.social-btn {
    width: 36px;
    height: 36px;
    background-color: var(--color-divider);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: var(--color-accent);
}

.social-btn svg {
    width: 18px;
    height: 18px;
    color: var(--color-muted);
    transition: color 0.3s ease;
}

.social-btn:hover svg {
    color: #fff;
}

/* ==========================================
   Responsive - Tablet (max 1024px)
   ========================================== */
@media (max-width: 1024px) {
    :root {
        --content-padding: 40px;
        --section-padding: 60px;
    }

    .nav {
        gap: 20px;
    }

    .hero-content {
        left: 40px;
        top: 120px;
    }

    .hero-title {
        font-size: 44px;
    }

    .section-title {
        font-size: 32px;
    }

    .products-grid {
        gap: 20px;
    }

    .product-card {
        width: 340px;
    }

    .footer-links {
        gap: 40px;
    }

    .footer-main {
        gap: 40px;
    }
}

/* ==========================================
   Responsive - Mobile (max 768px)
   ========================================== */
@media (max-width: 768px) {
    :root {
        --content-padding: 24px;
        --section-padding: 48px;
    }

    /* Header Mobile */
    .nav {
        display: none;
    }

    .btn-contact {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-content {
        height: 70px;
    }

    /* Hero Mobile */
    .hero {
        margin-top: 70px;
        height: auto;
        min-height: 500px;
    }

    .hero-content {
        position: relative;
        left: auto;
        top: auto;
        padding: 60px var(--content-padding);
        max-width: 100%;
    }

    .hero-title {
        font-size: 32px;
        max-width: 100%;
    }

    .hero-subtitle {
        font-size: 16px;
        max-width: 100%;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 14px 24px;
    }

    .carousel-indicators {
        bottom: 24px;
    }

    .mobile-menu {
        top: 70px;
    }

    /* Sections Mobile */
    .section-header {
        margin-bottom: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-desc {
        font-size: 16px;
    }

    /* Product Cards Mobile */
    .products-grid {
        flex-direction: column;
        align-items: center;
    }

    .product-card {
        width: 100%;
        max-width: 400px;
    }

    .product-image {
        height: 200px;
    }

    .proyecto-image {
        height: 220px;
    }

    .product-content {
        padding: 20px;
    }

    .product-name {
        font-size: 20px;
    }

    /* Footer Mobile */
    .footer {
        padding: 40px var(--content-padding);
    }

    .footer-main {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 32px;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

/* ==========================================
   Responsive - Small Mobile (max 480px)
   ========================================== */
@media (max-width: 480px) {
    :root {
        --content-padding: 16px;
    }

    .logo-text {
        font-size: 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-badge span {
        font-size: 12px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-desc {
        font-size: 15px;
    }

    .product-card {
        border-radius: 12px;
    }

    .product-image {
        height: 180px;
    }

    .proyecto-image {
        height: 200px;
    }

    .product-name {
        font-size: 18px;
    }

    .product-desc {
        font-size: 13px;
    }

    .btn-download {
        font-size: 13px;
        padding: 10px 16px;
    }
    .family-card-btn {
        width: 100%;
    }
    .family-card-btn-light {
        width: 100%;
    }
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scroll offset for fixed header */
section[id] {
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 80px;
    }
}
