/* ============================================
   NEUROMANIFEST LANDING PAGE STYLES
   ============================================ */

/* Cargar Fuentes Personalizadas */
@font-face {
    font-family: 'Careny';
    src: url('assets/fonts/Careny - títulos/f24q125-careny-careny-regular-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('assets/fonts/Raleway - textos/Raleway-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('assets/fonts/Raleway - textos/Raleway-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('assets/fonts/Raleway - textos/Raleway-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Raleway';
    src: url('assets/fonts/Raleway - textos/Raleway-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Reset y Variables */
:root {
    /* Colores Primarios NeuroManifest */
    --nm-green: #546135;           /* Verde principal - 35% */
    --nm-dark: #222f19;            /* Verde oscuro - Textos */
    --nm-beige: #c9bab1;           /* Beige suave - 15% */
    --nm-cream: #fff8f0;           /* Crema claro - 35% */
    --nm-white: #ffffff;           /* Blanco - 15% */
    
    /* Colores Secundarios */
    --nm-wine: #5F0625;            /* Vino/burgundy */
    --nm-coral: #D88369;           /* Coral/salmón */
    --nm-rose: #9D5354;            /* Rosa madera */
    --nm-terracota: #BF6330;       /* Terracota/naranja */
    
    /* Colores de uso general */
    --prolend-primary: var(--nm-green);
    --prolend-primary-light: var(--nm-coral);
    --prolend-secondary: var(--nm-wine);
    --prolend-dark: var(--nm-dark);
    --prolend-gray: #5a5a5a;
    --prolend-light-gray: var(--nm-cream);
    --prolend-white: var(--nm-white);
    --prolend-shadow: 0 10px 30px rgba(84, 97, 53, 0.15);
    --prolend-radius: 15px;
    --prolend-transition: all 0.3s ease;
    
    /* Tipografías */
    --font-titles: 'Careny', serif;
    --font-body: 'Raleway', sans-serif;
    --nav-height: 72px;
}

.prolend-landing-wrapper {
    font-family: var(--font-body);
    color: var(--prolend-dark);
    overflow-x: hidden;
}

/* ============================================
   NAVBAR
   ============================================ */

.neuromanifest-navbar {
    background: var(--nm-cream);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    transition: var(--prolend-transition);
    height: var(--nav-height);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.navbar-logo {
    margin-left: -30px;
}

.navbar-logo img {
    width: 200px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    transition: var(--prolend-transition);
}

.navbar-logo img:hover {
    opacity: 0.8;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar-link {
    color: var(--prolend-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--prolend-transition);
    position: relative;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--prolend-primary);
    transition: var(--prolend-transition);
}

.navbar-link:hover::after {
    width: 100%;
}

.navbar-link:hover {
    color: var(--prolend-primary);
}

.navbar-link-cta {
    background: var(--prolend-primary);
    color: var(--prolend-white) !important;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: 600;
}

.navbar-link-cta::after {
    display: none;
}

.navbar-link-cta:hover {
    background: var(--prolend-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(84, 97, 53, 0.3);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--prolend-dark);
    border-radius: 3px;
    transition: var(--prolend-transition);
}

/* Aplicar Careny a todos los títulos */
.prolend-title,
.prolend-features-title,
.prolend-product-info h3 {
    font-family: var(--font-titles);
}

.prolend-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Evitar que el navbar fijo tape el contenido: añadir espacio superior en los wrappers */
.prolend-landing-wrapper,
.neuromanifest-shop-wrapper,
.neuromanifest-cart-wrapper,
.neuromanifest-product-detail-wrapper,
.neuromanifest-checkout-wrapper {
    padding-top: calc(var(--nav-height) + 10px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.prolend-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0;
}

.prolend-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%; /* keep original polygon width */
    height: 100%;
    background: linear-gradient(135deg, var(--prolend-primary) 0%, var(--prolend-secondary) 100%);
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 75% center;
}

.prolend-hero-content {
    display: grid;
    /* text column + image column with capped width so the text column
       doesn't get squeezed and appear "empujado" */
    grid-template-columns: 1fr minmax(320px, 480px);
    gap: 80px; /* increased gap to add breathing room */
    align-items: center;
}

.prolend-hero-text {
    z-index: 10;
    position: relative;
}

.prolend-subtitle {
    font-size: 15px;
    color: var(--nm-wine);
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.prolend-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    margin-top: 8px;
    color: var(--prolend-dark);
}

.prolend-highlight {
    color: var(--prolend-primary);
}

.prolend-description {
    font-size: 16px;
    line-height: 1.95; /* more vertical breathing */
    color: var(--prolend-gray);
    margin-bottom: 48px; /* extra separation from visual edge */
    margin-right: 0;
    max-width: 760px; /* slightly wider for desktop */
}

.prolend-hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Two-row hero buttons: first row inline, second row for the contact CTA */
.prolend-hero-buttons-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.prolend-hero-buttons-bottom {
    /* align contact button with the left edge of the two inline buttons */
    justify-content: flex-start;
}

.prolend-btn-contact {
    /* match primary button style by default */
    background: var(--prolend-primary);
    color: var(--prolend-white);
    box-shadow: 0 5px 15px rgba(84, 97, 53, 0.3);
}

.prolend-btn-contact:hover {
    background: var(--prolend-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(84, 97, 53, 0.5);
}

.prolend-btn {
    padding: 15px 32px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: var(--prolend-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.prolend-btn-primary {
    background: var(--prolend-primary);
    color: var(--prolend-white);
    box-shadow: 0 5px 15px rgba(84, 97, 53, 0.3);
}

.prolend-btn-primary:hover {
    background: var(--prolend-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(84, 97, 53, 0.5);
}

/* CTA in products section: match primary buttons (rounded, same color, harmonious shadow) */
.prolend-products-cta a {
    background: var(--prolend-primary);
    color: var(--prolend-white);
    padding: 12px 22px;
    border-radius: 25px;
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(84,97,53,0.18);
    transition: var(--prolend-transition);
}

.prolend-products-cta a:hover {
    background: var(--prolend-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(84,97,53,0.25);
}

.prolend-btn-secondary {
    background: transparent;
    color: var(--prolend-dark);
    border: 2px solid var(--prolend-dark);
}

.prolend-btn-secondary:hover {
    background: var(--prolend-dark);
    color: var(--prolend-white);
    transform: translateY(-2px);
}

.prolend-hero-image {
    position: relative;
    display: flex;
    justify-content: flex-end; /* keep visual weight to the right */
    align-items: center;
    z-index: 2;
}

.prolend-hero-image img {
    max-width: 420px; /* cap so it doesn't push the text column */
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

/* Hero banner positioning moved from inline in PHP */
.prolend-hero .prolend-hero-text {
    /* allow text to fill its column and add stronger right padding
       so it doesn't sit close to the clipped hero background */
    max-width: 100%;
    padding-right: 96px; /* larger gap requested */
}
.prolend-hero .prolend-hero-image { position: relative; }

/* Hero banner as background on the polygon (.prolend-hero-bg).

/* ============================================
   Product cards: equal height, description clamp
   ============================================ */

/* When the grid is forced to equal rows, allow rows to stretch to 1fr so
   cards inside can grow to the same height. Apply the utility class
   `force-equal` to the products grid where needed. */
.prolend-products-grid.force-equal {
    display: grid;
    grid-auto-rows: 1fr;
}

/* Make each card a column-flex so internals can be aligned vertically. */
.prolend-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Product info area should grow to fill available space so buttons
   are pushed to the card footer. */
.prolend-product-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* Limit the product short description to N lines to avoid variable card
   heights caused by long descriptions. Adjust -webkit-line-clamp as
   needed (3 is a good starting point). */
.prolend-product-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.75rem;
}

/* Ensure the actions (price + buttons) stay pinned to the bottom. */
.prolend-product-actions {
    margin-top: auto;
}

/* Hero background styling - image URL is set inline via PHP for absolute path */
/* Background properties are defined here, image URL comes from inline style */

/* On very large viewports push further so product sits fully visible */
@media (min-width: 1400px) {
    .prolend-hero-bg {
        /* on very wide screens nudge further left so the image sits fully inside the polygon */
        background-position: 70% center !important;
        background-size: cover !important;
    }
}

/* Laptop range: nudge the background slightly more to the right so more
   of the product is visible inside the clipped polygon on notebook widths */
@media (min-width: 1025px) and (max-width: 1399px) {
    /* Reducir notablemente el polígono para que no quede debajo de los textos.
       Hacemos la franja más estrecha y movemos el punto diagonal hacia la derecha. */
    .prolend-hero-bg {
        display: block;
        width: 68%; /* reducido ligeramente */
        clip-path: polygon(50% 0, 100% 0, 100% 100%, 0% 100%); /* diagonal ajustada levemente */
        background-position: calc(0% + 20px) center; /* mover un poco más hacia la derecha (+20px) */
        background-size: cover;
    }

    /* reducir el espacio entre texto y polígono */
    .prolend-hero .prolend-hero-text {
        padding-right: 40px; /* mucho menos espacio, texto más cercano al polígono */
    }

    .prolend-hero-content {
        grid-template-columns: 1fr minmax(320px, 500px);
        gap: 60px;
    }

    .prolend-hero-image {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 0 8px;
        background: transparent;
    }

    .prolend-hero-image img {
        display: block;
        position: relative;
        z-index: 2;
        max-width: 500px;
        width: 100%;
        height: auto;
        filter: drop-shadow(0 22px 46px rgba(0, 0, 0, 0.26));
        border-radius: 6px;
        transform: none;
        transition: transform .2s ease, filter .2s ease;
    }
    .prolend-hero-image img:hover {
        transform: translateX(1%) scale(1.01);
        filter: drop-shadow(0 22px 44px rgba(0,0,0,0.28));
    }

    /* limitar la longitud del párrafo descriptivo en portátil para que no quede
       pegado al polígono; lo hacemos más estrecho y mantenemos buena legibilidad */
    .prolend-description {
        max-width: 420px; /* reduce la línea para no llegar al polígono */
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .prolend-hero { padding-bottom: 1rem; }
    .prolend-hero .prolend-hero-content { display: flex; flex-direction: column; align-items: stretch; }
    .prolend-hero .prolend-hero-text { max-width: 100%; padding-right: 16px; }
    /* On mobile, collapse the polygon and let bg behave as full-width */
    /* Hide decorative polygon and product image on small screens so text stays readable */
    .prolend-hero-bg { display: none !important; }
    .prolend-hero-image { display: none !important; }
    .prolend-hero { min-height: auto; padding: 40px 0; }

    /* Mobile: stack hero button rows into a single column */
    .prolend-hero-buttons-row {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .prolend-hero-buttons-row .prolend-btn {
        width: 100%;
    }

    .prolend-hero-buttons-bottom {
        justify-content: center;
    }
}

.prolend-product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--prolend-white);
    color: var(--prolend-primary);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ============================================
   PRODUCTS GRID SECTION
   ============================================ */

.prolend-products {
    padding: 80px 0;
    background: var(--prolend-light-gray);
}

.prolend-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Make cards equal-height and layout their internal content vertically so
   buttons/CTAs align at the bottom consistently */
.prolend-products-grid {
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.prolend-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.prolend-product-image {
    flex-shrink: 0;
}

.prolend-product-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1 1 auto;
}

/* Allow description to grow and push buttons to bottom */
.prolend-product-desc {
    flex: 1 1 auto;
    margin-bottom: 20px;
}

/* Ensure header and price don't grow */
.prolend-product-header,
.prolend-product-price {
    flex: 0 0 auto;
}

/* Push CTA buttons to the bottom of the card and ensure they stretch */
.prolend-product-info > .prolend-product-btn,
.prolend-product-info > .prolend-product-details,
.prolend-product-info > .prolend-product-btn-secondary,
.prolend-product-info .prolend-product-btn,
.prolend-product-info .prolend-product-details,
.prolend-product-info .prolend-product-btn-secondary {
    flex: 0 0 auto;
    align-self: stretch;
}

/* Harmonize secondary/additional buttons with the primary style */
.prolend-product-btn-secondary {
    padding: 12px 18px;
    border-radius: 25px;
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
}

.prolend-product-details {
    display: inline-block;
    padding: 10px 12px;
    border-radius: 20px;
    background: transparent;
    color: #a08a8a;
}

.prolend-product-card {
    background: var(--prolend-white);
    border-radius: var(--prolend-radius);
    padding: 40px 30px;
    box-shadow: var(--prolend-shadow);
    transition: var(--prolend-transition);
    position: relative;
}

/* ============================================
   PRODUCT DETAIL STYLES
   ============================================ */

.neuromanifest-product-detail-wrapper {
    padding: 60px 0 100px;
    font-family: var(--font-body);
    color: var(--prolend-dark);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery .main-image img,
.product-gallery img {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: var(--prolend-shadow);
}

.product-info-detail {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.product-info-detail .product-title {
    font-family: var(--font-titles);
    font-size: 34px;
    margin: 0 0 6px 0;
    color: var(--prolend-dark);
}

.product-price-detail {
    font-size: 20px;
    font-weight: 700;
    color: var(--prolend-primary);
}

.product-short-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--prolend-gray);
}

.product-add-to-cart-form {
    margin-top: 20px;
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

/* ============================================
   CHECKOUT / FORM STYLES
   ============================================ */

.neuromanifest-checkout-wrapper {
    font-family: var(--font-body);
    color: var(--prolend-dark);
}

.checkout-title {
    font-family: var(--font-titles);
    font-size: 40px;
    font-weight: 700;
    color: var(--prolend-secondary);
    margin: 0 0 18px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title,
.summary-title,
.payment-title {
    font-family: var(--font-titles);
    color: var(--prolend-secondary);
    font-size: 20px;
    margin: 0 0 12px 0;
}

.nm-checkout-form {
    background: var(--prolend-white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--prolend-shadow);
}

.nm-checkout-form .checkout-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

@media (max-width: 1024px) {
    .nm-checkout-form .checkout-grid {
        grid-template-columns: 1fr;
    }
}

.nm-checkout-form .form-row-group {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.nm-checkout-form .form-row.half-width {
    flex: 1 1 calc(50% - 8px);
    min-width: 220px;
}

.nm-checkout-form .form-row.full-width {
    flex: 1 1 100%;
}

.nm-checkout-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--prolend-primary);
    font-size: 14px;
    font-family: var(--font-body);
}

.nm-checkout-form input[type="text"],
.nm-checkout-form input[type="email"],
.nm-checkout-form input[type="tel"],
.nm-checkout-form select,
.nm-checkout-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
    background: var(--prolend-white);
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--prolend-dark);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.nm-checkout-form input::placeholder,
.nm-checkout-form textarea::placeholder { color: #b9b2aa; }

.nm-checkout-form input:focus,
.nm-checkout-form select:focus,
.nm-checkout-form textarea:focus {
    outline: none;
    border-color: var(--prolend-primary);
    box-shadow: 0 8px 24px rgba(84,97,53,0.07);
}

.terms-checkbox { margin: 12px 0; font-size: 14px; color: var(--prolend-gray); }
.terms-checkbox input[type="checkbox"] { margin-right: 8px; transform: scale(1.03); }

.checkout-summary {
    background: linear-gradient(180deg, var(--prolend-light-gray), #ffffff);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.04);
}

/* Free shipping badges */
.free-shipping-badge {
    display: inline-block;
    background: var(--prolend-primary);
    color: var(--prolend-white);
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 700;
    margin: 10px 0 12px 0;
}

.free-shipping-progress {
    display: inline-block;
    background: transparent;
    color: var(--prolend-primary);
    border: 1px solid rgba(84,97,53,0.14);
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 600;
    margin: 10px 0 12px 0;
}

@media (max-width: 768px) {
    .free-shipping-badge, .free-shipping-progress { width: 100%; text-align: center; box-sizing: border-box; }
}

.summary-products { max-height: 320px; overflow: auto; margin-bottom: 12px; }
.summary-product-item { display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px dashed rgba(0,0,0,0.04); align-items:center; font-size:14px; color:var(--prolend-dark); }
.total-row { display:flex; justify-content:space-between; font-weight:700; margin-top:8px; color:var(--prolend-dark); }

/* Make product names and subtotal use brand green and add borders to boxes */
.summary-product-item .product-name,
.woocommerce .product-name {
    color: var(--prolend-primary);
    font-weight: 700;
}

.total-row,
.woocommerce .order-total th,
.woocommerce .order-total td {
    color: var(--prolend-primary);
}

/* Add subtle border and rounded corners to the form and order review table */
.nm-checkout-form {
    border: 1px solid rgba(84,97,53,0.08);
}

.checkout-summary {
    border: 1px solid rgba(84,97,53,0.08);
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(84,97,53,0.08);
    border-radius: 10px;
    overflow: hidden;
}
.woocommerce-checkout-review-order-table thead th,
.woocommerce-checkout-review-order-table tfoot tr {
    background: rgba(84,97,53,0.03);
}

.woocommerce-checkout-review-order-table tbody tr td {
    padding: 12px 14px;
}

/* Slightly increase contrast on the order review container */
.e-checkout__order_review,
.e-checkout__order_review-2 { padding: 12px; border-radius: 10px; }

.place-order-btn,
.nm-checkout-form .prolend-btn-primary,
.nm-checkout-form .checkout-btn {
    display: inline-block;
    background: var(--prolend-primary);
    color: var(--prolend-white);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.place-order-btn:hover,
.nm-checkout-form .prolend-btn-primary:hover { background: var(--prolend-secondary); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(84,97,53,0.12); }

/* Compatibility: WooCommerce / Elementor checkout markup
   Target common WC classes rendered by Elementor widgets so the
   brand styles apply to the actual DOM structure shown in the page. */
.woocommerce h3,
.woocommerce .woocommerce-billing-fields h3,
.woocommerce #order_review_heading {
    font-family: var(--font-titles);
    color: var(--prolend-primary);
    font-size: 22px;
    margin-bottom: 12px;
}

.woocommerce .woocommerce-billing-fields__field-wrapper,
.woocommerce .woocommerce-shipping-fields__field-wrapper,
.woocommerce .woocommerce-additional-fields__field-wrapper {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.woocommerce .form-row { box-sizing: border-box; }
.woocommerce .form-row.form-row-first,
.woocommerce .form-row.form-row-last {
    flex: 1 1 calc(50% - 8px);
    min-width: 200px;
}
.woocommerce .form-row.form-row-wide { flex: 1 1 100%; }

.woocommerce input.input-text,
.woocommerce textarea.input-text,
.woocommerce select.select,
.woocommerce select {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--prolend-dark);
    background: var(--prolend-white);
}

.woocommerce .select2-container--default .select2-selection--single {
    border-radius: 10px;
    padding: 8px 12px;
    border: 1px solid rgba(0,0,0,0.08);
    font-family: var(--font-body);
}

.woocommerce .woocommerce-checkout-payment { margin-top: 16px; }

/* Place order button (Elementor/WooCommerce markup) */
.woocommerce .place-order .button.alt,
.woocommerce button#place_order {
    background: var(--prolend-primary);
    color: var(--prolend-white);
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border: none;
    cursor: pointer;
}
.woocommerce .place-order .button.alt:hover,
.woocommerce button#place_order:hover { background: var(--prolend-secondary); transform: translateY(-2px); }

.woocommerce .woocommerce-terms-and-conditions-wrapper { font-size: 14px; color: var(--prolend-gray); }

/* Ensure right-column order summary matches visual language */
.e-checkout__order_review,
.e-checkout__order_review-2 {
    font-family: var(--font-body);
}

@media (max-width: 1024px) {
    .woocommerce .woocommerce-billing-fields__field-wrapper,
    .woocommerce .woocommerce-shipping-fields__field-wrapper {
        flex-direction: column;
    }
    .woocommerce .form-row.form-row-first,
    .woocommerce .form-row.form-row-last { flex: 1 1 100%; }
}

.product-add-to-cart-btn,
.prolend-product-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.product-add-to-cart-btn.prolend-product-btn,
.prolend-product-btn {
    background: var(--prolend-primary);
    color: var(--prolend-white);
}

.product-add-to-cart-btn {
    /* ensure the add button isn't cramped against the qty input */
    margin-left: 6px;
}

.product-add-to-cart-btn.prolend-product-btn:hover,
.prolend-product-btn:hover {
    background: var(--prolend-secondary);
    transform: translateY(-2px);
}

.product-meta {
    margin-top: 8px;
    font-size: 13px;
    color: var(--prolend-gray);
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .product-gallery .main-image img {
        max-width: 360px;
    }

    .product-info-detail .product-title {
        font-size: 26px;
    }

    .product-add-to-cart-form {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .product-add-to-cart-btn {
        margin-left: 0;
        width: 100%;
    }
}


.prolend-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Iconos decorativos de productos */
.prolend-product-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    opacity: 0.15;
    transition: var(--prolend-transition);
    z-index: 1;
}

.prolend-product-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(50%);
}

.prolend-product-card:hover .prolend-product-icon {
    opacity: 0.3;
    transform: rotate(5deg) scale(1.1);
    filter: grayscale(0%);
}

.prolend-product-image {
    text-align: center;
    margin-bottom: 30px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prolend-product-image img {
    max-width: 80%;
    height: auto;
}

.prolend-product-header {
    margin-bottom: 15px;
}

.prolend-product-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--prolend-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.product-variant {
    color: var(--prolend-primary);
    display: block;
    font-size: 18px;
}

.prolend-product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--prolend-primary);
    margin: 10px 0;
}

.prolend-product-desc {
    font-size: 15px;
    line-height: 1.5;
    color: var(--prolend-gray);
    /* allow full descriptions to show; height equalization is handled by JS */
    display: block;
    overflow: visible;
    text-overflow: initial;
}

.prolend-product-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: var(--prolend-primary);
    color: var(--prolend-white);
    text-align: center;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--prolend-transition);
}

.prolend-product-btn:hover {
    background: var(--prolend-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(84, 97, 53, 0.4);
}


.prolend-product-details {
    display: block;
    text-align: center;
    margin: 8px auto 0 auto;
    color: #a08a8a;
    font-size: 11.5px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.1em;
    opacity: 0.85;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    transition: color 0.2s, opacity 0.2s, transform 0.2s;
}

/* Make product detail link occupy same horizontal space as main CTA for visual alignment */
.prolend-product-details {
    width: 100%;
    box-sizing: border-box;
}

.prolend-product-details:hover {
    color: var(--nm-green);
    opacity: 1;
    transform: none;
    text-decoration: underline;
}

.prolend-featured {
    position: relative;
    border: 3px solid var(--prolend-primary);
    transform: scale(1.05);
}

.prolend-featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nm-wine);
    color: var(--prolend-white);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(95, 6, 37, 0.4);
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.prolend-features {
    padding: 80px 0;
    background: var(--prolend-white);
}

.prolend-features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.prolend-features-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 40px;
    color: var(--prolend-dark);
}

.prolend-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.prolend-features-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.prolend-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--prolend-primary);
    flex-shrink: 0;
    position: relative;
    margin-top: 2px;
}

.prolend-check:after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--prolend-white);
    font-size: 14px;
    font-weight: 700;
}

.prolend-features-list p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--prolend-gray);
    margin: 0;
}

.prolend-link {
    color: var(--prolend-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    transition: var(--prolend-transition);
}

.prolend-link:hover {
    color: var(--prolend-secondary);
    margin-left: 5px;
}

.prolend-features-image {
    text-align: center;
}

.prolend-features-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.15));
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .prolend-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .prolend-hero-content,
    .prolend-features-content {
        gap: 40px;
    }
    
    .prolend-title {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    /* Navbar responsive */
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 80px);
        background: var(--nm-cream);
        flex-direction: column;
        padding: 30px;
        gap: 25px;
        box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--prolend-transition);
        align-items: flex-start;
    }
    
    .navbar-menu.active {
        right: 0;
    }
    
    .navbar-link::after {
        display: none;
    }
    
    /* Hero responsive */
    .prolend-hero-content,
    .prolend-features-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .prolend-hero-bg {
        width: 100%;
        clip-path: polygon(0 0, 100% 0, 100% 70%, 0% 100%);
    }
    
    .prolend-products-grid {
        grid-template-columns: 1fr;
    }
    
    .prolend-title {
        font-size: 32px;
    }
    
    .prolend-features-title {
        font-size: 32px;
    }
    
    .prolend-hero-buttons {
        flex-direction: column;
    }
    
    .prolend-btn {
        text-align: center;
    }
    
    .prolend-hero-image {
        order: -1;
    }
}

