/* ============================================================
   V2.2.1 · CORRECCIONES SOBRE V2.2 (22/10/2026)
   Cada bloque indica el requisito del encargo. Todo el CSS sigue
   aislado bajo #av-v2, salvo la cabecera: allí el scope es
   body.av-quinceaneras.av-v221-page, exclusivo de esta demo.
   ============================================================ */

/* ---------- R06 · hero sin inclinación ----------
   Se anula la rotación de los marcos (-1.2deg escritorio, -1deg móvil)
   y la imagen deja de recortarse por altura fija: manda su 16:9. */
#av-v2 .v2-hero__scene:not(.v2-hero__scene--alt){min-height:0}
#av-v2 .v2-cruise--flat{
  position:relative;right:auto;top:auto;
  transform:none;
  width:100%;
  border-radius:16px;
  box-shadow:0 40px 80px -46px #000,0 0 0 1px rgba(255,255,255,.24),0 0 0 8px rgba(255,255,255,.05);
}
#av-v2 .v2-cruise--flat picture{display:block;line-height:0}
#av-v2 .v2-cruise--flat img{
  width:100%;height:auto;aspect-ratio:16/9;
  object-fit:cover;object-position:50% 46%;
}
/* R07 · el pie de foto del barco deja sitio al arco de la quinceañera. */
#av-v2 .v2-cruise--flat figcaption{
  position:static;
  display:flex;flex-wrap:wrap;align-items:baseline;gap:.15rem .8rem;
  padding:.7rem .9rem .75rem calc(clamp(150px,26%,240px) + 1.6rem);
  text-align:left;
  background:rgba(5,13,26,.92);
  color:rgba(255,255,255,.62);
  font-size:.64rem;letter-spacing:.05em;text-transform:none;font-weight:400;
}
#av-v2 .v2-cruise--flat figcaption b{
  font-size:.62rem;letter-spacing:.16em;text-transform:uppercase;
  color:#fff;font-weight:700;
}
#av-v2 .v2-hero__scene[hidden]{display:none!important}

/* R07 · arco de la quinceañera sobre la foto real del barco.
   La imagen es decorativa y va recortada sin el barco del fondo: en el hero
   solo aparece el MSC World America real. */
#av-v2 .v2-diva--flat{
  left:-.4rem;bottom:-1.6rem;z-index:3;
  width:clamp(150px,26%,240px);
  box-shadow:0 30px 60px -26px rgba(0,0,0,.9),0 0 0 5px rgba(253,248,241,.94),0 0 0 6px rgba(10,26,48,.22);
}
#av-v2 .v2-diva--flat img{aspect-ratio:3/4;object-position:50% 50%}
#av-v2 .v2-diva--flat figcaption{font-size:.56rem;letter-spacing:.14em;padding:1.5rem .5rem .55rem}
/* El sello giraba sobre el cielo claro y se perdía: pasa al mar, que es oscuro. */
#av-v2 .v2-hero__scene .v2-seal{top:auto;bottom:3.6rem;right:1.2rem;color:#f6efe3;filter:drop-shadow(0 3px 8px rgba(0,0,0,.6))}

/* Alternativa segura: la composición de V2.2, también sin inclinación.
   Solo se muestra con ?hero=inspiracion y no afirma que el barco sea el real. */
#av-v2 .v2-hero__scene--alt .v2-cruise{
  position:absolute;right:0;top:50%;
  transform:translateY(-50%);
  width:100%;
}
#av-v2 .v2-hero__scene--alt .v2-cruise figcaption{
  position:absolute;left:0;right:0;bottom:0;
  display:block;padding:1.6rem .95rem .66rem 42%;
  text-align:right;background:linear-gradient(transparent,rgba(4,12,24,.78));
  font-size:.63rem;letter-spacing:.17em;text-transform:uppercase;font-weight:600;
  color:rgba(255,255,255,.92);text-shadow:0 1px 7px rgba(0,0,0,.55);
}
#av-v2 .v2-hero__scene--alt .v2-cruise figcaption b{font-size:inherit;letter-spacing:inherit;color:inherit;font-weight:inherit}

/* ---------- R03 · experiencia equilibrada ----------
   La foto pesaba más que el texto y dejaba un hueco bajo el copy. Se
   estrecha la columna de imagen, se limita su alto y la cita pasa a la
   columna de texto (no se inventa copy: es el mismo texto, reubicado). */
