/* ===== JC Luxury Upholstery — réplica fiel ===== */

@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root{
  --cream: #EFEEEC;
  --cream-2: #F6F5F3;
  --navy: #06313A;
  --navy-soft: #0d3f49;
  --teal: #005F63;
  --text-body: #6b7676;
  --white: #FFFFFF;
  --gold: #C9A24B;
  --radius: 10px;
  --shadow: 0 20px 45px rgba(6,49,58,0.14);
  --maxw: 1180px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Jost', sans-serif;
  color:var(--navy);
  background:var(--cream);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit;}
.container{max-width:var(--maxw); margin:0 auto; padding:0 24px;}
.section{padding:88px 0;}
@media (max-width:768px){ .section{padding:56px 0;} }

.eyebrow{
  font-size:.78rem; letter-spacing:.24em; text-transform:uppercase;
  color:var(--teal); font-weight:600; margin-bottom:10px; display:block;
}
h1,h2,h3,h4{font-family:'Jost', sans-serif; font-weight:600; margin:0 0 16px; line-height:1.18; color:var(--navy);}
h2{font-size:clamp(1.8rem, 2.8vw, 2.4rem); letter-spacing:.03em; text-transform:uppercase;}
p{line-height:1.75; color:var(--text-body); margin:0 0 16px; font-size:.98rem;}

.center{ text-align:center; }

.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:15px 32px; border-radius:2px; border:1.5px solid var(--navy);
  font-size:.8rem; font-weight:500; letter-spacing:.16em; text-transform:uppercase;
  cursor:pointer; transition:all var(--transition); background:var(--navy); color:var(--white);
}
.btn-primary{ background:var(--navy); color:var(--white); border-color:var(--navy); }
.btn-primary:hover{ background:var(--navy-soft); border-color:var(--navy-soft); transform:translateY(-2px); box-shadow:var(--shadow); }
.btn-outline{ background:transparent; border-color:var(--navy); color:var(--navy); }
.btn-outline:hover{ background:var(--navy); color:var(--white); }
.btn-outline-light{ background:var(--navy); border-color:var(--navy); color:var(--white); }
.btn-outline-light:hover{ background:var(--navy-soft); border-color:var(--navy-soft); }

/* ===== Barra superior ===== */
.topbar{
  background:var(--navy); color:var(--white); padding:14px 0;
}
.topbar-inner{
  max-width:1400px; margin:0 auto; padding:0 24px;
  display:flex; align-items:center; justify-content:space-around; flex-wrap:wrap; gap:10px 28px;
}
.topbar a{
  display:inline-flex; align-items:center; gap:8px; font-size:.85rem; font-weight:500;
  letter-spacing:.06em; text-transform:uppercase; white-space:nowrap;
}
.topbar svg{ width:15px; height:15px; flex-shrink:0; }

@media (max-width:700px){
  .topbar-inner{ justify-content:center; gap:8px 20px; }
  .topbar a{ font-size:.72rem; }
}

/* ===== Hero ===== */
.hero{
  position:relative; height:90vh; min-height:560px; overflow:hidden;
  color:var(--white);
}
.hero-slide{
  position:absolute; inset:0; opacity:0; transition:opacity 1.2s ease;
  background-size:cover; background-position:center;
}
.hero-slide.active{ opacity:1; }
.hero-slide::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(6,29,35,.4) 0%, rgba(6,29,35,.42) 55%, rgba(6,29,35,.6) 100%);
}
.hero-logo{
  position:relative; z-index:2; display:flex; justify-content:center; padding-top:64px;
}
.hero-logo img{ height:110px; width:auto; opacity:0; animation:heroIn 1s .1s forwards ease-out; }
.hero-content{
  position:relative; z-index:2; height:calc(100% - 174px);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  max-width:900px; margin:0 auto; padding:0 76px; text-align:center;
}
.hero-text{ max-width:820px; }
.hero-text h1{
  color:var(--white); font-size:clamp(1.7rem, 3.6vw, 2.7rem); font-weight:500; letter-spacing:.02em;
  margin-bottom:20px; text-transform:uppercase; line-height:1.25;
  opacity:0; transform:translateY(20px); animation:heroIn .9s .3s forwards ease-out;
}
.hero-text p{
  color:rgba(255,255,255,.92); font-size:1rem; max-width:640px; margin-left:auto; margin-right:auto;
  opacity:0; transform:translateY(20px); animation:heroIn .9s .5s forwards ease-out;
}
.hero-text .btn{ opacity:0; transform:translateY(20px); animation:heroIn .9s .7s forwards ease-out; margin-top:12px; }
@keyframes heroIn{ to{ opacity:1; transform:translateY(0); } }

