:root {
    --primary-red: #A00000;
    --dark-red: #500000;
    --text-white: #FFFFFF;
    --frame-border: #1a1a1a;
    --bg-gradient: linear-gradient(180deg, #D01010 0%, #800000 40%, #400000 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
}

.main-header {
    padding: 40px 20px 20px;
    width: 100%;
}

.overline {
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 300;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.overline::before,
.overline::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 1px;
    background-color: var(--text-white);
    opacity: 0.6;
}

h1 {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Video Section */
.video-section {
    width: 100%;
    margin-bottom: 10px;
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.video-bar {
    width: 100%;
    height: 2px;
    background: #555;
    position: relative;
}

.video-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 70%;
    background: #c00;
}

/* Text Intro */
.intro-text p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 15px;
    opacity: 0.9;
}

.intro-text h2 {
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Frame / Canvas */
.frame-container {
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.frame {
    width: 100%;
    max-width: 1200px;
    background-color: var(--frame-border);
    padding: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    display: inline-block;
}

.canvas-white {
    width: 100%;
    height: auto;
    background-color: #fff;
    position: relative; /* Necesario para posicionar hotspots dentro */
}

.canvas-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== HOTSPOTS SOBRE LA IMAGEN ===== */
.hotspots-layer {
    position: absolute;
    inset: 0;
    pointer-events: none; /* la capa ignora clicks, los botones sí los reciben */
}

.hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.2);
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* ===== Animación para resaltar el hotspot activo ===== */
.hotspot.active{
  animation: hotspotPulse 1.2s ease-in-out infinite;
}

/* “Anillo” externo (halo) */
.hotspot.active::after{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius:999px;
  border:2px solid rgba(255,255,255,.55);
  animation: hotspotRing 1.2s ease-out infinite;
  pointer-events:none;
}

@keyframes hotspotPulse{
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.12); }
}

@keyframes hotspotRing{
  0%   { transform: scale(0.75); opacity: .85; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Respeta accesibilidad */
@media (prefers-reduced-motion: reduce){
  .hotspot.active{ animation: none; }
  .hotspot.active::after{ animation: none; }
}


.hotspot:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}

.hotspot-icon {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

/* Tooltip con el nombre del cliente */
.hotspot-label {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translate(-50%, -100%);
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.65rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hotspot:hover .hotspot-label,
.hotspot.active .hotspot-label {
    opacity: 1;
    transform: translate(-50%, -110%);
}

/* Wishes */
.wishes-text p {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-top {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-bottom {
    font-size: 0.7rem;
    letter-spacing: 5px;
    font-weight: 400;
    margin-top: 2px;
}

/* ==== LISTA DE CLIENTES: GRID CON SCROLL ==== */
.clients-list {
    width: 100%;
    max-width: 500px;
    margin: 10px auto 0;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px 16px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 6px;
}

.client-grid span {
    font-size: 0.8rem;
    text-align: left;
    opacity: 0.9;
}

/* Cliente resaltado al hacer clic en un hotspot */
.client-grid span.highlight {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 2px 8px;
}

/* Scrollbar fino (opcional) */
.client-grid::-webkit-scrollbar {
    width: 6px;
}

.client-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.client-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
}

/* ==== FOOTER CON IMAGEN RESPONSIVE ==== */
.main-footer {
    width: 100%;
    padding: 20px 0 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo {
    max-width: 180px;
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 480px) {
    .footer-logo {
        max-width: 140px;
    }
}
