
/* ======================================
   CAFEATOR - ESTILOS GENERALES
====================================== */

body {
    margin: 0;
    background-color: #F7F2E9;
    font-family: Arial, sans-serif;
    color: #4B3025;
    line-height: 1.5;
}

html {
    scroll-behavior: smooth;
}

h1 {
    color: #4B3025;
    font-size: 42px;
}

p {
    color: #806C5B;
    font-size: 18px;
}


/* ======================================
   ENCABEZADO
====================================== */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid #E3D8CB;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #4B3025;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

nav a:hover {
    color: #9B7656;
}

nav a:focus-visible {
    outline: 2px solid #9B7656;
    outline-offset: 4px;
}


/* ======================================
   CONTENIDO PRINCIPAL
====================================== */

main {
    max-width: 1100px;
    margin: 0 auto;
}

section {
    text-align: center;
    padding: 80px 20px;
}


/* ======================================
   BOTÓN PRINCIPAL
====================================== */

.boton-principal {
    display: inline-block;
    background-color: #4B3025;
    color: #FFFFFF;
    font-size: 16px;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    text-decoration: none;
}

.boton-principal:hover {
    background-color: #70503F;
}

.boton-principal:focus-visible {
    outline: 3px solid #9B7656;
    outline-offset: 3px;
}


/* ======================================
   CATÁLOGO DE CAFÉS
====================================== */

.cafes-destacados {
    padding: 40px 20px 80px;
}

.cafes-destacados h2 {
    font-size: 30px;
    color: #4B3025;
    margin-bottom: 30px;
}


/* ======================================
   BUSCADOR
====================================== */

.busqueda-cafe {
    max-width: 500px;
    margin: 0 auto 30px;
    text-align: left;
}

.busqueda-cafe label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #4B3025;
    margin-bottom: 10px;
}

.busqueda-cafe input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #D9CCBB;
    border-radius: 8px;
    background-color: #FFFFFF;
    color: #4B3025;
    font-family: Arial, sans-serif;
    font-size: 16px;
    box-sizing: border-box;
}

.busqueda-cafe input::placeholder {
    color: #9B8B7E;
}

.busqueda-cafe input:focus {
    outline: 2px solid #9B7656;
    outline-offset: 2px;
}


/* ======================================
   FILTROS DEL CATÁLOGO
====================================== */