@media (max-width: 480px) {
    .prolend-title {
        font-size: 28px;
    }
    
    .prolend-features-title {
        font-size: 28px;
    }
    
    .prolend-product-card {
        padding: 30px 20px;
        margin-bottom: 30px;
        min-height: 200px;
    }
    }
}

/* ============================================
   TIENDA PERSONALIZADA (SHORTCODE)
   ============================================ */

.neuromanifest-shop-wrapper {
    padding: 60px 0 80px;
    background: var(--prolend-light-gray);
}

.shop-header {
    text-align: center;
    margin-bottom: 60px;
}

.shop-title {
    font-family: var(--font-titles);
    font-size: 48px;
    font-weight: 700;
    color: var(--prolend-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.shop-subtitle {
    font-size: 18px;
    color: var(--prolend-gray);
    font-weight: 500;
}

/* Policies shortcode styles */
.neuromanifest-policies{
    max-width:920px;
    margin:28px auto;
    padding:22px;
    font-family: 'Raleway', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color:#222;
    line-height:1.6;
}
.neuromanifest-policies .policies-title{
    font-family: 'Careny', serif;
    color:#5F0625;
    margin-bottom:8px;
    font-size:28px;
}
.neuromanifest-policies .policies-section-title{
    color:#5F0625;
    margin-top:18px;
    margin-bottom:6px;
    font-size:18px;
}
.neuromanifest-policies p{margin:0 0 12px 0}
.neuromanifest-policies ul{margin:0 0 12px 1.25rem}
.neuromanifest-policies li{margin:6px 0}


.neuromanifest-shop-wrapper .prolend-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.prolend-product-btn-secondary {
    background: transparent;
    border: 2px solid var(--prolend-primary);
    color: var(--prolend-primary);
    margin-top: 10px;
}

.prolend-product-btn-secondary:hover {
    background: var(--prolend-primary);
    color: var(--prolend-white);
}

.no-products {
    text-align: center;
    font-size: 18px;
    color: var(--prolend-gray);
    padding: 60px 20px;
}

@media (max-width: 1024px) {
    .neuromanifest-shop-wrapper .prolend-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shop-title {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .neuromanifest-shop-wrapper .prolend-products-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-title {
        font-size: 32px;
    }
    
    .neuromanifest-shop-wrapper {
        padding: 40px 0 60px;
    }
}

/* Botón del carrito (Proceder al pago) */
.checkout-btn {
    display: inline-block;
    background: #546135;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.8px;
    transition: background 0.18s ease, transform 0.12s ease;
}
.checkout-btn:hover {
    background: #3d4727;
    transform: translateY(-2px);
}

/* Footer styles (similar visual language to navbar) */
.neuromanifest-footer {
    background: var(--nm-cream);
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.06);
    padding: 18px 0;
    margin-top: 40px;
}

.neuromanifest-footer .footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.neuromanifest-footer .footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.neuromanifest-footer .footer-social-link {
    color: var(--prolend-dark);
    text-decoration: none;
    font-weight: 600;
}

.neuromanifest-footer .footer-whatsapp {
    color: var(--prolend-primary);
    font-weight: 700;
    text-decoration: none;
}

.neuromanifest-footer .footer-links {
    display: flex;
    gap: 18px;
    align-items: center;
}

.neuromanifest-footer .footer-link {
    color: var(--prolend-dark);
    text-decoration: none;
    font-weight: 600;
}

.neuromanifest-footer .footer-link:hover,
.neuromanifest-footer .footer-social-link:hover {
    color: var(--prolend-primary);
}

/* Enhanced footer layout */
.neuromanifest-footer .footer-content {
    display: grid;
    grid-template-columns: 220px 1fr 180px 260px; /* logo | social | contact | policies */
    align-items: center;
    gap: 30px;
}

.neuromanifest-footer .footer-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.neuromanifest-footer .footer-logo img {
    width: 140px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.08));
}