#av-v2 .v2-exp__grid{grid-template-rows:auto 1fr;align-items:start;row-gap:clamp(1.2rem,2vw,1.6rem)}
#av-v2 .v2-exp__head{grid-column:1/7;grid-row:1}
#av-v2 .v2-exp__body{grid-column:1/7;grid-row:2;margin-top:0}
#av-v2 .v2-exp__media{grid-column:8/13;grid-row:1/3;align-self:center;margin-top:0}
#av-v2 .v2-exp__figure img{aspect-ratio:5/6;max-height:min(58vh,520px);object-position:50% 32%}
#av-v2 .v2-exp__quote{
  position:static;right:auto;bottom:auto;
  width:min(100%,400px);
  margin-top:1.15rem;
  background:#fff;
}
#av-v2 .v2-exp__media .v2-exp__tape{left:-.7rem;top:1.1rem}

/* ---------- R04 · tarifas con sección propia ----------
   El itinerario sube; la tabla de precios conserva su bloque y su
   contenido, en una sección hermana con el mismo lenguaje visual. */
#av-v2 .v2-trip--fares{
  background:
    radial-gradient(70% 50% at 100% 0,rgba(199,154,69,.16),transparent 62%),
    linear-gradient(180deg,#0a1a30,#0f2544 55%,#0a1a30);
  color:#fff;
}
#av-v2 .v2-trip--fares .v2-fares{margin-top:0}
/* El tema publica h3{color:#333}: dentro de una sección oscura hay que devolverlo a blanco. */
#av-v2 .v2-trip--fares h3,#av-v2 .v2-trip h3{color:#fff}
#av-v2 .v2-trip--fares .v2-fares h3{font-size:clamp(1.5rem,2.6vw,2rem)}
#av-v2 .v2-trip--fares .v2-fares__head{margin-bottom:1.4rem}

/* ---------- R08/R09 · etiqueta de demo y panel de cambios ----------
   La vista pública (la que ve Ángela) va limpia: ni etiqueta técnica ni panel.
   Ambos se muestran solo con ?evidencias=1, para revisión interna. */
body:not(.av-evidencias) #av-v2 .v2-demo-badge,
body:not(.av-evidencias) #av-v2 .v221-changelog{display:none!important}
#av-v2 .v2-demo-badge{
  display:inline-flex;align-items:center;gap:.4rem;
  max-width:calc(100% - 1rem);
  background:rgba(10,26,48,.82);
  border:1px solid rgba(255,255,255,.22);
  color:#fff;opacity:.92;
  font-size:10px;letter-spacing:.1em;
  border-radius:999px;padding:4px 10px;
}
#av-v2 .v2-demo-badge::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--gold-soft);flex:none}
#av-v2 .v2-demo-badge b{font-weight:700;letter-spacing:.12em}
body.av-clean #av-v2 .v221-changelog{display:none!important}

