/* ---------- Base ---------- */
:root{
  --black: #0d0d0c;
  --near-black: #141412;
  --cream: #f4efe7;
  --cream-dark: #e8e0d2;
  --gold: #c9a768;
  --gold-light: #d9bd8b;
  --white: #f8f6f2;
  --grey-text: #b9b6ae;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Jost', sans-serif;
}

*{margin:0;padding:0;box-sizing:border-box;}

html{scroll-behavior:smooth;}

body{
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--white);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

img{display:block;max-width:100%;}

a{color:inherit;text-decoration:none;}

.container{
  max-width:1280px;
  margin:0 auto;
  padding:0 40px;
}

h1,h2,h3{
  font-family: var(--font-serif);
  font-weight:500;
  letter-spacing:0.5px;
}

.eyebrow{
  display:block;
  color:var(--gold);
  font-size:0.78rem;
  letter-spacing:2.5px;
  font-weight:500;
  margin-bottom:10px;
}

.arrow{display:inline-block;transition:transform .25s ease;}
a:hover .arrow{transform:translateX(5px);}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:16px 30px;
  font-size:0.78rem;
  letter-spacing:2px;
  font-weight:500;
  border-radius:2px;
  transition:all .25s ease;
  white-space:nowrap;
}

.btn-gold{
  background: var(--gold);
  color: var(--black);
}
.btn-gold:hover{ background: var(--gold-light); }

.btn-outline{
  border:1px solid rgba(248,246,242,0.4);
  color: var(--white);
  background:transparent;
}
.btn-outline:hover{
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- Header ---------- */
.site-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:100;
  background: linear-gradient(to bottom, rgba(13,13,12,0.85), rgba(13,13,12,0));
  padding:22px 0;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.logo{
  display:flex;
  flex-direction:column;
  line-height:1;
  flex-shrink:0;
}
.logo-main{
  font-family: var(--font-serif);
  font-size:1.5rem;
  letter-spacing:4px;
  font-weight:600;
}
.logo-sub{
  font-size:0.55rem;
  letter-spacing:5px;
  color:var(--grey-text);
  margin-top:4px;
}

.main-nav{
  display:flex;
  gap:34px;
  flex:1;
  justify-content:center;
}
.main-nav a{
  font-size:0.75rem;
  letter-spacing:1.5px;
  color: var(--grey-text);
  padding-bottom:6px;
  border-bottom:1px solid transparent;
  transition:color .2s ease, border-color .2s ease;
}
.main-nav a:hover,
.main-nav a.active{
  color: var(--white);
  border-color: var(--gold);
}

.header-cta{padding:13px 24px;}

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:6px;
}
.nav-toggle span{
  width:24px;height:2px;background:var(--white);display:block;
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  overflow:hidden;
}

.hero-image{
  position:absolute;
  inset:0;
  z-index:0;
}
.hero-image img{
  width:100%;height:100%;object-fit:cover;object-position: 70% 50%;
  filter:blur(16px);
  transform:scale(1.09);
  animation: heroImageFocus .75s cubic-bezier(.22,.68,.2,1) forwards;
  animation-delay:.45s;
}
.hero-image-overlay{
  position:absolute;inset:0;
  background: linear-gradient(90deg, rgba(13,13,12,0.96) 0%, rgba(13,13,12,0.78) 32%, rgba(13,13,12,0.15) 60%, rgba(13,13,12,0.35) 100%);
}

@keyframes heroImageFocus{
  to{ filter:blur(0); transform:scale(1); }
}

/* ---------- Hero reveal intro: wipe tipo "plano técnico" ---------- */
.hero-reveal{
  position:absolute;
  inset:0;
  z-index:6;
  background:var(--black);
  display:flex;
  align-items:center;
  justify-content:center;
  transform:translateX(0);
  animation: heroWipeOff .6s cubic-bezier(.6,0,.15,1) forwards;
  animation-delay:.55s;
}
.hero-reveal-grid{
  position:absolute;
  inset:0;
  width:100%;height:100%;
  stroke:var(--gold);
  stroke-width:0.15;
  opacity:0;
  animation: heroGridFade .35s ease forwards;
  animation-delay:.05s;
}
.hero-reveal-mark{
  position:relative;
  width:110px;height:110px;
  stroke:var(--gold);
  opacity:.9;
}
.hero-reveal-mark path{
  stroke-dasharray:340;
  stroke-dashoffset:340;
  animation: heroMarkDraw .5s ease-out forwards;
  animation-delay:.08s;
}

