/* ════════════════════════════════════════
   RESTAURO S.A.C. — Bronce / Cobre Theme
   ════════════════════════════════════════ */

:root {
  --copper: #b5703c;
  --copper-light: #d4976a;
  --copper-dark: #8a4f24;
  --copper-glow: rgba(181,112,60,.12);
  --dark: #1a1410;
  --dark-alt: #2a2118;
  --ink: #1f1a14;
  --text: #4a4039;
  --muted: #8a7e72;
  --light: #f7f3ef;
  --light-alt: #ede6de;
  --white: #ffffff;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 8px rgba(26,20,16,.06);
  --shadow-md: 0 8px 30px rgba(26,20,16,.1);
  --shadow-lg: 0 20px 50px rgba(26,20,16,.14);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--copper); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--copper-dark); }

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

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: .88rem; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase;
  cursor: pointer; border: none; transition: all var(--transition);
}
.btn-primary {
  background: var(--copper); color: var(--white);
}
.btn-primary:hover {
  background: var(--copper-dark); color: var(--white);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(181,112,60,.3);
}
.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,.5); color: var(--white); background: transparent;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.8);
}
.btn-outline-dark {
  border: 1.5px solid var(--copper); color: var(--copper); background: transparent;
}
.btn-outline-dark:hover {
  background: var(--copper); color: var(--white);
}

/* ── HEADER / NAV ── */
header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(247,243,239,.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(181,112,60,.08);
  transition: background var(--transition), box-shadow var(--transition);
}
header.scrolled {
  background: rgba(247,243,239,.98);
  box-shadow: 0 4px 20px rgba(26,20,16,.08);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.brand {
  display: flex; align-items: center; text-decoration: none;
}
.brand img {
  height: 48px; width: auto;
}

#mainNav {
  display: flex; align-items: center; gap: 8px;
}
#mainNav a {
  color: var(--ink); font-size: .88rem; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius);
  transition: all var(--transition); position: relative;
}
#mainNav a:hover {
  color: var(--copper); background: var(--copper-glow);
}
.btn-nav {
  background: var(--copper) !important; color: var(--white) !important;
  padding: 10px 20px !important; border-radius: var(--radius) !important;
  font-weight: 600 !important;
}
.btn-nav:hover {
  background: var(--copper-dark) !important;
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--ink);
  transition: var(--transition); border-radius: 2px;
}

/* ── HERO ── */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  background: var(--light); overflow: hidden;
  padding-top: 72px;
}
.hero-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  max-width: 1180px; margin: 0 auto;
  padding: 60px 24px;
  width: 100%;
}
.hero-text {
  max-width: 540px;
}
.hero-tag {
  display: inline-block;
  padding: 8px 20px; margin-bottom: 24px;
  border: 1px solid rgba(181,112,60,.35);
  color: var(--copper);
  font-size: .75rem; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase;
  border-radius: 100px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.4rem; font-weight: 700;
  line-height: 1.15; margin-bottom: 20px;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic; color: var(--copper);
}
.hero-desc {
  font-size: 1.1rem; color: var(--muted);
  font-weight: 300; line-height: 1.8;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.hero-image {
  position: relative;
}
.hero-image img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform .6s ease;
}
.hero-image:hover img {
  transform: scale(1.02);
}
.hero-image::before {
  content: '';
  position: absolute; top: -16px; left: -16px;
  width: 100%; height: 100%;
  border: 2px solid var(--copper-light);
  border-radius: var(--radius-lg);
  opacity: .3; z-index: -1;
}
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  color: var(--muted); font-size: .72rem;
  letter-spacing: 3px; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px; margin-top: 10px;
  background: linear-gradient(to bottom, var(--copper), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: .3; transform: scaleY(.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── SECTIONS ── */
.section-light { padding: 100px 0; background: var(--light); }
.section-alt { padding: 100px 0; background: var(--white); }

.section-tag {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--copper); margin-bottom: 12px;
}
.section-header { text-align: center; max-width: 600px; margin: 0 auto 60px; }
.section-header h2 {
  font-family: var(--font-heading); font-size: 2.4rem;
  font-weight: 700; color: var(--ink); margin-bottom: 12px; line-height: 1.25;
}
.section-subtitle {
  color: var(--muted); font-size: 1.05rem; font-weight: 300;
}

/* ── NOSOTROS ── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 60px; align-items: center;
}
.about-img {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
}
.about-img img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: var(--radius-lg);
}
.about-accent {
  position: absolute; bottom: -1px; right: -1px;
  background: var(--copper); color: var(--white);
  padding: 24px 28px; border-radius: var(--radius-lg) 0 var(--radius-lg) 0;
}
.accent-number {
  font-family: var(--font-heading); font-size: 2.8rem;
  font-weight: 700; line-height: 1; display: block;
}
.accent-label {
  font-size: .78rem; letter-spacing: 1px; text-transform: uppercase;
  opacity: .85; font-weight: 500; line-height: 1.4;
}
.about-text h2 {
  font-family: var(--font-heading); font-size: 2.2rem;
  color: var(--ink); margin-bottom: 18px; line-height: 1.3;
}
.about-text p {
  color: var(--text); margin-bottom: 14px; font-weight: 300;
}
.values-row {
  display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap;
}
.value-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--copper-glow); border: 1px solid rgba(181,112,60,.15);
  border-radius: 100px;
  font-size: .82rem; font-weight: 600; color: var(--copper-dark);
}
.about-actions {
  display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap;
}

/* ── SERVICIOS ── */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--light); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid rgba(181,112,60,.08);
  transition: all var(--transition); display: flex; flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: rgba(181,112,60,.2);
}
.service-img { position: relative; overflow: hidden; }
.service-img img {
  width: 100%; height: 220px; object-fit: cover;
  transition: transform .6s ease;
}
.service-card:hover .service-img img { transform: scale(1.06); }
.service-body {
  padding: 24px; flex: 1; display: flex; flex-direction: column;
}
.service-body h3 {
  font-family: var(--font-heading); font-size: 1.15rem;
  color: var(--ink); margin-bottom: 10px; line-height: 1.35;
}
.service-body p {
  color: var(--muted); font-size: .9rem; font-weight: 300; line-height: 1.65;
}
.brochure-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 8px 16px;
  background: var(--copper-glow); border: 1px solid rgba(181,112,60,.2);
  border-radius: var(--radius); font-size: .82rem; font-weight: 600;
  color: var(--copper-dark); transition: all var(--transition);
}
.brochure-link:hover {
  background: var(--copper); color: var(--white); border-color: var(--copper);
}
.brochure-link:hover svg { stroke: var(--white); }

