/* ==========================================================================
   1. VARIABLES Y CONFIGURACIÓN GENERAL
   ========================================================================== */
:root {
    --rojo: #c8161e;
    --negro: #000;
    --blanco: #fff;
    --amarillo: #f1c40f;
    --bg: #dddddd;
    --azulito: #e3effd;
    --verdecito: #d1e7dd;
    --naranjita: #fdf2d0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

a {
text-decoration: none;
}

body {
    background-color: var(--bg);
}

/* ==========================================================================
   2. HEADER Y NAVEGACIÓN
   ========================================================================== */
.top-bar {
    background-color: #c00000;
    color: var(--blanco);
    text-align: center;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: bold;
}

.navbar {
    background-color: var(--negro);
    padding: 15px 0;
    color: var(--blanco);
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo img {
    height: 60px;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--blanco);
    font-size: 13px;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--amarillo);
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-number {
    color: var(--amarillo);
    font-weight: bold;
    font-size: 16px;
}

.whatsapp-btn {
    background-color: #25d366;
    color: var(--blanco);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
}

/* ==========================================================================
   3. BUSCADOR Y SECCIÓN PRINCIPAL
   ========================================================================== */
.search-container {
    max-width: 1000px;
    width: 100%;
    text-align: center;
    margin: 40px auto;
    padding: 0 20px;
}

.header-text h1 {
    font-size: 2.2rem;
    color: var(--negro);
    margin-bottom: 5px;
}

.header-text h1 span {
    color: #c8161e;
}

.header-text p {
    font-size: 1.2rem;
    color: #555;
    font-weight: 500;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    background: var(--blanco);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.input-container {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 15px 20px;
}

.icon-search {
    margin-right: 10px;
    color: #888;
}

.input-container input {
    border: none;
    width: 100%;
    outline: none;
    font-size: 1rem;
    color: #666;
}

.btn-search {
    background-color: #c8161e;
    color: var(--blanco);
    border: none;
    padding: 0 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-search:hover {
    background-color: #a01218;
}




        /* Contenedor principal para asegurar el centrado */
        .load-more-container { 
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 40px 0; 
            width: 100%;
        }

        #btn-ver-mas:hover {
            background-color: #c4191f;
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(227, 30, 36, 0.4);
        }

        #btn-ver-mas:active {
            transform: translateY(-1px);
        }

/* ==========================================================================
   4. TARJETAS DE OFERTAS Y COMPONENTES
   ========================================================================== */
.grid-offers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.card {
    background: var(--blanco);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.card img {
    width: 70px;
    height: auto;
    margin-right: 15px;
}

.card-info {
    text-align: left;
}

.card-info h3 {
    color: #0046a0;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.card-info .label {
    font-size: 0.8rem;
    color: #333;
    font-weight: bold;
}

.card-info .price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--negro);
}

.btn-offer {
    display: inline-block;
    background-color: #c8161e;
    color: var(--blanco);
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-top: 5px;
}

.badge-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.badge {
    background-color: var(--azulito);
    color: #333;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    align-items: center;
    border: 1px solid #d0e0f5;
}

.check {
    background-color: #2ecc71;
    color: var(--blanco);
    width: 18px;
    height: 18px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    margin-right: 10px;
}

/* ==========================================================================
   5. RESEÑAS Y BLOG
   ========================================================================== */
