:root{
  --bg:#f5f7fb;
  --card:#ffffff;
  --text:#111;
  --muted:#6b7280;
  --line:#e6e8ef;
  --shadow: 0 14px 40px rgba(0,0,0,.08);
  --radius: 22px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  font-size:18px;
  line-height:1.55;
}
.wrap{max-width:1240px;margin:0 auto;padding:0 20px}
a{color:inherit}

/* HEADER */
.header{
  position:sticky; top:0; z-index:1000;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.header__center{
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:18px 0 12px;
  gap:12px;
  position: relative; /* para botón arriba derecha */
}
.logo-link{display:inline-block;cursor:pointer}
.logo-link:hover{opacity:.96}
.logo-principal{width:340px;max-width:92%;height:auto}

.nav--center{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  justify-content:center;
}
.nav--center a{
  text-decoration:none;
  padding:10px 14px;
  border-radius:999px;
  font-weight:650;
}
.nav--center a:hover{background:#f0f2f7}
.nav__cta{
  border:1px solid var(--line);
  background:#fff;
}

/* BOTONES */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid transparent;
  background:#111;
  color:#fff;
  font-weight:800;
  text-decoration:none;
  transition:.12s;
}
.btn--ghost{
  background:#fff;
  color:#111;
  border-color:var(--line);
}
.btn--primary{
  background:linear-gradient(135deg,#111,#2b2b2b);
}
.btn--xl{
  padding:14px 20px;
  font-size:1.05rem;
}
.btn:hover{transform:translateY(-1px)}

/* HERO PRO */
.hero--pro{
  position:relative;
  padding:70px 0 40px;
  overflow:hidden;
}
.hero--pro::before{
  content:"";
  position:absolute;
  inset:-120px;
  background:
    radial-gradient(800px 400px at 20% 20%, rgba(59,130,246,.18), transparent 60%),
    radial-gradient(800px 400px at 85% 35%, rgba(16,185,129,.14), transparent 60%),
    radial-gradient(800px 500px at 55% 80%, rgba(99,102,241,.12), transparent 60%);
}
.hero__grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:22px;
  position:relative;
}
.hero__left--pro,
.hero__right--pro{
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:26px;
  box-shadow:0 20px 60px rgba(0,0,0,.1);
}
.hero__left--pro{padding:38px}
.badge{
  display:inline-flex;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:800;
  margin-bottom: 16px;
}

.dot{
  width:10px;height:10px;border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 6px rgba(34,197,94,.14);
}
.hero__title--pro{
  font-size:3.2rem;
  font-weight:950;
  line-height:1.05;
  margin:16px 0;
}
.hero__title--pro span{
  padding:6px 14px;
  border-radius:14px;
  background:rgba(17,17,17,.06);
}
.hero__subtitle--pro{
  font-size:1.25rem;
  color:#4b5563;
  margin-bottom:22px;
}
.hero__buttons--pro{display:flex;gap:12px;flex-wrap:wrap}
.hero__tags--pro{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:22px;
}
.hero__tags--pro span{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:800;
}

/* DERECHA HERO */
.hero__right--pro{padding:18px}
.gallery{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.gallery img{
  width:100%;
  height:190px;
  object-fit:cover;
  border-radius:18px;
  border:1px solid var(--line);
  display:block;
  transform: translateZ(0);
}
.miniCard{
  margin-top:14px;
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  background:#fff;
}
.miniCard__title{font-weight:900;margin-bottom:6px}
.miniCard__row{font-weight:800}
.sep{opacity:.4;margin:0 6px}

/* SECCIONES */
.section{padding:44px 0}
.section--alt{
  background:rgba(255,255,255,.6);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.section__head h2{font-size:2rem;font-weight:950;margin:0 0 6px}
.section__head p{margin:0;color:var(--muted)}

.contactGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:22px;
  box-shadow:var(--shadow);
}
.info{display:grid;gap:12px;margin-top:12px}
.info__row{
  display:flex;
  justify-content:space-between;
  padding:12px;
  border:1px solid var(--line);
  border-radius:16px;
}
.info__label{color:var(--muted)}
.info__value a{font-weight:950;text-decoration:none}
.row{display:flex;gap:12px;margin-top:14px}

/* MAPA */
.mapEmbed{
  margin-top:12px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
}
.mapEmbed iframe{display:block}
.mapLink{margin-top:10px;font-weight:800}
.mapLink a{text-decoration:none}

/* SELLO CÍES */
.ciesSeal{ padding:44px 0; }
.ciesSeal__card{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:22px;
  align-items:stretch;
  border-radius:26px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:0 18px 55px rgba(0,0,0,.10);
}
.ciesSeal__media{
  min-height:340px;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,.05)),
    url("img/cies.png");
  background-size:cover;
  background-position:center;
}
.ciesSeal__content{
  padding:26px 26px 28px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.ciesSeal__kicker{
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-size:.86rem;
  color:#6b7280;
  margin-bottom:10px;
}
.ciesSeal__title{
  margin:0 0 12px;
  font-weight:950;
  line-height:1.05;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
}
.ciesSeal__text{
  margin:0;
  font-size:1.06rem;
  line-height:1.65;
  color:#111827;
}

/* HISTORIA */
.story{ max-width:980px; }
.story__card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:26px;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
}
.story__card p{
  line-height:1.75;
  font-size:1.05rem;
  margin:0 0 14px;
}

