:root {
    --primary: #D32F2F;
    /* Brand Red */
    --primary-dark: #b71c1c;
    --text-main: #222222;
    --text-light: #666666;
    --border: #E0E0E0;
    --bg-light: #F8F9FA;
    --bg-light-2: #EEEEEE;
    --white: #FFFFFF;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;

    --container-width: 1240px;
    --header-height: 80px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET & BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* === UTILS === */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(211, 47, 47, 0.2) !important;
    background-color: var(--primary-dark) !important;
}

.btn-outline-light:hover {
    color: #000 !important;
}



.btn-sm {
    padding: 8px 16px;
    font-size: 0.75rem;
}


.btn-link {
    font-weight: 400;
    color: var(--primary-dark);
    text-decoration: none;
}

.btn-link:hover {
    font-weight: 400;
    color: #000;
    text-decoration: none;

}

/* --- STANDARDIZED PAGE HERO --- */
.aeneris-hero {
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    position: relative;
    padding: 80px 0;
    /* Fallback padding */
}

/* Overlay for text readability */
.aeneris-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Standard dark overlay */
    z-index: 1;
}

.aeneris-hero .container {
    position: relative;
    z-index: 2;
}

.aeneris-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.aeneris-hero .subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 10px;
}

.wrapper {
    padding: 0px;
}

/* === NEW PROFESSIONAL HEADER === */
/* Top Bar */
.top-bar {
    background: var(--primary);
    /* Changed to Brand Red */
    color: white;
    font-size: 0.75rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
    color: white;
    margin-left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.top-bar a:hover {
    opacity: 1;
    text-decoration: underline;
}

.top-links {
    margin-right: auto;
}

/* Push links to right if needed, or flex logic */
.top-bar .container {
    display: flex;
    justify-content: space-between;
}

/* Main Header Area (Single Row Layout) */
.site-header {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    position: sticky;
    /* Make sticky for better UX */
    top: 0;
    z-index: 1000;
}

/* AJAX Search Results */
.search-wrapper {
    position: relative;
    /* Anchor for dropdown */
}

.ajax-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    border-radius: 4px;
    margin-top: 5px;
    display: none;
    text-align: left;
    /* Ensure text is left aligned */
}

.ajax-search-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.ajax-search-results li {
    border-bottom: 1px solid #f5f5f5;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f9f9f9;
}

