html, body {
    margin: 0;
    padding: 0;
    /* overflow: hidden; */ /* Eliminado para permitir scroll global */
    width: 100%;
    height: 100%;
    background-color: #000;
    font-family: 'Arial', sans-serif;
}

#canvas-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#canvas-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Permitir override por Elementor con el control de tamaño */
.elementor-widget-container #canvas-container {
    width: inherit;
    height: inherit;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.marker-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.marker {
    position: absolute;
    width: clamp(18px, 1.8vw, 36px);
    height: clamp(18px, 1.8vw, 36px);
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid white;
    transform: translate(-50%, -50%) scale(0.5);
    cursor: pointer;
    pointer-events: all;
    z-index: 10;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, opacity;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.marker.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.marker.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
}

.marker:hover {
    background-color: rgba(255, 235, 59, 0.8);
    transform: translate(-50%, -50%) scale(1.8) !important;
    box-shadow: 0 0 20px rgba(255, 235, 59, 0.7);
    border-color: rgba(255, 235, 59, 0.9);
    padding: 0;
    margin: 0;
}

.marker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 235, 59, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.marker:hover::before {
    opacity: 1;
}

.marker::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2.5s infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.marker:hover::after {
    opacity: 1;
}

.marker-label {
    position: absolute;
    color: white;
    font-size: clamp(1.1rem, 1.1vw, 1.6rem);
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0,0,0,0.9);
    pointer-events: none;
    white-space: nowrap;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s linear;
    padding: 5px 10px;
    letter-spacing: 1.2px;
    opacity: 0.8;
    transform: translateY(5px);
}

.marker:hover .marker-label {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 0 12px rgba(255, 235, 59, 0.6);
}

.marker-label.hidden {
    opacity: 0 !important;
    transform: translateY(5px) !important;
}

.image-container {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 1;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.4s ease;
    width: var(--sphere-size) !important;
    height: var(--sphere-size) !important;
    aspect-ratio: 1/1;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.image-container.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.image-container::before,
.image-container::after {
    display: none !important;
}

.image-container img,
.elementor .image-container img,
.elementor-widget-container .image-container img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: none;
    border-radius: 50% !important;
    aspect-ratio: 1/1;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: none !important;
    box-sizing: border-box;
}

.image-container.active img {
    display: block;
}

.image-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    width: 80%;
    z-index: 3;
    /* background: none; */
    padding: 20px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.image-container.active .image-content {
    opacity: 1;
}

.image-title {
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    line-height: 1.2;
}

.image-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: normal;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.image-description {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    max-width: 90%;
    margin: 0 auto;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    70% { transform: scale(1.1); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}

#backButton {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 20;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Máscaras SVG */
.mask-circle {
    clip-path: circle(50% at center);
}

.mask-hexagon {
    clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
}

.mask-square {
    clip-path: polygon(10% 0%, 90% 0%, 90% 90%, 10% 90%);
}

.mask-custom {
    clip-path: path(var(--custom-mask-path));
}

/* Partículas con desenfoque */
.particle-blur .ed-desing-particulas {
    filter: blur(1px);
}

/* Estilos de texto */
.ed-desing-image-content .ed-desing-title {
    font-size: var(--title-font-size, 24px);
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.ed-desing-image-content .ed-desing-subtitle {
    font-size: var(--subtitle-font-size, 18px);
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.ed-desing-image-content .ed-desing-description {
    font-size: var(--description-font-size, 14px);
    line-height: 1.6;
    max-width: 80%;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Hover effects */
.ed-desing-marker:hover {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

.ed-desing-marker:hover .ed-desing-marker-label {
    opacity: 1;
}

/* Ajuste responsivo para distribución de marcadores */
@media screen and (max-width: 768px) {
    .ed-desing-marker-container {
        transform: scale(0.7);
        transform-origin: center center;
    }
}

.marker-image-inner {
    box-sizing: border-box;
    padding: 0;
    background: none !important;
}

.marker-shadow-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--sphere-size, 100px);
    height: var(--sphere-size, 100px);
    border-radius: 50%;
    background: rgba(0,0,0,0.18);
    border: 2px solid rgba(255,255,255,0.18);
    z-index: 1;
    pointer-events: none;
    box-shadow: 0 0 24px 0 rgba(0,0,0,0.18);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.image-container.hide-internal-title .image-title,
.image-container.hide-internal-title .ed-desing-image-title {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.3s;
}

.image-container .image-title,
.image-container .ed-desing-image-title {
  display: none !important;
}

.marker-central-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: clamp(1.2rem, 2vw, 2.2rem);
    font-weight: bold;
    text-shadow: 0 0 12px rgba(255, 235, 59, 0.8), 0 0 8px #000;
    background: none;
    border: none;
    z-index: 10;
    opacity: 1;
    pointer-events: none;
    white-space: pre-line;
    text-align: center;
    padding: 0;
    margin: 0;
    letter-spacing: 1.2px;
    transition: opacity 0.3s;
}

.image-container .marker-central-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    z-index: 9;
    pointer-events: none;
    transition: opacity 0.3s;
    opacity: 1;
}

.ed-desing-particulas-container {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 400px;
    overflow: hidden;
}

/* Ajustes responsivos */
@media screen and (max-width: 767px) {
    .ed-desing-particulas-container {
        height: 80vh;
        min-height: 300px;
    }
}

@media screen and (max-width: 480px) {
    .ed-desing-particulas-container {
        height: 70vh;
        min-height: 250px;
    }
} 