/* ==========================================================================
   Marmolería Pietra Bella — estilos
   ========================================================================== */

:root {
  --dark: #1b1815;
  --dark-2: #241f1a;
  --stone-100: #f7f4ee;
  --stone-200: #ece4d6;
  --stone-300: #d9cbb0;
  --gold: #a97c50;
  --gold-light: #c9a06a;
  --text: #3a352e;
  --text-light: #6f6558;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 20px 45px -20px rgba(20, 15, 5, 0.35);
  --ff-serif: 'Cormorant Garamond', serif;
  --ff-sans: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-sans);
  color: var(--text);
  background: var(--stone-100);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--white);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

h1, h2, h3, h4, cite {
  font-family: var(--ff-serif);
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 16px;
  line-height: 1.15;
}

p { margin: 0 0 16px; }

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

.eyebrow {
  font-family: var(--ff-sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}
.eyebrow.center { text-align: center; }

.section-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.section-title.center { text-align: center; margin-left: auto; margin-right: auto; max-width: 720px; }
.section-title.light { color: var(--stone-100); }

.section-lead {
  color: var(--text-light);
  max-width: 640px;
  font-size: 1.02rem;
}
.section-lead.center { margin: 0 auto 48px; text-align: center; }
.section-lead.light { color: var(--stone-300); }

.section { padding: 88px 0; }
.section-dark { background: var(--dark); }
.section-dark .eyebrow { color: var(--gold-light); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 10px 25px -10px rgba(169, 124, 80, 0.6);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(27, 24, 21, 0.92);
  backdrop-filter: blur(6px);
  transition: background 0.3s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo-img { height: 44px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--stone-200);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--white); }
.main-nav a.nav-cta {
  background: var(--gold);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius);
}
.main-nav a.nav-cta:hover { background: var(--gold-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--stone-100);
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media { position: absolute; top: -8%; left: 0; right: 0; height: 116%; overflow: hidden; will-change: transform; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover;
  animation: hero-kenburns 22s ease-in-out infinite alternate;
}
@keyframes hero-kenburns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -1.5%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-img { animation: none; }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,17,14,0.72) 0%, rgba(20,17,14,0.55) 45%, rgba(20,17,14,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 84px;
  max-width: 760px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
}
.hero-text {
  color: var(--stone-200);
  font-size: 1.08rem;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ===== CINTA DESLIZANTE ===== */
.marquee {
  background: var(--dark);
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee-track span {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--stone-300);
  white-space: nowrap;
}
.marquee-track span.dot { color: var(--gold-light); font-size: 0.9rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== BACHAS JOHNSON (banner) ===== */
.partner-banner { padding: 52px 0; background: var(--stone-200); }
.partner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.partner-text { max-width: 620px; }
.partner-text .section-title { margin-bottom: 6px; font-size: 1.7rem; }
.partner-text .section-lead { margin: 0; }

/* ===== SERVICIOS (slider) ===== */
.services-slider {
  display: flex;
  align-items: center;
  gap: 14px;
}
.services-viewport {
  flex: 1;
  overflow: hidden;
}
.services-track {
  display: flex;
  gap: 28px;
  will-change: transform;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  padding-bottom: 26px;
  flex: 0 0 calc(25% - 21px);
  transition: transform 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); }
.slider-arrow {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--stone-300);
  background: var(--white);
  color: var(--dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.slider-arrow:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }
.slider-arrow:disabled { opacity: 0.35; cursor: default; }
.slider-arrow:disabled:hover { background: var(--white); color: var(--dark); border-color: var(--stone-300); }
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}
.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--stone-300);
  cursor: pointer;
  padding: 0;
}
.slider-dot.active { background: var(--gold); }

@media (max-width: 980px) {
  .service-card { flex: 0 0 calc(50% - 14px); }
}
@media (max-width: 600px) {
  .service-card { flex: 0 0 100%; }
  .slider-arrow { width: 38px; height: 38px; font-size: 1.3rem; }
}
.service-img { aspect-ratio: 4 / 3; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-img img { transform: scale(1.06); }
.service-card h3 { padding: 22px 22px 0; font-size: 1.35rem; }
.service-card p { padding: 0 22px; color: var(--text-light); font-size: 0.94rem; }
.service-link {
  display: inline-block;
  margin: 4px 22px 0;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}
.service-link:hover { color: var(--gold-light); }

/* ===== MATERIALES ===== */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}
.material-card {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  background: var(--dark-2);
}
.material-card h3 { color: var(--stone-100); }
.material-card p { color: var(--stone-300); font-size: 0.93rem; margin: 0; }

.surfaces-title { text-align: center; font-size: 1.3rem; margin-bottom: 20px; }
.surfaces-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.surface-pill {
  border: 1px solid var(--gold-light);
  color: var(--stone-100);
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}
.surfaces-note { color: var(--stone-300); font-size: 0.9rem; max-width: 560px; margin: 0 auto; }

/* ===== GALERIA ===== */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--stone-300);
  color: var(--text);
  padding: 9px 20px;
  border-radius: 999px;
  font-family: var(--ff-sans);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--dark); border-color: var(--dark); color: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-item {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item.hidden { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 6, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

/* ===== NOSOTROS (split) ===== */
.split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.check-list { list-style: none; padding: 0; margin: 0 0 28px; }
.check-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
  color: var(--text);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ===== TESTIMONIOS ===== */
.rating-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--stone-100);
  margin-bottom: 44px;
  font-size: 0.95rem;
}
.stars { color: var(--gold-light); letter-spacing: 2px; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0;
}
.testimonial-card p {
  color: var(--stone-200);
  font-size: 0.95rem;
  font-style: italic;
  margin: 14px 0 18px;
}
.testimonial-card cite {
  color: var(--gold-light);
  font-style: normal;
  font-size: 1rem;
  margin: 0;
}

/* ===== CONTACTO ===== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}
.contact-list { list-style: none; padding: 0; margin: 0 0 30px; }
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--stone-300);
}
.contact-list strong { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); }
.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--gold); }
.contact-map { min-height: 360px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark); color: var(--stone-300); padding-top: 60px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 34px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; color: var(--stone-300); max-width: 260px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 0.9rem; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-contact a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 24px;
  font-size: 0.8rem;
  color: rgba(236, 228, 214, 0.55);
}
.footer-bottom a {
  color: rgba(236, 228, 214, 0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-bottom a:hover { color: var(--gold-light); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -8px rgba(0,0,0,0.5);
  z-index: 400;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--white); }

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(.2,.7,.3,1), transform 0.8s cubic-bezier(.2,.7,.3,1);
}
[data-reveal="up"] { transform: translateY(36px); }
[data-reveal="left"] { transform: translateX(-56px); }
[data-reveal="right"] { transform: translateX(56px); }
[data-reveal="scale"] { transform: scale(0.9); }
[data-reveal="fade"] { transform: none; }
[data-reveal].in-view { opacity: 1; transform: translate(0, 0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track, .hero-img { animation: none !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .split-inner, .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 84px; left: 0; right: 0;
    background: var(--dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .main-nav.open { max-height: 480px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .main-nav a.nav-cta { display: inline-block; margin-top: 14px; }
  .nav-toggle { display: flex; }
  .section { padding: 64px 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; }
}