@keyframes heroGridFade{ to{ opacity:0.5; } }
@keyframes heroMarkDraw{ to{ stroke-dashoffset:0; } }
@keyframes heroWipeOff{ to{ transform:translateX(101%); } }

html.intro-played .hero-reveal{ display:none; }
html.intro-played .hero-image img{ animation:none; filter:none; transform:scale(1); }

.hero-content{
  position:relative;
  z-index:1;
  padding-top:100px;
  max-width:680px;
}

.hero h1{
  font-size:clamp(2.6rem, 5.2vw, 4.4rem);
  line-height:1.05;
  color:var(--white);
}

.hero-line{
  display:block;
  opacity:0;
  filter:blur(10px);
  transform: translateX(-90px);
  animation: heroLineIn .6s cubic-bezier(.16,.84,.24,1) forwards;
}
.hero-line-1{ animation-delay: .8s; }
.hero-line-2{ animation-delay: .95s; }
.hero-line-3{ animation-delay: 1.1s; }

@keyframes heroLineIn{
  to{ opacity:1; filter:blur(0); transform: translateX(0); }
}

.hero-fade-up{
  opacity:0;
  transform: translateY(18px);
  animation: heroFadeUp .9s ease forwards;
}
.hero-highlight.hero-fade-up{ animation-delay: 1.4s; }
.hero-text.hero-fade-up{ animation-delay: 1.55s; }
a.btn.hero-fade-up{ animation-delay: 1.7s; }

@keyframes heroFadeUp{
  to{ opacity:1; transform: translateY(0); }
}

html.intro-played .hero-line{ animation:none; opacity:1; filter:none; transform:none; }
html.intro-played .hero-fade-up{ animation:none; opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  .hero-reveal{ display:none; }
  .hero-image img{ animation:none; filter:none; transform:scale(1); }
  .hero-line, .hero-fade-up{ animation:none; opacity:1; filter:none; transform:none; }
}

.hero-highlight{
  font-family: var(--font-serif);
  font-size:clamp(1.3rem, 2.4vw, 1.8rem);
  color:var(--gold);
  margin:14px 0 22px;
  letter-spacing:1px;
}

.hero-text{
  max-width:420px;
  color:var(--grey-text);
  font-size:1rem;
  margin-bottom:36px;
}

.hero-vertical-text{
  position:absolute;
  right:36px;
  top:50%;
  transform:translateY(-50%) rotate(180deg);
  writing-mode:vertical-rl;
  font-size:0.7rem;
  letter-spacing:4px;
  color:rgba(248,246,242,0.55);
  z-index:1;
}

/* ---------- Features ---------- */
.features{
  background: var(--near-black);
  padding:56px 0;
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.features-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
}
.feature{
  text-align:center;
  padding:0 24px;
  position:relative;
}
.feature + .feature::before{
  content:"";
  position:absolute;
  left:0; top:10px; bottom:10px;
  width:1px;
  background:rgba(255,255,255,0.08);
}
.feature-icon{
  width:44px;height:44px;
  margin:0 auto 16px;
  color:var(--gold);
}
.feature-icon svg{width:100%;height:100%;}
.feature h3{
  font-family:var(--font-sans);
  font-size:0.85rem;
  letter-spacing:2px;
  font-weight:600;
  margin-bottom:8px;
}
.feature p{
  font-size:0.85rem;
  color:var(--grey-text);
}

