:root {
    --primary-color: #0b3d2e;
    --primary-light: #165c47;
    --accent-color: #f1c40f;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --mint: #c5e0d8;
    --glass: rgba(11, 61, 46, 0.95);
    /* Darker glass for light logo */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.6;
}

body.modal-open {
    overflow: hidden;
}

a,
a:hover {
    text-decoration: none !important;
    transition: var(--transition);
}

/* Typography Mobile-First */
h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 800;
}

h2 {
    font-size: 1.75rem;
    line-height: 1.3;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 700;
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 800;
}

@media (min-width: 992px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 3.5rem;
    }
}

/* Header & Nav - Native App Feel */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 61, 46, 0.95);
    /* Deep opaque for app feel */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
    padding: 0.5rem 0;
    /* Slimmer for mobile */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.nav-open {
    overflow: hidden;
}

/* Mobile bottom nav (app-like) */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 991px) {
    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        z-index: 1001;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
        background: rgba(11, 61, 46, 0.98);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px 6px;
        color: rgba(255, 255, 255, 0.85);
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        border-radius: 12px;
        transition: transform 0.2s ease, background 0.2s ease;
    }

    .mobile-nav-item i {
        font-size: 1.1rem;
    }

    .mobile-nav-item:hover,
    .mobile-nav-item:focus {
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
        text-decoration: none;
        transform: translateY(-2px);
    }

    body {
        padding-bottom: 84px;
    }
}

.brand-logo {
    height: 60px;
    /* Increased for mobile */
    transition: var(--transition);
}

@media (max-width: 991px) {
    .navbar .container {
        display: flex;
        justify-content: center;
        /* Center logo on mobile */
        position: relative;
    }

    .navbar-brand {
        margin-right: 0;
    }

    .navbar-toggler {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (min-width: 992px) {
    .brand-logo {
        height: 80px;
        /* Increased for desktop */
    }

    .navbar.scrolled .brand-logo {
        height: 60px;
    }
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    position: relative;
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 2rem);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Mobile Nav Menu Background */
@media (max-width: 991px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100%;
        background: linear-gradient(160deg, #0b3d2e 0%, #0f5132 55%, #145a32 100%);
        padding: 90px 24px 32px;
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        overflow-y: auto;
        z-index: 999;
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }

    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.75rem;
    }

    .mobile-nav-brand img {
        height: 58px;
        width: auto;
    }

    .mobile-nav-close {
        border: none;
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
    }

    .mobile-nav-address {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
        text-align: center;
    }

    .mobile-nav-cta {
        color: rgba(255, 255, 255, 0.85);
        font-size: 0.9rem;
        margin: 0.75rem 0 0;
        text-align: center;
    }

    .mobile-nav-cta i {
        margin-right: 6px;
    }

    .navbar-nav {
        width: 100%;
        align-items: center;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
        text-align: center;
        padding: 0.9rem 1rem !important;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.05);
        margin-bottom: 0.6rem;
    }

    .nav-link::after {
        display: none;
    }
}

/* Hero Section */
.banner-area {
    position: relative;
    height: 85vh;
    /* Standard mobile app hero height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    /* Prevent header overlap on mobile */
    margin-top: 0;
}

@media (min-width: 992px) {
    .banner-area {
        height: 100vh;
        padding-top: 0;
        /* Reset for desktop */
    }
}

#banner-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    filter: brightness(0.6);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11, 61, 46, 0.6), rgba(0, 0, 0, 0.4));
}

.green-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
}

@media (min-width: 992px) {
    .green-box {
        padding: 3.5rem;
        max-width: 700px;
        text-align: left;
        margin: 0;
    }
}

.green-box h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.green-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.button {
    background: var(--accent-color);
    color: var(--primary-color) !important;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(241, 196, 15, 0.4);
    background: var(--white);
}

/* Products Section Refinement */
#productos {
    position: relative;
    background-image: url('../images/bg_productos.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

#productos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 249, 250, 0.9);
    /* Semantic light-bg with transparency */
    z-index: -1;
}

@media (min-width: 992px) {
    section {
        padding: 6rem 0;
    }
}

/* Products Card Refinement */
.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.product-img {
    height: 220px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f8f9fa;
    position: relative;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 61, 46, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

/* News Section */
.news-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

@media (min-width: 768px) {
    .news-card {
        flex-direction: row;
    }
}

.news-img {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
}

@media (min-width: 768px) {
    .news-img {
        width: 350px;
        min-width: 350px;
        height: auto;
    }
}

.news-content {
    padding: 2rem;
}

.news-date {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary-light);
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

/* Contact Section Icons */
.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-white-10 {
    background: rgba(255, 255, 255, 0.1);
}

.rounded-20 {
    border-radius: 20px !important;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Product Modal Styles */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    align-items: center;
}

.product-modal.show {
    display: flex;
    opacity: 1;
}

.product-modal .modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 992px) {
    .product-modal .modal-close-btn {
        top: 40px;
        right: 40px;
    }
}

.modal-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 40px 15px;
}

.modal-content-wrapper {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
}

.modal-img {
    width: 100%;
    height: 300px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f8f9fa;
}

@media (min-width: 768px) {
    .modal-img {
        height: 500px;
    }
}

.modal-details {
    padding: 2.5rem;
}

.modal-desc {
    line-height: 1.8;
    font-size: 1.05rem;
}

@media (min-width: 992px) {
    .modal-details {
        padding: 4rem;
    }
}

/* Floating WhatsApp Fix */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25d366;
    color: white !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    z-index: 999;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.gap-3 {
    gap: 1rem;
}
