/* ===== VARIABLES Y ESTILOS GLOBALES ===== */
:root {
    --top-color: #FF3385;    /* Rosa principal */
    --left-bg: #8DB2A5;      /* Verde claro */
    --main-bg: #FFFFFF;      /* Fondo blanco */
    --text: #000000;         /* Texto negro */
    --muted: #5a5f63;        /* Texto atenuado */
    --card-border: #e9e9e9;  /* Borde de tarjetas */
    --success: #4CAF50;      /* Verde éxito */
    --warning: #FF9800;      /* Naranja advertencia */
    --error: #f44336;        /* Rojo error */
    --info: #2196F3;         /* Azul info */
    --hotel: #36D1DC;        /* Azul hotel */
    --restaurant: #FF9A9E;   /* Rosa restaurante */
    --attraction: #A1FFCE;   /* Verde atracción */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* ===== FONDO PRINCIPAL CON IMAGEN ===== */
body {
    background-image: url('fondo.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
}

/* Capa semitransparente para mejorar legibilidad */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.82); /* Ajusta este valor (0.8 = 80% opacidad) */
    z-index: -1;
}

/* ===== CONTENEDORES CON FONDO SEMITRANSPARENTE ===== */
.container {
    background: rgba(255, 255, 255, 0.88); /* Más opaco para contenedor principal */
    border-radius: 20px;
    padding: 1.5rem;
    margin: 1rem auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Sidebar con transparencia elegante */
aside.sidebar {
    background: rgba(141, 178, 165, 0.92); /* Verde con transparencia */
    backdrop-filter: blur(10px); /* Efecto de desenfoque para elegancia */
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Contenido principal */
main {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Tarjetas con fondo semitransparente */
.card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
}

/* Hero banner con gradiente sobre la imagen */
.hero-banner {
    background: linear-gradient(
        to right,
        rgba(255, 51, 133, 0.85),
        rgba(141, 178, 165, 0.85)
    );
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Secciones de zona con transparencia */
.zone-dorada, .zone-diamante, .zone-centro {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 5px solid;
}

.zone-dorada {
    border-left-color: #FF9A9E; /* Rosa para Dorada */
    background: rgba(255, 154, 158, 0.1);
}

.zone-diamante {
    border-left-color: #36D1DC; /* Azul para Diamante */
    background: rgba(54, 209, 220, 0.1);
}

.zone-centro {
    border-left-color: #A1FFCE; /* Verde para Centro */
    background: rgba(161, 255, 206, 0.1);
}

/* Mapa e info sections */
.map-section, .info-section {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Tabla de estadísticas */
.stats-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Botones con transparencia */
.btn.ghost {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: white;
}

/* Mejorar contraste del texto */
.title, .subtitle, h1, h2, h3, h4, h5, h6 {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.card-title {
    color: #2c3e50; /* Azul oscuro para mejor contraste */
}

.card-sub, p {
    color: #34495e; /* Gris azulado oscuro */
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--main-bg);
    color: var(--text);
    font-family: inherit;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== BARRA SUPERIOR ===== */
header.topbar {
    background: var(--top-color);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-box {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    overflow: hidden;
}

.logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #FF3385, #FF0066);
}

.site-title {
    font-weight: 800;
    font-size: 1.3rem;
    color: white;
}

.site-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    display: block;
    font-weight: 500;
}

.top-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* ===== BOTONES ===== */
.btn {
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--top-color);
    color: white;
    text-decoration: none;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn.ghost {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn.success {
    background: var(--success);
}

.btn.info {
    background: var(--info);
}

/* ===== LAYOUT PRINCIPAL ===== */
.container {
    max-width: 1400px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
}

/* ===== BARRA LATERAL ===== */
aside.sidebar {
    background: var(--left-bg);
    color: var(--text);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--top-color), #FF0066);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.user-info h4 {
    margin: 0;
    font-size: 1rem;
}

.user-info p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.3);
    padding: 0.8rem;
    border-radius: 10px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--top-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    margin-top: 0.3rem;
    opacity: 0.8;
}

.searchbox {
    margin: 1.5rem 0;
}

.searchbox input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.searchbox input:focus {
    outline: none;
    border-color: var(--top-color);
    box-shadow: 0 0 0 3px rgba(255, 51, 133, 0.1);
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h4 {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.pill:hover {
    background: rgba(0, 0, 0, 0.05);
}

.pill.active {
    background: var(--top-color);
    color: white;
    border-color: var(--top-color);
}

/* ===== CONTENIDO PRINCIPAL ===== */
main {
    min-height: 100vh;
}

.hero-banner {
    background: linear-gradient(
        135deg,
        rgba(255, 51, 133, 0.9),
        rgba(141, 178, 165, 0.9)
    );
    color: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    margin-bottom: 2.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}


.hero-banner .title {
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-banner .subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
}


.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-header h2 {
    font-size: 1.5rem;
    font-weight: 900;
}

.results-count {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--muted);
}

.sort-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.sort-btn {
    padding: 0.6rem 1rem;
    border: 2px solid var(--card-border);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.sort-btn:hover {
    border-color: var(--top-color);
}

.sort-btn.active {
    background: var(--top-color);
    color: white;
    border-color: var(--top-color);
}

/* ===== GRID DE TARJETAS ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.map-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.map-container iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .map-container iframe {
    height: 300px;
  }
}

.card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-bar {
    height: 8px;
    width: 100%;
}

.bar-hotel {
    background: linear-gradient(90deg, var(--hotel), #5B86E5);
}

.bar-restaurant {
    background: linear-gradient(90deg, var(--restaurant), #FAD0C4);
}

.bar-attraction {
    background: linear-gradient(90deg, var(--attraction), #FAFFD1);
}

.card-body {
    padding: 1.5rem;
}

.card-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 900;
    margin: 0.5rem 0;
    color: var(--text);
}

.card-sub {
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.accessibility-indicators {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.access-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid white;
}

.access-icon.motora {
    background: rgba(255, 51, 133, 0.15);
    color: var(--top-color);
}

.access-icon.visual {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.access-icon.auditiva {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
}

.badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.badge {
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-foot {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.01);
}

.card-contact {
    font-weight: 600;
    color: var(--muted);
    font-size: 0.9rem;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

.favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.favorite-btn:hover {
    background: #FFEBEE;
}

.favorite-btn.active {
    background: #FF3385;
    color: white;
}

/* ===== MAPA ===== */
.map-section {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--card-border);
}

.map-section h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.map-placeholder {
    height: 300px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9f5ef 100%);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.map-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.map-marker.hotel {
    background: var(--hotel);
}

.map-marker.restaurant {
    background: var(--restaurant);
}

.map-marker.attraction {
    background: var(--attraction);
}

.map-legend {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

/* ===== SECCIONES DE INFORMACIÓN ===== */
.info-section {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--card-border);
}

.info-section h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-section p {
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.info-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.info-section li {
    margin-bottom: 0.5rem;
    color: var(--muted);
}

/* ===== PIE DE PÁGINA ===== */
footer.sitefoot {
    grid-column: 1 / -1;
    margin-top: 3rem;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--card-border);
    color: var(--muted);
}

footer.sitefoot p {
    margin-bottom: 0.5rem;
}

/* ===== MODALES ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.modal.open {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.dialog {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.modal-content {
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

/* ===== NOTIFICACIONES ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 10000;
    display: none;
    animation: slideInRight 0.3s ease;
}

.notification.show {
    display: block;
}

.notification.error {
    background: var(--error);
}

.notification.warning {
    background: var(--warning);
}

.notification.info {
    background: var(--info);
}

/* ===== ESTADOS ===== */
.hidden {
    display: none !important;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .container {
        grid-template-columns: 280px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    aside.sidebar {
        position: static;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 640px) {
    header.topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }

    .top-left {
        justify-content: center;
        text-align: center;
    }

    .top-actions {
        justify-content: center;
    }

    .results-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .card-foot {
        flex-direction: column;
        align-items: stretch;
    }

    .card-actions {
        width: 100%;
        justify-content: center;
    }

    .modal {
        padding: 0.5rem;
    }

    .dialog {
        padding: 1.5rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* Logo: que entre al contenedor sin "zoom" ni recorte */
.logo-box {
    width: 50px;         /* puedes cambiar a 48px o 44px si quieres más margen */
    height: 50px;
    border-radius: 10px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;          /* quitar padding evita que la imagen se reduzca visualmente */
}

/* Imagen dentro del logo */
.logo-box img {
    display: block;          /* elimina gaps de línea */
    width: 100%;
    height: 100%;
    object-fit: contain;     /* muestra toda la imagen manteniendo proporción, sin zoom ni recorte */
    object-position: center; /* centra la imagen dentro del cuadro */
    max-width: none;         /* evita reglas heredadas que escalen mal */
}

/* Fallback (texto IE) oculto cuando la imagen carga correctamente */
.logo-box .logo-fallback {
    display: none;
}
.logo-box img[onerror] + .logo-fallback { 
    /* si la imagen falla, mostramos el fallback; de lo contrario el JS en tu HTML ya oculta fallback */
}

/* ===== SPLASH SCREEN ===== */
#splash-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #FF3385, #FF7BB0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}

.splash-content {
    text-align: center;
    color: white;
    animation: fadeIn 1s ease;
}

.splash-logo {
    width: 180px;
    max-width: 80%;
    margin-bottom: 1.5rem;
}

.splash-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.splash-slogan {
    font-size: 1.3rem;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
    opacity: 0.95;
}

.hero-banner .btn {
    font-size: 1rem;
    padding: 0.8rem 1.4rem;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.hero-banner::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    top: -80px;
    right: -80px;
}


.card {
    border-radius: 18px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

.results-header h2 {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

/* ===== ESTILOS PARA FILTROS POR BOTONES ===== */
.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.filter-btn {
    padding: 0.6rem 0.4rem;
    border: 2px solid var(--card-border);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.filter-btn:hover {
    border-color: var(--top-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--top-color);
    color: white;
    border-color: var(--top-color);
}

/* Contador de filtros activos */
.filter-badge {
    background: var(--success);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    margin-left: 0.3rem;
}

/* Indicador visual de filtros aplicados */
.active-filters-indicator {
    background: rgba(255, 51, 133, 0.1);
    border: 1px solid var(--top-color);
    border-radius: 10px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    display: none;
}

.active-filters-indicator.show {
    display: block;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    background: var(--top-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin: 0.2rem;
    font-size: 0.85rem;
}

.active-filter-tag button {
    background: none;
    border: none;
    color: white;
    margin-left: 0.5rem;
    cursor: pointer;
    font-weight: bold;
}

/* Mejoras para responsive */
@media (max-width: 640px) {
    .button-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-btn {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }
}

/* ===== MINI TAGS EN TARJETAS ===== */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0.8rem 0;
}

.mini-tag {
    background: rgba(255, 51, 133, 0.1);
    color: var(--top-color);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Botones pequeños */
.btn.small {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

/* ===== MEJORAS PARA EL FONDO CON IMAGEN ===== */

/* Asegurar que los contenedores tengan fondos semitransparentes */
.container {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 20px;
    padding: 1.5rem;
    margin: 1rem auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Sidebar con transparencia elegante */
aside.sidebar {
    background: rgba(141, 178, 165, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Contenido principal */
main {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Tarjetas con fondo semitransparente */
.card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
}

/* Hero banner con gradiente sobre la imagen */
.hero-banner {
    background: linear-gradient(
        to right,
        rgba(255, 51, 133, 0.85),
        rgba(141, 178, 165, 0.85)
    );
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Secciones de zona con transparencia */
.zone-dorada, .zone-diamante, .zone-centro {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 5px solid;
}

.zone-dorada {
    border-left-color: #FF9A9E;
    background: rgba(255, 154, 158, 0.1);
}

.zone-diamante {
    border-left-color: #36D1DC;
    background: rgba(54, 209, 220, 0.1);
}

.zone-centro {
    border-left-color: #A1FFCE;
    background: rgba(161, 255, 206, 0.1);
}

/* Mapa e info sections */
.map-section, .info-section {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Tabla de estadísticas */
.stats-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Mejorar contraste del texto */
.title, .subtitle, h1, h2, h3, h4, h5, h6 {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.card-title {
    color: #2c3e50;
}

.card-sub, p {
    color: #34495e;
}

/* Efectos modernos para tarjetas */
.card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 51, 133, 0.2);
}

/* ===== AJUSTES PARA MEJOR VISIBILIDAD DEL FONDO ===== */

/* Hacer los contenedores principales más transparentes */
.container {
    background: rgba(255, 255, 255, 0.78); /* Más transparente */
}

aside.sidebar {
    background: rgba(141, 178, 165, 0.85); /* Más transparente */
}

main {
    background: rgba(255, 255, 255, 0.8); /* Más transparente */
}

/* Tarjetas más transparentes */
.card {
    background: rgba(255, 255, 255, 0.88);
}

/* Secciones de zona más transparentes */
.zone-dorada, .zone-diamante, .zone-centro {
    background: rgba(255, 255, 255, 0.85);
}

/* Mejorar contraste del texto para compensar */
.title, .subtitle, h1, h2, h3, h4, h5, h6 {
    color: #2c3e50; /* Azul oscuro para mejor contraste */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.card-title {
    color: #1a2530; /* Aún más oscuro */
}

p, .card-sub {
    color: #2d3748; /* Gris oscuro */
}

/* Botones con mejor contraste */
.btn {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

/* Inputs y selects más transparentes */
.searchbox input, select {
    background: rgba(255, 255, 255, 0.9);
}

/* Añadir bordes sutiles para definir mejor los elementos */
.card, .map-section, .info-section, .stats-container {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Hero banner con menos opacidad */
.hero-banner {
    background: linear-gradient(
        to right,
        rgba(255, 51, 133, 0.8),
        rgba(141, 178, 165, 0.8)
    );
}

/* Efecto de vidrio esmerilado para un look moderno */
.card, aside.sidebar, main, .container {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ===== CORRECIONES PARA QUE EL TEXTO NO SE SALGA ===== */

/* Asegurar que todo el texto se quede dentro de sus contenedores */
.card, .container, aside.sidebar, main, .zone, .map-section, .info-section {
    overflow: hidden; /* Esto evita que el contenido se salga */
}

/* Contenedor principal ajustado */
.container {
    max-width: 1400px;
    width: 100%;
    margin: 1.5rem auto;
    padding: 1.5rem;
    box-sizing: border-box; /* Esto incluye padding en el tamaño total */
}

/* Tarjetas con tamaño fijo y contenido controlado */
.card {
    height: auto;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.card-body {
    flex: 1;
    padding: 1.25rem;
    overflow: hidden;
}

.card-title {
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-sub {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limita a 3 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ajustar el grid para que las tarjetas tengan tamaño uniforme */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Contenedor de tarjetas por zona */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Sidebar ajustado */
aside.sidebar {
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    position: sticky;
    top: 90px;
}

/* Contenedor de estadísticas compacto */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.stat-item {
    text-align: center;
    padding: 0.5rem;
}

/* Botones de filtro ajustados */
.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.filter-btn {
    font-size: 0.85rem;
    padding: 0.6rem 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Input de búsqueda ajustado */
.searchbox {
    margin: 1.5rem 0;
}

.searchbox input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    box-sizing: border-box;
}

/* Select de ordenamiento */
select {
    width: 100%;
    padding: 0.8rem;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: white;
    font-size: 1rem;
    box-sizing: border-box;
}

/* Pie de tarjeta ajustado */
.card-foot {
    padding: 1rem;
    border-top: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.02);
}

.card-contact {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

/* Badges ajustados */
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.5rem 0;
}

.badge {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    white-space: nowrap;
}

/* Ajustes para el contenido del modal */
.modal-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.modal-content p, .modal-content ul {
    margin-bottom: 1rem;
}

.modal-content ul {
    padding-left: 1.5rem;
}

/* Ajustes responsivos para móviles */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    
    aside.sidebar {
        position: static;
        max-height: none;
    }
    
    .grid, .cards-container {
        grid-template-columns: 1fr;
    }
    
    .card {
        min-height: auto;
    }
    
    .button-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-btn {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-sub {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .card-contact {
        font-size: 0.8rem;
    }
}

/* ===== GARANTIZAR QUE NADA SE SALGA ===== */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

#main-content {
    width: 100%;
    overflow-x: hidden;
}

/* Asegurar que las imágenes no se salgan */
img {
    max-width: 100%;
    height: auto;
}

/* Contenedor de resultados */
#results-grid, #zona-dorada, #zona-diamante, #zona-centro {
    width: 100%;
    overflow: visible;
}

/* Header fijo ajustado */
header.topbar {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Ajustes finos para texto */
p, h1, h2, h3, h4, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}
.hero-banner {
    background-image: url('img/fondos/img_barra.jpeg'); /* TU IMAGEN */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 2rem;
    position: relative;
}

/* Capa para que el texto se lea bien */
.hero-overlay {
    background: rgba(0, 0, 0, 0.35);
    color: white;
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    max-width: 900px;
    backdrop-filter: blur(2px);
}
.hero-banner .title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #F5F5F5;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

.hero-banner .subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: #F5F5F5;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.zone-hidden {
    display: none;
}
.card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card {
    overflow: hidden;
}

.card-content {
    padding: 1rem;
}

.card-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.badge {
    background: #f0f0f0;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

.card-accessibility {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.card-description {
    font-size: 0.9rem;
    color: #444;
}
/* ================================================= */
/* ========= NUEVAS CARDS ESTILO PREMIUM =========== */
/* ================================================= */

.card {
    position: relative;
    overflow: hidden;

    background: rgba(255,255,255,0.96);

    border-radius: 28px;

    border: 1px solid rgba(255,255,255,0.5);

    backdrop-filter: blur(10px);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.08),
        0 2px 10px rgba(0,0,0,0.04);

    transition:
        transform .35s ease,
        box-shadow .35s ease;

    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);

    box-shadow:
        0 22px 45px rgba(0,0,0,0.14),
        0 10px 18px rgba(0,0,0,0.06);
}

/* ===== IMAGEN ===== */

.card-image {
    width: 100%;
    height: 240px;

    overflow: hidden;

    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .5s ease;
}

.card:hover .card-image img {
    transform: scale(1.06);
}

/* ===== CONTENIDO ===== */

.card-content {
    padding: 1.5rem;

    display: flex;
    flex-direction: column;

    gap: .9rem;

    flex: 1;
}

/* ===== TITULO ===== */

.card-content h3 {
    font-size: 1.7rem;

    font-weight: 900;

    color: #111827;

    line-height: 1.2;

    margin: 0;
}

/* ===== META ===== */

.card-meta {
    display: flex;

    flex-wrap: wrap;

    gap: .55rem;
}

/* ===== BADGES ===== */

.badge {
    padding: .45rem .85rem;

    border-radius: 12px;

    background: #f3f4f6;

    color: #374151;

    font-size: .78rem;

    font-weight: 700;

    border: none;
}

/* ===== DESCRIPCION ===== */

.card-description {
    font-size: .97rem;

    line-height: 1.7;

    color: #4b5563;

    margin: 0;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;
}

/* ===== ACCESIBILIDAD ===== */

.card-accessibility {
    display: flex;

    gap: .7rem;

    font-size: 1.2rem;

    margin-top: .2rem;
}

/* ===== BOTON ===== */

.card .btn {
    margin-top: auto;

    border: none;

    border-radius: 16px;

    padding: .9rem 1rem;

    font-weight: 800;

    font-size: .95rem;

    background: linear-gradient(
        135deg,
        #ff2d7a,
        #ff4f9d
    );

    color: white;

    box-shadow:
        0 10px 20px rgba(255,45,122,0.25);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.card .btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 24px rgba(255,45,122,0.35);
}

/* ===== GRID ===== */

.grid,
.cards-container {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(320px, 1fr));

    gap: 1.8rem;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {

    .card-image {
        height: 220px;
    }

    .card-content h3 {
        font-size: 1.45rem;
    }
}

@media (max-width: 480px) {

    .card-image {
        height: 200px;
    }

    .card-content {
        padding: 1.2rem;
    }

    .badge {
        font-size: .72rem;
    }
}
.card-details p,
.card-features {
    margin-top: 0.5rem;
    color: #2d3748;
}

.card-features ul {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
}

.card-features li {
    margin-bottom: 0.3rem;
}

.card-title {
    margin-bottom: 0.4rem;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.chip {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

/* etiquetas */
.tag-chip {
    background: #eef2ff;
    color: #4f46e5;
}

/* características */
.feature-chip {
    background: #ecfdf5;
    color: #059669;
}
.card {
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}
.btn.small {
    margin-top: 10px;
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #ff4d8d, #ff7a5c);
    color: white;
    transition: all 0.2s ease;
}

.btn.small:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 18px rgba(255, 77, 141, 0.3);
}
#place-modal {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.25s ease;
}

#place-modal.open {
    opacity: 1;
    transform: scale(1);
}
.chip {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* etiquetas */
.tag-chip {
    background: #f1f5f9;
    color: #334155;
}

.tag-chip:hover {
    background: #e2e8f0;
}

/* características */
.feature-chip {
    background: #ecfdf5;
    color: #059669;
}

.feature-chip:hover {
    background: #d1fae5;
}
#modal-content {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 5px;
}

#modal-content::-webkit-scrollbar {
    width: 6px;
}

#modal-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}
.accessible-mode .card {
    background: #1a1a1a !important;
    color: #111 !important;
}

.accessible-mode .card-description,
.accessible-mode .card-accessibility,
.accessible-mode .card-title {
    color: #111 !important;
}
.accessible-mode .card {
    background: #fff !important;
    color: #fff !important;
    /*border: 1px solid #333;*/
}
.accessible-mode .card-accessibility {
    color: #111 !important;
}