/* ---------- Nosotros ---------- */
.nosotros{
  background: var(--cream);
  color: var(--black);
  padding:90px 0;
}
.nosotros-grid{
  display:grid;
  grid-template-columns:1fr 1.1fr;
  gap:60px;
  align-items:start;
}
.nosotros-image{
  border-radius:2px;
  overflow:hidden;
  aspect-ratio:4/3;
}
.nosotros-image img{width:100%;height:100%;object-fit:cover;}
@media (min-width:1001px){
  .nosotros-image{ position:sticky; top:110px; }
}
.nosotros-text h2{
  font-size:clamp(1.8rem, 3.2vw, 2.6rem);
  color:var(--black);
  margin-bottom:20px;
}
.nosotros-text p{
  color:#5c584e;
  max-width:520px;
  margin-bottom:16px;
}
.nosotros-subhead{
  font-family:var(--font-sans);
  font-size:0.78rem;
  letter-spacing:2px;
  font-weight:600;
  color:#8a6a2e;
  margin:28px 0 16px;
}
.checklist{
  list-style:none;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 20px;
  max-width:520px;
  margin-bottom:24px;
}
.checklist li{
  display:flex;
  align-items:flex-start;
  gap:9px;
  font-size:0.86rem;
  color:#5c584e;
}
.checklist li svg{
  width:15px;height:15px;
  flex-shrink:0;
  margin-top:3px;
  color:#8a6a2e;
}
.nosotros-quote{
  border-left:3px solid var(--gold);
  padding-left:18px;
  font-family:var(--font-serif);
  font-style:italic;
  font-size:1.15rem;
  color:var(--black);
  max-width:480px;
  margin:8px 0 18px;
}
.nosotros-alcance{
  font-size:0.86rem;
  color:#7a7568;
  max-width:480px;
  margin-bottom:28px;
}
.btn-outline-dark{
  border-color:rgba(13,13,12,0.35);
  color:var(--black);
}
.btn-outline-dark:hover{
  border-color:var(--gold);
  color:#8a6a2e;
}

/* ---------- Servicios ---------- */
.servicios{
  background: var(--black);
  padding:100px 0;
}
.servicios-intro{
  color:var(--grey-text);
  max-width:640px;
  margin-top:-16px;
  margin-bottom:40px;
}
.servicios-subhead{
  font-family:var(--font-sans);
  font-size:0.78rem;
  letter-spacing:2px;
  font-weight:600;
  color:var(--gold);
  margin-bottom:14px;
}
.servicios-subhead-proceso{
  margin-top:50px;
}
.servicios-categorias{
  color:var(--grey-text);
  max-width:640px;
  margin-bottom:20px;
}
.servicios-categorias strong{
  color:var(--white);
  font-weight:600;
}
.servicios-otros-label{
  font-size:0.82rem;
  color:var(--grey-text);
  margin-bottom:14px;
}
.servicios-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.servicios-tags span{
  border:1px solid rgba(255,255,255,0.15);
  padding:8px 16px;
  border-radius:20px;
  font-size:0.8rem;
  color:var(--grey-text);
}
.servicios-steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:36px;
  margin-bottom:56px;
}
.paso-numero{
  display:block;
  font-family:var(--font-serif);
  font-size:2.1rem;
  color:var(--gold);
  margin-bottom:14px;
}
.paso h4{
  font-family:var(--font-sans);
  font-size:0.82rem;
  letter-spacing:1.5px;
  font-weight:600;
  color:var(--white);
  margin-bottom:10px;
}
.paso p{
  font-size:0.88rem;
  color:var(--grey-text);
}
.servicios-gallery{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-bottom:56px;
}
.servicios-gallery img{
  width:100%;
  height:320px;
  object-fit:cover;
  border-radius:2px;
}
.servicios-info{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:40px;
  padding-top:46px;
  border-top:1px solid rgba(255,255,255,0.08);
}
.servicios-info h4{
  font-size:0.75rem;
  letter-spacing:1.5px;
  color:var(--gold);
  margin-bottom:12px;
  font-weight:600;
}
.servicios-info p{
  font-size:0.86rem;
  color:var(--grey-text);
}

/* ---------- Productos ---------- */
.productos{
  background: var(--cream);
  color: var(--black);
  padding:90px 0;
}
.section-heading{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin-bottom:44px;
  gap:20px;
  flex-wrap:wrap;
}
.productos h2{
  font-size:clamp(1.8rem, 3.2vw, 2.6rem);
  color:var(--black);
}
.link-arrow{
  font-size:0.78rem;
  letter-spacing:1.5px;
  font-weight:500;
  color:var(--black);
  padding-bottom:4px;
  border-bottom:1px solid var(--black);
}

.productos-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:20px;
}
.producto-card{
  position:relative;
  aspect-ratio:3/4;
  overflow:hidden;
  border-radius:2px;
  display:block;
  background:#1c1c1a;
}
.producto-card img{
  position:absolute;inset:0;
  width:100%;height:100%;object-fit:cover;
  transition:transform .5s ease;
}
.producto-card:hover img{transform:scale(1.06);}
.producto-overlay{
  position:absolute;inset:0;
  background:linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.05) 55%);
}
.producto-icon{
  position:absolute;
  top:18px;left:18px;
  width:34px;height:34px;
  color:var(--gold-light);
}
.producto-icon svg{width:100%;height:100%;}
.producto-label{
  position:absolute;
  left:18px; bottom:16px;
  font-size:0.82rem;
  letter-spacing:1.5px;
  font-weight:500;
  color:var(--white);
}

