/* Rocas del Mar — Hybrid (base)
   - estilos compartidos: variables, body, header, snap, helpers
   - home agrega estilos por sección inline en index.php
*/
:root{
  --topH:72px;
  --bg0:#071019;
  --bg1:#081727;
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.65);
  --line:rgba(255,255,255,.12);
  --glass:rgba(10,20,28,.48);
  --glass2:rgba(10,20,28,.72);
  --brand:#7fd1ff;
  --btn:#2e7bb4;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(127,209,255,.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(46,123,180,.18), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
}

/* Home con scroll interno */
body.is-snap{ overflow:hidden; }

/* ================= HEADER ================= */
.top{
  position:fixed;
  left:0; right:0; top:0;
  height:var(--topH);
  z-index:1000;
  display:flex;
  align-items:center;
       background: linear-gradient(178deg, rgba(7, 16, 25, .85), rgb(106 126 147 / 85%)) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom:0px!important;
}
.top__in{
  width:min(1400px, calc(100% - 32px));
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:18px;
     
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:260px;
}
.logo{
  width:34px;
  height:34px;
  border-radius:999px;
  background:rgba(127,209,255,.35);
  box-shadow: 0 0 0 1px rgba(127,209,255,.22) inset, 0 10px 26px rgba(0,0,0,.28);
}
.brand b{
  display:block;
  font-size:13px;
  letter-spacing:.08em;
}
.brand span{
  display:block;
  margin-top:2px;
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
}

.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex:1;
  justify-content:center;
  overflow:auto;
  scrollbar-width:none;
}
.nav::-webkit-scrollbar{ display:none; }
.nav a{
  color:rgba(255,255,255,.78);
  text-decoration:none;
  font-size:13px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(10,20,28,.18);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space:nowrap;
}
@media (hover:hover){
  .nav a:hover{
    transform: translateY(-1px);
    background: rgba(10,20,28,.30);
    border-color: rgba(255,255,255,.16);
    color: rgba(255,255,255,.92);
  }
}
.nav a.is-active{
  background: rgba(127,209,255,.18);
  border-color: rgba(127,209,255,.28);
  color: rgba(255,255,255,.94);
}

.ctaRow{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:180px;
  justify-content:flex-end;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:40px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  text-decoration:none;
  color:rgba(255,255,255,.92);
  background:rgba(10,20,28,.32);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  font-size:13px;
  white-space:nowrap;
}
.btn--primary{
  background: rgba(46,123,180,.35);
  border-color: rgba(127,209,255,.18);
}
@media (hover:hover){
  .btn:hover{
    transform: translateY(-1px);
    background: rgba(10,20,28,.42);
    border-color: rgba(255,255,255,.18);
  }
  .btn--primary:hover{
    background: rgba(46,123,180,.45);
    border-color: rgba(127,209,255,.26);
  }
}

@media (max-width: 920px){
  .brand{ min-width:auto; }
  .brand span{ display:none; }
  .nav{ justify-content:flex-start; }
}

/* ================= CHAPTERS (solo si existe #chapters) ================= */
#chapters{
  height:100vh;
  overflow-y:auto;
  overflow-x:hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior:smooth;
  position:relative;
}

/* Los capítulos los vas pegando vos dentro de #chapters */
.chapter{
  min-height:100vh;
  scroll-snap-align:start;
  scroll-snap-stop:always;
  padding: calc(var(--topH) + 36px) 0 64px;
  position:relative;
}

/* helpers */
.container{
  width:min(1200px, calc(100% - 36px));
  margin:0 auto;
}
.panel{
  background: var(--glass);
  border:1px solid var(--line);
  border-radius:20px;
  padding:22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
}

