﻿
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

@keyframes iconoClickPulso {
  0%   { opacity: 0;    transform: translate(-50%,-50%) scale(1); }
  10%  { opacity: 0.6;  transform: translate(-50%,-50%) scale(0.85); }
  20%  { opacity: 0.15; transform: translate(-50%,-50%) scale(1); }
  30%  { opacity: 0.6;  transform: translate(-50%,-50%) scale(0.85); }
  40%  { opacity: 0.15; transform: translate(-50%,-50%) scale(1); }
  50%  { opacity: 0.6;  transform: translate(-50%,-50%) scale(0.85); }
  70%  { opacity: 0.6;  transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 0;    transform: translate(-50%,-50%) scale(1); }
}
.icono-parpadeo {
  animation: iconoClickPulso 3.2s ease-in-out;
}

@keyframes pulso-girar {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,28,154,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(255,28,154,0); }
}
#wrapper-rotacion {
  border-radius: 20px;
  padding: 8px;
  animation: pulso-girar 1.6s ease-out 4;
  animation-delay: 3s;
}
#wrapper-rotacion input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 10px;
  background: linear-gradient(90deg, #ff1c9a, #f0e4d4);
  cursor: grab;
}
#wrapper-rotacion input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #ff1c9a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  cursor: grab;
}
#wrapper-rotacion input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #ff1c9a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  cursor: grab;
}
#capa2 {
  zoom: 1.4;
}
.btn-3d {
  border: none;
  border-radius: 10px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  padding: 14px 32px;
}
.btn-3d:hover { transform: translateY(-2px); }