/* ---------- Proyectos a medida ---------- */
.proyectos{
  background: var(--black);
  padding:100px 0;
}
.proyectos-grid{
  display:grid;
  grid-template-columns:1fr 1.15fr;
  gap:60px;
  align-items:center;
}
.proyectos-text h2{
  font-size:clamp(1.9rem, 3.4vw, 2.7rem);
  margin-bottom:20px;
  color:var(--white);
}
.proyectos-text p{
  color:var(--grey-text);
  max-width:420px;
  margin-bottom:30px;
}
.proyectos-image-wrap{
  position:relative;
}
.proyectos-image{
  display:block;
  border-radius:2px;
  overflow:hidden;
  cursor:pointer;
}
.proyectos-image img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .5s ease;
}
.proyectos-image:hover img{transform:scale(1.05);}

.inline-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:2;
  width:44px;height:44px;
  border-radius:50%;
  border:none;
  background:rgba(13,13,12,0.55);
  color:var(--white);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  backdrop-filter:blur(2px);
  transition:background .2s ease, transform .2s ease;
}
.inline-nav svg{width:20px;height:20px;}
.inline-nav:hover{background:rgba(13,13,12,0.8);}
.inline-nav-prev{left:16px;}
.inline-nav-prev:hover{transform:translateY(-50%) translateX(-2px);}
.inline-nav-next{right:16px;}
.inline-nav-next:hover{transform:translateY(-50%) translateX(2px);}
.inline-nav[hidden]{display:none;}

.inline-dots{
  position:absolute;
  left:0; right:0; bottom:16px;
  z-index:2;
  display:flex;
  justify-content:center;
  gap:8px;
}
.inline-dots[hidden]{display:none;}
.inline-dots span{
  width:7px;height:7px;
  border-radius:50%;
  background:rgba(248,246,242,0.4);
  transition:background .2s ease, transform .2s ease;
}
.inline-dots span.active{
  background:var(--gold);
  transform:scale(1.2);
}

/* ---------- CTA banner ---------- */
.cta-banner{
  background:var(--black);
  border-top:1px solid rgba(255,255,255,0.08);
  padding:34px 0;
}
.cta-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
}
.cta-text{
  display:flex;
  align-items:center;
  gap:18px;
}
.cta-icon{
  width:38px;height:38px;
  color:var(--gold);
  flex-shrink:0;
}
.cta-icon svg{width:100%;height:100%;}
.cta-text h3{
  font-family:var(--font-sans);
  font-size:0.95rem;
  letter-spacing:1px;
  font-weight:600;
  margin-bottom:4px;
}
.cta-text p{
  font-size:0.85rem;
  color:var(--grey-text);
}

/* ---------- Footer ---------- */
.site-footer{
  background:var(--near-black);
  padding-top:60px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr 1.3fr;
  gap:40px;
  padding-bottom:50px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.footer-brand p{
  margin-top:14px;
  font-size:0.75rem;
  letter-spacing:2px;
  color:var(--grey-text);
}
.footer-col h4{
  font-size:0.75rem;
  letter-spacing:1.5px;
  color:var(--gold);
  margin-bottom:18px;
  font-weight:600;
}
.footer-col a{
  display:block;
  font-size:0.88rem;
  color:var(--grey-text);
  margin-bottom:12px;
  transition:color .2s ease;
}
.footer-col a:hover{color:var(--white);}

.contact-line{
  display:flex;
  align-items:center;
  gap:10px;
}
.contact-line svg{
  width:16px;height:16px;
  flex-shrink:0;
  color:var(--gold);
}

.footer-bottom{
  padding:22px 0;
  text-align:center;
  font-size:0.78rem;
  color:var(--grey-text);
}

/* ---------- Modo Live (imágenes con badge + movimiento ambiental) ---------- */
.live-image-wrap{
  position:relative;
  overflow:hidden;
}
.live-image-wrap img{
  transform: scale(1) translate(0,0);
  transition: transform .6s ease;
  will-change: transform;
}
.live-image-wrap.in-view img{
  animation: liveAmbientMove 13s ease-in-out infinite alternate;
}
@keyframes liveAmbientMove{
  0%{ transform: scale(1) translate(0,0); }
  100%{ transform: scale(1.07) translate(-1.2%, 1%); }
}

@media (prefers-reduced-motion: reduce){
  .live-image-wrap.in-view img{ animation:none; }
}

/* ---------- Modal: galería + cotizar ---------- */
.modal-overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index:1000;
  background:rgba(10,10,9,0.86);
  align-items:center;
  justify-content:center;
  padding:32px;
}
.modal-overlay.open{display:flex;}

