/* ==========================================================
   PL - REFRESH TEMPORADA 2027
   Solo overrides sobre pl.css (plantilla clasica pl.php). Lo carga pl-head.php
   (activo con $pl_verano en pl.php). pl-plus.php NO carga pl.css: no le afecta.
   La cinta de temporada la arma pl-temporada.php (segun la fecha).
   ========================================================== */

/* 0. TOKENS (misma familia que pl-plus.css: radio 14, sombra suave, verde WSP 5.4:1) */
:root {
  --plv-mar: #0b6e7a;        /* turquesa profundo: blanco encima 5.9:1 */
  --plv-mar-claro: #e3f3f3;  /* agua clara, fondos suaves */
  --plv-arena: #faf7f0;      /* arena: fondo de tarjetas */
  --plv-sol: #f2a541;        /* sol: solo decorativo, nunca texto */
  --plv-coral: #b4471f;      /* coral oscurecido: texto/acento 5.3:1 */
  --plv-tinta: #1f2a30;
  --plv-tinta-2: #4a565c;    /* 7:1 sobre blanco */
  --plv-linea: #e4e8e8;
  --plv-wsp: #0d7a3e;        /* = --plp-wsp de pl-plus */
  --plv-wsp-hover: #0a6232;
  --plv-radio: 14px;
  --plv-radio-sm: 10px;
  --plv-sombra: 0 1px 2px rgba(31,42,48,.06), 0 8px 24px rgba(31,42,48,.09);
  --plv-sombra-hover: 0 2px 4px rgba(31,42,48,.08), 0 14px 32px rgba(31,42,48,.14);
}

/* 1. MOVIMIENTO: fuera el "transition: all" global (pesa en celulares y hace saltar el layout).
      Transiciones solo donde suman. */