.hero-arrow{
  position:absolute; top:50%; translate:0 -50%; z-index:4;
  background:none; border:none; color:var(--white); font-size:1.7rem; line-height:1;
  cursor:pointer; padding:8px; opacity:.8; transition:opacity var(--transition);
}
.hero-arrow:hover{ opacity:1; }
.hero-arrow.prev{ left:14px; }
.hero-arrow.next{ right:14px; }

.hero-dots{
  position:absolute; left:0; right:0; bottom:22px; z-index:4;
  display:flex; justify-content:center; gap:9px;
}
.hero-dots button{
  width:8px; height:8px; border-radius:50%; border:1.5px solid rgba(255,255,255,.75);
  background:transparent; cursor:pointer; padding:0; transition:all var(--transition);
}
.hero-dots button.active{ background:var(--white); }

@media (max-width:640px){
  .hero{ height:82vh; }
  .hero-logo{ padding-top:36px; }
  .hero-logo img{ height:70px; }
  .hero-arrow{ font-size:1.5rem; padding:6px; }
}

/* ===== Por qué elegirnos ===== */
.why{ background:var(--cream); text-align:center; }
.why .container{ max-width:820px; }
.why p{ font-size:1.02rem; max-width:720px; margin:0 auto 48px; }

/* Process carousel */
.process-carousel{ position:relative; max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.process-track-wrap{
  display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory;
  scrollbar-width:none; -ms-overflow-style:none;
}
.process-track-wrap::-webkit-scrollbar{ display:none; }
.process-item{
  flex:0 0 calc((100% - 32px)/3); width:calc((100% - 32px)/3); min-width:0;
  scroll-snap-align:start; height:340px; object-fit:cover; border-radius:var(--radius);
}
.process-arrow{
  position:absolute; top:50%; translate:0 -50%; z-index:5;
  width:46px; height:46px; border-radius:50%; border:none; cursor:pointer;
  background:var(--white); color:var(--navy); box-shadow:var(--shadow);
  display:flex; align-items:center; justify-content:center; font-size:1.2rem;
  transition:all var(--transition);
}
.process-arrow:hover{ background:var(--navy); color:var(--white); }
.process-arrow.prev{ left:2px; }
.process-arrow.next{ right:2px; }
.process-dots{ display:flex; justify-content:center; gap:8px; margin-top:26px; }
.process-dots button{ width:7px; height:7px; border-radius:50%; border:none; background:#d7d2ca; cursor:pointer; padding:0; }
.process-dots button.active{ background:var(--teal); width:22px; border-radius:5px; transition:all var(--transition); }

@media (max-width:900px){ .process-item{ flex-basis:calc((100% - 16px)/2); height:300px; } }
@media (max-width:600px){
  .process-item{ flex-basis:88%; height:280px; }
  .process-arrow{ width:38px; height:38px; font-size:1rem; }
}

/* ===== Lo que hacemos ===== */
.services{ background:var(--teal); text-align:center; }
.services h2{ color:var(--white); }
.services-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:36px; margin-top:52px; text-align:left;
}
.service-card img{ width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:var(--radius); margin-bottom:22px; }
.service-card h3{ font-size:1.1rem; letter-spacing:.08em; text-transform:uppercase; color:var(--white); }
.service-card p{ margin-bottom:0; color:rgba(255,255,255,.82); }
.services-cta{ margin-top:52px; }
.services .btn-outline{ background:var(--white); border-color:var(--white); color:var(--teal); }
.services .btn-outline:hover{ background:transparent; color:var(--white); }

@media (max-width:860px){ .services-grid{ grid-template-columns:1fr; gap:40px; text-align:center; } .service-card{ max-width:480px; margin:0 auto; } }

/* ===== Galería (cuadrícula) ===== */
.gallery{ background:var(--cream); text-align:center; }
.gallery-grid{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:16px;
  max-width:900px; margin:48px auto 0;
}
.gallery-grid button{
  padding:0; border:none; background:none; cursor:zoom-in; overflow:hidden; border-radius:var(--radius);
  position:relative; aspect-ratio:1/1;
}
.gallery-grid img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.gallery-grid button:hover img{ transform:scale(1.06); }
.gallery-grid button::after{
  content:'+'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-size:1.8rem; color:var(--white); background:rgba(6,49,58,0); transition:background var(--transition), opacity var(--transition);
  opacity:0;
}
.gallery-grid button:hover::after{ background:rgba(6,49,58,.35); opacity:1; }
.gallery-cta{ margin-top:44px; }

@media (max-width:700px){ .gallery-grid{ max-width:520px; gap:10px; } }
@media (max-width:480px){ .gallery-grid{ grid-template-columns:repeat(2, 1fr); max-width:340px; } }

/* Lightbox */
.lightbox{
  position:fixed; inset:0; z-index:3000; background:rgba(4,15,18,.94);
  display:flex; align-items:center; justify-content:center; padding:40px;
  opacity:0; pointer-events:none; transition:opacity .3s ease;
}
.lightbox.open{ opacity:1; pointer-events:auto; }
.lightbox img{ max-width:92vw; max-height:86vh; border-radius:4px; box-shadow:0 30px 60px rgba(0,0,0,.5); }
.lightbox-close{
  position:absolute; top:24px; right:28px; background:none; border:none; color:var(--white);
  font-size:2rem; cursor:pointer; line-height:1;
}
.lightbox-nav{
  position:absolute; top:50%; translate:0 -50%; background:rgba(255,255,255,.12); border:none; color:var(--white);
  width:48px; height:48px; border-radius:50%; font-size:1.4rem; cursor:pointer;
}
.lightbox-nav:hover{ background:rgba(255,255,255,.25); }
.lightbox-nav.prev{ left:24px; }
.lightbox-nav.next{ right:24px; }

/* ===== Iconos de confianza ===== */
.trust{ background:var(--navy); }
.trust-grid{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:40px; text-align:center;
}
.trust-item svg{ width:34px; height:34px; color:var(--white); margin-bottom:16px; }
.trust-item h3{ font-size:1rem; letter-spacing:.04em; color:var(--white); text-transform:uppercase; }
.trust-item p{ font-size:.9rem; margin-bottom:0; color:rgba(255,255,255,.75); }
@media (max-width:860px){ .trust-grid{ grid-template-columns:repeat(2, 1fr); gap:36px; } }
@media (max-width:520px){ .trust-grid{ grid-template-columns:1fr; max-width:340px; margin:0 auto; } }

/* ===== Reseñas (carrusel estilo Google) ===== */
.reviews{ background:var(--cream); text-align:center; }
.reviews-rating{ font-size:.9rem; color:var(--text-body); margin:32px 0 20px; }
.reviews-rating strong{ color:var(--navy); }

.reviews-carousel{ position:relative; max-width:var(--maxw); margin:44px auto 0; padding:0 24px; }
.reviews-track{
  display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory;
  scrollbar-width:none; -ms-overflow-style:none;
}
.reviews-track::-webkit-scrollbar{ display:none; }

.review-card-g{
  flex:0 0 calc((100% - 48px)/4); scroll-snap-align:start; min-width:0;
  background:#F4F3F1; border-radius:var(--radius); padding:22px; text-align:left;
}
.review-head{ display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.review-avatar{
  width:36px; height:36px; border-radius:50%; background:var(--avatar-bg, var(--teal));
  color:var(--white); display:flex; align-items:center; justify-content:center;
  font-size:.8rem; font-weight:600; flex-shrink:0;
}
.review-who{ font-size:.92rem; color:var(--navy); flex:1; }
.google-g{ width:18px; height:18px; flex-shrink:0; }
.review-stars{ color:var(--gold); font-size:.95rem; letter-spacing:.1em; margin-bottom:10px; display:flex; align-items:center; gap:6px; }
.review-stars .verified{ width:15px; height:15px; letter-spacing:0; }
.review-card-g p{
  font-size:.88rem; line-height:1.6; color:#3a3a3a; margin:0;
  display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden;
}

.reviews-arrow{
  position:absolute; top:50%; translate:0 -50%; z-index:5;
  width:40px; height:40px; border-radius:50%; border:none; cursor:pointer;
  background:var(--white); color:var(--navy); box-shadow:var(--shadow);
  display:flex; align-items:center; justify-content:center; font-size:1.1rem;
  transition:all var(--transition);
}
.reviews-arrow:hover{ background:var(--navy); color:var(--white); }
.reviews-arrow.prev{ left:2px; }
.reviews-arrow.next{ right:2px; }

@media (max-width:960px){ .review-card-g{ flex-basis:calc((100% - 32px)/2); } }
@media (max-width:600px){
  .review-card-g{ flex-basis:86%; }
  .reviews-arrow{ width:34px; height:34px; font-size:.95rem; }
}

/* ===== FAQ ===== */
.faq{ background:var(--teal); }
.faq .container{ max-width:900px; }
.faq h2{ text-align:center; color:var(--white); }
.faq-item{ border-bottom:1px solid rgba(255,255,255,.2); }
.faq-item:first-child{ border-top:1px solid rgba(255,255,255,.2); }
.faq-q{
  width:100%; text-align:left; background:none; border:none; padding:24px 2px;
  display:flex; align-items:center; gap:16px;
  font-size:1.05rem; font-weight:400; color:var(--white); cursor:pointer;
}
.faq-q .chevron{ font-size:.9rem; transition:transform var(--transition); flex-shrink:0; color:var(--white); width:16px; }
.faq-item.open .faq-q .chevron{ transform:rotate(180deg); }
.faq-q .icon{ width:22px; height:22px; flex-shrink:0; color:var(--white); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .4s ease; }
.faq-item.open .faq-a{ max-height:220px; }
.faq-a p{ padding:0 2px 24px 54px; color:rgba(255,255,255,.85); margin:0; }

/* ===== Formulario ===== */
.quote{ background:var(--cream); }
.quote .container{ max-width:760px; }
.quote h2{ text-align:center; }
.quote > .container > p.subtitle{ text-align:center; margin-bottom:44px; }
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.form-grid .full{ grid-column:1/-1; }
.field label{ display:block; font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; margin-bottom:8px; color:var(--navy); font-weight:500; }
.field .hint{ display:block; font-size:.78rem; color:var(--text-body); margin-top:6px; font-weight:400; text-transform:none; letter-spacing:0; }
.field input, .field textarea{
  width:100%; padding:14px 16px; border-radius:2px; border:1px solid rgba(6,49,58,.25);
  background:var(--white); color:var(--navy); font-family:'Jost',sans-serif; font-size:.95rem;
}
.field input::placeholder, .field textarea::placeholder{ color:#a9a9a9; }
.field input:focus, .field textarea:focus{ outline:2px solid var(--teal); }
.file-field{
  border:1.5px dashed rgba(6,49,58,.3); border-radius:2px; padding:22px; text-align:center;
  cursor:pointer; transition:border-color var(--transition); background:var(--white);
}
.file-field:hover{ border-color:var(--teal); }
.file-field small{ display:block; color:var(--text-body); margin-top:6px; font-size:.78rem; }
.file-field input{ display:none; }
.file-name{ font-size:.85rem; color:var(--teal); margin-top:8px; min-height:1em; }
.quote .btn-primary{ width:100%; justify-content:center; margin-top:8px; }
.form-msg{ margin-top:18px; text-align:center; font-size:.92rem; display:none; }
.form-msg.show{ display:block; }
.form-msg.ok{ color:#1e7a4f; }
.form-msg.err{ color:#b3413f; }

@media (max-width:640px){ .form-grid{ grid-template-columns:1fr; } }

/* ===== Mapa (ancho completo) ===== */
.map-section{ width:100%; line-height:0; }
.map-section iframe{ width:100%; height:480px; border:0; display:block; }
@media (max-width:640px){ .map-section iframe{ height:320px; } }

/* ===== Footer ===== */
.site-footer{ background:var(--navy); color:rgba(255,255,255,.8); padding:64px 0 28px; }
.footer-top{
  display:flex; flex-direction:column; align-items:center; gap:28px;
  padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,.12); margin-bottom:28px;
}
.social-row{ display:flex; gap:12px; flex-wrap:wrap; justify-content:center; }
.social-row a{
  width:40px; height:40px; border-radius:50%; background:var(--white);
  display:flex; align-items:center; justify-content:center; transition:all var(--transition);
}
.social-row a:hover{ background:var(--teal); }
.social-row a svg{ color:var(--navy); }
.social-row a:hover svg{ color:var(--white); }
.social-row svg{ width:18px; height:18px; }
.social-row svg.icon-yelp{ width:24px; height:24px; }
.bbb-seal img{ height:64px; }
.footer-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.78rem; opacity:.55; }

@media (max-width:640px){ .footer-bottom{ flex-direction:column; text-align:center; } }

/* Reveal on scroll */
.reveal{ opacity:0; transform:translateY(28px); transition:opacity .8s ease, transform .8s ease; }
.reveal.visible{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

:focus-visible{ outline:2px solid var(--teal); outline-offset:2px; }
