:root {
    --bg-dark: #fcfcfc;
    --bg-card: #ffffff;
    --text-main: #111111;
    --text-muted: #555555;
    --accent-red: #2D5A27; 
    --accent-lime: #689F38; /* Nuevo Verde Corporativo */
    --accent-gray: #f0f0f0;
    --cement: #666;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

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

h1, h2, h3, .logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.03em;
}

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

/* WHATSAPP */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: translateY(-5px);
}

/* HEADER BRAND (Inside Static Header) */
.header-brand a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.header-brand img {
    height: 35px;
    width: auto;
    filter: saturate(1.8);
}

.header-brand span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: white; /* Letras en blanco */
}

/* FROSTED GLASS HEADER (CRISTAL ESMERILADO) */
.main-header.header-pill {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    background: rgba(0, 0, 0, 0.2); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-radius: 999px;
    padding: 12px 45px;
    z-index: 1000;
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
        0 10px 40px rgba(0,0,0,0.15),
        inset 0 0 1px rgba(255,255,255,0.1);
    transition: var(--transition);
}

.main-header.header-pill:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--accent-lime);
}

.desktop-nav {
    display: flex;
    gap: 35px;
}

.desktop-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

.desktop-nav a:hover {
    color: var(--accent-lime);
}

/* No green active state by default, only hover */
.desktop-nav a.active {
    color: white;
}

/* HAMBURGER (LIGHT MODE) */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    cursor: pointer;
    padding: 10px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: var(--transition);
}

.hamburger-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.hamburger-btn .bar {
    width: 20px;
    height: 1.5px;
    background: #111;
    border-radius: 2px;
    transition: var(--transition);
}

.close-menu-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 3.5rem;
    cursor: pointer;
    line-height: 1;
}

/* CINEMATIC HERO */
.hero-cinematic {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-cinematic::before,
.hero-cinematic::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 30%;
    z-index: 2;
    pointer-events: none;
}

.hero-cinematic::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.hero-cinematic::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.video-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

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

.glass-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15); 
    backdrop-filter: blur(1.8px) saturate(110%); /* 60% menos esmerilado */
    -webkit-backdrop-filter: blur(1.8px) saturate(110%);
    z-index: 1;
}

.hero-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 140px 0 60px;
    position: relative;
    z-index: 10;
}

.hero-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.grid-right {
    text-align: right;
}

.hero-main-content {
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
}

.pre-heading {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 15px rgba(0,0,0,0.8));
    color: white;
}

.hero-logo {
    height: 180px; /* Agrandado */
    width: auto;
    margin-bottom: 40px;
    filter: drop-shadow(0 0 30px rgba(45, 90, 39, 0.6));
}

.main-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 13vw, 9rem); /* Agrandado */
    line-height: 0.85;
    letter-spacing: -0.05em;
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.8));
}

/* SHINY TEXT EFFECT (WHITE BASE WITH GREEN PULSE) */
.shiny-text {
    background: linear-gradient(
        100deg,
        #ffffff 35%,
        #689F38 50%,
        #ffffff 65%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.btn-enroll {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: black;
    color: white;
    padding: 16px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 50px;
    transition: var(--transition);
}

.btn-enroll:hover {
    background: #111;
    transform: translateY(-2px);
}

.btn-enroll i {
    width: 18px;
    transition: transform 0.3s ease;
}

.btn-enroll:hover i {
    transform: translateX(5px);
}

.logo-accent {
    color: var(--accent-red);
}

/* MOBILE OVERLAY */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-nav-overlay.active {
    transform: translateY(0);
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-nav-content a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

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

.hero-split {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
}

.split-item {
    flex: 1;
    height: 100%;
    position: relative;
    transition: flex 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.split-item:hover {
    flex: 1.5;
}

.split-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5) brightness(0.4);
    transition: filter 0.8s ease;
}

.split-item:hover video {
    filter: grayscale(0) brightness(0.6);
}

.split-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Space Grotesk';
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    opacity: 0.5;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 0.9;
    margin-bottom: 20px;
    text-transform: uppercase;
}

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

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* BUTTONS */
.btn {
    padding: 16px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    transition: var(--transition);
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: #ff4d5a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

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

.btn-primary-dark {
    background-color: #000;
    color: white;
    width: 100%;
    text-align: center;
}

/* SEARCH SECTION */
.search-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--bg-dark), #f0f0f0);
}

.search-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #eee;
}

.search-header {
    text-align: center;
    margin-bottom: 30px;
}

.search-header h2 {
    margin-bottom: 8px;
}