*:not(.pswp__container):not(.pswp__item) {
  -o-transition: none; -moz-transition: none; -webkit-transition: none; transition: none;
}
a, .btn, .form-control, .pl-alo-box, .gal-thumb, .plv-chip {
  -webkit-transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s, -webkit-transform .2s;
  transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.pl-slider .img-wrapp img { -webkit-transition: -webkit-transform .6s ease; transition: transform .6s ease; }

/* 2. TIPOGRAFIA: titulos en Nunito (redondeada, playera), cuerpo sigue en Lato pero mas grande */
body {
  color: var(--plv-tinta);
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3, h4, .pl-tit, .alo-tit, .modal-title {
  font-family: 'Nunito', 'Lato', sans-serif;
  color: var(--plv-tinta);
  letter-spacing: -.01em;
}
.pl-col-data .pl-tit { font-size: 44px; font-weight: 800; line-height: 1.1; margin-bottom: 6px; }
.pl-col-data .pl-place { color: var(--plv-tinta-2); font-size: 15px; }
.pl-col-data .pl-place .fa { color: var(--plv-coral); margin-right: 4px; }
.pl-col-data .pl-deta { margin-top: 24px; }
.pl-alos h2, .pl-col-data > h2 { font-size: 26px; font-weight: 800; }

/* 3. HEADER: tira "mar - arena - sol" bajo el logo */
.navbar-default {
  background: #fff;
  border: 0;
  border-radius: 0;
  margin-bottom: 0;
  box-shadow: none;
}
.navbar-default:after {
  content: "";
  display: block;
  clear: both;
  height: 4px;
  margin: 0 -15px;
  background: linear-gradient(90deg, var(--plv-mar) 0%, #3fb6b2 45%, var(--plv-sol) 80%, var(--plv-coral) 100%);
}

/* 4. HERO: fotos separadas por blanco, esquinas redondeadas, mas alto en escritorio */
.pl-slider { background: #fff; padding: 6px 0 0; height: auto; }
.pl-slider .slider-h { height: 360px; }
.pl-slider .row.display-flex > [class*='col-'] { padding: 0 3px; }
.pl-slider .img-wrapp {
  border: 0;
  border-radius: var(--plv-radio-sm);
  margin-bottom: 6px;
  background: var(--plv-mar-claro);
}
.pl-slider .img-wrapp.img-2 { height: calc(50% - 3px); }
.pl-slider .img-wrapp.img-2 + .img-wrapp.img-2 { margin-bottom: 0; }
.pl-slider .img-wrapp img { width: 100%; height: 100%; object-fit: cover; }
.pl-slider .img-wrapp:hover img { -webkit-transform: scale(1.04); transform: scale(1.04); }

/* 5. CINTA DE TEMPORADA (markup de pl-temporada.php, arriba del titulo) */
.pl-col-data .pl-cinta {
  display: table;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff4e3;
  color: var(--plv-coral);
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pl-col-data .pl-cinta .fa { color: var(--plv-sol); margin-right: 4px; }

/* 6. LISTAS: check propio en turquesa (sin la imagen check.png pixelada) */
.pl-col-data ul { padding-left: 4px; }
.pl-col-data ul li {
  list-style: none;
  position: relative;
  padding-left: 28px;
  margin-bottom: 4px;
}
.pl-col-data ul li:before {
  content: "\f00c";
  font-family: 'FontAwesome';
  position: absolute;
  left: 0; top: 3px;
  width: 19px; height: 19px;
  line-height: 19px;
  text-align: center;
  font-size: 11px;
  border-radius: 50%;
  background: var(--plv-mar-claro);
  color: var(--plv-mar);
}

/* 7. TARJETAS DE DEPARTAMENTOS: fondo agua clara con filete turquesa (el blanco quedaba sobrio) */
.pl-alos { border-top: 0; }
.pl-alos .pl-alo-box {
  background: linear-gradient(135deg, #eef8f7 0%, var(--plv-arena) 100%);
  border: 1px solid #d5ebe9;
  border-left: 5px solid var(--plv-mar);
  border-radius: var(--plv-radio);
  box-shadow: var(--plv-sombra);
  overflow: hidden;
  padding: 15px 20px;
  margin-bottom: 24px;
}
.pl-alos .pl-alo-box:hover { box-shadow: var(--plv-sombra-hover); -webkit-transform: translateY(-2px); transform: translateY(-2px); }
.pl-alos .pl-alo-box .alo-imgs { margin: -15px 0 -15px -20px; }
.pl-alos .pl-alo-box .alo-imgs .row-thumb { gap: 2px; margin-bottom: 2px; }
.pl-alos .pl-alo-box .alo-imgs .cont-alo-thumb { background: var(--plv-mar-claro); }
.pl-alos .pl-alo-box .alo-imgs .alo-thumb-fix { padding: 0; height: 100%; object-fit: cover; }
.pl-alos .alo-data { padding-top: 10px; }
.pl-alos .alo-tit { font-size: 22px; font-weight: 800; margin-top: 10px; color: var(--plv-mar); }
.pl-alos .alo-data p { color: var(--plv-tinta-2); }
.pl-alos .alo-data p:before { content: "\f0c0"; font-family: 'FontAwesome'; color: var(--plv-mar); margin-right: 8px; }

/* 8. BOTONES */
.btn { border-radius: 999px; font-weight: 700; }
/* "Ver Fotos": turquesa lleno (distinto del verde de WhatsApp, que sigue siendo el principal) */
.alo-data .btn-success {
  background: var(--plv-mar);
  color: #fff;
  border: 2px solid var(--plv-mar);
  padding: 7px 18px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(11,110,122,.25);
}
.alo-data .btn-success:before { content: "\f030"; font-family: 'FontAwesome'; margin-right: 6px; font-weight: normal; }
.alo-data .btn-success:hover, .alo-data .btn-success:focus { background: #095a64; color: #fff; border-color: #095a64; }
/* WhatsApp y enviar: verde accesible (blanco 5.4:1, el #5cb85c actual da 2.5:1) */
.pl-wsp-link.btn-success, .pl-col-form .btn-success, .pl-form #contactForm .btn-submit {
  background: var(--plv-wsp);
  border-color: var(--plv-wsp);
  color: #fff;
  padding: 12px 18px;
  font-size: 16px;
}
.pl-wsp-link.btn-success:hover, .pl-col-form .btn-success:hover, .pl-form #contactForm .btn-submit:hover {
  background: var(--plv-wsp-hover);
  border-color: var(--plv-wsp-hover);
  color: #fff;
}
.btn:focus, .form-control:focus, a:focus { outline: 3px solid rgba(11,110,122,.35); outline-offset: 2px; }

/* 9. COLUMNA DE CONTACTO: tarjetas con aire, campos redondeados */
.pl-col-form .pl-form, .pl-col-form .pl-anfitrion {
  border: 1px solid var(--plv-linea);
  border-radius: var(--plv-radio);
  box-shadow: var(--plv-sombra);
  background: #fff;
  padding: 24px;
}
.pl-col-form .pl-form h4, .pl-col-form .pl-anfitrion h4 { font-size: 20px; font-weight: 800; }
.pl-col-form .pl-form h4:first-child { margin-top: 0; }
.pl-col-form .pl-form hr { border-color: var(--plv-linea); }
.pl-col-form .d-pld-tel { color: var(--plv-tinta); font-weight: 700; }
.pl-col-form .d-pld-tel .fa { color: var(--plv-mar); }
.pl-col-form .pl-anfitrion .pl-anf-foto { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--plv-sol); }
.pl-col-form .pl-anfitrion .pl-anf-sub { color: var(--plv-tinta-2); }
.pl-col-form .pl-anfitrion .pl-anf-val { color: #b97a0c; }
label { font-size: 14px; font-weight: 700; color: var(--plv-tinta); }
.form-control { border-radius: var(--plv-radio-sm); border-color: #cfd6d8; }
.form-control:focus { border-color: var(--plv-mar); box-shadow: 0 0 0 3px rgba(11,110,122,.15); outline: 0; }
.pl-col-form img.img-responsive { border-radius: var(--plv-radio-sm); }
#map { border-radius: var(--plv-radio); }

/* 10. FOOTER */
footer .copyright { color: var(--plv-tinta-2); }

/* 11. MOBILE FIRST */
@media (min-width: 768px) and (max-width: 1199px) {
  .pl-slider .slider-h { height: 280px; }
}
@media (max-width: 767px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .container { padding-left: 12px; padding-right: 12px; }
  .pl-slider .slider-h { height: 240px; }
  .pl-col-data { padding: 20px 6px; }
  .pl-col-data .pl-tit { font-size: 32px; }
  .pl-col-form { padding: 6px; }
  .pl-alos .pl-alo-box { padding: 0 0 16px; }
  .pl-alos .pl-alo-box .alo-imgs { margin: 0; }
  .pl-alos .alo-data { padding: 4px 18px 0; }
  /* WhatsApp flotante -> barra fija con texto (CSS puro, mismo <a> y mismo tracking) */
  #whatsapp-icon {
    left: 12px !important; right: 12px !important; bottom: 12px !important;
    padding: 0 !important;
  }
  #whatsapp-icon a {
    display: block;
    background: var(--plv-wsp);
    color: #fff;
    border-radius: 999px;
    padding: 9px 16px;
    font-weight: 700;
    font-size: 17px;
    line-height: 34px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(13,122,62,.35);
    padding-bottom: calc(9px + env(safe-area-inset-bottom, 0px));
  }
  #whatsapp-icon a img { width: 34px; height: 34px; vertical-align: middle; margin-right: 6px; }
  #whatsapp-icon a:after { content: "Consultar por WhatsApp"; vertical-align: middle; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .pl-alos .pl-alo-box:hover { transform: none; }
}

/* ajustes: boton WSP de la cabecera de contacto (columna angosta) */
.box-btn-calls .btn { padding: 10px 12px; font-size: 15px; white-space: normal; }
@media (max-width: 767px) {
  .pl-alos .pl-alo-box .alo-data { padding: 4px 30px 0; }
}

/* 12. MODAL DE FOTOS (#pl-modal-gal de pl-foot.php): grilla pareja, encabezado fijo, pantalla
       completa en el celular. Al tocar una foto sigue abriendo PhotoSwipe (jqPhotoSwipe). */
#pl-modal-gal .modal-dialog { width: auto; max-width: 1100px; margin: 30px auto; padding: 0 15px; }
#pl-modal-gal .modal-content { border: 0; border-radius: var(--plv-radio); box-shadow: 0 20px 60px rgba(31,42,48,.35); }
#pl-modal-gal .modal-header {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 2;
  background: #fff;
  border-bottom: 0;
  padding: 16px 20px 14px;
  border-radius: var(--plv-radio) var(--plv-radio) 0 0;
}
#pl-modal-gal .modal-header:after {
  content: ""; display: block; clear: both; height: 4px; margin: 14px -20px -14px;
  background: linear-gradient(90deg, var(--plv-mar) 0%, #3fb6b2 45%, var(--plv-sol) 80%, var(--plv-coral) 100%);
}
#pl-modal-gal .modal-title { font-size: 26px; font-weight: 800; margin: 0; padding-right: 50px; line-height: 1.2; }
#pl-modal-gal .close {
  position: absolute; top: 12px; right: 14px;
  width: 40px; height: 40px; margin: 0;
  border-radius: 50%;
  background: var(--plv-mar-claro);
  color: var(--plv-mar);
  font-size: 28px; line-height: 38px; text-align: center;
  opacity: 1; text-shadow: none;
}
#pl-modal-gal .close:hover, #pl-modal-gal .close:focus { background: var(--plv-mar); color: #fff; }
#pl-modal-gal .modal-body { padding: 6px 20px 24px; background: var(--plv-arena); border-radius: 0 0 var(--plv-radio) var(--plv-radio); }
#pl-modal-gal .pl-galeria .pla-tit {
  margin: 22px 0 10px !important;
  padding-left: 10px;
  border-left: 4px solid var(--plv-mar);
  font-size: 20px; font-weight: 800; color: var(--plv-mar);
  scroll-margin-top: 90px;
}
#pl-modal-gal .pl-galeria p { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; }
#pl-modal-gal .pl-galeria .gal-thumb {
  display: block; max-width: none; padding: 0; border: 0;
  aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--plv-radio-sm);
  background: var(--plv-mar-claro);
  box-shadow: 0 1px 3px rgba(31,42,48,.12);
}
#pl-modal-gal .pl-galeria .gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-transition: -webkit-transform .4s ease; transition: transform .4s ease; }
#pl-modal-gal .pl-galeria .gal-thumb:hover img, #pl-modal-gal .pl-galeria .gal-thumb:focus img { -webkit-transform: scale(1.06); transform: scale(1.06); }
#pl-modal-gal .pl-galeria .gal-thumb-text { display: none; }
.modal-backdrop.in { opacity: .75; }
/* PhotoSwipe: leyenda en turquesa en vez del naranja */
.pswp .pswp__caption__center { background: rgba(11,110,122,.9); font-family: 'Nunito', 'Lato', sans-serif; font-weight: 700; font-size: 18px; border-radius: 999px; display: table; margin: 0 auto 10px; padding: 6px 18px; }
@media (max-width: 767px) {
  #pl-modal-gal .modal-dialog { margin: 0; padding: 0; }
  #pl-modal-gal .modal-content, #pl-modal-gal .modal-header, #pl-modal-gal .modal-body { border-radius: 0; }
  #pl-modal-gal .modal-content { min-height: 100vh; }
  #pl-modal-gal .modal-title { font-size: 21px; }
  #pl-modal-gal .modal-body { padding: 4px 12px 90px; }
  #pl-modal-gal .pl-galeria p { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}
