/* Global UI - Guía Realiquense
   Generado: 2026-02-16T07:25:22.499745Z
   Contiene estilos compartidos para header/footer y ads slots
*/


    :root {
        --ig-gradient: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
        --accent: #0084ff;
        --accent-dark: #0066cc;
        --green: #10b981;
        --red: #ef4444;
        --yellow: #fbbf24;
        --purple: #8b5cf6;
        --orange: #f97316;
        --pink: #ec4899;
        --black: #1a1a1a;
        --gray-dark: #2d3748;
        --gray: #4a5568;
        --gray-light: #e2e8f0;
        
        --bg-primary: #f8f9fa;
        --bg-secondary: #ffffff;
        --text-primary: #1a1a1a;
        --text-secondary: #4a5568;
    }
    
    * { box-sizing: border-box; }
    
    body { 
        font-family: 'Inter', sans-serif; 
        margin: 0; 
        background: var(--bg-primary);
        color: var(--text-primary);
        padding-bottom: 0;
        transition: background-color 0.3s ease, color 0.3s ease;
    }
    
    .hidden { display: none !important; }

    /* BARRA SUPERIOR */
    .top-bar { 
        padding: 14px 20px; 
        background: linear-gradient(135deg, var(--black) 0%, var(--gray-dark) 100%);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        font-size: 1.75rem;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    
    .top-bar .title { 
        font-weight: 900; 
        letter-spacing: -0.5px; 
        font-size: 1.1rem; 
        background: var(--ig-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .top-bar .info-right {
        display: flex;
        gap: 12px;
        align-items: center;
        color: rgba(255,255,255,0.8);
        font-size: 0.9rem;
        font-weight: 500;
    }
    
    .weather-icon {
        display: flex;
        align-items: center;
        gap: 4px;
        background: rgba(255,255,255,0.1);
        padding: 4px 8px;
        border-radius: 6px;
    }

    /* HISTORIAS (SECCIONES) */
    .stories-nav { 
        display: flex; 
        overflow-x: auto; 
        padding: 16px 12px; 
        gap: 14px; 
        scrollbar-width: none;
        background: #fff;
        border-bottom: 1px solid #dbdbdb;
        scroll-behavior: smooth;
    }
    
    .stories-nav::-webkit-scrollbar { display: none; }
    
    .story-node { 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        min-width: 76px; 
        cursor: pointer;
        transition: transform 0.2s;
        text-decoration: none;
    }
    
    .story-node:active {
        transform: scale(0.95);
    }
    
    .s-circle { 
        width: 70px; 
        height: 70px; 
        border-radius: 50%; 
        padding: 2px;
        background: var(--ig-gradient); 
        display: flex; 
        align-items: center; 
        justify-content: center;
    }
    
    .s-inner { 
        width: 100%; 
        height: 100%; 
        background: #fff; 
        border-radius: 50%; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        font-size: 1.8rem; 
        border: 3px solid #fff;
    }
    
    .story-node span { 
        font-size: 0.85rem; 
        font-weight: 700; 
        margin-top: 10px; 
        text-align: center;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.2;
        color: var(--text-primary);
    }

    /* TICKER */
    .ticker-wrap { 
        background: linear-gradient(135deg, var(--orange) 0%, var(--yellow) 100%);
        color: var(--black); 
        padding: 14px 0; 
        overflow: hidden; 
        white-space: nowrap;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .ticker-move { 
        display: inline-block; 
        animation: ticker 30s linear infinite; 
        font-size: 1rem; 
        font-weight: 700; 
        padding-left: 100%;
        letter-spacing: 0.2px;
    }
    
    @keyframes ticker { 
        0% { transform: translateX(0); } 
        100% { transform: translateX(-100%); } 
    }

    /* BUSCADOR */
    .global-search {
        padding: 20px;
        background: #fff;
        border-bottom: 1px solid #dbdbdb;
    }
    
    .search-container {
        max-width: 935px;
        margin: 0 auto;
        position: relative;
    }
    
    .search-icon {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--gray);
        font-size: 1rem;
    }
    
    .search-input {
        width: 100%;
        padding: 14px 16px 14px 46px;
        border: 2px solid var(--gray-light);
        border-radius: 12px;
        font-size: 0.95rem;
        font-weight: 500;
        transition: all 0.2s;
        font-family: 'Inter', sans-serif;
    }
    
    .search-input:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.1);
    }

    /* GRID HOME */
    .main-grid { 
        display: grid; 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
        padding: 20px;
        max-width: 935px;
        margin: 0 auto;
    }
    
    .card { 
        position: relative; 
        aspect-ratio: 1/1.2; 
        border-radius: 16px; 
        overflow: hidden; 
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        cursor: pointer;
        transition: transform 0.3s, box-shadow 0.3s;
        text-decoration: none;
        color: inherit;
    }
    
    .card:active {
        transform: scale(0.98);
    }
    
    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

    /* Evita huecos cuando un slot de publicidad no se llena */
    .main-grid .ad-slot:empty{ display:none; }
    
    .card img { 
        width: 100%; 
        height: 100%; 
        object-fit: cover; 
    }
    
    .card-overlay { 
        position: absolute; 
        inset: 0; 
        padding: 20px;
        background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.9));
        display: flex; 
        flex-direction: column; 
        justify-content: flex-end; 
        color: #fff;
    }
    
    .card-overlay h3 { 
        font-size: 1.1rem; 
        font-weight: 900; 
        text-transform: uppercase; 
        margin: 0;
        text-shadow: 0 2px 8px rgba(0,0,0,0.5);
        letter-spacing: -0.3px;
    }
    
    .card-overlay p {
        font-size: 0.75rem;
        margin: 6px 0 0;
        opacity: 0.95;
        font-weight: 500;
    }
    
    .card-sponsored {
        border: 3px solid var(--yellow);
        box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
    }
    
    .card-badge {
        position: absolute;
        top: 12px;
        right: 12px;
        background: var(--yellow);
        color: var(--black);
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 0.7rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        z-index: 2;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    
    .card-stats {
        position: absolute;
        top: 12px;
        left: 12px;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(8px);
        color: #fff;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 0.75rem;
        font-weight: 700;
        z-index: 2;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .card-stats i {
        color: var(--yellow);
    }

    /* BANNERS PUBLICITARIOS */
    .ad-banner {
        background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
        border-radius: 16px;
        padding: 24px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        color: #fff;
        text-decoration: none;
        position: relative;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        transition: transform 0.3s;
    }
    
    .ad-banner:hover {
        transform: translateY(-4px);
    }
    
    .ad-banner::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
        animation: shimmer 3s infinite;
    }
    
    @keyframes shimmer {
        0%, 100% { transform: translateX(-100%); }
        50% { transform: translateX(100%); }
    }
    
    .ad-banner-content h3 {
        font-size: 1.2rem;
        font-weight: 900;
        margin: 0 0 8px 0;
        text-transform: uppercase;
        letter-spacing: -0.3px;
    }
    
    .ad-banner-content p {
        font-size: 0.85rem;
        margin: 0;
        opacity: 0.95;
        font-weight: 500;
    }
    
    .ad-banner-badge {
        position: absolute;
        top: 12px;
        right: 12px;
        background: rgba(255,255,255,0.2);
        backdrop-filter: blur(8px);
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 0.65rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* YO❤️REALICÓ - SECCIÓN COMPLETA */
    .yo-realico-section {
        grid-column: 1 / -1;
        background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 50%, var(--accent) 100%);
        border-radius: 20px;
        overflow: hidden;
        text-decoration: none;
        color: #fff;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
        transition: transform 0.3s;
        min-height: 300px;
        display: flex;
        flex-direction: column;
    }
    
    .yo-realico-section:hover {
        transform: translateY(-6px);
    }
    
    .yo-realico-image {
        width: 100%;
        height: 200px;
        background-size: cover;
        background-position: center;
        position: relative;
    }
    
    .yo-realico-image::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 100%);
    }
    
    .yo-realico-text {
        padding: 30px 24px;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .yo-realico-text h2 {
        font-size: 2rem;
        font-weight: 900;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: -1px;
    }
    
    .yo-realico-text p {
        font-size: 1rem;
        margin: 0;
        opacity: 0.95;
        line-height: 1.5;
        font-weight: 500;
    }
    
    .yo-realico-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(255,255,255,0.2);
        backdrop-filter: blur(8px);
        padding: 12px 20px;
        border-radius: 12px;
        font-weight: 700;
        font-size: 0.95rem;
        margin-top: auto;
        width: fit-content;
        transition: background 0.2s;
    }
    
    .yo-realico-btn:hover {
        background: rgba(255,255,255,0.3);
    }

    /* FOOTER */
    .main-footer {
        background: linear-gradient(135deg, var(--black) 0%, var(--gray-dark) 100%);
        color: #fff;
        padding: 40px 20px;
        margin-top: 40px;
    }
    
    .footer-content {
        max-width: 935px;
        margin: 0 auto;
    }
    
    .footer-social {
        display: flex;
        gap: 16px;
        justify-content: center;
        margin-bottom: 30px;
    }
    
    .footer-social a {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
        text-decoration: none;
        transition: transform 0.2s;
    }
    
    .footer-social a:hover {
        transform: scale(1.1);
    }
    
    .footer-social .whatsapp {
        background: #25d366;
        color: #fff;
    }
    
    .footer-social .instagram {
        background: var(--ig-gradient);
        color: #fff;
    }
    
    .footer-social .facebook {
        background: #1877f2;
        color: #fff;
    }
    
    .footer-advertise {
        text-align: center;
        padding: 30px 20px;
        background: rgba(255,255,255,0.05);
        border-radius: 16px;
        margin-bottom: 30px;
    }
    
    .footer-advertise h4 {
        font-size: 1.3rem;
        font-weight: 900;
        margin: 0 0 10px 0;
    }
    
    .footer-advertise p {
        font-size: 0.95rem;
        margin: 0 0 20px 0;
        opacity: 0.9;
    }
    
    .footer-advertise a {
        display: inline-block;
        background: var(--green);
        color: #fff;
        padding: 14px 28px;
        border-radius: 12px;
        text-decoration: none;
        font-weight: 700;
        font-size: 0.95rem;
        transition: background 0.2s;
    }
    
    .footer-advertise a:hover {
        background: #0d9668;
    }
    
    .footer-bottom {
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
        margin: 0;
        opacity: 0.8;
    }
    
    .heart {
        color: var(--red);
        animation: heartbeat 1.5s infinite;
    }
    
    @keyframes heartbeat {
        0%, 100% { transform: scale(1); }
        10%, 30% { transform: scale(1.1); }
        20%, 40% { transform: scale(1); }
    }

    /* RESPONSIVE */
    @media (max-width: 768px) {
        .top-bar {
            padding: 12px 16px;
        }
        
        .top-bar .title {
            font-size: 1rem;
        }
        
        .ticker-move {
            font-size: 0.9rem;
        }
        
        .main-grid {
            padding: 16px;
            gap: 12px;
        }
        
        .card-overlay h3 {
            font-size: 1rem;
        }
        
        .yo-realico-text {
            padding: 24px 20px;
        }
        
        .yo-realico-text h2 {
            font-size: 1.6rem;
        }
        
        .yo-realico-text p {
            font-size: 0.9rem;
        }
    }