/* ── PROYECTOS ── */
.project {
  margin-bottom: 56px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(181,112,60,.1);
}
.project:last-child { border-bottom: none; }
.project-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; gap: 10px;
}
.project h3 {
  font-family: var(--font-heading); font-size: 1.6rem;
  color: var(--ink); margin: 0;
}
.project-location {
  font-size: .85rem; color: var(--muted); font-weight: 400; margin: 0;
}
.project > p {
  color: var(--text); font-weight: 300; margin-bottom: 20px;
}
.badge {
  display: inline-flex; align-items: center;
  padding: 6px 16px; border-radius: 100px;
  font-size: .75rem; font-weight: 600; letter-spacing: .5px;
  color: var(--copper-dark); background: var(--copper-glow);
  border: 1px solid rgba(181,112,60,.18);
}

.gallery {
  display: grid; gap: 12px;
}
.g-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-item {
  overflow: hidden; border-radius: var(--radius-lg);
  position: relative;
}
.gallery-item img {
  width: 100%; height: 220px; object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ── CLIENTES ── */
.clients-grid {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
}
.client-chip {
  padding: 14px 24px; background: var(--light);
  border: 1px solid rgba(181,112,60,.1);
  border-radius: var(--radius); font-size: .9rem;
  font-weight: 500; color: var(--ink);
  transition: all var(--transition);
}
.client-chip:hover {
  border-color: var(--copper); color: var(--copper);
  box-shadow: var(--shadow-sm);
}

/* ── CTA ── */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 100%);
  padding: 80px 0; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border: 1px solid rgba(181,112,60,.1);
  border-radius: 50%;
}
.cta-inner {
  text-align: center; position: relative; z-index: 1;
}
.cta-inner h2 {
  font-family: var(--font-heading); font-size: 2.2rem;
  color: var(--white); margin-bottom: 12px;
}
.cta-inner p {
  color: rgba(255,255,255,.6); font-weight: 300;
  max-width: 500px; margin: 0 auto 28px; font-size: 1.05rem;
}

/* ── FOOTER ── */
footer {
  background: var(--dark); color: rgba(255,255,255,.7);
  padding-top: 64px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px;
}
.footer-main h3 {
  font-family: var(--font-heading); font-size: 1.5rem;
  color: var(--white); margin-bottom: 10px;
}
.footer-main p { font-weight: 300; font-size: .92rem; margin-bottom: 18px; }
.contact-item {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; font-size: .92rem;
}
.contact-item svg { color: var(--copper-light); flex-shrink: 0; }
.contact-item a, .contact-item span { color: rgba(255,255,255,.7); }
.contact-item a:hover { color: var(--copper-light); }
.footer-socials {
  display: flex; gap: 16px; margin-top: 20px;
}
.footer-socials a {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.6); transition: all var(--transition);
}
.footer-socials a:hover {
  background: var(--copper); color: var(--white);
  transform: translateY(-2px);
}
.footer-col h4 {
  color: var(--white); font-size: .78rem;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 16px; font-weight: 700;
}
.footer-col a {
  display: block; color: rgba(255,255,255,.5);
  font-size: .88rem; font-weight: 300;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--copper-light); }
.footer-col p {
  color: rgba(255,255,255,.5); font-size: .85rem; font-weight: 300;
}
.footer-badge {
  display: inline-block; margin-top: 8px;
  padding: 5px 14px; border: 1px solid rgba(181,112,60,.3);
  border-radius: 100px; font-size: .72rem;
  color: var(--copper-light); letter-spacing: 1px;
}
.copy {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 18px 0; text-align: center;
  font-size: .8rem; color: rgba(255,255,255,.3);
}

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 58px; height: 58px;
  background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.4);
  transition: all var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,.5);
}

/* ── ANIMATIONS ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-image::before { display: none; }
  .hero h1 { font-size: 2.4rem; }
  .hero { min-height: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .g-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-light, .section-alt { padding: 64px 0; }
  .section-header h2 { font-size: 2rem; }
  .cta-section { padding: 56px 0; }

  #mainNav {
    display: none;
    position: fixed; top: 72px; left: 0; width: 100%;
    flex-direction: column; align-items: stretch;
    background: rgba(247,243,239,.98);
    backdrop-filter: blur(14px);
    padding: 16px 24px 24px; gap: 4px;
    border-bottom: 1px solid rgba(181,112,60,.1);
    box-shadow: var(--shadow-md);
  }
  #mainNav.open { display: flex; }
  #mainNav a { padding: 12px 16px; border-radius: var(--radius); }
  .hamburger { display: flex; }
  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .hero-desc { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-split { padding: 40px 24px; }
  .g-3 { grid-template-columns: 1fr; }
  .gallery-item img { height: 200px; }
  .values-row { flex-direction: column; }
  .project h3 { font-size: 1.3rem; }
}