.search-result-thumb {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    flex-shrink: 0;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.search-result-price {
    display: block;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    margin-top: 2px;
}

.search-footer {
    padding: 10px;
    text-align: center;
    background: #f5f5f5;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
}

.search-footer a {
    color: var(--primary);
    font-weight: 700;
}

.search-loading,
.search-no-results,
.search-error {
    padding: 15px;
    color: #666;
    text-align: center;
    font-size: 0.9rem;
}

.header-main {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    /* Space between main blocks */
}

.branding img {
    height: 70px;
    width: auto;
    display: block;
}

/* Compact Search Bar */
.search-wrapper {
    flex: 0 1 400px;
    /* Don't grow too much, base width 400px */
}

.search-form {
    display: flex;
    background: #f4f4f4;
    border-radius: 50px;
    padding: 3px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.search-form:focus-within {
    background: white;
    border-color: var(--primary);
}

.cat-select {
    background: transparent;
    border: none;
    font-size: 0.8rem;
    padding: 0 10px;
    border-right: 1px solid #ddd;
    color: var(--text-main);
    cursor: pointer;
    font-weight: 600;
}

.search-field {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 12px;
    font-size: 0.85rem;
}

.search-submit {
    background: var(--primary);
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

/* Navigation Inline */
.nav-menu {
    display: flex;
    gap: 20px;
    margin: 0 10px;
    flex: 1;
    justify-content: center;
    list-style: none;
    /* Ensure no bullets */
    padding: 0;
    margin: 0;
    /* Reset default ul margins */
}

/* Support for WP generated list items */
.nav-menu li {
    display: flex;
    /* Aligns link properly */
    align-items: center;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
    position: relative;
    padding: 10px 0;
    white-space: nowrap;
    display: block;
    /* Ensure full click area */
}

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

.nav-link:hover::after,
.nav-link.active::after,
.current-menu-item .nav-link::after {
    /* Add WP active class support */
    width: 100%;
}

.nav-link:hover {
    /* Add WP active class support */
    color: var(--primary);
}

/* Remove old Nav Bar container style */
.nav-bar {
    display: none;
}

/* Header Icons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main);
    position: relative;
    font-size: 0.7rem;
    font-weight: 600;
}

.ywraq_number_items {
    display: inline !important;
    line-height: 1 !important;
}

.action-item i {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: 0px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}


/* === PAGE CONTENT & SECTIONS (Existing Styles Refined) === */
.hero-slider {
    padding: 4rem 0;
    background: #f4f4f4;
}

.section-padding {
    padding: 5rem 0;
}

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

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

/* --- USP BAR (Trust Bar) --- */
.usp-bar {
    background: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

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

.usp-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
}

.usp-item i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.usp-item h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.usp-item p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* --- HERO HOME (Interactive Canvas & Glassmorphism) --- */
.home-hero {
    height: calc(100vh - 100px);
    /* Full screen hero */
    width: 100%;
    position: relative;
    background: #f8f9fa;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    /* Align items to the right */
    width: 100%;
    max-width: var(--container-width);
    padding-right: 40px;
    /* Add breathing room from the edge */
    pointer-events: none;
    /* Let interactions pass to canvas except on interactive elements */
}

.hero-logo-img {
    max-width: 600px;
    /* Limit width */
    max-height: 98vh;
    /* Reduced from 100vh to fit scroll indicator */
    /* Limit height relative to viewport */
    width: 100%;
    /* Allow scaling down */
    height: auto;
    object-fit: contain;
    display: block;
    animation: fadeUp 3s ease-out;
}

/* Glass Container (Legacy - Removed from HTML but style kept for reference or removal) */
.brand-container {
    text-align: center;
    padding: 3rem 4rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    pointer-events: auto;
    /* Re-enable clicks */
    animation: fadeUp 1s ease-out;
}

.logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 6rem;
    font-weight: 200;
    color: #333;
    letter-spacing: -2px;
    line-height: 1;
    margin: 0;
}

/* The red slash mark */
.slash-mark {
    width: 6px;
    height: 80px;
    background-color: var(--primary);
    transform: rotate(20deg);
    margin-right: -10px;
    z-index: 2;
    box-shadow: 4px 4px 15px rgba(211, 47, 47, 0.4);
}

.tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 15px;
}

/* Inner wrapper to center scroll relative to logo */
.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}




/* Scroll Mouse Animation */
.scroll-indicator {
    position: relative;
    top: -150px;
    margin-top: 2rem;
    /* Space from logo */
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
    pointer-events: none;
    animation: fadeUp 1.5s ease-out;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid #b71c1c;
    /* Darker border for visibility on white */
    border-radius: 20px;
    position: relative;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.5);
    /* Slight background to separate from lines */
}