.search-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Warning Banner */
.search-warning {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(212, 225, 87, 0.15);
    border: 1px solid rgba(104, 159, 56, 0.3);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 30px;
    color: var(--forest);
    font-size: 0.85rem;
    font-weight: 500;
}

.search-warning i {
    flex-shrink: 0;
    color: var(--leaf);
}

/* PARTS FINDER */
.parts-finder {
    margin-bottom: 20px;
}

.finder-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.finder-row-full {
    grid-template-columns: 1fr;
}

.finder-divider {
    height: 1px;
    background: #eee;
    margin: 25px 0;
}

.finder-group {
    display: flex;
    flex-direction: column;
}

.finder-group-full {
    width: 100%;
}

.finder-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Autocomplete Input */
.autocomplete {
    position: relative;
}

.autocomplete input,
.finder-group input,
.finder-group select {
    width: 100%;
    padding: 14px 16px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #111;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.autocomplete input:focus,
.finder-group input:focus,
.finder-group select:focus {
    outline: none;
    border-color: var(--accent-lime);
    box-shadow: 0 0 0 3px rgba(104, 159, 56, 0.1);
}

.autocomplete input::placeholder,
.finder-group input::placeholder {
    color: #aaa;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.autocomplete-list.active {
    display: block;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: rgba(104, 159, 56, 0.1);
    color: var(--forest);
}

.autocomplete-item mark {
    background: rgba(212, 225, 87, 0.4);
    font-weight: 600;
}

/* Finder Actions */
.finder-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.btn-clear {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 10px;
    color: #666;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: var(--accent-lime);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-search:hover {
    background: var(--leaf);
    transform: translateY(-2px);
}

/* Results */
.finder-results {
    margin-top: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    overflow: hidden;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.results-count {
    font-weight: 600;
    color: var(--forest);
    font-size: 0.9rem;
}

.results-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
}

.results-close:hover {
    color: #333;
}

.results-grid {
    display: grid;
    gap: 1px;
    background: #eee;
}

/* Compatibility Tips */
.compatibility-tips {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.compatibility-tips h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 15px;
    text-align: center;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.tip-item {
    background: #f5f5f5;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #555;
    text-align: center;
}

.tip-item strong {
    color: var(--forest);
    display: block;
    margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 900px) {
    .finder-row {
        grid-template-columns: 1fr 1fr;
    }
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .finder-row {
        grid-template-columns: 1fr;
    }
    .finder-actions {
        flex-direction: column;
    }
    .btn-clear, .btn-search {
        width: 100%;
        justify-content: center;
    }
}

/* PRODUCTS */
.products-section {
    padding: 100px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
}

.filter-tabs button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Space Grotesk';
    font-weight: 700;
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tabs button.active {
    color: var(--accent-red);
    border-bottom: 2px solid var(--accent-red);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 10px 0;
}

.product-card {
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-img {
    height: 380px;
    background-color: #f5f5f5;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.product-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.product-overlay-content {
    color: white;
    width: 100%;
}

.product-overlay-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-overlay-brand {
    font-size: 0.75rem;
    color: var(--accent-lime);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.product-overlay-price {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-overlay-action {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.product-card:hover .product-overlay-action {
    opacity: 1;
    transform: translateY(0);
}

.product-overlay-action i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-overlay-action i {
    transform: translateX(4px);
}

.product-info {
    padding: 25px;
    text-align: center;
}

.product-brand {
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--accent-lime);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.product-category {
    display: block;
    margin-top: 5px;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-price {
    display: block;
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

/* CATALOG STYLES */
.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: -30px;
    margin-bottom: 30px;
}

.catalog-search {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 20px;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.search-input-wrapper input {
    width: 100%;
    padding: 16px 20px 16px 55px;
    border: 1px solid #eee;
    border-radius: 50px;
    font-size: 1rem;
    background: white;
    transition: var(--transition);
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-lime);
    box-shadow: 0 0 0 3px rgba(104, 159, 56, 0.1);
}

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.catalog-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid #eee;
    border-radius: 50px;
    background: white;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.catalog-filter-btn i {
    width: 16px;
    height: 16px;
}

.catalog-filter-btn:hover {
    border-color: var(--accent-lime);
    color: var(--accent-lime);
}

.catalog-filter-btn.active {
    background: var(--accent-lime);
    border-color: var(--accent-lime);
    color: white;
}

.catalog-filter-btn.active i {
    color: white;
}

/* Product Grid Responsive */
@media (max-width: 768px) {
    .catalog-filters {
        gap: 8px;
    }
    .catalog-filter-btn {
        padding: 10px 16px;
        font-size: 0.75rem;
    }
    .section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* PRODUCT MODAL (LIGHT MODE) */
.product-modal {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 3000;
    display: none; 
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.product-modal.active {
    display: flex;
}

.modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 1000px;
    border: 1px solid #eee;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,0.1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #111;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
}

.modal-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-info {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-tag {
    color: var(--accent-lime);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.modal-brand-tag {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.modal-description h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.modal-description p {
    color: #444;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    .modal-gallery {
        height: 300px;
    }
    .modal-info {
        padding: 40px 30px;
    }
}

/* CATEGORIES */
.categories-section {
    padding: 100px 0;
    background-color: #f5f5f5;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    padding: 40px;
    text-align: center;
    border-radius: 20px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid #eee;
}

.category-card i {
    width: 48px;
    height: 48px;
    color: var(--accent-red);
    margin-bottom: 20px;
}

.category-card:hover {
    background: var(--accent-red);
    color: white;
}

.category-card:hover i {
    color: white;
}

/* PRECISION SECTION */
.precision-section {
    height: 70vh;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: #000;
}

.image-bg-container {
    position: absolute;
    top: -30%;
    left: 0;
    width: 100%;
    height: 160%; /* Extra height for parallax */
    z-index: 0;
}

.image-bg-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter 0.8s ease;
}

.precision-section:hover .image-bg-container img,
.precision-section.color-active .image-bg-container img {
    filter: grayscale(0%);
}

.precision-section:hover .overlay-dark,
.precision-section.color-active .overlay-dark {
    background: rgba(0,0,0,0.55) !important;
}

.precision-inner {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 60px 0;
}

.precision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.precision-item {
    border-left: 3px solid rgba(212, 225, 87, 0.6);
    padding-left: 30px;
    transition: var(--transition);
    color: white;
}

.precision-item:hover {
    border-left-color: var(--accent-lime);
    border-left-width: 5px;
    box-shadow: -10px 0 30px -10px rgba(104, 159, 56, 0.5);
}

.step-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-lime);
    margin-bottom: 20px;
    letter-spacing: 0.25em;
    text-shadow:
        0 0 20px rgba(104, 159, 56, 0.8),
        0 0 40px rgba(104, 159, 56, 0.4);
}

.precision-item h3 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1.1;
    color: white;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.8),
        0 4px 20px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.02em;
}

.precision-item p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 400;
}

@media (max-width: 992px) {
    .precision-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .precision-section {
        height: auto;
        padding: 100px 0;
    }
}

/* TRUST SECTION */
.trust-section {
    padding: 100px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.trust-item {
    text-align: center;
}

/* Pattern Application */
.main-footer,
.products-section,
.catalog-header {
    background-image: url('assets/img/fondoferraco.png');
    background-repeat: repeat;
    background-size: auto;
    background-position: center;
    position: relative;
}

.main-footer::before,
.products-section::before,
.catalog-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85); 
    z-index: 0;
}

/* Hero glass overlay (restaura original de blur) */
.glass-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15); 
    backdrop-filter: blur(1.8px) saturate(110%);
    -webkit-backdrop-filter: blur(1.8px) saturate(110%);
    z-index: 1;
}

.main-footer > *,
.products-section .section-container,
.catalog-header .section-container {
    position: relative;
    z-index: 1;
}

/* Standard Instagram Style */
.social-icons a.instagram-link {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
    color: white !important;
    border: none !important;
    border-radius: 10px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.social-icons a.instagram-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.social-icons a.instagram-link svg {
    width: 20px !important;
    height: 20px !important;
    stroke: white !important;
    fill: none !important;
}

/* Standard WhatsApp Style */
.social-icons a.whatsapp-link {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white !important;
    border: none !important;
    border-radius: 10px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
    transition: var(--transition);
}

.social-icons a.whatsapp-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

.social-icons a.whatsapp-link svg {
    width: 22px !important;
    height: 22px !important;
    stroke: white !important;
    fill: none !important;
}

.trust-item i {
    width: 40px;
    height: 40px;
    color: var(--accent-red);
    margin-bottom: 20px;
}

/* ── CTA & FOOTER (Light Background) ── */
:root {
  --forest: #2D5A27;
  --lime:    #D4E157;
  --leaf:    #689F38;
  --footer-bg: #fcfcfc;
  --footer-border: #e0e0e0;
  --footer-text: #333333;
  --footer-muted: #777777;
}

/* CTA */
.cta-section {
  background: #f5f5f5;
  text-align: center;
  padding: 90px 24px 70px;
  border-bottom: 1px solid var(--footer-border);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(104,159,56,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-badge {
  display: inline-block;
  background: rgba(45,90,39,0.1);
  border: 1px solid rgba(45,90,39,0.25);
  color: var(--forest);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 14px;
  margin-bottom: 22px;
}

.cta-section h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #111;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1.1;
}

.cta-section h2 span { color: var(--forest); }

.cta-section p {
  font-size: 1rem;
  color: var(--footer-muted);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.cta-form {
  display: flex;
  justify-content: center;
  max-width: 540px;
  margin: 0 auto;
}

.cta-form input {
  flex: 1;
  padding: 15px 22px;
  background: white;
  border: 1px solid var(--footer-border);
  border-right: none;
  color: #111;
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.2s;
}

.cta-form input::placeholder { color: var(--footer-muted); }
.cta-form input:focus { border-color: var(--leaf); }

.cta-form button {
  padding: 15px 30px;
  background: var(--forest);
  color: white;
  border: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.cta-form button:hover { background: var(--leaf); }

/* FOOTER */
.main-footer {
  background: var(--footer-bg);
  padding: 64px 64px 0;
  border-top: 2px solid var(--forest);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.1fr 1.1fr 1.1fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--footer-border);
}

.footer-brand img.logo {
  height: 72px;
  width: auto;
  margin-bottom: 20px;
  display: block;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--footer-muted);
  line-height: 1.75;
  max-width: 260px;
}

.footer-brand .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(45,90,39,0.08);
  border: 1px solid rgba(45,90,39,0.2);
  color: var(--forest);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
}

.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--footer-border);
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }

.footer-col ul li a {
  font-size: 0.84rem;
  color: var(--footer-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.15s;
}

.footer-col ul li a::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--leaf);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.6;
}

.footer-col ul li a:hover { color: var(--forest); }
.footer-col ul li a:hover::before { opacity: 1; }

.social-icons { display: flex; gap: 10px; margin-top: 6px; }

.social-icons a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--footer-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-muted);
  text-decoration: none;
  transition: all 0.2s;
}

.social-icons a:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: white;
}

.social-icons svg { width: 15px; height: 15px; fill: currentColor; }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.contact-info span {
  font-size: 0.82rem;
  color: var(--footer-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-info svg {
  width: 13px;
  height: 13px;
  fill: var(--leaf);
  flex-shrink: 0;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-bottom span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-muted);
}

.footer-bottom .rep {
  font-size: 0.65rem;
  color: var(--leaf);
  letter-spacing: 0.06em;
}

.footer-bottom nav { display: flex; gap: 20px; }

.footer-bottom nav a {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-bottom nav a:hover { color: var(--forest); }

@media (max-width: 900px) {
  .main-footer { padding: 40px 24px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .cta-form { flex-direction: column; }
  .cta-form input { border-right: 1px solid var(--footer-border); border-bottom: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* MOBILE RESPONSIVE */
/* MOBILE RESPONSIVE NAV FIX */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .main-header.header-pill {
        top: 15px;
        right: 15px;
        left: auto;
        transform: none;
        padding: 5px;
        background: rgba(255, 255, 255, 0.7);
    }

    .hamburger-btn {
        display: flex;
    }

    .brand-mark-fixed {
        top: 20px;
        left: 20px;
    }

    .brand-mark-fixed a span {
        font-size: 0.85rem;
    }

    .whatsapp-btn {
        padding: 8px 16px; /* 25% mas chico aprox */
        font-size: 0.8rem;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-btn i {
        scale: 0.8;
    }
}

/* BRAND SLIDER & PROGRESSIVE BLUR */
.brand-slider {
    background: white;
    padding: 60px 0;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
}

.slider-track {
    display: flex;
    width: max-content;
    animation: scrollLogos 40s linear infinite;
    gap: 100px;
    align-items: center;
}

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

.logo-group img {
    height: 35px;
    width: auto;
    filter: grayscale(1) opacity(0.5);
    transition: var(--transition);
}

.logo-group img:hover {
    filter: grayscale(0) opacity(1);
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Progressive Blur Implementation */
.blur-edge {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    z-index: 2;
    pointer-events: none;
}

.blur-edge.left {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.blur-edge.right {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

/* STATIC PILL HEADER */
.main-header.header-static {
    position: absolute !important;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 30px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 100;
}

/* Desktop nav inside static header - dark text */
.header-static .desktop-nav a {
    color: #111;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

.header-static .desktop-nav a:hover {
    color: var(--accent-lime);
}

.header-static .desktop-nav a.active {
    color: var(--accent-lime);
}

.header-brand a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    border-right: 1px solid rgba(0,0,0,0.1);
    padding-right: 20px;
}

.header-brand img {
    height: 30px;
    width: auto;
}

.header-brand span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #111;
    letter-spacing: 0.05em;
}

/* ALLIANCE EDITORIAL SECTION (AG-SECTION) */
:root {
  --forest: #2D5A27;
  --lime:   #D4E157;
  --leaf:   #689F38;
  --forest-light: #e8f0e7;
  --forest-mid:   #c2d4c0;
}

.ag-section {
  padding: 100px 48px;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  font-family: 'DM Sans', sans-serif;
}

/* Línea animada Forest → Lime al entrar al viewport */
.ag-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--forest) 60%, var(--lime) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(0.16,1,0.3,1) 0.1s;
  z-index: 2;
}

.ag-section.visible::before { transform: scaleX(1); }

/* Círculo decorativo de fondo */
.ag-section .ag-bg-circle {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.ag-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ag-text {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.ag-image-wrap {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s ease 0.5s, transform 0.9s ease 0.5s;
}

.ag-section.visible .ag-text,
.ag-section.visible .ag-image-wrap {
  opacity: 1;
  transform: none;
}

.ag-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 28px;
}

.ag-badge strong {
  color: var(--forest);
  font-weight: 600;
}

.ag-badge::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--lime);
  border-radius: 2px;
}

.ag-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--forest);
  margin: 0 0 8px;
}

.ag-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--leaf);
}