/* SALAS */
.roomGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:28px;
  margin-top:16px;
}
.roomCard{
  border:1px solid var(--line);
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow: var(--shadow);
  padding:0;
  cursor:pointer;
  transition: transform .12s ease;
  text-align:left;
}
.roomCard:hover{ transform: translateY(-2px); }
.roomCard img{width:100%;height:280px;object-fit:cover;display:block}
.roomLabel{display:block;padding:16px 16px;font-weight:950;font-size:1.12rem}

.roomLightbox{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
  z-index:9999;
}
.roomLightbox.isOpen{ display:flex; }
.roomLightbox__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
}
.roomLightbox__panel{
  position:relative;
  width:min(820px, 100%);
  background:#fff;
  border-radius:22px;
  border:1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
  z-index:2;
  padding:16px;
}
.roomLightbox__close{
  position:absolute;
  top:12px;
  right:12px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:14px;
  padding:8px 12px;
  cursor:pointer;
  font-size:18px;
}
.roomLightbox__top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:baseline;
  padding:8px 6px 14px;
}
.roomLightbox__title{ font-weight:950; font-size:1.25rem; }
.roomLightbox__hint{ color:var(--muted); font-size:.95rem; font-weight:800; }
.roomLightbox__content{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:6px;
}
.roomLightbox__img{
  width:100%;
  max-width:760px;
  max-height:60vh;
  object-fit:contain;
  border-radius:18px;
  border:1px solid var(--line);
  background:#fff;
  display:block;
}
.roomLightbox__nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  border:1px solid var(--line);
  background:rgba(255,255,255,.95);
  border-radius:999px;
  width:44px;
  height:44px;
  cursor:pointer;
  font-size:26px;
  line-height:44px;
}
.roomLightbox__nav--left{ left:12px; }
.roomLightbox__nav--right{ right:12px; }
.roomLightbox__actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  padding:14px 6px 6px;
}

/* FOOTER */
.footer{
  padding:20px 0;
  background:#fff;
  border-top:1px solid var(--line);
}
.footer__row{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
}
.muted{color:var(--muted)}

/* RESPONSIVE */
@media (max-width:980px){
  body{font-size:17px}
  .hero__grid{grid-template-columns:1fr}
  .contactGrid{grid-template-columns:1fr}
  .hero__title--pro{font-size:2.4rem}
  .ciesSeal__card{ grid-template-columns:1fr; }
  .ciesSeal__media{ min-height:220px; }
  .ciesSeal__content{ padding:20px 18px 22px; }

  .budgetTopBtn{
    position: static;
    transform:none;
    margin-top: 6px;
  }
}
@media (max-width:1100px){
  .roomGrid{ grid-template-columns: repeat(2, 1fr); }
  .roomCard img{ height:260px; }
}
@media (max-width:600px){
  .roomGrid{ grid-template-columns:1fr; }
  .roomCard img{ height:320px; }
  .story__card{ padding:18px; border-radius:18px; }
}

/* HERO TITLE */
.hero__title--pro,
.hero__title--pro span{
  color:#2f2f2f;
}
.hero__title--pro{
  display:inline;
  background: linear-gradient(
    transparent 22%,
    rgba(230,230,230,.98) 22%,
    rgba(230,230,230,.98) 96%,
    transparent 96%
  );
  padding: 0.28em 0.45em;
  border-radius: 0.65em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero__title--pro span{
  background:none !important;
  padding:0 !important;
}

/* BOTÓN WHATSAPP */
.btn--whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
  font-weight: 800;
  margin-top: 10px;
}
.btn--whatsapp:hover { background: #1ebe5d; }

/* WHATSAPP FLOTANTE */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  z-index: 9999;
  text-decoration: none;
}
.whatsapp-float:hover { background: #1ebe5d; }

/* ===========================
   BOTÓN "PEDIR PRESUPUESTO" (arriba derecha)
   =========================== */
.budgetTopBtn{
  position:absolute;
  right: 0;
  top: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,.30);
  background: linear-gradient(135deg, rgba(37,99,235,.22), rgba(59,130,246,.14));
  color:#0b2a5a;
  font-weight: 950;
  cursor:pointer;
  box-shadow: 0 14px 38px rgba(37,99,235,.18);
  z-index: 2001;
}
.budgetTopBtn:hover{ filter: brightness(1.03); }
/* ===========================
   PANEL PRESUPUESTO
   =========================== */
.budgetBackdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  display:none;
  z-index: 9996;
}
.budgetBackdrop.isOpen{ display:block; }

.budgetPanel{
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: min(360px, 92vw);
  background: #fff;
  border-left: 1px solid rgba(0,0,0,.10);
  box-shadow: -18px 0 55px rgba(0,0,0,.22);
  z-index: 9997;

  transform: translateX(110%);
  transition: transform .18s ease;
  display:flex;
  flex-direction: column;
}
.budgetPanel.isOpen{ transform: translateX(0); }

.budgetPanel__head{
  background: #1d4ed8; /* azul */
  color:#fff;
  padding: 14px 14px;
  display:flex;
  align-items:center;
  justify-content: space-between;
}

.budgetPanel__title{ font-weight: 950; font-size: 1.05rem; }
.budgetPanel__close{
  border: 1px solid rgba(255,255,255,.40);
  background: rgba(255,255,255,.12);
  color:#fff;
  border-radius: 12px;
  padding: 6px 10px;
  cursor:pointer;
  font-weight: 950;
}

.budgetPanel__body{
  padding: 14px;
  overflow: auto;
}

.budgetForm{ display:grid; gap:12px; }

.budgetField input,
.budgetField select{
  width:100%;
  padding: 12px 12px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,.20);
  outline:none;
  font-size: 14px;
  background:#fff;
}
.budgetField input:focus,
.budgetField select:focus{
  border-color: rgba(95,127,46,.75);
  box-shadow: 0 0 0 3px rgba(95,127,46,.15);
}

.budgetPhone{
  display:flex;
  align-items:center;
  gap:10px;
}
.budgetPhone__prefix{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight: 900;
  font-size: 13px;
  padding: 10px 10px;
  border: 1px solid rgba(0,0,0,.20);
  border-radius: 3px;
  background:#fff;
  white-space: nowrap;
}

.budgetQuestion{
  display:grid;
  gap:10px;
  font-size: 13px;
}
.budgetQuestion__label{
  font-weight: 900;
}
.budgetRadio{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 900;
}
.budgetRadio input{
  width: 14px;
  height: 14px;
  accent-color: #5f7f2e;
}

.budgetCheck{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size: 12px;
  line-height: 1.35;
}
.budgetCheck input{
  margin-top: 3px;
  accent-color: #5f7f2e;
}

.budgetSmall{
  font-size: 11px;
  line-height: 1.35;
  color: rgba(0,0,0,.70);
  margin: 0;
}

.budgetSubmit{
  justify-self: start;
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(95,127,46,.55);
  background: rgba(255,255,255,.90);
  color:#2b3a12;
  font-weight: 950;
  cursor:pointer;
}
.budgetSubmit:hover{
  background: rgba(95,127,46,.08);
}
/* ============================
   MÓVIL: arreglar botón presupuesto (NO afecta ordenador)
   ============================ */
@media (max-width: 980px){

  /* deja espacio arriba para que no tape el logo */
  .header__center{
    padding-top: 56px; /* crea hueco arriba SOLO en móvil */
    position: relative;
  }

  /* botón arriba derecha, sin pisar nada */
  .budgetTopBtn{
    position: absolute;
    top: 10px;
    right: 12px;
    transform: none !important;
    z-index: 2001;
  }
}
.footerLegal{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  padding:14px 0 6px;
  align-items:center;
}
.footerLegal a{
  text-decoration:none;
  font-weight:800;
  color: rgba(17,17,17,.85);
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
}
.footerLegal a:hover{ background: rgba(0,0,0,.03); }

@media (max-width: 700px){
  .footerLegal{ gap:10px; }
  .footerLegal a{
    width:100%;
    text-align:center;
  }
}
/* === Panel Idioma: que salga a la IZQUIERDA === */

/* Antes seguramente tenías right: ... y translateX(120%) */
#langPanel {
  left: 16px;          /* o 0 si lo quieres pegado */
  right: auto;
  transform: translateX(-120%);  /* fuera por la izquierda */
}

/* Estado abierto */
#langPanel.isOpen {
  transform: translateX(0);
}