/* ============================================================
   Mercado Barrio - Estilos principales
   ============================================================ */

/* Urbanist — auto-hosteada */
@font-face {
    font-family: 'Urbanist';
    src: url('../fonts/urbanist/Urbanist-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Urbanist';
    src: url('../fonts/urbanist/Urbanist-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Urbanist';
    src: url('../fonts/urbanist/Urbanist-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Urbanist';
    src: url('../fonts/urbanist/Urbanist-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary:         #67853C;
    --primary-dark:    #496029;
    --primary-light:   #B8CC94;
    --secondary:       #f07d1c;
    --secondary-dark:  #d4630f;
    --bg-light:        #f5f7f5;
    --card-shadow:     0 2px 8px rgba(0,0,0,.08);
    --card-hover:      0 6px 20px rgba(0,0,0,.14);
    --radius:          12px;
    --radius-sm:       8px;
}

/* ---- Bootstrap overrides ---- */
.bg-primary   { background-color: var(--primary) !important; }
.btn-primary  { background-color: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); }
.text-primary { color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.btn-warning  { background-color: var(--secondary); border-color: var(--secondary); color:#fff; }
.btn-warning:hover { background-color: var(--secondary-dark); border-color: var(--secondary-dark); color:#fff; }

body { background-color: var(--bg-light); font-size: .95rem; }

/* ---- Barra de zonas ---- */
.zonas-bar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    font-size: .82rem;
}
.zona-link {
    white-space: nowrap;
    color: #555;
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 20px;
    transition: background .15s, color .15s;
}
.zona-link:hover, .zona-link.active {
    background: var(--primary);
    color: #fff;
}

/* ---- Navbar ---- */
.navbar { box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.navbar-brand { letter-spacing: -.5px; }
@media (min-width: 992px) { .navbar-nav .nav-link { white-space: nowrap; } }
.navbar-nav .nav-link:not(.btn) {
    opacity: .72;
    transition: opacity .2s ease;
}
.navbar-nav .nav-link:not(.btn):hover {
    opacity: 1;
}
.navbar-nav .nav-link.nav-active {
    opacity: 1;
    font-weight: 700;
    color: #fff !important;
}
.navbar .btn-outline-light {
    border-color: rgba(255,255,255,.55);
    color: rgba(255,255,255,.85);
    background: transparent;
}
.navbar .btn-outline-light:hover,
.navbar .btn-outline-light:focus {
    background: rgba(0,0,0,.25);
    border-color: rgba(255,255,255,.85);
    color: #fff;
}

/* ---- Hero ---- */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
}
.hero-section h1 { font-weight: 700; }
.hero-search .input-group { box-shadow: 0 4px 16px rgba(0,0,0,.2); border-radius: var(--radius); }
.hero-search .form-control { border-radius: var(--radius) 0 0 var(--radius) !important; font-size: 1rem; }
.hero-search .btn { border-radius: 0 var(--radius) var(--radius) 0 !important; }

/* ---- Cards de zona ---- */
.zona-card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
    background: #fff;
    text-decoration: none;
    color: inherit;
    display: block;
}
.zona-card:hover { transform: translateY(-3px); box-shadow: var(--card-hover); color: inherit; }
.zona-card .zona-icon {
    width: 52px; height: 52px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--primary);
    margin: 0 auto 0.75rem;
}
.zona-card .zona-nombre { font-weight: 600; font-size: .92rem; }
.zona-card .zona-count { font-size: .78rem; color: #888; }

/* ---- Cards de producto ---- */
.product-card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: transform .2s, box-shadow .2s;
    background: #fff;
    overflow: hidden;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--card-hover); }
.product-img-wrap {
    position: relative;
    overflow: hidden;
    height: 185px;
    background: #f0f0f0;
}
.product-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .3s;
}
.product-img-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .35rem; color: #bbb; background: #f5f5f5;
}
.product-img-placeholder i { font-size: 2rem; }
.product-img-placeholder span { font-size: .75rem; }
.product-img-video-thumb {
    position: relative; width: 100%; height: 100%; background: #111;
}
.product-img-video-thumb img,
.product-img-video-thumb video {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.product-img-play-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.25); transition: background .2s;
}
.product-img-play-overlay i { font-size: 2.5rem; color: rgba(255,255,255,.9); filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.product-card:hover .product-img-play-overlay { background: rgba(0,0,0,.4); }
.product-card:hover .product-img-wrap img { transform: scale(1.04); }
.product-img-wrap .badge-tipo {
    position: absolute; top: 8px; left: 8px;
}
.product-img-wrap .btn-fav {
    position: absolute; top: 8px; right: 8px;
    background: rgba(255,255,255,.85);
    border: none; border-radius: 50%;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #999; transition: color .2s;
    font-size: .95rem;
}
.product-img-wrap .btn-fav:hover, .product-img-wrap .btn-fav.activo { color: #e53e3e; }
.product-card .card-title a {
    color: #222; text-decoration: none; font-weight: 600; font-size: .9rem;
}
.product-card .card-title a:hover { color: var(--primary); }
.product-price { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.product-price.trueque { color: var(--secondary); font-size: .9rem; }
.product-meta { font-size: .75rem; color: #888; }
.product-meta .bi { font-size: .7rem; }
.card-footer { background: #fafafa; border-top: 1px solid #f0f0f0; font-size: .75rem; color: #aaa; }

/* ---- Badges de tipo ---- */
.badge-venta   { background-color: var(--primary);   color:#fff; padding:3px 8px; border-radius:20px; font-size:.72rem; font-weight:600; }
.badge-trueque { background-color: #f59e0b; color:#fff; padding:3px 8px; border-radius:20px; font-size:.72rem; font-weight:600; }
.badge-ambos   { background-color: #6366f1; color:#fff; padding:3px 8px; border-radius:20px; font-size:.72rem; font-weight:600; }
.badge-donacion{ background-color: #0d9488; color:#fff; padding:3px 8px; border-radius:20px; font-size:.72rem; font-weight:600; }

/* ---- Trueque stamp ---- */
.trueque-stamp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .01em;
    box-shadow: 0 2px 6px rgba(217,119,6,.35);
    white-space: nowrap;
}
.trueque-stamp i { font-size: .8rem; }
/* Versión overlay sobre la imagen de la card */
.product-img-wrap .trueque-stamp {
    position: absolute;
    bottom: 8px;
    left: 8px;
    pointer-events: none;
}
/* Versión grande para página de detalle */
.trueque-stamp-lg {
    font-size: .95rem;
    padding: 6px 14px;
    border-radius: 24px;
}

/* ---- Overlay de estado en card ---- */
.product-estado-overlay {
    position: absolute; bottom: 8px; left: 8px;
    pointer-events: none;
}
.product-estado-overlay .badge { font-size: .7rem; opacity: .93; }

/* ---- Selector de estrellas (reseñas) ---- */
.star-input-group {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}
.star-input-group input[type=radio] { display: none; }
.star-input-group label {
    cursor: pointer;
    font-size: 2rem;
    color: #dee2e6;
    transition: color .1s;
    line-height: 1;
}
.star-input-group input:checked ~ label,
.star-input-group label:hover,
.star-input-group label:hover ~ label { color: #ffc107; }

/* ---- Bloque de reseñas ---- */
.resena-item {
    border-bottom: 1px solid #e9ecef;
    padding: .85rem 0;
}
.resena-item:last-child { border-bottom: none; }

/* ---- Página de producto ---- */
.product-gallery { border-radius: var(--radius); overflow: hidden; }
.product-gallery .main-img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius);
}
.thumb-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.thumb-strip img {
    width: 72px; height: 72px; object-fit: cover;
    border-radius: var(--radius-sm); cursor: pointer;
    border: 2px solid transparent; transition: border-color .2s;
}
.thumb-strip img.active { border-color: var(--primary); }

.seller-card { background:#fff; border-radius:var(--radius); box-shadow:var(--card-shadow); padding:1.25rem; }

/* ---- Formularios ---- */
.form-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 2rem;
}
.form-label { font-weight: 500; font-size: .88rem; }
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(45,122,58,.2);
}

/* ---- Upload de fotos ---- */
.fotos-preview { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.foto-preview-item {
    position: relative; width: 90px; height: 90px;
    border-radius: var(--radius-sm); overflow: hidden;
    border: 2px solid #e5e7eb;
    transition: transform .25s ease, opacity .25s ease;
}
.foto-preview-item.removing {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}
.foto-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.foto-preview-item .remove-foto {
    position: absolute; top: 2px; right: 2px;
    background: rgba(220,53,69,.9); color:#fff; border:none;
    border-radius: 50%; width: 20px; height: 20px;
    font-size: .65rem; display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.foto-drop-zone {
    border: 2px dashed #d1d5db;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    color: #9ca3af;
    transition: border-color .2s, background .2s;
    cursor: pointer;
}
.foto-drop-zone:hover, .foto-drop-zone.drag-over {
    border-color: var(--primary);
    background: var(--primary-light);
}

/* ---- Publicidades / Avisos ---- */
.ad-slot {
    position: relative;
    text-align: center;
    margin: 0 auto;
}
.ad-label {
    font-size: .65rem;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 3px;
    text-align: right;
}
.ad-img { border-radius: var(--radius-sm); }

/* Transición zoom en carousel de publicidades */
.carousel-zoom .carousel-item { transition: transform .8s ease; }
.carousel-zoom .carousel-item.active { transform: scale(1); }
.carousel-zoom .carousel-item-start,
.carousel-zoom .carousel-item-end   { transform: scale(.85); }

/* Texto dentro de publicidades */
.ad-text-headline { font-size: clamp(.75rem, 2.5vw, 1.2rem); font-weight: 700; line-height: 1.2; }
.ad-text-cuerpo   { font-size: clamp(.65rem, 2vw,   .95rem); line-height: 1.3; opacity: .9; }
.ad-movil-sticky {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,.12);
    padding: 4px;
    display: flex; justify-content: center;
}
.ad-movil-sticky .ad-slot { margin-bottom: 0; }
.ad-section { padding: 1rem 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin: 1rem 0; }

/* ---- Sidebar ---- */
.sidebar-widget {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.sidebar-widget h6 { font-weight: 700; margin-bottom: .75rem; color: #333; }
.sidebar-cat-item {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 6px;
    border-radius: 6px;
    text-decoration: none; color: #555;
    font-size: .88rem;
    transition: background .15s;
}
.sidebar-cat-item:hover { background: var(--primary-light); color: var(--primary); }
.sidebar-cat-item .bi { font-size: .85rem; color: var(--primary); width: 16px; }

/* ---- Mensajes ---- */
.mensaje-burbuja {
    max-width: 75%;
    padding: .6rem 1rem;
    border-radius: 18px;
    font-size: .9rem;
    margin-bottom: .4rem;
}
.mensaje-burbuja.enviado { background: var(--primary); color: #fff; margin-left: auto; }
.mensaje-burbuja.recibido { background: #f0f0f0; color: #333; }
.conversacion-item {
    border: none; border-bottom: 1px solid #f0f0f0;
    padding: .75rem 1rem;
    cursor: pointer; transition: background .15s;
}
.conversacion-item:hover, .conversacion-item.active { background: var(--primary-light); }
.conversacion-item.no-leido .conv-nombre { font-weight: 700; }
.conv-avatar {
    width: 44px; height: 44px;
    border-radius: 50%; object-fit: cover;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 700;
    flex-shrink: 0;
}

/* ---- Perfil ---- */
.perfil-avatar {
    width: 96px; height: 96px;
    border-radius: 50%; object-fit: cover;
    border: 3px solid var(--primary-light);
}

/* ---- Footer ---- */
.footer-link { color: #9ca3af; text-decoration: none; }
.footer-link:hover { color: #fff; }
/* El footer siempre tiene fondo oscuro: forzar texto claro en cualquier tema */
footer .text-muted { color: rgba(255,255,255,.6) !important; }

/* ---- Sección encabezado de zona ---- */
.zona-header {
    background: linear-gradient(135deg, var(--primary) 0%, #34a350 100%);
    color: #fff;
    padding: 2rem 0 1.5rem;
    margin-bottom: 1.5rem;
}

/* ---- Responsive ajustes ---- */
@media (max-width: 576px) {
    body { padding-bottom: 60px; }
    .product-img-wrap { height: 160px; }
    .hero-section { padding: 2rem 0 1.5rem; }
    .form-card { padding: 1.25rem; }
}

/* ============================================================
   Modo Oscuro — Sitio público
   ============================================================ */
[data-theme="dark"] {
    --bg-light:      #0f1117;
    --card-shadow:   0 2px 8px rgba(0,0,0,.4);
    --card-hover:    0 6px 20px rgba(0,0,0,.55);
    color-scheme: dark;
}
[data-theme="dark"] body {
    background-color: #0f1117;
    color: #e2e8f0;
}
[data-theme="dark"] .zonas-bar {
    background: #1a1d27;
    border-color: #2d3748;
}
[data-theme="dark"] .zona-link { color: #a0aec0; }
[data-theme="dark"] .zona-link:hover,
[data-theme="dark"] .zona-link.active { background: var(--primary); color: #fff; }
[data-theme="dark"] .product-card,
[data-theme="dark"] .form-card,
[data-theme="dark"] .seller-card,
[data-theme="dark"] .sidebar-widget {
    background: #1a1d27;
    color: #e2e8f0;
}
[data-theme="dark"] .product-card .card-title a { color: #e2e8f0; }
[data-theme="dark"] .card-footer { background: #141720; border-color: #2d3748; }
[data-theme="dark"] .sidebar-cat-item { color: #a0aec0; }
[data-theme="dark"] .sidebar-cat-item:hover { background: #1e3a28; color: var(--primary); }
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: #212535;
    border-color: #3d4a5c;
    color: #e2e8f0;
}
[data-theme="dark"] .form-control::placeholder { color: #718096; }
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background: #212535;
    border-color: var(--primary);
    color: #e2e8f0;
}
[data-theme="dark"] .input-group-text {
    background: #2d3748;
    border-color: #3d4a5c;
    color: #a0aec0;
}
[data-theme="dark"] .foto-drop-zone {
    border-color: #3d4a5c;
    color: #718096;
}
[data-theme="dark"] .foto-drop-zone:hover,
[data-theme="dark"] .foto-drop-zone.drag-over {
    border-color: var(--primary);
    background: #1e3a28;
}
[data-theme="dark"] .bg-light        { background: #1a1d27 !important; }
[data-theme="dark"] .text-muted      { color: #718096 !important; }
[data-theme="dark"] .text-dark,
[data-theme="dark"] .text-secondary  { color: #cbd5e0 !important; }
[data-theme="dark"] .border          { border-color: #2d3748 !important; }
[data-theme="dark"] .border-bottom   { border-color: #2d3748 !important; }
[data-theme="dark"] .nav-tabs        { border-color: #2d3748; }
[data-theme="dark"] .nav-tabs .nav-link { color: #a0aec0; }
[data-theme="dark"] .nav-tabs .nav-link.active { background: #1a1d27; border-color: #2d3748 #2d3748 #1a1d27; color: #e2e8f0; }
[data-theme="dark"] .breadcrumb-item a { color: #68d391; }
[data-theme="dark"] .breadcrumb-item.active { color: #a0aec0; }
[data-theme="dark"] .alert-warning   { background: #3a2e10; border-color: #6b4c10; color: #fbd38d; }
[data-theme="dark"] .alert-success   { background: #1a3a28; border-color: #276749; color: #9ae6b4; }
[data-theme="dark"] .alert-info      { background: #1a2e4a; border-color: #1a4a7a; color: #90cdf4; }
[data-theme="dark"] .zona-card       { background: #1a1d27; }
[data-theme="dark"] .zona-card .zona-nombre { color: #e2e8f0; }
[data-theme="dark"] .zona-card .zona-icon   { background: #1e3a28; }
[data-theme="dark"] footer.bg-dark   { background: #0a0d14 !important; }
[data-theme="dark"] .ad-movil-sticky { background: #1a1d27; }
[data-theme="dark"] .mensaje-burbuja.recibido { background: #2d3748; color: #e2e8f0; }
[data-theme="dark"] .conversacion-item:hover,
[data-theme="dark"] .conversacion-item.active { background: #1e3a28; }
[data-theme="dark"] .table { --bs-table-bg: transparent; color: #e2e8f0; }
[data-theme="dark"] .table th,
[data-theme="dark"] .table td { border-color: #2d3748; }
[data-theme="dark"] .table-hover > tbody > tr:hover > * { background-color: rgba(255,255,255,.04); }
[data-theme="dark"] .ad-size-option  { background: #1a1d27; border-color: #2d3748; color: #e2e8f0; }
[data-theme="dark"] .ad-size-option.selected,
[data-theme="dark"] .ad-size-option:hover { background: #1e3a28; border-color: var(--primary); }

/* ---- Botón toggle tema (sitio público) ---- */
.btn-theme-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,.3);
    color: rgba(255,255,255,.8);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: .8rem;
    cursor: pointer;
    transition: all .2s;
}
.btn-theme-toggle:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ---- Descripción rich text (producto) ---- */
.product-descripcion p          { margin-bottom: .6rem; }
.product-descripcion h2         { font-size: 1.1rem; font-weight: 600; margin: 1rem 0 .4rem; }
.product-descripcion h3         { font-size: 1rem;  font-weight: 600; margin: .8rem 0 .3rem; }
.product-descripcion ul,
.product-descripcion ol         { padding-left: 1.4rem; margin-bottom: .6rem; }
.product-descripcion blockquote { border-left: 3px solid #dee2e6; padding-left: .75rem; color: #6c757d; margin: .5rem 0; }
.product-descripcion a          { color: var(--primary); }
.product-descripcion strong,
.product-descripcion b          { font-weight: 600; }

/* ---- Editor Quill en formularios ---- */
.ql-toolbar.ql-snow         { border-radius: .375rem .375rem 0 0; border-color: #dee2e6; }
.ql-container.ql-snow       { border-radius: 0 0 .375rem .375rem; border-color: #dee2e6; font-size: .95rem; }
.ql-editor                  { min-height: 140px; }
[data-theme="dark"] .ql-toolbar.ql-snow,
[data-theme="dark"] .ql-container.ql-snow { border-color: #2d3748; background: #1a1d27; color: #e2e8f0; }
[data-theme="dark"] .ql-editor.ql-blank::before { color: #6c757d; }
[data-theme="dark"] .ql-snow .ql-stroke       { stroke: #e2e8f0; }
[data-theme="dark"] .ql-snow .ql-fill         { fill:   #e2e8f0; }
[data-theme="dark"] .ql-snow .ql-picker-label { color:  #e2e8f0; }

/* ============================================================
   Sponsors / Comercios de cercanía
   ============================================================ */

/* Strip horizontal en homepage */
.sponsor-strip {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) transparent;
}
.sponsor-strip::-webkit-scrollbar { height: 4px; }
.sponsor-strip::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 2px; }

.sponsor-chip {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: .55rem;
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 2rem;
    padding: .35rem .9rem .35rem .4rem;
    text-decoration: none;
    color: #333;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color .2s, box-shadow .2s, color .2s;
}
.sponsor-chip:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(45,122,58,.15);
    color: var(--primary);
}
.sponsor-chip-logo {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.sponsor-chip-initials {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: .78rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* Tarjeta completa (sponsors.php) */
.sponsor-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    height: 100%;
    transition: transform .2s, box-shadow .2s;
}
.sponsor-card:hover { transform: translateY(-3px); box-shadow: var(--card-hover); }

.sponsor-card-logo {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-light);
}
.sponsor-card-initials {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-light);
    flex-shrink: 0;
}
.sponsor-card-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: .2rem;
    color: #222;
}
.sponsor-card-rubro { font-size: .8rem; color: #777; margin-bottom: .6rem; }
.sponsor-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 1.05rem;
    background: #f0f2f0;
    color: #555;
    text-decoration: none;
    transition: background .2s, color .2s, transform .15s;
}
.sponsor-icon-btn:hover { transform: scale(1.15); background: var(--primary); color: #fff; }
.sponsor-icon-ig:hover  { background: #e1306c; color: #fff; }
.sponsor-icon-wa:hover  { background: #25d366; color: #fff; }
.sponsor-icon-yt:hover  { background: #ff0000; color: #fff; }
.sponsor-card-desc {
    font-size: .85rem;
    color: #555;
    flex: 1;
    margin-bottom: .9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.badge-destacado {
    position: absolute;
    top: .6rem; right: .6rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: .68rem;
    padding: .15rem .5rem;
    border-radius: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* CTA "Ser sponsor" */
.sponsor-cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    color: #fff;
    padding: 3rem 2rem;
    text-align: center;
}
.sponsor-cta-section h3 { font-weight: 700; margin-bottom: .5rem; }
.sponsor-cta-section p  { opacity: .85; margin-bottom: 1.5rem; }