/* dots/pips (home) */
.pips{
  position:fixed;
  right:16px;
  top:50%;
  transform: translateY(-50%);
  z-index:999;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:10px 8px;
  border-radius:999px;
  background: rgba(10,20,28,.35);
  border:1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pDot{
  width:10px; height:10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.pDot.on{
  background: rgba(127,209,255,.55);
  border-color: rgba(127,209,255,.55);
  transform: scale(1.15);
}
@media (max-width: 920px){
  .pips{ display:none; }
}

/* reveal */
.reveal{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.in{
  opacity:1;
  transform: translateY(0);
}
/* ===== Mobile burger + modal ===== */
.burger{
  display:none;
  width:44px;height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:0 12px;
}
.burger span{
  display:block;
  width:18px;height:2px;
  background: rgba(255,255,255,.86);
  border-radius:2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* Modal */
.mnav{
  position:fixed;
  inset:0;
  z-index:999999;
  display:none;
}
.mnav.is-open{ display:block; }

.mnav__overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mnav__panel{
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%,-50%);
  width:min(520px, calc(100vw - 28px));
  border-radius:26px;
  background: rgba(10,20,28,.78);
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 28px 110px rgba(0,0,0,.55);
  overflow:hidden;
}

.mnav__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.mnav__brand{
  display:flex;
  align-items:center;
  gap:10px;
  color: rgba(255,255,255,.92);
}
.mnav__close{
  width:40px;height:40px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.9);
  cursor:pointer;
}

.mnav__links{
  display:flex;
  flex-direction:column;
  padding:10px 12px;
}
.mnav__links a{
  padding:12px 12px;
  border-radius:14px;
  color: rgba(255,255,255,.92);
  text-decoration:none;
  border:1px solid transparent;
}
.mnav__links a:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
}

.mnav__actions{
  padding:12px 16px 16px;
  border-top:1px solid rgba(255,255,255,.10);
  display:flex;
  gap:10px;
}

body.mnav-lock{ overflow:hidden; }

/* Responsive header */
@media (max-width:980px){
  /* ajustá estos selectores según tu header real */
  .top .nav{ display:none !important; }
  .burger{ display:inline-flex; }
}


/*arreglo logooooo*/
/* ===== FIX LOGO HEADER: grande y sin círculo ===== */
.top .logo{
  width: clamp(200px, 38vw, 340px);
  height: clamp(56px, 6vw, 60px);
  border-radius: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Logo del modal móvil (tu inline trae 34px) */
.mnav__logo{
  width: 56px !important;
  height: 56px !important;
  border-radius: 0 !important;
}

@media (max-width: 920px){
  .top .logo{
    width: clamp(170px, 48vw, 280px);
    height: 56px;
  }
}















.ni-ws-float{
  position:fixed;
  left:18px;
  bottom:18px;
  width:58px;
  height:58px;
  border-radius:999px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 28px rgba(0,0,0,.18);
  z-index:9999;
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  color:#25D366;
}

.ni-ws-float:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 34px rgba(0,0,0,.22);
}

.ni-ws-float__icon{
  width:28px;
  height:28px;
  display:block;
}

@media (max-width:768px){
  .ni-ws-float{
    left:14px;
    bottom:14px;
    width:54px;
    height:54px;
  }

  .ni-ws-float__icon{
    width:26px;
    height:26px;
  }
}











/* FIX botón flotante de WhatsApp en mobile */
@media (max-width: 767px) {
  body > a[href*="wa.me"],
  body > a[href*="api.whatsapp.com"],
  body > a[href*="whatsapp.com"] {
    position: fixed !important;
    left: 14px !important;   /* lo mando a la izquierda para no chocar con Tawk */
    right: auto !important;
    bottom: 16px !important;
    top: auto !important;

    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    z-index: 999999 !important;
    line-height: 1 !important;
  }

  body > a[href*="wa.me"] img,
  body > a[href*="wa.me"] svg,
  body > a[href*="wa.me"] i,
  body > a[href*="api.whatsapp.com"] img,
  body > a[href*="api.whatsapp.com"] svg,
  body > a[href*="api.whatsapp.com"] i,
  body > a[href*="whatsapp.com"] img,
  body > a[href*="whatsapp.com"] svg,
  body > a[href*="whatsapp.com"] i {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    display: block !important;
    object-fit: contain !important;
    transform: none !important;
  }

  body > a[href*="wa.me"]::before,
  body > a[href*="api.whatsapp.com"]::before,
  body > a[href*="whatsapp.com"]::before {
    font-size: 28px !important;
    line-height: 1 !important;
  }
}