.filtros {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.grupo-filtro {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.filtros label {
    font-size: 16px;
    color: #4B3025;
    font-weight: bold;
}

.filtros select {
    width: 210px;
    max-width: 100%;
    padding: 12px 15px;
    border: 1px solid #D9CCBB;
    border-radius: 8px;
    background-color: #FFFFFF;
    color: #4B3025;
    font-size: 15px;
    cursor: pointer;
    box-sizing: border-box;
}

.filtros select:focus-visible {
    outline: 2px solid #9B7656;
    outline-offset: 2px;
}


/* ======================================
   BOTÓN LIMPIAR FILTROS
====================================== */

.boton-limpiar {
    display: inline-block;
    background-color: transparent;
    color: #4B3025;
    border: 1px solid #4B3025;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.boton-limpiar:hover {
    background-color: #4B3025;
    color: #FFFFFF;
}

.boton-limpiar:focus-visible {
    outline: 3px solid #9B7656;
    outline-offset: 3px;
}


/* ======================================
   FILTROS ACTIVOS
====================================== */

.filtros-activos {
    max-width: 940px;
    margin: 22px auto 0;
    padding: 16px 18px;
    background-color: #F0E7DC;
    border: 1px solid #E1D4C4;
    border-radius: 10px;
    text-align: left;
}

.filtros-activos[hidden] {
    display: none;
}

.filtros-activos .titulo-filtros-activos {
    color: #4B3025;
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 12px;
}

.lista-filtros-activos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filtro-activo {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background-color: #FFFFFF;
    color: #4B3025;
    border: 1px solid #D9CCBB;
    border-radius: 7px;
    padding: 8px 11px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
    cursor: pointer;
    text-align: left;
    overflow-wrap: anywhere;
}

.filtro-activo:hover {
    background-color: #E7D7C5;
    border-color: #9B7656;
}

.filtro-activo:focus-visible {
    outline: 2px solid #4B3025;
    outline-offset: 3px;
}

.texto-filtro {
    color: #4B3025;
}

.quitar-filtro {
    color: #806C5B;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}


/* ======================================
   CONTADOR DE RESULTADOS
====================================== */

.contador-resultados {
    font-size: 15px;
    color: #806C5B;
    text-align: center;
    margin: 20px 0 25px;
    font-weight: bold;
}


/* ======================================
   ORDENACIÓN
====================================== */

.ordenacion {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.ordenacion label {
    font-size: 15px;
    font-weight: bold;
    color: #4B3025;
}

.ordenacion select {
    padding: 12px 15px;
    min-width: 250px;
    max-width: 100%;
    border: 1px solid #D9CCBB;
    border-radius: 8px;
    background-color: #FFFFFF;
    color: #4B3025;
    font-size: 15px;
    cursor: pointer;
    box-sizing: border-box;
}

.ordenacion select:focus-visible {
    outline: 2px solid #9B7656;
    outline-offset: 2px;
}


/* ======================================
   BOTÓN PARA CAMBIAR DE VISTA
====================================== */

.boton-vista {
    display: inline-block;
    background-color: #EDE3D7;
    color: #4B3025;
    border: 1px solid #CDBBA8;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    cursor: pointer;
    box-sizing: border-box;
    min-height: 44px;
}

.boton-vista:hover {
    background-color: #E2D2C0;
}

.boton-vista:focus-visible {
    outline: 3px solid #9B7656;
    outline-offset: 3px;
}

.boton-vista.activo {
    background-color: #4B3025;
    color: #FFFFFF;
    border-color: #4B3025;
}

.boton-vista.activo:hover {
    background-color: #70503F;
}


/* ======================================
   CUADRÍCULA DE CAFÉS
====================================== */

.cuadricula-cafes {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );
    gap: 25px;
    align-items: stretch;
}


/* ======================================
   TARJETAS DE CAFÉ
====================================== */

.tarjeta-cafe {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: #FFFFFF;
    padding: 22px;
    border: 1px solid #E8DED2;
    border-radius: 14px;
    text-align: left;
    box-shadow: 0 4px 14px rgba(75, 48, 37, 0.08);
    box-sizing: border-box;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.tarjeta-cafe:hover {
    transform: translateY(-3px);
    border-color: #D9CCBB;
    box-shadow: 0 9px 22px rgba(75, 48, 37, 0.12);
}

.tarjeta-cafe:focus-within {
    border-color: #9B7656;
}


/* ======================================
   IMÁGENES
====================================== */

.imagen-cafe {
    background-color: #EDE3D7;
    height: 190px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.imagen-cafe img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ======================================
   ORIGEN Y NOMBRE
====================================== */

.tarjeta-cafe .origen-cafe {
    display: inline-block;
    align-self: flex-start;
    background-color: #EFE3D4;
    color: #70503F;
    border-radius: 5px;
    padding: 5px 10px;
    margin: 18px 0 10px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.8px;
    line-height: 1.4;
}

.tarjeta-cafe h3 {
    font-size: 23px;
    line-height: 1.3;
    color: #4B3025;
    margin: 0 0 10px;
}

.tarjeta-cafe p {
    font-size: 15px;
}


/* ======================================
   TOSTADOR
====================================== */

.tarjeta-cafe .tostador-cafe {
    color: #806C5B;
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 15px;
    border-bottom: 1px solid #EEE6DD;
}

.tostador-cafe strong {
    color: #4B3025;
    font-weight: bold;
}


/* ======================================
   PROCESO
====================================== */

.tarjeta-cafe .proceso-cafe {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    align-self: flex-start;
    gap: 6px;
    background-color: #F3EBE1;
    border: 1px solid #E1D4C4;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 0;
    margin-bottom: 16px;
    color: #806C5B;
    font-size: 13px;
}

.proceso-cafe strong {
    color: #4B3025;
    font-weight: bold;
}


/* ======================================
   NOTAS DE CATA
====================================== */

.notas-cata {
    margin-bottom: 18px;
}

.tarjeta-cafe .etiqueta-notas {
    color: #806C5B;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0;
    margin-bottom: 10px;
}

.lista-notas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nota-cata {
    display: inline-block;
    background-color: #F7F2E9;
    color: #70503F;
    border: 1px solid #E1D4C4;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 12px;
    line-height: 1.4;
}


/* ======================================
   FORMATOS DISPONIBLES
====================================== */

.formato-cafe {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding-top: 17px;
    margin-top: 2px;
    margin-bottom: 16px;
    border-top: 1px solid #EEE6DD;
}

.formato-cafe label {
    color: #4B3025;
    font-size: 13px;
    font-weight: bold;
}

.selector-formato {
    width: 100%;
    background-color: #FFFFFF;
    color: #4B3025;
    border: 1px solid #D9CCBB;
    border-radius: 8px;
    padding: 12px 13px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    box-sizing: border-box;
}

.selector-formato:hover {
    border-color: #9B7656;
}

.selector-formato:focus-visible {
    outline: 2px solid #9B7656;
    outline-offset: 2px;
}


/* ======================================
   DISTINTIVO DEL MEJOR FORMATO
====================================== */

.tarjeta-cafe .distintivo-mejor-formato {
    display: block;
    align-self: stretch;
    max-width: 100%;
    box-sizing: border-box;
    background-color: #F1E9DC;
    border: 1px solid #D9CCBB;
    border-radius: 7px;
    padding: 10px 12px;
    margin: 0;
    color: #4B3025;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.tarjeta-cafe .distintivo-mejor-formato.seleccionado {
    background-color: #E4D5C1;
    border-color: #9B7656;
}


/* ======================================
   COMPARACIÓN DE FORMATOS
====================================== */

.comparacion-formatos {
    background-color: #F4EFE7;
    border: 1px solid #D9CCBB;
    border-radius: 9px;
    padding: 14px;
    margin-top: 2px;
    margin-bottom: 17px;
}

.tarjeta-cafe .titulo-comparacion {
    color: #4B3025;
    font-size: 12px;
    font-weight: bold;
    margin: 0 0 9px;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.tarjeta-cafe .detalle-comparacion {
    color: #806C5B;
    font-size: 12px;
    line-height: 1.6;
    margin: 0 0 9px;
}

.tarjeta-cafe .mensaje-ahorro {
    color: #4B3025;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.6;
    margin: 0;
}


/* ======================================
   PRECIOS
====================================== */

.tarjeta-cafe .precio-cafe {
    font-size: 23px;
    font-weight: bold;
    color: #4B3025;
    line-height: 1.35;
    margin-top: auto;
    margin-bottom: 12px;
    padding-top: 17px;
    border-top: 1px solid #E8DED2;
}

.tarjeta-cafe .precio-equivalente {
    color: #806C5B;
    font-size: 13px;
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.5;
}

.precio-equivalente[hidden] {
    display: none;
}


/* ======================================
   BOTÓN COMPARAR
====================================== */

.boton-comparar {
    display: block;
    width: 100%;
    background-color: #F7F2E9;
    color: #4B3025;
    border: 1px solid #CDBBA8;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    box-sizing: border-box;
}

.boton-comparar:hover:not(:disabled) {
    background-color: #EDE3D7;
}

.boton-comparar.seleccionado {
    background-color: #E4D5C1;
    border-color: #9B7656;
}

.boton-comparar:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.boton-comparar:focus-visible {
    outline: 3px solid #9B7656;
    outline-offset: 3px;
}


/* ======================================
   ENLACE A LA TIENDA
====================================== */

.boton-tienda {
    display: block;
    background-color: #4B3025;
    color: #FFFFFF;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    line-height: 1.5;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.boton-tienda:hover {
    background-color: #70503F;
}

.boton-tienda:active {
    transform: scale(0.99);
}

.boton-tienda:focus-visible {
    outline: 3px solid #9B7656;
    outline-offset: 3px;
}

.etiqueta-demo {
    font-weight: normal;
    opacity: 0.85;
}


/* ======================================
   VISTA COMPACTA DEL CATÁLOGO
====================================== */

.cuadricula-cafes.vista-compacta {
    grid-template-columns: repeat(
        auto-fit,
        minmax(190px, 1fr)
    );
    gap: 18px;
}

.cuadricula-cafes.vista-compacta .tarjeta-cafe {
    padding: 16px;
    border-radius: 11px;
}

.cuadricula-cafes.vista-compacta .imagen-cafe {
    height: 135px;
}

.cuadricula-cafes.vista-compacta .origen-cafe {
    margin: 12px 0 8px;
    padding: 4px 8px;
    font-size: 10px;
}

.cuadricula-cafes.vista-compacta .tarjeta-cafe h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.cuadricula-cafes.vista-compacta .tostador-cafe {
    font-size: 12px;
    margin-bottom: 10px;
    padding-bottom: 0;
    border-bottom: none;
}

.cuadricula-cafes.vista-compacta .proceso-cafe,
.cuadricula-cafes.vista-compacta .notas-cata,
.cuadricula-cafes.vista-compacta .distintivo-mejor-formato,
.cuadricula-cafes.vista-compacta .comparacion-formatos {
    display: none;
}

.cuadricula-cafes.vista-compacta .formato-cafe {
    padding-top: 12px;
    margin-top: 3px;
    margin-bottom: 10px;
    gap: 7px;
}

.cuadricula-cafes.vista-compacta .selector-formato {
    padding: 9px 10px;
    font-size: 13px;
}

.cuadricula-cafes.vista-compacta .precio-cafe {
    font-size: 19px;
    padding-top: 12px;
    margin-bottom: 9px;
}

.cuadricula-cafes.vista-compacta .precio-equivalente {
    font-size: 12px;
    margin-bottom: 12px;
}

.cuadricula-cafes.vista-compacta .boton-comparar {
    padding: 10px;
    font-size: 12px;
}

.cuadricula-cafes.vista-compacta .boton-tienda {
    padding: 11px 9px;
    font-size: 12px;
}


/* ======================================
   PANEL COMPARADOR
====================================== */

.panel-comparacion {
    background-color: #EEE3D6;
    border: 1px solid #D9CCBB;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 28px;
    text-align: left;
    scroll-margin-top: 20px;
}

.panel-comparacion[hidden] {
    display: none;
}

.encabezado-comparacion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.encabezado-comparacion h3 {
    color: #4B3025;
    font-size: 22px;
    margin: 0;
}


/* ======================================
   NUEVO: ACCIONES DEL COMPARADOR
====================================== */

.acciones-comparacion {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* BOTÓN PARA MOSTRAR SOLO DIFERENCIAS */

.boton-diferencias {
    background-color: #FFFFFF;
    border: 1px solid #9B7656;
    color: #4B3025;
    border-radius: 7px;
    padding: 9px 12px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.boton-diferencias:hover:not(:disabled) {
    background-color: #F7F2E9;
}

/* CUANDO ESTÁ ACTIVADO */

.boton-diferencias.activo {
    background-color: #4B3025;
    color: #FFFFFF;
    border-color: #4B3025;
}

.boton-diferencias.activo:hover {
    background-color: #70503F;
}

.boton-diferencias:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* BOTÓN PARA VACIAR LA COMPARACIÓN */

.vaciar-comparacion {
    background-color: transparent;
    border: 1px solid #806C5B;
    color: #4B3025;
    border-radius: 7px;
    padding: 9px 12px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.vaciar-comparacion:hover {
    background-color: #E0D0BE;
}

.boton-diferencias:focus-visible,
.vaciar-comparacion:focus-visible,
.quitar-comparacion:focus-visible {
    outline: 3px solid #9B7656;
    outline-offset: 3px;
}


/* ======================================
   ESTADO Y AYUDA DEL COMPARADOR
====================================== */

.panel-comparacion .estado-comparacion {
    font-size: 14px;
    color: #806C5B;
    margin: 12px 0 10px;
}

.panel-comparacion .ayuda-comparacion {
    font-size: 13px;
    color: #70503F;
    margin: 0 0 16px;
    line-height: 1.5;
}

.ayuda-comparacion[hidden] {
    display: none;
}


/* ======================================
   LEYENDA DE DIFERENCIAS
====================================== */

.leyenda-comparacion {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.leyenda-comparacion[hidden] {
    display: none;
}

.leyenda-comparacion span {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
}

.leyenda-diferencia {
    background-color: #F8F1E8;
    border: 1px solid #CDBBA8;
    color: #70503F;
}

.leyenda-compartida {
    background-color: #E7E4D9;
    border: 1px solid #C8C5B7;
    color: #4B3025;
}

.leyenda-exclusiva {
    background-color: #F7E9DA;
    border: 1px solid #E1CDB7;
    color: #70503F;
}


/* ======================================
   COLUMNAS DEL COMPARADOR
====================================== */

.contenedor-comparacion {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.ficha-comparacion {
    background-color: #FFFFFF;
    border: 1px solid #E1D4C4;
    border-radius: 10px;
    padding: 17px;
    min-width: 0;
}

.ficha-comparacion h4 {
    color: #4B3025;
    font-size: 19px;
    line-height: 1.3;
    margin: 0 0 15px;
}


/* ======================================
   DATOS DE LA COMPARACIÓN
====================================== */

.dato-comparacion {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-left: 3px solid transparent;
    border-bottom: 1px solid #F0E9E1;
    border-radius: 5px;
    box-sizing: border-box;
}

.dato-comparacion strong {
    color: #806C5B;
    font-size: 12px;
}

.dato-comparacion span {
    color: #4B3025;
    font-size: 14px;
    overflow-wrap: anywhere;
}


/* ======================================
   CAMPOS DIFERENTES
====================================== */

.dato-comparacion.dato-diferente {
    background-color: #F8F1E8;
    border-left-color: #9B7656;
}

.dato-comparacion.dato-diferente span {
    font-weight: bold;
}


/* ======================================
   NOTAS COMPARTIDAS Y EXCLUSIVAS
====================================== */

.lista-notas-comparacion {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}

.lista-notas-comparacion .nota-comparacion {
    display: inline-block;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.4;
}

.lista-notas-comparacion .nota-compartida {
    background-color: #E7E4D9;
    border: 1px solid #C8C5B7;
    color: #4B3025;
}

.lista-notas-comparacion .nota-exclusiva {
    background-color: #F7E9DA;
    border: 1px solid #E1CDB7;
    color: #70503F;
}

.lista-notas-comparacion .nota-sin-comparar {
    background-color: #F7F2E9;
    border: 1px solid #E1D4C4;
    color: #70503F;
}


/* ======================================
   PRECIO MÁS ECONÓMICO
====================================== */

.dato-comparacion.precio-favorable {
    background-color: #E9DFD1;
    border-left-color: #70503F;
}

.dato-comparacion.precio-favorable span {
    font-size: 18px;
    font-weight: bold;
}

.indicador-precio {
    color: #70503F;
    font-size: 12px;
    font-weight: bold;
    margin-top: 3px;
}


/* ======================================
   NUEVO: MODO SOLO DIFERENCIAS
====================================== */

/* OCULTAMOS LAS FILAS IDENTIFICADAS
   COMO IGUALES ENTRE LOS DOS CAFÉS */

.panel-comparacion.solo-diferencias
.dato-comparacion.dato-igual {
    display: none;
}

/* OCULTAMOS LAS NOTAS COMPARTIDAS
   Y CONSERVAMOS LAS EXCLUSIVAS */

.panel-comparacion.solo-diferencias
.lista-notas-comparacion .nota-compartida {
    display: none;
}

/* MENSAJE PARA UN CAFÉ QUE NO TIENE
   NOTAS EXCLUSIVAS FRENTE AL OTRO */

.nota-sin-exclusivas {
    color: #806C5B;
    font-size: 12px;
    font-style: italic;
    line-height: 1.5;
}

/* EL MENSAJE ANTERIOR SOLO SE MUESTRA
   CUANDO ESTÁ ACTIVADO ESTE MODO */

.panel-comparacion:not(.solo-diferencias)
.nota-sin-exclusivas {
    display: none;
}


/* ======================================
   QUITAR CAFÉ DE LA COMPARACIÓN
====================================== */

.quitar-comparacion {
    display: block;
    width: 100%;
    background-color: #FFFFFF;
    color: #4B3025;
    border: 1px solid #CDBBA8;
    border-radius: 7px;
    padding: 10px;
    margin-top: 15px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.quitar-comparacion:hover {
    background-color: #F4EFE7;
}

.comparacion-pendiente {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    background-color: #F8F4EE;
    border: 2px dashed #CDBBA8;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    color: #806C5B;
    font-size: 14px;
    text-align: center;
}


/* ======================================
   CONCLUSIÓN ECONÓMICA
====================================== */

.panel-comparacion .conclusion-comparacion {
    background-color: #FFFFFF;
    border: 1px solid #D9CCBB;
    border-radius: 9px;
    padding: 14px;
    margin: 18px 0 0;
    color: #4B3025;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.6;
}

.conclusion-comparacion[hidden] {
    display: none;
}


/* ======================================
   MENSAJE SIN RESULTADOS
====================================== */

.sin-resultados {
    background-color: #FFFFFF;
    padding: 35px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.sin-resultados h3 {
    color: #4B3025;
    font-size: 22px;
    margin-bottom: 12px;
}

.sin-resultados p {
    color: #806C5B;
    font-size: 16px;
    line-height: 1.6;
}

.sin-resultados[hidden] {
    display: none;
}


/* ======================================
   AVISO DE ENLACES DEMO
====================================== */

.aviso-enlaces {
    max-width: 760px;
    margin: 45px auto 0;
    padding: 25px;
    background-color: #EDE3D7;
    border: 1px solid #D9CCBB;
    border-radius: 12px;
    text-align: center;
    scroll-margin-top: 25px;
}

.aviso-enlaces h3 {
    color: #4B3025;
    font-size: 20px;
    margin-top: 0;
}

.aviso-enlaces p {
    color: #806C5B;
    font-size: 15px;
    line-height: 1.7;
}

.aviso-enlaces:target {
    border-color: #4B3025;
    background-color: #E7D7C5;
}

.volver-catalogo {
    display: inline-block;
    margin-top: 10px;
    color: #4B3025;
    font-size: 14px;
    font-weight: bold;
    text-decoration: underline;
}

.volver-catalogo:hover {
    color: #70503F;
}


/* ======================================
   PIE DE PÁGINA
====================================== */

footer {
    background-color: #4B3025;
    color: #FFFFFF;
    padding: 50px 20px 20px;
    margin-top: 40px;
}

.footer-contenido {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.footer-marca h2 {
    color: #FFFFFF;
    font-size: 26px;
}

.footer-marca p {
    color: #E3D8CB;
    font-size: 15px;
    line-height: 1.6;
}

.footer-enlaces h3 {
    color: #FFFFFF;
    font-size: 18px;
}

.footer-enlaces a {
    display: block;
    color: #E3D8CB;
    text-decoration: none;
    font-size: 15px;
    margin-top: 12px;
}

.footer-enlaces a:hover {
    color: #FFFFFF;
}

.footer-inferior {
    max-width: 1100px;
    margin: 35px auto 0;
    padding-top: 20px;
    border-top: 1px solid #806C5B;
    text-align: center;
}

.footer-inferior p {
    color: #E3D8CB;
    font-size: 13px;
}


/* ======================================
   DISEÑO RESPONSIVE
====================================== */

@media (max-width: 600px) {

    header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    nav {
        justify-content: center;
        gap: 20px;
    }

    h1 {
        font-size: 30px;
    }

    section {
        padding: 50px 15px;
    }

    .cafes-destacados {
        padding: 30px 15px 60px;
    }

    .busqueda-cafe {
        width: 100%;
        max-width: 300px;
    }

    .filtros {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .grupo-filtro {
        width: 100%;
        max-width: 300px;
    }

    .grupo-filtro select {
        width: 100%;
    }

    .boton-limpiar {
        width: 100%;
        max-width: 300px;
        box-sizing: border-box;
    }

    .filtros-activos {
        padding: 15px;
    }

    .lista-filtros-activos {
        gap: 7px;
    }

    .ordenacion {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        max-width: 300px;
        margin: 0 auto 25px;
        text-align: left;
    }

    .ordenacion select,
    .boton-vista {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .tarjeta-cafe {
        padding: 18px;
    }

    .imagen-cafe {
        height: 185px;
    }

    .tarjeta-cafe h3 {
        font-size: 21px;
    }

    .tarjeta-cafe .precio-cafe {
        font-size: 21px;
    }

    .lista-notas {
        gap: 6px;
    }

    .tarjeta-cafe .distintivo-mejor-formato {
        padding: 9px 10px;
    }

    .comparacion-formatos {
        padding: 12px;
    }

    .cuadricula-cafes.vista-compacta {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .cuadricula-cafes.vista-compacta .imagen-cafe {
        height: 145px;
    }

    /* COMPARADOR EN UNA COLUMNA */

    .panel-comparacion {
        padding: 16px;
    }

    .encabezado-comparacion h3 {
        font-size: 19px;
    }

    .acciones-comparacion {
        width: 100%;
    }

    .boton-diferencias,
    .vaciar-comparacion {
        flex: 1;
    }

    .contenedor-comparacion {
        grid-template-columns: minmax(0, 1fr);
    }

    .ficha-comparacion {
        padding: 14px;
    }

    .leyenda-comparacion {
        gap: 6px;
    }

    .dato-comparacion {
        padding: 9px 10px;
    }

    .aviso-enlaces {
        padding: 20px 15px;
    }

    .footer-contenido {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    footer {
        padding: 35px 20px 20px;
    }

}


/* ======================================
   ACCESIBILIDAD: REDUCIR ANIMACIONES
====================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .tarjeta-cafe,
    .boton-tienda {
        transition: none;
    }

    .tarjeta-cafe:hover {
        transform: none;
    }

    .boton-tienda:active {
        transform: none;
    }

}