.wheel {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

.scroll-text {
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: #555;
    text-transform: uppercase;
    font-weight: 700;
}

@keyframes scrollWheel {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Override existing responsive */
@media (max-width: 768px) {
    .brand-name {
        font-size: 3.5rem;
    }

    .slash-mark {
        height: 50px;
    }

    .tagline {
        font-size: 1rem;
    }

    .brand-container {
        padding: 2rem;
        width: 90%;
    }
}

.btn-outline-dark {
    border: 2px solid var(--text-main);
    color: var(--text-main);
    background: transparent;
}

.btn-outline-dark:hover {
    background: var(--text-main);
    color: white;
}

/* --- GRID SYSTEMS --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cat-card {
    position: relative;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
}

.cat-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: 0.5s;
}

.cat-card:hover .cat-img {
    transform: scale(1.1);
}

.cat-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    transition: 0.3s;
}

.cat-card:hover .cat-overlay {
    background: rgba(211, 47, 47, 0.85);
}

.cat-overlay h3 {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

/* --- PRODUCTS --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 25px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card-home {
    background: white;
    border: 1px solid #eee;
    border-radius: 25px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.product-card-home:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    transform: translateY(-5px);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    border-radius: 4px;
    z-index: 5;
}

.product-badge.sale {
    background: var(--primary);
}

.product-badge.new {
    background: #2E7D32;
}

.product-thumb {
    height: 260px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-thumb img {
    max-height: 80%;
    transition: 0.5s;
}

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

.product-details {
    padding: 20px;
    text-align: center;
}

.cat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.product-details h3 {
    font-size: 1rem;
    margin: 8px 0;
    font-family: var(--font-heading);
}

.price {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
    display: block;
    margin-bottom: 15px;
}





/* --- SIDEBAR & SHOP --- */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    padding: 4rem 20px;
}

.widget {
    margin-bottom: 3rem;
}

.widget-title {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.cat-list li {
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 0;
}

.cat-list a {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #666;
}

.cat-list a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* --- NEWS & SPOTLIGHT --- */
.spotlight-section {
    padding: 4rem 0;
    border-bottom: 1px solid #eee;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;

}

.spotlight-img {
    width: 100%;
    display: flex;
    justify-content: center;
}

.spotlight-img img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 10px 0;
}

.spotlight-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

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

.news-card {
    border: 1px solid #eee;
    border-radius: 25px;
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.news-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.news-body {
    padding: 25px;
}

.news-meta {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.news-body h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
    font-family: var(--font-heading);
}

.read-more {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* --- FOOTER --- */
.site-footer {
    background: #f8f9fa;
    /* Clean Lab Light Grey */
    color: #555;
    font-size: 0.9rem;
    margin-top: auto;
    border-top: 1px solid #eee;
}

.newsletter-bar {
    background: var(--primary);
    padding: 3rem 0;
    color: white;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-text h4 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: white;
}

.news-form input {
    padding: 12px 20px;
    border-radius: 4px;
    border: none;
    width: 300px;
    background: white;
    color: #333;
}

.news-form button {
    background: #222;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

.footer-widgets {
    padding: 4rem 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    border-bottom: 1px solid #e0e0e0;
    /* Light border */
}

.footer-col h4 {
    color: var(--text-main);
    /* Dark heading */
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #666;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
    /* Highlight with brand color */
    padding-left: 5px;
}

.footer-bottom {
    padding: 25px 20px;
    color: #888;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .header-main {
        height: auto;
        flex-wrap: wrap;
        padding: 15px 0;
        gap: 20px;
    }

    .search-wrapper {
        order: 3;
        margin: 0;
        min-width: 100%;
    }

    .nav-menu {
        display: none;
    }

    /* Mobile menu placeholder */
    .home-hero h1 {
        font-size: 2.5rem;
    }

    .products-grid,
    .category-grid,
    .news-grid,
    .usp-grid {
        /* Added USP grid */
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        display: none;
    }

    .footer-widgets {
        grid-template-columns: 1fr 1fr;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .spotlight-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .top-bar .container {
        justify-content: center;
    }

    .top-links {
        display: none;
    }

    .products-grid,
    .category-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .usp-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols = 2x2 layout */
        gap: 15px;
        /* Slightly tighter gap for mobile */
    }

    /* ... (rest of 576px block) */

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .home-hero {
        height: 500px;
    }
}

/* --- TRES PILARES (PILL DESIGN) --- */
.pillars-section {
    background: white;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.pillar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
}

/* Head (Circle Image) */
/* Head (Circle Image) */
.pillar-head {
    z-index: 20;
    position: relative;
    /* No transform on hover to keep it stable */
}

.img-circle {
    width: 200px;
    /* Smaller circle to fit "inside" */
    height: 200px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 6px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background-color: white;
    position: relative;
}

/* Body (Pill Shape) */
.pillar-body {
    background: linear-gradient(180deg, #b1bcca 0%, #D2D4D0 100%);
    width: 220px;
    border-radius: 120px;
    margin-top: -150px;
    padding: 150px 15px 30px 15px;
    /* Unified padding */
    text-align: center;
    color: white;
    position: relative;
    z-index: 10;

    /* SYNCED TRANSITION */
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);

    min-height: 220px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.pillar-body h3,
.pillar-body .pillar-list {
    position: relative;
    z-index: 2;
}

.pillar-body h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    text-transform: uppercase;
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pillar-body a {
    color: #fff;
    text-decoration: none !important;
}

.pillar-body a:hover {
    color: #fff;
    text-decoration: none !important;
}

/* Interaction: Content Reveal */
.pillar-list {
    list-style: none;
    padding: 0 10px;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;

    /* SYNCED TRANSITION (Same duration/curve as body) */
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pillar-list li {
    font-size: 0.95rem;
    padding: 0;
    /* Removing native padding to let A tag handle it */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.pillar-list li a {
    display: block;
    padding: 8px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0.9;
    position: relative;
    padding-left: 0;
}

.pillar-list li a:hover {
    opacity: 1;
    padding-left: 15px;
    /* Slide effect */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    /* Subtle Glow */
}

/* Chevron Indicator */
.pillar-list li a::before {
    content: '›';
    position: absolute;
    left: 0;
    opacity: 0;
    font-size: 1.2em;
    line-height: 1;
    top: 50%;
    transform: translateY(-55%) translateX(-10px);
    transition: all 0.3s ease;
}

.pillar-list li a:hover::before {
    opacity: 1;
    transform: translateY(-55%) translateX(0);
}

.pillar-list li:last-child {
    border: none;
}


/* --- HOVER STATE --- */

.pillar-card:hover .pillar-body {
    /* Subtle background shift */
    background: linear-gradient(180deg, #94a3b8 0%, #b1bcca 100%);
    min-height: 380px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.pillar-card:hover .pillar-list {
    /* TIGHTER MAX-HEIGHT to avoid "dead" animation time (pause) */
    max-height: 500px;
    /* Aumentado de 160px a 500px para permitir mas items */
    opacity: 1;
    margin-top: 10px;
}

/* Responsive Pillars */
@media (max-width: 768px) {
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        /* More space vertical */
    }
}

/* --- PAGINATION & NAVIGATOR --- */
body .pagination {
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 40px !important;
    align-items: center !important;
}

body .pagination .page-item {
    margin: 0 4px;
}

body .pagination .page-item .page-link {
    border: none !important;
    border-radius: 50% !important;
    /* Force Circular */
    width: 45px !important;
    height: 45px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    color: #666 !important;
    background: #f4f4f4 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    margin-left: 0 !important;
}

body .pagination .page-item.active .page-link {
    background: var(--primary) !important;
    color: white !important;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4) !important;
    z-index: 2;
}

body .pagination .page-item .page-link:hover {
    background: #e0e0e0 !important;
    color: #333 !important;
    transform: translateY(-2px);
}

body .pagination .page-item.active .page-link:hover {
    background: var(--primary) !important;
    color: white !important;
}

/* Fix generic WP pagination if used elsewhere */
.page-numbers {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding-left: 0;
}

.page-numbers li span.current,
.page-numbers li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f4f4f4;
    color: #666;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.page-numbers li span.current {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

.page-numbers li a:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* --- SCROLL REVEAL (Professional Polish) --- */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Smooth ease */
}

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

/* Staggered delays for children if needed */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Parallax Utilities */
.parallax-bg {
    background-attachment: fixed !important;
    background-size: cover !important;
    background-position: center !important;
}


/* --- MOBILE MENU BASE STYLES --- */
.mobile-toggle {
    display: none;
    /* Hidden on Desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    margin-left: 15px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: var(--primary);
    color: white;
}

.mobile-brand {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.mobile-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
}

.mobile-menu-content {
    padding: 20px;
    overflow-y: auto;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid #f5f5f5;
}

.mobile-nav-list li a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 600;
}

.mobile-nav-list li a:hover {
    color: var(--primary);
    padding-left: 5px;
}


/* --- MOBILE OPTIMIZATIONS --- */
@media (max-width: 991px) {

    /* Header Fixes */
    .site-header {
        position: relative !important;
    }

    .hero-slider,
    .aeneris-hero {
        padding-top: 2rem !important;
    }

    .search-wrapper {
        display: none;
    }

    /* Mobile Menu Trigger */
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        display: none !important;
    }

    .header-main {
        padding: 10px 15px;
        flex-wrap: nowrap;
    }

    /* Aeneris Page Mobile Layout */
    #aeneris-wrapper .row.align-items-center {
        flex-direction: column;
        text-align: center;
    }

    #aeneris-wrapper .col-md-3.text-center img {
        max-height: 100px !important;
        margin: 20px 0;
    }

    #aeneris-wrapper h2 {
        font-size: 2.2rem !important;
    }

    /* Reset Text Alignment for descriptions (Origin Section only) */
    .origin-text-wrapper {
        border-left: none !important;
        border-top: 3px solid var(--primary);
        padding-left: 0 !important;
        padding-top: 20px;
    }

    /* Mission/Vision Cards Mobile */
    .mv-card {
        padding: 40px !important;
        /* Unified Mobile Padding */
        width: 100% !important;
        box-sizing: border-box !important;
        height: auto !important;
        margin-bottom: 20px;
        text-align: left !important;
    }

    .mv-card h3 {
        font-size: 1.75rem !important;
        margin: 15px 0;
    }

    .mv-card p {
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
        text-align: left !important;
    }

    .mv-card i {
        font-size: 2.5rem !important;
    }
}






/* --- AENERIS PAGE (NEW) --- */
.aeneris-hero {
    /* BG Image handled inline for dynamic URL */
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.aeneris-hero .subtitle {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.aeneris-hero h1 {
    color: white;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin: 0 auto;
    max-width: 800px;
}

.aeneris-hero p {
    font-size: 1.2rem;
    margin-top: 20px;
    max-width: 700px;
    margin: 20px auto 0;
    opacity: 0.9;
}

/* Origin Section */
.origin-title {
    font-size: 3.2rem;
    font-family: var(--font-heading);
    line-height: 1.1;
    margin: 0;
}

.origin-highlight {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(211, 47, 47, 0.3);
}

.origin-logo {
    max-height: 160px;
    width: auto;
}

.origin-text-wrapper {
    border-left: 4px solid var(--primary);
    padding-left: 30px;
}

.origin-text-intro {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}

.origin-text-highlight {
    color: var(--primary);
}

.origin-text-quote {
    font-size: 1.05rem;
    color: #666;
    font-style: italic;
}

/* Mission & Vision Cards */
.mv-card {
    background: white;
    padding: 40px !important;
    border-radius: 8px;
    height: auto;
    /* Allow independent growth */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
}

.mv-card.mission {
    border-top: 4px solid var(--primary);
}

.mv-card.vision {
    border-top: 4px solid #333;
}

.mv-icon-wrapper {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0;
    margin-right: 20px;
    flex-shrink: 0;
    margin-top: 4px;
    /* Optically align with Title Text */
    cursor: pointer;
}

.mv-card.mission .mv-icon-wrapper {
    color: var(--primary);
}

.mv-card.vision .mv-icon-wrapper {
    color: #333;
}

.mv-title {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 10px;
    margin-top: 0;
    cursor: pointer;
    /* Indicate interactivity */
    position: relative;
    display: inline-block;
    /* Optimize hover area */
}

.mv-card.vision .mv-title {
    color: #333;
}

.mv-content {
    flex: 1;
}

.mv-text {
    color: #666;
    line-height: 1.8;

    /* Animation: Hidden by default */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

/* Reveal on Card Hover (Covers Icon, Title, and Text area) */
.mv-card:hover .mv-text {
    max-height: 300px;
    /* Sufficient height for text */
    opacity: 1;
    margin-top: 10px;
    /* Space when visible */
}



/* Strengths Section */
.strengths-title {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
}

.strengths-divider {
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto;
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.strength-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.strength-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #fdf2f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.strength-text {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    padding-top: 8px;
}

/* CTA Section */
.cta-section {
    background: #222;
    padding: 60px 0;
    text-align: center;
    color: white;
}

.cta-title {
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.cta-btn {
    padding: 15px 40px;
    font-size: 1rem;
}

/* --- NOVEDADES PAGE (Blog Grid) --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols for tablets */
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
        /* 1 col for mobile */
    }
}