/* ── SECCIONES: Componentes compartidos ── */

/* Botón flotante HOME (aparece en todas las secciones) */
.floating-menu {
  position: fixed;
  bottom: 22px;
  right: 18px;
  z-index: 9999;
}

.floating-btn {
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(0,132,255,.92);
  color: #fff;
  box-shadow: 0 12px 26px rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.2s;
}

.floating-btn:active { transform: scale(.96); }
.floating-btn:hover  { background: var(--accent-dark); }

/* Cabecera de sección (título + breadcrumb) */
.section-topbar {
  background: #fff;
  border-bottom: 1px solid var(--gray-light);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-topbar .back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gray-light);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray);
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
}

.section-topbar .back-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.section-topbar h1 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-primary);
}

/* Contenedor principal de sección */
.section-main {
  max-width: 935px;
  margin: 0 auto;
  padding: 20px;
}

/* Tarjeta genérica de sección */
.item-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  margin-bottom: 16px;
  transition: box-shadow 0.2s;
}

.item-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.14); }

/* Badge de estado (turno, disponible, etc.) */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.badge-green  { background: #d1fae5; color: #065f46; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-yellow { background: #fef9c3; color: #713f12; }

/* Loading spinner sección */
.sec-loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}

.sec-loading .fa-spinner {
  font-size: 2.5rem;
  margin-bottom: 12px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Grid de 2 columnas para items */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

@media (max-width: 480px) {
  .items-grid { grid-template-columns: 1fr; }
  .section-main { padding: 14px; }
}