.ag-subline {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leaf);
  margin: 0 0 32px;
  opacity: 0.75;
}

.ag-subline strong {
  color: var(--forest);
  font-weight: 600;
}

.ag-divider {
  width: 48px;
  height: 3px;
  background: var(--lime);
  margin-bottom: 32px;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s ease 0.9s;
}

.ag-section.visible .ag-divider { transform: scaleX(1); }

.ag-body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: #3a3a3a;
  margin: 0;
}

.ag-body strong {
  font-weight: 500;
  color: var(--forest);
}

.ag-highlight {
  margin-top: 28px;
  padding: 20px 24px;
  border-left: 3px solid var(--lime);
  background: var(--forest-light);
  border-radius: 0 6px 6px 0;
}

.ag-highlight p {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--forest);
  line-height: 1.6;
}

.ag-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  text-decoration: none;
  padding: 10px 20px;
  border: 1.5px solid var(--forest);
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease, gap 0.2s ease;
}

.ag-cta:hover {
  background: var(--forest);
  color: var(--lime);
  gap: 16px;
}

/* Marco de imagen: sombra offset Forest + esquina Lime */
.ag-image-frame {
  position: relative;
  padding-bottom: 24px;
  padding-right: 24px;
}

.ag-image-frame::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  background: var(--forest);
  z-index: 0;
  border-radius: 2px;
}