.neuromanifest-footer .footer-slogan {
    display: none; /* removed per request */
}

.neuromanifest-footer .footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-social-link {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--prolend-white);
    color: var(--prolend-dark);
    box-shadow: 0 6px 18px rgba(84,97,53,0.08);
    transition: transform .18s ease, background .18s ease, color .18s ease;
}

.footer-social-link:hover {
    /* keep hover subtle: only change color (no background or translate) */
    color: var(--prolend-primary);
    background: transparent;
    transform: none;
}

.footer-social-link .social-label {
    margin-left: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--prolend-dark);
    font-weight: 600;
}

/* make icon+label layout */
.footer-social-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    gap: 8px;
    width: auto;
    height: auto;
    border-radius: 8px;
    background: transparent;
}

.footer-social-link svg { width: 18px; height: 18px; color: var(--prolend-dark); }

.neuromanifest-footer .footer-whatsapp {
    color: var(--prolend-dark);
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    font-family: var(--font-body);
}

.neuromanifest-footer .footer-policies-col {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: flex-end;
}

.neuromanifest-footer .footer-link {
    font-size: 13px;
    color: var(--prolend-gray);
    font-weight: 500;
}

.neuromanifest-footer .footer-bottom {
    margin-top: 14px;
    text-align: center;
    color: var(--prolend-gray);
    font-size: 13px;
}

@media (max-width: 1024px) {
    .neuromanifest-footer .footer-content {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: auto;
        gap: 12px;
        text-align: center;
    }
    .neuromanifest-footer .footer-policies-col {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .neuromanifest-footer .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
    }
    .neuromanifest-footer .footer-policies-col {
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    .neuromanifest-footer .footer-logo img { width: 120px; }
}

    /* Force hero background/image visible on desktop in case other styles override them */
    @media (min-width: 769px) {
        .prolend-hero {
            overflow: visible !important;
            position: relative !important;
        }

        .prolend-hero-bg {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            background-repeat: no-repeat !important;
            background-size: cover !important;
            background-position: 75% center !important;
            z-index: 1 !important;
            pointer-events: none !important;
        }

        .prolend-hero-image {
            display: flex !important;
            visibility: visible !important;
            z-index: 2 !important;
        }

        .prolend-hero-text {
            z-index: 10 !important;
            position: relative !important;
        }

        .prolend-hero-content {
            position: relative !important;
            z-index: 5 !important;
        }
    }

