:root {
    --primary-color: #193822; /* Negro profundo artesanal Barretta */
    --accent-color: #b8973f;  /* Dorado tostado grano de trigo */
    --accent-hover: #9e7f2e;
    --bg-color: #fbf9f6;      /* Tono harina/lino cÃ¡lido */
    --text-color: #222222;
    --chat-bg: rgba(255, 255, 255, 0.96);
    --bot-msg-bg: #f4eee6;
    --user-msg-bg: var(--accent-color);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Barra de NavegaciÃ³n Principal Frontal */
.site-nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(17, 17, 17, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184, 151, 63, 0.25);
    z-index: 1000;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.site-nav-logo {
    width: 44px;
    height: 44px;
    filter: invert(1);
    transition: transform 0.4s ease;
}

.site-nav-brand:hover .site-nav-logo {
    transform: rotate(10deg);
}

.site-nav-title {
    font-family: 'forevs', serif;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.site-nav-subtitle {
    font-size: 0.7rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
}

.site-nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.site-nav-link:hover {
    color: var(--accent-color);
}

.site-nav-btn {
    padding: 0.55rem 1.2rem;
    border-radius: 20px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.site-nav-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.site-nav-btn.admin-link {
    background: transparent;
    border-color: #444;
    color: #bbb;
}

.site-nav-btn.admin-link:hover {
    border-color: var(--accent-color);
    color: white;
}

/* Background aesthetic con textura de obrador */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url("assets/bread.png");
    background-size: cover;
    background-position: center;
    filter: brightness(0.25) saturate(1.2);
    z-index: -1;
}

.container {
    display: flex;
    width: 92%;
    max-width: 1280px;
    min-height: 82vh;
    gap: 3rem;
    align-items: center;
    margin: 3rem auto;
}

/* Hero Section Editorial */
.hero {
    flex: 1.1;
    padding: 1rem 0;
    color: white;
}

/* Sello Magistral Barretta */
.barretta-seal-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    background: #ffffff;
    border-radius: 50%;
    padding: 0;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 0 3px var(--accent-color);
    margin-bottom: 2rem;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s;
    cursor: pointer;
}

.barretta-seal-hero:hover {
    transform: rotate(6deg) scale(1.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 0 5px var(--accent-color);
}

.barretta-seal-hero img {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(184, 151, 63, 0.18);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.4rem 1.1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-family: 'forevs', serif;
    font-size: 3.6rem;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hero-quote {
    font-family: 'forevs', serif;
    font-style: italic;
    font-size: 1.35rem;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

.hero p {
    font-size: 1.05rem;
    font-weight: 300;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 90%;
    margin-bottom: 2rem;
}

.hero-pillars {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.2rem;
    flex-wrap: wrap;
}

.hero-pillar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #f0e6d6;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.5rem 0.9rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 2rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.25s;
    box-shadow: 0 8px 25px rgba(184, 151, 63, 0.35);
}

.btn-hero-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(184, 151, 63, 0.5);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.8rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.25s;
    backdrop-filter: blur(5px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* Chat Section */
.chat-container {
    flex: 0 0 440px;
    height: 580px;
    background: var(--chat-bg);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(184,151,63,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 2px solid var(--accent-color);
}

.avatar {
    width: 45px;
    height: 45px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'forevs', serif;
    font-size: 1.5rem;
    font-weight: bold;
}

.header-info h2 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.status {
    font-size: 0.8rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 85%;
    padding: 1rem;
    border-radius: 12px;
    animation: fadeIn 0.3s ease-out;
    line-height: 1.4;
    font-size: 0.95rem;
}

.message.bot {
    background-color: var(--bot-msg-bg);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.user {
    background-color: var(--user-msg-bg);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 1rem;
    background: white;
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

#user-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

#user-input:focus {
    border-color: var(--accent-color);
}

#send-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

#send-btn:hover {
    transform: scale(1.05);
    background: var(--accent-color);
}

/* Product Cards in Chat */
.products-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-top: 0.5rem;
    scroll-snap-type: x mandatory;
}
.products-carousel::-webkit-scrollbar {
    height: 6px;
}
.products-carousel::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.product-card {
    min-width: 200px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    scroll-snap-align: start;
    border: 1px solid #eee;
}

.product-image {
    height: 120px;
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 0;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.product-desc {
    font-size: 0.75rem;
    color: #666;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Quick replies */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quick-reply-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.quick-reply-btn:hover {
    background: var(--accent-color);
    color: white;
}



/* Responsive */


/* ========================================================
   SECCIÃN EDITORIAL: ACERCA DE BARRETTA (PÃ¡gs. 2 y 3 PDF)
   ======================================================== */
.about-section {
    background: #ffffff;
    padding: 5rem 2rem;
    border-bottom: 1px solid #eae5de;
    position: relative;
    z-index: 10;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-badge {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.about-title {
    font-family: 'forevs', serif;
    font-size: 2.8rem;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.about-quote {
    font-family: 'forevs', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--accent-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 1.2rem;
    margin: 1.8rem 0;
    line-height: 1.4;
}

.about-pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

.about-pillar-card {
    background: #fbf9f6;
    padding: 1.4rem;
    border-radius: 8px;
    border: 1px solid #eae5de;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
}

.about-pillar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.about-pillar-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.about-pillar-title {
    font-family: 'forevs', serif;
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.about-pillar-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* CATALOGO B2B (Fase 3) */
.catalog-section {
    background: #ffffff;
    padding: 5rem 2rem;
    z-index: 10;
    position: relative;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}

.catalog-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.catalog-header h2 {
    font-family: 'forevs', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.catalog-header p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.b2b-product-card {
    background: white;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.b2b-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.badge-new { background: #e3f2fd; color: #1976d2; }
.badge-premium { background: #fff8e1; color: #f57f17; }
.badge-top { background: #e8f5e9; color: #388e3c; }

.b2b-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #f0f0f0;
}

.b2b-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.b2b-content h3 {
    font-family: 'forevs', serif;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.b2b-specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.spec-item {
    font-size: 0.85rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-pdf-btn {
    width: 100%;
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.download-pdf-btn:hover {
    background: var(--accent-color);
    color: white;
}

/* Dashboard Styles (Phase 2) */
.dashboard-body {
    display: block;
    overflow: auto;
    background-color: #f4f0ed;
}

.dashboard-nav {
    background: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-family: 'forevs', serif;
}

.nav-logo {
    height: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.dashboard-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-family: 'forevs', serif;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: #666;
}

.primary-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.primary-btn:hover {
    background: var(--accent-color);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Radar Animation */
.radar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.radar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    background: rgba(184, 151, 63, 0.1);
}

.sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, rgba(184, 151, 63, 0.8) 0%, transparent 50%);
    transform-origin: 0 0;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#radar-status {
    color: var(--primary-color);
    font-weight: 600;
}

/* Leads Grid */
.leads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.lead-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--accent-color);
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lead-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.lead-type {
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lead-match {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.lead-name {
    font-family: 'forevs', serif;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.lead-data p {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: #444;
}

.lead-pitch-container {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.lead-pitch-container h4 {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.lead-pitch {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    font-style: italic;
    color: #333;
    margin-bottom: 1rem;
    border-left: 3px solid var(--accent-color);
}

/* Nuevos Controles Fase 2 */
.controls-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.region-select {
    padding: 0.8rem 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 600;
}

.lead-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.copy-btn {
    flex: 1;
    padding: 0.6rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--primary-color);
    color: white;
}

.discard-btn {
    background: transparent;
    border: 1px solid #dc3545;
    color: #dc3545;
    border-radius: 5px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.discard-btn:hover {
    background: #dc3545;
    color: white;
}

/* ========================================================
   ESTILOS BARRETTA & CMS DE ADMINISTRACIÃN
   ======================================================== */

/* Barra de PestaÃ±as en el Panel de AdministraciÃ³n */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.admin-tab-btn {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-tab-btn:hover {
    background: #f0ebe4;
    color: var(--primary-color);
}

.admin-tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.admin-tab-btn.secondary {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.admin-tab-btn.secondary:hover {
    background: var(--accent-color);
    color: white;
}

/* CMS Container & Toolbar */
.cms-section {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.cms-section.active {
    display: block;
}

.cms-toolbar {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cms-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn-cms-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.4rem;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.btn-cms-primary:hover {
    background: var(--accent-color);
}

.btn-cms-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid #ccc;
    padding: 0.75rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-cms-outline:hover {
    border-color: var(--primary-color);
    background: #f8f6f2;
}

/* Buscador y Filtros del CMS */
.cms-filters-bar {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.cms-search-input {
    flex: 1;
    min-width: 250px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background: white;
}

.cms-category-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cms-chip {
    padding: 0.45rem 0.9rem;
    border-radius: 20px;
    background: white;
    border: 1px solid #ddd;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.2s;
}

.cms-chip:hover, .cms-chip.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Grid de ArtÃ­culos en el CMS */
.cms-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.cms-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cms-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.cms-card-img-wrap {
    height: 170px;
    background: #f9f7f4;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cms-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cms-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(26,26,26,0.85);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.cms-card-body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cms-card-ref {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.cms-card-title {
    font-family: 'forevs', serif;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cms-card-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 1rem;
    flex: 1;
}

.cms-card-specs-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    background: #faf8f5;
    padding: 0;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 1.2rem;
}

.cms-spec-cell {
    color: #555;
}

.cms-spec-cell strong {
    color: var(--primary-color);
}

.cms-card-actions {
    display: flex;
    gap: 0.5rem;
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
}

.btn-edit-product {
    flex: 1;
    padding: 0.6rem;
    background: #f0ebe4;
    border: 1px solid #ddd;
    color: var(--primary-color);
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-edit-product:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-delete-product {
    padding: 0.6rem 0.9rem;
    background: transparent;
    border: 1px solid #f8d7da;
    color: #dc3545;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-delete-product:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* Modales del CMS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.modal-box {
    background: white;
    width: 100%;
    max-width: 780px;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: var(--primary-color);
    color: white;
    padding: 1.2rem 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: 'forevs', serif;
    font-size: 1.3rem;
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.modal-close-btn:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.8rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 1rem 1.8rem;
    background: #faf8f5;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
}

/* Formularios del Modal */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 75px;
}

.image-picker-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

.image-preview-box {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fafafa;
    flex-shrink: 0;
}

.image-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estilos de Ficha TÃ©cnica en index.html (Frente B2B Barretta) */
.barretta-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    background: #1a1a1a;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.badge-ready { background: #2e7d32; color: white; }
.badge-mother { background: #b8973f; color: white; }
.badge-traditional { background: #4a2c1d; color: white; }
.badge-special { background: #d32f2f; color: white; }

.b2b-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    background: #fbf9f6;
    padding: 0.9rem;
    border-radius: 6px;
    margin: 1rem 0;
    font-size: 0.82rem;
    border: 1px solid #eee;
}

.b2b-spec-item {
    color: #444;
    display: flex;
    flex-direction: column;
}

.b2b-spec-item span.label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #888;
    font-weight: 600;
}

.b2b-spec-item span.val {
    font-weight: 600;
    color: var(--primary-color);
}

.product-ref-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 0.2rem;
}

/* Filtros por CategorÃ­a en el Frontal */
.category-filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.cat-filter-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    background: #f0ebe4;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
}

.cat-filter-btn:hover {
    background: #e2dacd;
    color: var(--primary-color);
}

.cat-filter-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Modal de Ficha TÃ©cnica Detallada (PDF Style) */
.tech-sheet-modal-box {
    max-width: 650px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.tech-sheet-header {
    background: #1a1a1a;
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--accent-color);
}

.tech-sheet-header h2 {
    font-family: 'forevs', serif;
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.tech-sheet-ref {
    font-size: 0.8rem;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.tech-sheet-body {
    padding: 2rem;
}

.tech-sheet-image-hero {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.tech-specs-table-view {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.tech-specs-table-view tr:nth-child(even) {
    background: #fbf9f6;
}

.tech-specs-table-view td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.tech-specs-table-view td.label-cell {
    font-weight: 600;
    color: #666;
    width: 40%;
}

.tech-specs-table-view td.value-cell {
    font-weight: 600;
    color: #1a1a1a;
}


 
 / *   R E S P O N S I V E   M Ó V I L   Y   B A N N E R   C O O K I E S   * / 
 
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   { 
 
     . s i t e - n a v   {   f l e x - d i r e c t i o n :   c o l u m n ;   p a d d i n g :   1 r e m ;   g a p :   1 r e m ;   } 
 
     . s i t e - n a v - l i n k s   {   f l e x - w r a p :   w r a p ;   j u s t i f y - c o n t e n t :   c e n t e r ;   g a p :   0 . 8 r e m ;   } 
 
     . a b o u t - c o n t a i n e r   {   g r i d - t e m p l a t e - c o l u m n s :   1 f r ;   g a p :   2 r e m ;   p a d d i n g :   1 r e m ;   } 
 
     . h e r o   {   p a d d i n g :   4 r e m   1 r e m ;   } 
 
     . h e r o   h 1   {   f o n t - s i z e :   2 . 2 r e m ;   } 
 
     . h e r o   h 2   {   f o n t - s i z e :   1 . 1 r e m ;   } 
 
     . t e c h - s p e c s - t a b l e - v i e w   t d   {   d i s p l a y :   b l o c k ;   w i d t h :   1 0 0 % ;   b o r d e r :   n o n e ;   p a d d i n g :   0 . 5 r e m ;   } 
 
     . t e c h - s p e c s - t a b l e - v i e w   t r   {   b o r d e r - b o t t o m :   1 p x   s o l i d   # e e e ;   d i s p l a y :   b l o c k ;   p a d d i n g - b o t t o m :   0 . 5 r e m ;   } 
 
     . t e c h - s p e c s - t a b l e - v i e w   . l a b e l - c e l l   {   f o n t - w e i g h t :   b o l d ;   b a c k g r o u n d :   t r a n s p a r e n t ;   p a d d i n g - b o t t o m :   0 ;   } 
 
     . d a s h b o a r d - n a v   {   f l e x - d i r e c t i o n :   c o l u m n ;   g a p :   1 r e m ;   } 
 
     . a d m i n - t a b s   {   f l e x - w r a p :   w r a p ;   j u s t i f y - c o n t e n t :   c e n t e r ;   } 
 
 } 
 
 / *   B A N N E R   C O O K I E S   * / 
 
 # c o o k i e - b a n n e r   {   p o s i t i o n :   f i x e d ;   b o t t o m :   0 ;   l e f t :   0 ;   w i d t h :   1 0 0 % ;   b a c k g r o u n d :   # 1 1 1 ;   c o l o r :   # f f f ;   p a d d i n g :   1 . 5 r e m ;   z - i n d e x :   1 0 0 0 0 ;   d i s p l a y :   f l e x ;   f l e x - d i r e c t i o n :   c o l u m n ;   a l i g n - i t e m s :   c e n t e r ;   j u s t i f y - c o n t e n t :   c e n t e r ;   t e x t - a l i g n :   c e n t e r ;   g a p :   1 r e m ;   b o r d e r - t o p :   3 p x   s o l i d   v a r ( - - a c c e n t - c o l o r ) ;   f o n t - s i z e :   0 . 9 r e m ;   } 
 
 @ m e d i a ( m i n - w i d t h :   7 6 8 p x )   {   # c o o k i e - b a n n e r   {   f l e x - d i r e c t i o n :   r o w ;   t e x t - a l i g n :   l e f t ;   j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ;   p a d d i n g :   1 r e m   2 r e m ;   }   } 
 
 # c o o k i e - b a n n e r   a   {   c o l o r :   v a r ( - - a c c e n t - c o l o r ) ;   t e x t - d e c o r a t i o n :   u n d e r l i n e ;   } 
 
 # c o o k i e - b a n n e r   b u t t o n   {   b a c k g r o u n d :   v a r ( - - a c c e n t - c o l o r ) ;   c o l o r :   # 0 0 0 ;   b o r d e r :   n o n e ;   p a d d i n g :   0 . 5 r e m   1 . 5 r e m ;   f o n t - w e i g h t :   b o l d ;   c u r s o r :   p o i n t e r ;   b o r d e r - r a d i u s :   4 p x ;   } 
 
 
. c o r p - i c o n   {   w i d t h :   1 6 p x ;   v e r t i c a l - a l i g n :   m i d d l e ;   m a r g i n - r i g h t :   6 p x ;   f i l t e r :   b r i g h t n e s s ( 0 )   s a t u r a t e ( 1 0 0 % )   i n v e r t ( 2 0 % )   s e p i a ( 1 7 % )   s a t u r a t e ( 1 5 1 2 % )   h u e - r o t a t e ( 8 5 d e g )   b r i g h t n e s s ( 9 3 % )   c o n t r a s t ( 9 2 % ) ;   } 
 
 



/* GDPR Cookie Modal */
#cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
#cookie-banner > div.cookie-modal {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
#cookie-banner h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
#cookie-banner p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
}
#cookie-banner a {
    color: var(--accent-color);
    text-decoration: underline;
}
#btn-accept-cookies {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}
#btn-accept-cookies:hover {
    background: #a38234;
}


/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    padding: 0.5rem;
}

/* Chatbot FAB */
.chatbot-fab {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 10000;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}
.chatbot-fab:hover {
    transform: scale(1.05);
}

.chatbot-close-btn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    margin-left: auto;
    padding: 0 0.5rem;
}

@media (max-width: 768px) {
    /* Mobile Menu */
    .mobile-menu-btn {
        display: block;
    }
    .site-nav {
        flex-wrap: wrap;
        padding: 0.5rem 1rem;
    }
    .site-nav-brand {
        flex: 1; /* Pushes the hamburger button to the right */
    }
    .site-nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(184, 151, 63, 0.25);
        margin-top: 1rem;
    }
    .site-nav-links.active {
        display: flex;
    }
    .site-nav-links li {
        width: 100%;
        text-align: center;
    }
    .site-nav-btn {
        display: inline-block;
        width: 90%;
    }

    /* Hero section */
    .hero-header {
        flex-direction: column;
        height: auto;
        min-height: auto;
        padding: 2rem 1rem;
    }
    .hero-content {
        padding-right: 0;
        text-align: center;
        align-items: center;
    }
    .hero-logo {
        width: 140px;
        margin-bottom: 1rem;
    }
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .hero-pillar-badges {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .hero-actions a {
        width: 100%;
        text-align: center;
    }

    /* Chatbot Panel Mobile */
    .chat-container {
        display: none !important; /* hidden by default on mobile */
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 95%;
        height: 80vh;
        z-index: 10001;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.8);
        border: 1px solid var(--accent-color);
    }
    .chat-container.active {
        display: flex !important;
    }
    .chatbot-fab {
        display: flex;
    }
    .chatbot-close-btn {
        display: block;
    }
}