.btn-lo-quiero {
  background: linear-gradient(135deg, #ff1c9a, #c9187a);
  box-shadow: 0 6px 20px rgba(255, 28, 154, 0.4);
}
@media (max-width: 480px) {
  .btn-lo-quiero {
    font-size: 15px !important;
    padding: 12px 20px !important;
    white-space: nowrap;
  }
}

/* Subir otra imagen — neutro, discreto */
.btn-subir-imagen {
  background: #fff;
  color: #333;
  border: 2px solid #ddd;
}

/* Compartir — azul, tipo "compartir" genérico */
.btn-compartir {
  background: #3b82f6;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

/* Envíamelo — verde WhatsApp */
.btn-enviar-whatsapp {
  background: #25D366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

@media (max-width: 600px) {
  .btn-subir-foto-flotante {
    bottom: auto !important;
    top: 45% !important;
  }
}
  .simula-lienzo-hint {
    position: fixed;

    right: 0;
    bottom: 0;

    width: 60vw;
    height: 60vh;

    min-width: 570px;
    min-height: 390px;

    z-index: 9999;

    pointer-events: none;

    font-family: Arial, Helvetica, sans-serif;
  }


  .simula-lienzo-hint-inner {

    position: absolute;

    right: 0;
    bottom: 0;

    width: 100%;
    height: 100%;

    /*
      Triángulo grande ocupando
      toda la superficie disponible
    */

    clip-path: polygon(
      100% 0,
      100% 100%,
      0 100%
    );

    background:
      radial-gradient(
        circle at 100% 0%,
        rgba(255,255,255,.28),
        rgba(255,255,255,0) 38%
      ),
      linear-gradient(
        135deg,
        #ff1493 0%,
        #ff3ca9 55%,
        #ff5ab5 100%
      );

    box-shadow:
      -15px -15px 45px rgba(0,0,0,.22);

    pointer-events: auto;
  }


  /* =========================================================
     EFECTO DE PAPEL
     ========================================================= */

  .simula-lienzo-hint-inner:before {

    content: "";

    position: absolute;

    right: 0;
    bottom: 0;

    width: 100%;
    height: 100%;

    background:
      linear-gradient(
        135deg,
        transparent 61%,
        rgba(255,255,255,.13) 61.5%,
        rgba(255,255,255,.13) 63%,
        transparent 63.5%
      );

    pointer-events: none;
  }


  /* =========================================================
     CONTENIDO
     ========================================================= */

  .simula-lienzo-content {

    position: absolute;

    /*
      También lo hacemos proporcional.
      Ocupa aproximadamente el 52% del ancho
      del triángulo.
    */

    right: 3%;
    bottom: 6%;

    width: 52%;

    text-align: center;

    color: white;

    z-index: 5;
  }


  /* =========================================================
     ICONO
     ========================================================= */

  .simula-lienzo-icon {

    font-size: clamp(
      32px,
      3vw,
      60px
    );

    line-height: 1;

    margin-bottom: 1%;

    filter:
      drop-shadow(
        0 3px 5px rgba(0,0,0,.20)
      );
  }


  /* =========================================================
     TITULO
     ========================================================= */

  .simula-lienzo-title {

    font-size: clamp(
      22px,
      2vw,
      38px
    );

    line-height: 1.08;

    font-weight: 800;

    margin-bottom: 2%;

    text-shadow:
      0 3px 6px rgba(0,0,0,.20);
  }


  /* =========================================================
     TEXTO
     ========================================================= */

  .simula-lienzo-text {

    font-size: clamp(
      13px,
      1.05vw,
      21px
    );

    line-height: 1.4;

    font-weight: 500;

    margin-bottom: 4%;

    text-shadow:
      0 1px 4px rgba(0,0,0,.15);
  }


  /* =========================================================
     BOTÓN
     ========================================================= */

  .simula-lienzo-button {

    display: inline-block;

    padding:
      clamp(10px, 1vw, 18px)
      clamp(18px, 1.8vw, 34px);

    border-radius:
      50px;

    background:
      white;

    color:
      #ff1493;

    font-size:
      clamp(12px, 1vw, 18px);

    font-weight:
      800;

    text-decoration:
      none;

    cursor:
      pointer;

    box-shadow:
      0 6px 20px rgba(0,0,0,.24);

    transition:
      transform .2s ease,
      box-shadow .2s ease;
  }


  .simula-lienzo-button:hover {

    transform:
      translateY(-4px)
      scale(1.04);

    box-shadow:
      0 10px 28px rgba(0,0,0,.30);
  }



  /* =========================================================
     TABLET
     ========================================================= */

  @media (max-width: 768px) {

    .simula-lienzo-hint {

      left: 12px;
      right: 12px;
      bottom: 12px;

      width: auto;
      height: auto;

      min-width: 0;
      min-height: 0;
    }


    .simula-lienzo-hint-inner {

      position: relative;

      width: 100%;
      height: auto;

      clip-path: none;

      border-radius: 18px;

      background:
        radial-gradient(
          circle at 100% 0,
          rgba(255,255,255,.22),
          rgba(255,255,255,0) 40%
        ),
        linear-gradient(
          135deg,
          #ff1493,
          #ff4db0
        );

      box-shadow:
        0 8px 30px rgba(0,0,0,.22);

      padding:
        18px 20px;

      box-sizing:
        border-box;
    }


    .simula-lienzo-content {

      position: relative;

      right: auto;
      bottom: auto;

      width: 100%;

      text-align: left;

      box-sizing:
        border-box;
    }


    .simula-lienzo-icon {

      display: inline-block;

      font-size: 27px;

      vertical-align: middle;

      margin-right: 5px;

      margin-bottom: 0;
    }


    .simula-lienzo-title {

      display: inline;

      font-size: 18px;

      line-height: 1.2;
    }


    .simula-lienzo-text {

      margin:
        7px 0 12px;

      font-size:
        12px;

      line-height:
        1.42;
    }


    .simula-lienzo-button {

      font-size:
        12px;

      padding:
        9px 18px;
    }
  }



  /* =========================================================
     MÓVIL PEQUEÑO
     ========================================================= */

  @media (max-width: 420px) {

    .simula-lienzo-hint {

      left: 8px;
      right: 8px;
      bottom: 8px;
    }


    .simula-lienzo-hint-inner {

      padding:
        14px 16px;

      border-radius:
        15px;
    }


    .simula-lienzo-title {

      font-size:
        16px;
    }


    .simula-lienzo-text {

      font-size:
        11.5px;

      margin-bottom:
        9px;
    }


    .simula-lienzo-button {

      padding:
        8px 15px;
    }
  }


.btn-filtro {
  background: #fff;
  color: #666;
  border: 1.5px solid #ddd;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: Arial, sans-serif;
  transition: all 0.15s ease;
}
.btn-filtro:hover {
  border-color: #ff1c9a;
}
.btn-filtro.activo {
  background: #ff1c9a;
  color: #fff;
  border-color: #ff1c9a;
}
.opcion-medida.seleccionada {
  border-color: #ff1c9a !important;
  background: #fdf0f8 !important;
}
@keyframes girarSpinner {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.canvas-feature {
  position: fixed;
  width: 170px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  font-family: Arial, Helvetica, sans-serif;
  z-index: 10;
}

.canvas-feature-title {
  font-size: 13px;
  font-weight: 800;
  color: #222;
  margin-bottom: 3px;
}

.canvas-feature-text {
  font-size: 11px;
  color: #777;
  line-height: 1.3;
}

.canvas-feature-1 { top: 15%; left: 3%; }
.canvas-feature-2 { top: 15%; right: 3%; }
.canvas-feature-3 { bottom: 15%; left: 3%; }
.canvas-feature-4 { bottom: 15%; right: 3%; }

@media (max-width: 900px) {
  .canvas-feature { display: none; }
}

.tab-medida.activa {
  border-color: #ff1c9a !important;
  background: #fdf0f8 !important;
}