/* custom-style.css v3.8 – UNIFICADO con estilos de chips */

/* ==============================
   HERO ANIMADO (Elementos únicos)
   ============================== */
.ap-hero {
  /* background: linear-gradient(270deg, #ff9b00, #cd004b, #6561ac, #0091cd, #f63888, #c559cd);
  background-size: 1200% 1200%; */
  
  background: linear-gradient(270deg, 
        var(--ap-chip1, #ff9b00), 
        var(--ap-chip2, #cd004b), 
        var(--ap-chip3, #6561ac), 
        var(--ap-chip4, #0091cd), 
        var(--ap-chip5, #f63888), 
        var(--ap-chip6, #c559cd)
    );
    background-size: 1200% 1200%;
  
  animation: apGradientFlow 25s ease infinite;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border-radius: 0px; /* Añadido borde para estética */
}

@supports not (aspect-ratio: 1) {
  .ap-hero {
    height: 0;
    padding-bottom: 100%;
  }
  .ap-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
  }
}

.ap-brille {
  font-size: 1.6rem;
  display: block;
}

/* Estilo del botón dentro del Hero */
.ap-cta.ap-cta-primary {
    display: inline-block;
    padding: 12px 30px;
    background: #ffffff; /* Fondo blanco */
    color: #cd004b; /* Color de texto fuerte */
    font-size: 1.6rem;
    font-weight: 800;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-top: 15px;
    transition: all 0.2s ease;
}

.ap-cta.ap-cta-primary:hover {
    background: #9a1f48;
    color: #ffffff;
    transform: translateY(-1px);
}


.ap-cta.ap-cta-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

@keyframes apGradientFlow {
    0%{background-position:0% 50%}
    50%{background-position:100% 50%}
    100%{background-position:0% 50%}
}


/* ==============================
   CHIPS DE RUBROS (Restauración)
   ============================== */
.ap-rubros {
    margin: 20px 0;
}

.ap-rubro-parent {
    font-size: 0.85rem;
    color: #fff; /* ← AGREGAR ESTA LÍNEA */
}

.ap-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center; /* Centrar los chips */
}

.ap-chip {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    line-height: 1.2;
}

.ap-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.25);
    opacity: 0.9;
}

/* El resto de estilos (ap-section, inputs, popup, etc.)
   se mantienen centralizados en ap-form.css. */

/* POPUP ULTRA COMPACTO */
.ap-popup {
    padding: 5px !important;
}

.ap-popup-logo-section {
    padding: 5px !important;
    margin-bottom: 5px !important;
}

.ap-popup-logo-section img {
    width: 100% !important;
    max-height: 200px !important;
    object-fit: contain !important;
}

.ap-popup-title {
    width: 80%;
    margin: 0 auto 5px;
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
    line-height: 1.1;
    color: #333;
}

.ap-popup-descripcion {
    font-weight: bold;
    font-size: 1em;
    text-align: center;
    margin: 0 0 5px 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ap-popup-detalle {
    font-size: 0.9em;
    text-align: center;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* GRID DE INFO COMPACTA - 4 COLUMNAS EN PC/TABLET, 2 EN MÓVIL */
.ap-popup-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin: 8px 0;
}

.ap-info-compact {
    background: #f5f5f5;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    text-align: center;
    line-height: 1.2;
}

.ap-info-compact strong {
    margin-right: 3px;
}

.ap-whatsapp-compact {
    display: block;
    background: #25D366;
    color: white !important;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.2s;
}

.ap-whatsapp-compact:hover {
    background: #20BA5A;
    transform: scale(1.05);
}

/* RESPONSIVE: 2 COLUMNAS EN MÓVIL */
@media (max-width: 768px) {
    .ap-popup-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ap-popup-title {
        font-size: 1.4em;
    }
}

/* WEB Y MENÚ */
.ap-popup-extra-info {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 5px 0 8px 0;
}

.ap-popup-extra-info a {
    padding: 5px 12px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85em;
    transition: background 0.2s;
}

.ap-popup-extra-info a:hover {
    background: #005a87;
}

/* COMPACTAR CARRUSEL */
.ap-carousel-container {
    margin: 5px 0 !important;
}

.ap-banner-section,
.ap-video-section {
    margin: 5px 0 !important;
}

.ap-section-title {
    display: none; /* Ocultar títulos de sección para más compactación */
}

/* Mapa de ubicación */
.ap-map-section {
    margin: 8px 0;
}

.ap-section-title-visible {
    font-size: 1em;
    font-weight: bold;
    color: #333;
    margin: 8px 0 5px;
    padding-bottom: 3px;
    border-bottom: 2px solid #0073aa;
}

.ap-map-section iframe {
    display: block;
    width: 100%;
}

/* Header con logo y reacciones en paralelo */
.ap-popup-header-flex {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}

.ap-popup-logo-section {
    flex: 1;
    padding: 5px;
    background: #f9f9f9;
    border-radius: 8px;
}

.ap-popup-logo-section img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
}

/* Reacciones compactas al lado del logo */
.ap-reactions-compact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 70px;
}

.ap-reaction-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85em;
}

.ap-reaction-mini:hover:not(:disabled) {
    border-color: #0073aa;
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ap-reaction-mini:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ap-icon-mini {
    font-size: 1.3em;
    line-height: 1;
}

.ap-count-mini {
    font-size: 0.9em;
    font-weight: bold;
    color: #333;
    min-width: 25px;
    text-align: right;
}

.ap-vote-msg-mini {
    font-size: 0.75em;
    text-align: center;
    margin-top: 3px;
    min-height: 15px;
}

/* Responsive: apilar en móvil */
@media (max-width: 480px) {
    .ap-popup-header-flex {
        flex-direction: column;
    }
    
    .ap-reactions-compact {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
    }
    
    .ap-reaction-mini {
        flex: 1;
    }
}