.modal-box{
  position:relative;
  width:100%;
  max-width:1040px;
  max-height:88vh;
  overflow-y:auto;
  background:var(--near-black);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:3px;
  display:grid;
  grid-template-columns:1.6fr 1fr;
}

.modal-close{
  position:absolute;
  top:14px; right:14px;
  z-index:2;
  width:38px;height:38px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.25);
  background:rgba(13,13,12,0.6);
  color:var(--white);
  font-size:1.4rem;
  line-height:1;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:border-color .2s ease, color .2s ease;
}
.modal-close:hover{border-color:var(--gold);color:var(--gold);}

.modal-gallery{
  padding:28px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.modal-main-image{
  position:relative;
  aspect-ratio:4/3;
  overflow:hidden;
  border-radius:2px;
  background:#1c1c1a;
}
.modal-main-image img{
  width:100%;height:100%;object-fit:cover;
}

.modal-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:36px;height:36px;
  border-radius:50%;
  border:none;
  background:rgba(255,255,255,0.85);
  color:#141412;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,0.35);
  transition:background .2s ease, transform .2s ease;
}
.modal-nav svg{width:18px;height:18px;}
.modal-nav:hover{background:#fff;transform:translateY(-50%) scale(1.08);}
.modal-nav-prev{left:12px;}
.modal-nav-next{right:12px;}
.modal-nav[hidden]{display:none;}

.modal-counter{
  position:absolute;
  right:12px; bottom:12px;
  padding:4px 10px;
  border-radius:12px;
  background:rgba(13,13,12,0.65);
  color:var(--white);
  font-size:0.72rem;
  letter-spacing:0.5px;
}

.modal-thumbs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.modal-thumbs img{
  width:64px;height:64px;
  object-fit:cover;
  border-radius:2px;
  cursor:pointer;
  opacity:0.55;
  border:2px solid transparent;
  transition:opacity .2s ease, border-color .2s ease;
}
.modal-thumbs img:hover{opacity:0.85;}
.modal-thumbs img.active{
  opacity:1;
  border-color:var(--gold);
}

.modal-sidebar{
  padding:36px 32px;
  border-left:1px solid rgba(255,255,255,0.08);
  display:flex;
  flex-direction:column;
}
.modal-sidebar h3{
  font-size:1.9rem;
  color:var(--white);
  margin-bottom:16px;
}
.modal-sidebar p{
  color:var(--grey-text);
  font-size:0.92rem;
  margin-bottom:30px;
  flex-grow:1;
}
.modal-cta{justify-content:center;}

/* ---------- Chatbot ---------- */
.chat-widget{
  position:fixed;
  right:24px; bottom:24px;
  z-index:200;
}
.chat-toggle{
  width:60px;height:60px;
  border-radius:50%;
  border:none;
  background:var(--gold);
  color:var(--black);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(0,0,0,0.4);
  transition:background .2s ease, transform .2s ease;
}
.chat-toggle:hover{background:var(--gold-light); transform:scale(1.05);}
.chat-toggle svg{width:26px;height:26px;}
.chat-icon-close{display:none;}
.chat-widget.open .chat-icon-open{display:none;}
.chat-widget.open .chat-icon-close{display:block;}

.chat-panel{
  position:absolute;
  right:0; bottom:76px;
  width:360px;
  max-width:calc(100vw - 48px);
  height:500px;
  max-height:calc(100vh - 140px);
  background:var(--near-black);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:12px;
  box-shadow:0 20px 50px rgba(0,0,0,0.5);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  opacity:0;
  transform:translateY(16px) scale(0.98);
  pointer-events:none;
  transition:opacity .25s ease, transform .25s ease;
}
.chat-widget.open .chat-panel{
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}

.chat-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 18px;
  border-bottom:1px solid rgba(255,255,255,0.08);
  background:var(--black);
}
.chat-header-title{
  display:block;
  font-size:0.92rem;
  font-weight:600;
  color:var(--white);
}
.chat-header-status{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:0.72rem;
  color:var(--grey-text);
  margin-top:3px;
}
.chat-status-dot{
  width:6px;height:6px;
  border-radius:50%;
  background:#5fbf6f;
  flex-shrink:0;
}
.chat-close{
  background:none;
  border:none;
  color:var(--grey-text);
  font-size:1.3rem;
  line-height:1;
  cursor:pointer;
  padding:4px;
}
.chat-close:hover{color:var(--white);}