#av-v2 .v221-changelog{
  background:var(--ink);
  color:#fff;
  padding:0;
}
#av-v2 .v221-changelog details{max-width:var(--shell);margin-inline:auto;padding-block:.2rem}
#av-v2 .v221-changelog summary{
  display:flex;align-items:center;justify-content:flex-start;gap:.8rem;
  cursor:pointer;list-style:none;
  padding:1.15rem .2rem;
  font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;font-weight:700;
  color:var(--gold-soft);
}
#av-v2 .v221-changelog summary::-webkit-details-marker{display:none}
#av-v2 .v221-changelog summary b{font-size:.7rem;color:rgba(255,255,255,.55);letter-spacing:.1em;margin-right:auto}
#av-v2 .v221-changelog summary::after{content:"+";font-size:1.1rem;line-height:1;color:#fff;margin-left:auto}
#av-v2 .v221-changelog details[open] summary::after{content:"–"}
#av-v2 .v221-changelog__body{padding-bottom:1.6rem}
#av-v2 .v221-changelog__body > p{font-size:.84rem;color:rgba(255,255,255,.66);max-width:70ch;margin-bottom:1rem}
#av-v2 .v221-changelog table{min-width:0;font-size:.8rem;border-collapse:collapse;width:100%}
#av-v2 .v221-changelog thead th{
  text-align:left;font-size:.62rem;letter-spacing:.12em;text-transform:uppercase;
  color:rgba(255,255,255,.5);padding:.5rem .6rem;border-bottom:1px solid rgba(255,255,255,.18);
}
#av-v2 .v221-changelog tbody th,
#av-v2 .v221-changelog tbody td{
  text-align:left;vertical-align:top;
  padding:.6rem;border-bottom:1px solid rgba(255,255,255,.09);
  color:rgba(255,255,255,.8);font-weight:400;
}
#av-v2 .v221-changelog tbody th{white-space:nowrap;font-weight:700;color:var(--gold-soft)}
#av-v2 .v221-changelog code{font-family:inherit;font-size:.78rem}
#av-v2 .v221-tag{
  display:inline-block;font-size:.58rem;letter-spacing:.12em;text-transform:uppercase;
  font-weight:700;padding:.2rem .45rem;border-radius:999px;white-space:nowrap;
  border:1px solid currentColor;
}
#av-v2 .v221-tag--aplicado{color:#8fe0b0}
#av-v2 .v221-tag--propuesta{color:#f0c98a}
#av-v2 .v221-tag--pendiente{color:#f4a3bd}
#av-v2 .v221-tag--preparado{color:#a9c8f0}
#av-v2 .v221-tag--verificado{color:#8fe0b0}
#av-v2 .v221-tag--respetado{color:#c9c2e8}
#av-v2 .v221-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- R02 · franja superior de la cabecera Divi ----------
   Solo en las páginas de la V2.2.1 (body.av-quinceaneras.av-v221-page).
   No se toca la plantilla, ni la 2710, ni V1/V2/V2.2.
   Problema medido en V2.2: entre 990 y 1440 px la columna de redes mide
   ~73 px, los dos iconos se apilan y el enlace de WhatsApp rompe en tres
   líneas; la barra pasa de 34 a 98 px de alto. */
