.ev-regalo{
  position:relative;
  overflow:hidden;
  background-position:center;
  background-repeat:no-repeat;
  background-size:cover
}
.ev-regalo--card .ev-block-inner{
  width:auto;
  max-width:calc(100% - 48px);
  box-sizing:border-box;
  margin:24px auto;
  border-radius:20px;
  background:rgba(255,255,255,.13);
  backdrop-filter:blur(4px);
}
.ev-regalo-title{margin:0 0 16px;line-height:1.12}
.ev-regalo-text{margin:0 0 24px;line-height:1.5}
.ev-regalo .ev-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:12px 22px;
  border:0;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  line-height:1.1;
  cursor:pointer
}
.ev-regalo .ev-btn.is-disabled{opacity:.55;cursor:default}
.ev-regalo-frame{
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
  background-repeat:no-repeat;
  background-position:center;
  background-size:100% 100%
}

.ev-regalo--minimal .ev-block-inner{padding-top:34px;padding-bottom:34px}
.ev-regalo--marco .ev-block-inner{padding:68px 30px}

.ev-regalo-d{
  width:min(100%,420px);
  margin:0 auto;
  display:grid;
  gap:14px
}
.ev-regalo-d[hidden]{display:none!important}
.ev-regalo-d label{
  display:grid;
  gap:6px;
  text-align:left;
  font:inherit
}
.ev-regalo-d label span{
  font-size:14px;
  font-weight:700;
  opacity:.96
}
.ev-regalo-d input,
.ev-regalo-d textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.45);
  border-radius:14px;
  padding:12px 14px;
  font:inherit;
  color:#222;
  background:rgba(255,255,255,.94);
  outline:none
}
.ev-regalo-d textarea{resize:vertical;min-height:82px}
.ev-regalo-d input:focus,
.ev-regalo-d textarea:focus{box-shadow:0 0 0 3px rgba(255,255,255,.22)}
.ev-regalo-save{justify-self:center}
.ev-regalo-whatsapp-d{justify-self:center;margin-top:2px}
.ev-regalo-status{
  min-height:20px;
  font-size:14px;
  font-weight:700;
  text-align:center
}
.ev-regalo-status.ok{color:#d9ffe1}
.ev-regalo-status.error{color:#ffd8d8}
.ev-regalo-abc-form{

  width:min(100%,420px);

  margin:18px auto 0;

  box-sizing:border-box;

  display:grid;

  gap:14px;

  position:relative;

  overflow:hidden;

  backdrop-filter:blur(6px);

  -webkit-backdrop-filter:blur(6px);

  box-shadow:0 10px 30px rgba(0,0,0,.22);

}
.ev-regalo-form-overlay{

  position:absolute;

  inset:0;

  background:var(--form-overlay-color, #000000);

  opacity:var(--form-overlay-opacity, 0);

  pointer-events:none;

  z-index:0;

}

.ev-regalo-abc-form > *:not(.ev-regalo-form-overlay){

  position:relative;

  z-index:1;

}
.ev-regalo-abc-form[hidden]{
  display:none!important;
}

.ev-regalo-abc-form label{
  display:grid;
  gap:7px;
  text-align:left;
}

.ev-regalo-abc-form label span{
  font-size:14px;
  font-weight:700;
  color:#fff;
  line-height:1.25;
}

.ev-regalo-abc-form input,
.ev-regalo-abc-form textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.45);
  border-radius:12px;
  padding:12px 14px;
  font:inherit;
  color:#222;
  background:rgba(255,255,255,.96);
  outline:none;
  box-shadow:0 2px 8px rgba(0,0,0,.10);
}

.ev-regalo-abc-form textarea{
  resize:vertical;
  min-height:88px;
}

.ev-regalo-abc-form input:focus,
.ev-regalo-abc-form textarea:focus{
  border-color:#fff;
  box-shadow:0 0 0 3px rgba(255,255,255,.20);
}

.ev-regalo-abc-form .ev-regalo-whatsapp{
  justify-self:center;
  margin-top:4px;
}

@media (max-width:480px){

  .ev-regalo-abc-form{

    gap:12px;

  }

}
/* REGALO · controles propios */
.ev-regalo-form[hidden]{
  display:none !important;
}
.ev-regalo-form{
  position:relative;
  width:100%;
  box-sizing:border-box;
  display:grid;
  gap:16px;
}

.ev-regalo-form label{
  display:grid;
  grid-template-columns:1fr;
  gap:7px;
  width:100%;
  margin:0;
  box-sizing:border-box;
}

.ev-regalo-form label span{
  display:block;
  width:100%;
  font-size:14px;
  font-weight:700;
  line-height:1.25;
}

.ev-regalo-form input{
  display:block;
  width:100%;
  min-width:0;
  height:46px;
  box-sizing:border-box;
  padding:10px 14px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:12px;
  background:rgba(255,255,255,.95);
  color:#222;
  font:inherit;
  outline:none;
}

.ev-regalo-alias{
  position:relative;
  z-index:2;
  margin:0;
}

.ev-regalo-alias-label{
  display:block;
  margin-bottom:7px;
  font-size:14px;
  font-weight:700;
}

.ev-regalo-alias-row{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  width:100%;
}

.ev-regalo-alias-row strong{
  flex:1;
  min-width:0;
  font-size:1.05em;
  word-break:break-word;
}

.ev-regalo-close{
  position:relative;
  width:100%;
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin:4px 0 0;
  padding:9px 14px;
  border:1px solid rgba(0,0,0,.18);
  border-radius:12px;
  background:rgba(255,255,255,.82);
  color:#333;
  font:inherit;
  font-size:14px;
  font-weight:600;
  line-height:1.2;
  cursor:pointer;
}
.ev-regalo-copy{
  min-height:38px;
  padding:8px 14px;
  border:1px solid rgba(0,0,0,.18);
  border-radius:10px;
  background:rgba(255,255,255,.92);
  color:#222;
  font:inherit;
  font-size:14px;
  font-weight:600;
  line-height:1.2;
  cursor:pointer;
  white-space:nowrap;
}

.ev-regalo-copy:active{
  transform:scale(.97);
}
/* =========================================================
   REGALO V2 · presentación visual editable
========================================================= */
.ev-regalo-image{
  display:block;
  box-sizing:border-box;
  max-width:100%;
  height:auto;
}
.ev-regalo-box{
  width:100%;
  display:grid;
  justify-items:center;
  gap:0;
}
.ev-regalo-form{
  gap:var(--regalo-form-gap,16px);
}
.ev-regalo-receipt{
  width:100%;
  margin:0;
  line-height:1.4;
}
.ev-regalo-close{
  order:999;
}

/* Fondo independiente del contenedor: permite transparentarlo sin afectar textos, imagen ni botones */
.ev-regalo .ev-block-inner{position:relative;isolation:isolate}
.ev-regalo .ev-regalo-container-bg{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-position:center;
  background-repeat:no-repeat;
  background-size:cover
}
.ev-regalo .ev-block-inner > :not(.ev-regalo-container-bg){position:relative;z-index:1}