/* Esquina decorativa Lime */
.ag-image-frame::before {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 48px; height: 48px;
  background: var(--lime);
  z-index: 1;
}

.ag-img-inner {
  position: relative;
  z-index: 2;
}

.ag-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.ag-img-label {
  position: absolute;
  top: 0; left: 0;
  z-index: 3;
  background: var(--forest);
  color: var(--lime);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  font-family: 'DM Sans', sans-serif;
}

@media (max-width: 768px) {
  .ag-section { padding: 64px 24px; }
  .ag-inner { grid-template-columns: 1fr; gap: 56px; }
  .ag-image-wrap { order: -1; }
}

/* PREMIUM HERO STYLES - OFFICIAL PARTNERSHIP */
.hero-premium { 
    background: #050d17; 
    position: relative;
    overflow: hidden;
}

.border-premium { border: 1px solid rgba(212, 175, 55, 0.3); }
.text-gold { color: #D4AF37; }
.bg-gold { background-color: #D4AF37; }

.floating-badge {
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.brand-logo-container {
    filter: grayscale(1) opacity(0.7);
    transition: all 0.4s ease;
}
.brand-logo-container:hover {
    filter: grayscale(0) opacity(1);
    transform: scale(1.05);
}

.cert-card {
    background: rgba(11, 28, 48, 0.55);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-lime), #a4c639);
}

.hero-premium h1 {
    font-family: 'Instrument Serif', serif;
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-premium .italic-light {
    font-style: italic;
    font-weight: 300;
}

/* PARALLAX EFFECTS */
.parallax-section {
    will-change: transform;
    position: relative;
}

.parallax-item {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* TYPOGRAPHY */
.font-headline {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
}