@media (min-width: 981px) {
  body.av-quinceaneras.av-v221-page .et_pb_section_0_tb_header{
    height:auto!important;
    padding:0!important;
  }
  body.av-quinceaneras.av-v221-page .et_pb_row_0_tb_header{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:clamp(12px,2vw,28px)!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:9px clamp(16px,2.4vw,34px)!important;
  }
  body.av-quinceaneras.av-v221-page .et_pb_row_0_tb_header::before,
  body.av-quinceaneras.av-v221-page .et_pb_row_0_tb_header::after{content:none!important}
  body.av-quinceaneras.av-v221-page .et_pb_row_0_tb_header > .et_pb_column{
    width:auto!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    float:none!important;
  }
  /* Mensaje informativo: una línea, elipsis si no cabe. */
  body.av-quinceaneras.av-v221-page .et_pb_text_0_tb_header{
    width:auto!important;max-width:none!important;margin:0!important;padding:0!important;flex:1 1 auto;min-width:0;
  }
  body.av-quinceaneras.av-v221-page .et_pb_text_0_tb_header .et_pb_text_inner p{margin:0;line-height:1.2}
  body.av-quinceaneras.av-v221-page .et_pb_text_0_tb_header a{
    display:block;
    font-size:12.5px;line-height:1.25;letter-spacing:.01em;
    color:#f3ece3!important;
    text-decoration:none;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  body.av-quinceaneras.av-v221-page .et_pb_text_0_tb_header a:hover{text-decoration:underline}
  /* Redes: dos círculos en una sola línea. */
  body.av-quinceaneras.av-v221-page .et_pb_social_media_follow_0_tb_header{
    display:flex!important;flex-wrap:nowrap!important;align-items:center!important;
    gap:6px!important;margin:0!important;padding:0!important;flex:0 0 auto;
  }
  body.av-quinceaneras.av-v221-page .et_pb_social_media_follow_0_tb_header li{
    margin:0!important;padding:0!important;float:none!important;display:inline-flex!important;
  }
  body.av-quinceaneras.av-v221-page .et_pb_social_media_follow_0_tb_header li a.icon{
    width:30px!important;height:30px!important;
    display:grid!important;place-items:center;
    border-radius:50%;
    background:rgba(255,255,255,.09)!important;
    color:#fff!important;
    font-size:13px!important;line-height:1!important;
    transition:background-color .2s,transform .2s;
  }
  body.av-quinceaneras.av-v221-page .et_pb_social_media_follow_0_tb_header li a.icon:hover{
    background:var(--rose,#d63a6a)!important;transform:translateY(-1px);
  }
  /* WhatsApp: píldora que nunca se parte. */
  body.av-quinceaneras.av-v221-page .et_pb_text_1_tb_header{
    width:auto!important;margin:0!important;padding:0!important;flex:0 0 auto;white-space:nowrap;
  }
  body.av-quinceaneras.av-v221-page .et_pb_text_1_tb_header .et_pb_text_inner p{margin:0;text-align:right;line-height:1}
  body.av-quinceaneras.av-v221-page .et_pb_text_1_tb_header a{
    display:inline-flex;align-items:center;gap:.4rem;
    background:#25d366;color:#062012!important;
    font-size:12px;font-weight:700;letter-spacing:.01em;
    padding:7px 15px;border-radius:999px;
    text-decoration:none;white-space:nowrap;
    box-shadow:0 8px 18px -10px rgba(37,211,102,.95);
  }
  body.av-quinceaneras.av-v221-page .et_pb_text_1_tb_header a:hover{background:#1fbe5b}
}

/* ≤980 px: se hereda el fix del 21/10 y se afina la franja de esta demo. */
@media (max-width: 980px) {
  body.av-quinceaneras.av-v221-page .et_pb_section_0_tb_header{height:auto!important}
  body.av-quinceaneras.av-v221-page .et_pb_row_0_tb_header{
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    gap:12px!important;flex-wrap:nowrap!important;
    width:100%!important;max-width:none!important;margin:0!important;
    padding:8px 16px!important;
  }
  body.av-quinceaneras.av-v221-page .et_pb_row_0_tb_header > .et_pb_column{
    width:auto!important;max-width:none!important;margin:0!important;padding:0!important;float:none!important;
  }
  body.av-quinceaneras.av-v221-page .et_pb_text_0_tb_header{flex:1 1 auto;min-width:0;margin:0!important;padding:0!important}
  body.av-quinceaneras.av-v221-page .et_pb_text_0_tb_header a{
    display:block;font-size:12px;color:#f3ece3!important;text-decoration:none;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  body.av-quinceaneras.av-v221-page .et_pb_social_media_follow_0_tb_header{
    display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:6px!important;
    margin:0!important;padding:0!important;flex:0 0 auto;
  }
  body.av-quinceaneras.av-v221-page .et_pb_social_media_follow_0_tb_header li{
    margin:0!important;padding:0!important;float:none!important;display:inline-flex!important;
  }
  body.av-quinceaneras.av-v221-page .et_pb_social_media_follow_0_tb_header li a.icon{
    width:28px!important;height:28px!important;display:grid!important;place-items:center;
    border-radius:50%;background:rgba(255,255,255,.09)!important;color:#fff!important;
    font-size:12px!important;line-height:1!important;
  }
  body.av-quinceaneras.av-v221-page .et_pb_text_1_tb_header{flex:0 0 auto;white-space:nowrap;margin:0!important;padding:0!important}
  body.av-quinceaneras.av-v221-page .et_pb_text_1_tb_header .et_pb_text_inner p{margin:0;line-height:1}
  body.av-quinceaneras.av-v221-page .et_pb_text_1_tb_header a{
    display:inline-flex;align-items:center;background:#25d366;color:#062012!important;
    font-size:11.5px;font-weight:700;padding:6px 12px;border-radius:999px;
    text-decoration:none;white-space:nowrap;
  }
}
@media (max-width: 767px) {
  /* La franja de móvil (sección 1) queda en una línea de 46 px. */
  body.av-quinceaneras.av-v221-page .et_pb_section_1_tb_header{height:auto!important;padding:7px 14px!important}
  body.av-quinceaneras.av-v221-page .et_pb_row_1_tb_header{
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    gap:10px!important;flex-wrap:nowrap!important;
    width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
  }
  body.av-quinceaneras.av-v221-page .et_pb_row_1_tb_header > .et_pb_column{
    width:auto!important;margin:0!important;padding:0!important;float:none!important;
  }
  body.av-quinceaneras.av-v221-page .et_pb_social_media_follow_1_tb_header{
    display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:6px!important;
    margin:0!important;padding:0!important;
  }
  body.av-quinceaneras.av-v221-page .et_pb_social_media_follow_1_tb_header li{
    margin:0!important;padding:0!important;float:none!important;display:inline-flex!important;
  }
  body.av-quinceaneras.av-v221-page .et_pb_social_media_follow_1_tb_header li a.icon{
    width:28px!important;height:28px!important;display:grid!important;place-items:center;
    border-radius:50%;background:rgba(255,255,255,.1)!important;color:#fff!important;
    font-size:12px!important;line-height:1!important;
  }
  body.av-quinceaneras.av-v221-page .et_pb_text_2_tb_header{
    width:auto!important;margin:0!important;padding:6px 12px!important;
    border-radius:999px;background:#25d366!important;white-space:nowrap;
  }
  body.av-quinceaneras.av-v221-page .et_pb_text_2_tb_header .et_pb_text_inner{white-space:nowrap;line-height:1}
  body.av-quinceaneras.av-v221-page .et_pb_text_2_tb_header .et_pb_text_inner p{
    margin:0;line-height:1;color:#062012!important;font-size:11.5px;font-weight:700;
  }
}

/* ---------- Ajustes responsive de la V2.2.1 ---------- */
@media (max-width: 1180px) {
  #av-v2 .v2-exp__head,#av-v2 .v2-exp__body{grid-column:1/7}
  #av-v2 .v2-exp__media{grid-column:8/13}
}
@media (max-width: 1024px) {
  #av-v2 .v2-exp__head,#av-v2 .v2-exp__body{grid-column:1/8}
  #av-v2 .v2-exp__media{grid-column:9/13}
  #av-v2 .v2-exp__figure img{max-height:min(52vh,460px)}
}
@media (max-width: 860px) {
  #av-v2 .v2-exp__head{grid-column:1/13;grid-row:auto}
  #av-v2 .v2-exp__body{grid-column:1/13;grid-row:auto}
  #av-v2 .v2-exp__media{grid-column:1/13;grid-row:auto;align-self:start;margin-top:.4rem}
  #av-v2 .v2-exp__figure img{aspect-ratio:4/3;max-height:none;object-position:50% 34%}
  #av-v2 .v2-exp__media .v2-exp__tape{left:0;top:0}
  #av-v2 .v2-hero__scene--alt .v2-cruise{transform:none}
  #av-v2 .v2-hero__scene--alt .v2-cruise figcaption{display:none}
  #av-v2 .v221-changelog summary{font-size:.72rem;letter-spacing:.1em}
  #av-v2 .v221-changelog table,
  #av-v2 .v221-changelog thead,
  #av-v2 .v221-changelog tbody,
  #av-v2 .v221-changelog tr,
  #av-v2 .v221-changelog th,
  #av-v2 .v221-changelog td{display:block;width:100%}
  #av-v2 .v221-changelog thead{display:none}
  #av-v2 .v221-changelog tbody tr{
    border-bottom:1px solid rgba(255,255,255,.12);
    padding:.5rem 0 .7rem;display:grid;gap:.15rem;
  }
  #av-v2 .v221-changelog tbody th,
  #av-v2 .v221-changelog tbody td{border:0;padding:.1rem 0}
  #av-v2 .v221-changelog tbody td:nth-of-type(1){font-weight:700;color:#fff;font-size:.88rem}
  #av-v2 .v221-changelog tbody td:nth-of-type(2){font-size:.78rem;color:rgba(255,255,255,.62)}
}
@media (max-width: 600px) {
  /* Hero móvil: recorte 5:4 del barco real + arco de la quinceañera. */
  #av-v2 .v2-cruise--flat{border-radius:14px}
  #av-v2 .v2-cruise--flat img{aspect-ratio:5/4;object-position:50% 50%}
  #av-v2 .v2-cruise--flat figcaption{padding:.6rem .7rem .65rem calc(38% + .9rem);font-size:.6rem;gap:.15rem .5rem}
  #av-v2 .v2-cruise--flat figcaption b{font-size:.58rem}
  #av-v2 .v2-diva--flat{left:-.2rem;bottom:-1.1rem;width:38%}
  #av-v2 .v2-diva--flat figcaption{font-size:.5rem;padding:1rem .3rem .4rem;letter-spacing:.1em}
  /* El pie de foto ocupa dos o tres líneas: el sello sube para no taparlo. */
  #av-v2 .v2-hero__scene .v2-seal{bottom:5.9rem;right:.7rem;width:58px}
  #av-v2 .v2-hero__scene--alt .v2-cruise{position:relative;top:auto}
  #av-v2 .v2-demo-badge{font-size:9px;letter-spacing:.08em;padding:3px 8px}
  #av-v2 .v2-demo-badge__long{display:none}
  #av-v2 .v221-changelog summary{padding:1rem .1rem}
}
@media (max-width: 380px) {
  #av-v2 .v2-cruise--flat figcaption span{display:none}
}