.reviews-container {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.reviews-header {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.review-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    display: flex;
    padding: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.review-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-image {
    flex: 0 0 160px;
	background-color: #f0f0f0; 
    border-radius: 8px;
}

.card-image img {
	width: 170px;
	height: 170px;
	object-fit: cover;
    border-radius: 8px;
    display: block;
	transition: opacity 0.3s ease-in-out;
}

.card-content {
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content h2 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: var(--negro);
    line-height: 1.2;
}

.meta {
    font-size: 12px;
    color: #888;
    margin: 2px 0;
}

.description {
    font-size: 13px;
    color: #555;
    margin: 5px 0;
}

.read-more {
    font-size: 13px;
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
}

.footer-button {
    text-align: center;
    margin-top: 25px;
}

.btn-more {
    background-color: var(verdecito);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
}

/* ==========================================================================
   6. RESULTADOS DE PRODUCTOS
   ========================================================================== */
.results-section {padding: 20px 10px; display: flex; justify-content: center; }
.results-container { max-width: 1000px; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.product-row { background-color: var(--blanco); border-radius: 8px; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 5px rgba(0,0,0,0.1); margin: 10px 0;}
.product-main { display: flex; align-items: center; gap: 15px; flex: 1; }


.product-img { height: 70px; width: auto; object-fit: contain; }




.product-title-link { text-decoration: none; color: inherit; cursor: pointer; }
.product-title-link:hover .product-title { text-decoration: underline; }
.product-title { font-size: 16px; color: #1a3a8a; font-weight: bold; text-transform: uppercase; margin: 0; }
.product-action { display: flex; align-items: center; gap: 25px; }
.product-price { font-size: 20px; font-weight: 800; color: var(--negro); var(--blanco)-space: nowrap; }
.btn-buy { background-color: #a01a21; color: var(--blanco); text-decoration: none; padding: 8px 20px; border-radius: 5px; font-weight: bold; font-size: 14px; }

/* ==========================================================================
   7. MODALES
   ========================================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.show { display: flex; opacity: 1; }

.modal-content {
    background-color: var(--blanco);
    width: 95%;
    max-width: 550px;
    border-radius: 20px;
    padding: 25px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}
.modal-overlay.show .modal-content { transform: translateY(0); }

.close-modal { position: absolute; top: 15px; right: 20px; font-size: 30px; cursor: pointer; color: #888; z-index: 10; }

.modal-body-vertical { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.modal-image-full { width: 100%; display: flex; justify-content: center; }
.modal-img-large { width: 100%; max-width: 430px; height: 430px; object-fit: contain; }

.modal-info-bottom { width: 100%; text-align: left; }
.modal-title-display { font-size: 1.3rem; color: #1a3a8a; font-weight: 800; margin-bottom: 15px; text-align: center; }
.modal-footer-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eee; padding-top: 15px; }
.modal-price-display { font-size: 2rem; font-weight: 900; color: var(--negro); }
.btn-buy-modal { background-color: #a01a21; color: var(--blanco); text-decoration: none; padding: 12px 35px; border-radius: 8px; font-weight: bold; font-size: 1.1rem; }




    /* Forzamos que la sección de resultados sea un bloque vertical */
    .results-section {
        display: block !important; /* Evita que flexbox del style.css lo ponga de lado */
        width: 100%;
        background-color: #eee;
        padding-bottom: 50px;
    }

    /* Contenedor de productos */
    #productos-lista {
        display: block;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Contenedor del botón Ver Más - Forzado a estar debajo */
    .load-more-container { 
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 30px;
        clear: both; /* Rompe cualquier flotado anterior */
    }

    /* Estilo del botón */
    #btn-ver-mas { 
        background-color: #a01a21; 
        color: #ffffff;
        padding: 15px 45px;
        border: none;
        border-radius: 10px; 
        font-size: 16px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        cursor: pointer;
        display: none; /* Controlado por JS */
        transition: all 0.3s ease;

    }

    #btn-ver-mas:hover {
        background-color: #c4191f;
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(227, 30, 36, 0.5);
    }
	
	
/* ==========================================================================
   8. ATAJOS Y FOOTER
   ========================================================================== */
.shortcuts-container {
    padding: 30px 20px;
    text-align: center;
    background-color: var(--bg);
}

.shortcuts-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 20px auto;
    max-width: 1000px;
    list-style: none; /* Eliminamos los puntos de la lista aquí */
    padding: 0;
}

.shortcuts-grid li {
    display: inline-block; /* Cada ítem se comporta como un bloque en línea */
}

.shortcut-btn {
    background: var(--blanco);
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    color: black;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: inline-block; /* Mantiene la forma del botón */
}

.atajos-label {
    background-color: var(--naranjita);
    display: inline-block;
    padding: 5px 30px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 18px;
}

.footer-red {
    background-color: var(--rojo);
    color: var(--blanco);
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    border-top: 5px solid black;
}

.footer-col {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    text-align: center;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
    margin-bottom: 10px;
}

.footer-col h3 {
    text-decoration: underline;
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-col a {
	color:var(--blanco);
}


.footer-col p {
    font-size: 14px;
    line-height: 1.5;
}

/* ==========================================================================
   9. SINGLE POST STYLES
   ========================================================================== */
.single-post-wrapper {
    max-width: 850px;
    margin: 40px auto;
    padding: 0 20px;
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.single-title {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 15px;
}

.post-meta-single {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.featured-image-single {
    position: relative;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.featured-image-single img {
    width: 100%;
    height: auto;
    display: block;
}

.post-body {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.post-body h2, .post-body h3 {
    margin: 30px 0 15px;
    color: #1a1a1a;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body blockquote {
    border-left: 5px solid var(--amarillo);
    padding: 20px;
    background: #fcfcfc;
    font-style: italic;
    font-size: 20px;
    margin: 30px 0;
}

.post-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-body ul li {
    list-style: disc;
    margin-bottom: 10px;
}

.post-cta {
    margin-top: 50px;
    padding: 40px;
    background-color: #f8f8f8;
    border-radius: 10px;
    text-align: center;
    border: 2px dashed #ddd;
}

.cta-button-red {
    display: inline-block;
    background-color: #b30000;
    color: var(--blanco);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    text-transform: uppercase;
}

.cta-button-red:hover {
    background-color: #d40000;
}

/* --- Bloque Invitación a la Tienda --- */
.store-cta-box {
    margin: 60px 0 40px;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    color: var(--blanco);
    position: relative;
    overflow: hidden;
    border-left: 8px solid var(--amarillo);
}

.store-cta-content {
    flex: 2;
    z-index: 2;
}

.cta-subtitle {
    color: var(--amarillo);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
    font-size: 14px;
}

.store-cta-content h2 {
    font-size: 28px;
    margin: 10px 0 15px;
    line-height: 1.2;
    color: #fff !important;
}

.store-cta-content p {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 25px;
}

.cta-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary-yellow {
    background-color: var(--amarillo);
    color: #1a1a1a;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 900;
    text-transform: uppercase;
    transition: transform 0.2s, background 0.3s;
}

.btn-primary-yellow:hover {
    background-color: #d4ac0d;
    transform: translateY(-3px);
    color: var(--negro);
}
.btn-secondary-outline {
    border: 2px solid #fff;
    color: #fff;
    padding: 13px 25px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s;
}
.btn-secondary-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--amarillo);
    color: var(--amarillo);
}
.store-cta-image {
    flex: 1;
    display: flex;
    justify-content: center;
    opacity: 0.2;
    position: absolute;
    right: -20px;
    z-index: 1;
}
.floating-icon {
    width: 200px;
    transform: rotate(-15deg);
}
.content-render img {
    max-width: 100%; /* Esto evita que la imagen se salga del celular si es muy grande */
    height: auto;    /* Mantiene la proporción */
}
/* Alineaciones de imágenes del editor */
.content-render img.ql-align-center {
    display: block;
    margin: 20px auto;
    max-width: 100%;
}
.content-render img.ql-align-right {
    float: right;
    margin: 0 0 20px 20px;
}
.content-render img.ql-align-left {
    float: left;
    margin: 0 20px 20px 0;
}
.content-render blockquote {
    border-left: 5px solid #d32f2f;
    padding-left: 20px;
    font-style: italic;
    color: #555;
    margin: 30px 0;
}
/* ==========================================================================
   10. ARCHIVO DE POSTS (BLOG)
   ========================================================================== */
.content-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}
.main-title {
    font-size: 32px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 40px;
}
.post-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    display: flex;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.post-image-container {
    flex: 0 0 250px;
    position: relative;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-details {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-details h2 a {
  color: var(--negro); /* Cambia esto al color que quieras */
  text-decoration: none;
}



.post-details h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.3;
}

.post-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.post-excerpt {
    font-size: 15px;
    color: #555;
    margin-bottom: auto;
}

.read-more {
    font-size: 15px;
    font-weight: bold;
    color: #0056b3;
    margin-top: 15px;
}

.read-more:hover {
    color: #007bff;
}

.ver-mas-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

.ver-mas-btn {
    background-color: #fcf3cf;
    color: #333;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ver-mas-btn:hover {
    background-color: #fbeebf;
}

.search-section {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    background-color: #fff;
    border: 1px solid #ddd;
}

.search-section input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 15px;
    outline: none;
}

.search-section button {
    background-color: #b30000;
    color: var(--blanco);
    border: none;
    padding: 0 35px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.search-section button:hover {
    background-color: #cc0000;
}

/* ==========================================================================
   11. MEDIA QUERIES (RESPONSIVIDAD)
   ========================================================================== */

/* --- Tablet y Desktop pequeño --- */
@media (max-width: 992px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .post-card {
        flex-direction: column;
    }
    .post-image-container {
        flex: 0 0 auto;
        height: 200px;
    }
    .store-cta-box {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    .cta-actions {
        justify-content: center;
    }
    .store-cta-image {
        position: relative;
        right: 0;
        margin-top: 20px;
        opacity: 0.1;
    }
}

/* --- Móviles generales --- */
@media (max-width: 600px) {
    .search-box {
        flex-direction: column;
    }
    .btn-search {
        padding: 15px;
    }
    .header-text h1 {
        font-size: 1.8rem;
    }
    .single-post-wrapper {
        padding: 20px;
    }
    .single-title {
        font-size: 26px;
    }
}

/* --- Optimización Móvil Específica (hasta 480px) --- */
@media (max-width: 480px) {
    /* Resultados Compactos */
    .results-container { padding: 0 10px; }
    .product-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px;
        margin: 5px 0;
        gap: 10px;
    }
    .product-main { flex: 1; display: flex; align-items: center; gap: 10px; }
    .product-img { height: 60px; width: 60px; object-fit: contain; flex-shrink: 0; }
    .product-title {
        font-size: 12px;
        line-height: 1.2;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .product-action {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
        min-width: 85px;
    }
    .product-price { font-size: 14px; font-weight: 800; }
    .btn-buy { padding: 5px 10px; font-size: 11px; width: 100%; text-align: center; }

    /* Ofertas en Fila */
    .grid-offers { display: flex; flex-direction: column; gap: 12px; padding: 0 5px; }
    .card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        background: #fff;
        border-radius: 12px;
        border: 1px solid #eaeaea;
    }
    .card img { width: 65px; height: 65px; margin-right: 15px; object-fit: contain; }
    .card-info { flex: 1; display: flex; justify-content: space-between; align-items: center; }
    .card-info h3 { font-size: 15px; margin-bottom: 2px; color: #0056b3; }
    .card-info .label { font-size: 11px; color: #666; }
    .card-info .price-container { text-align: right; }
    .card-info .price { font-size: 16px; font-weight: 800; color: var(--negro); margin-bottom: 4px; display: block; }
    .btn-offer { padding: 6px 14px; font-size: 10px; border-radius: 4px; text-transform: uppercase; margin-top: 0; }

    /* Atajos y Reseñas */
    .shortcuts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .shortcut-btn { font-size: 11px; padding: 10px 5px; text-align: center; }
    .review-card { padding: 10px; gap: 10px; }
    .card-image { flex: 0 0 100px; }
    .card-content h2 { font-size: 14px; }
    
    /* Modales */
    .modal-img-large { height: 250px; }
    .modal-price-display { font-size: 1.5rem; }
}



/*clear search*/
/* Asegura que el contenedor sirva de base para el posicionamiento */
.input-container {
	background: white;
    position: relative;
    display: flex;
    align-items: center;
}

/* Estilos para el botón de limpiar */
.btn-clear {
    position: absolute;
    right: 15px; /* Lo separa del borde derecho */
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
    transition: color 0.2s ease;
}

.btn-clear:hover {
    color: #333; /* Oscurece al pasar el mouse */
}

/* Opcional: Dale un poco de espacio al input a la derecha 
   para que el texto largo no se encime con la equis */
.input-container input {
    padding-right: 40px;
}
.search-counter {
    position: absolute;
    right: 45px; /* Se ubica a la izquierda de la X (que tiene right: 15px) */
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: #888; /* Un gris suave para que no compita con el texto principal */
    font-weight: 500;
    pointer-events: none; /* Evita que interfiera si el usuario hace clic ahí */
}

/* Ajustamos el padding del input para que el texto largo no tape el contador */
.input-container input {
    padding-right: 90px; 
}