.chat-messages{
  flex:1;
  overflow-y:auto;
  padding:16px 18px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.chat-msg{
  max-width:80%;
  padding:10px 14px;
  border-radius:12px;
  font-size:0.86rem;
  line-height:1.45;
}
.chat-msg-bot{
  align-self:flex-start;
  background:rgba(255,255,255,0.06);
  color:var(--white);
  border-bottom-left-radius:3px;
}
.chat-msg-user{
  align-self:flex-end;
  background:var(--gold);
  color:var(--black);
  border-bottom-right-radius:3px;
}
.chat-msg-suggestions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:4px;
}
.chat-suggestion{
  border:1px solid rgba(255,255,255,0.15);
  background:none;
  color:var(--grey-text);
  font-size:0.76rem;
  padding:6px 12px;
  border-radius:14px;
  cursor:pointer;
  transition:border-color .2s ease, color .2s ease;
}
.chat-suggestion:hover{border-color:var(--gold);color:var(--white);}

.chat-input-row{
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px;
  border-top:1px solid rgba(255,255,255,0.08);
  background:var(--black);
}
.chat-input-row input{
  flex:1;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:20px;
  padding:10px 16px;
  color:var(--white);
  font-family:var(--font-sans);
  font-size:0.86rem;
}
.chat-input-row input::placeholder{color:var(--grey-text);}
.chat-input-row input:focus{outline:none;border-color:var(--gold);}
.chat-send{
  width:38px;height:38px;
  flex-shrink:0;
  border-radius:50%;
  border:none;
  background:var(--gold);
  color:var(--black);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background .2s ease;
}
.chat-send:hover{background:var(--gold-light);}
.chat-send svg{width:16px;height:16px;}

@media (max-width:480px){
  .chat-widget{right:14px;bottom:14px;}
  .chat-panel{
    right:-6px;
    width:calc(100vw - 28px);
    height:calc(100vh - 120px);
  }
}

/* ---------- Responsive ---------- */
@media (max-width:1000px){
  .productos-grid{grid-template-columns:repeat(3,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .proyectos-grid{grid-template-columns:1fr;}
  .proyectos-image-wrap{order:-1;height:340px;}
  .proyectos-image{height:100%;}
  .modal-box{grid-template-columns:1fr;}
  .modal-sidebar{border-left:none;border-top:1px solid rgba(255,255,255,0.08);}
  .nosotros-grid{grid-template-columns:1fr;}
  .nosotros-image{height:320px;}
  .servicios-steps{grid-template-columns:repeat(2,1fr);}
  .servicios-info{grid-template-columns:1fr 1fr;}
}

@media (max-width:600px){
  .servicios-steps{grid-template-columns:1fr;}
  .servicios-gallery{grid-template-columns:1fr;}
  .servicios-info{grid-template-columns:1fr;}
  .checklist{grid-template-columns:1fr;}
}

@media (max-width:820px){
  .main-nav{
    position:fixed;
    top:0; right:0; bottom:0;
    width:78%;
    max-width:320px;
    background:var(--near-black);
    flex-direction:column;
    justify-content:flex-start;
    align-items:flex-start;
    gap:0;
    padding:110px 36px 36px;
    transform:translateX(100%);
    transition:transform .3s ease;
  }
  .main-nav.open{transform:translateX(0);}
  .main-nav a{
    padding:14px 0;
    width:100%;
    border-bottom:1px solid rgba(255,255,255,0.06);
  }
  .header-cta{display:none;}
  .nav-toggle{display:flex;}
  .features-grid{grid-template-columns:repeat(2,1fr);gap:32px 16px;}
  .feature + .feature::before{display:none;}
}

@media (max-width:600px){
  .container{padding:0 22px;}
  .productos-grid{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr;}
  .cta-inner{flex-direction:column;align-items:flex-start;}
  .hero-vertical-text{display:none;}
}
