/* ==========================================================================
   CARPINTERÍA MARCELO - MINIMALIST NORDIC DESIGN SYSTEM
   Limpio, moderno, luminoso, mobile-first y sin sobrecarga de texto.
   ========================================================================== */

:root {
  /* Clean Minimal Palette */
  --bg-page: #ffffff;
  --bg-subtle: #f9f8f6;
  --bg-card: #ffffff;
  --bg-card-hover: #faf9f7;
  
  --text-main: #1c1917;       /* Deep warm charcoal */
  --text-body: #44403c;       /* Readable soft dark */
  --text-muted: #78716c;      /* Subtle gray */
  --text-light: #a8a29e;

  --wood-accent: #b47b48;     /* Natural warm oak */
  --wood-accent-hover: #9c6838;
  --wood-light-tint: #fbf4ee; /* Soft warm wood tint */
  --wood-border: #eaddd0;

  --border-color: #e7e5e4;
  --border-light: #f0eeeb;

  --whatsapp: #25D366;
  --whatsapp-hover: #1eb857;
  --whatsapp-tint: #eafaf1;

  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.07), 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 20px 35px -10px rgba(0, 0, 0, 0.12);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --header-height: 72px;
  --max-width: 1140px;
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

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

/* Announcement Strip */
.top-strip {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.82rem;
  padding: 6px 0;
  color: var(--text-muted);
}

.top-strip-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.top-strip strong {
  color: var(--text-main);
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--whatsapp-tint);
  color: var(--whatsapp-hover);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--whatsapp);
  border-radius: 50%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-subtle);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(45, 29, 21, 0.16);
  transition: transform var(--transition), box-shadow var(--transition);
}

.logo:hover .logo-img {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(45, 29, 21, 0.22);
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.logo-title span {
  color: var(--wood-accent);
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Nav */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-body);
}

.nav-link:hover, .nav-link.active {
  color: var(--wood-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.btn-outline {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* Hero Section */
.hero {
  padding: 60px 0 70px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-subtle) 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--wood-light-tint);
  border: 1px solid var(--wood-border);
  color: var(--wood-accent);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 18px;
}

.hero-title span {
  color: var(--wood-accent);
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
}

.trust-icon {
  color: var(--wood-accent);
}

.hero-image-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  aspect-ratio: 4 / 3.5;
}

.hero-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-float-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-float-badge .stars {
  color: #f59e0b;
  font-size: 0.95rem;
}

.hero-float-badge .text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Section Shared */
.section {
  padding: 70px 0;
}

.section-bg {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 44px;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wood-accent);
  margin-bottom: 8px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.3rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Services (4 Clean Cards) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--wood-border);
}

.service-img-wrapper {
  height: 180px;
  overflow: hidden;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-img-wrapper img {
  transform: scale(1.05);
}

.service-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.service-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.service-btn {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--wood-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-btn:hover {
  color: var(--wood-accent-hover);
  gap: 8px;
}

/* Gallery (Clean Visual Grid) */
.gallery-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-chip {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-chip:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
}

.filter-chip.active {
  background: var(--wood-accent);
  color: #ffffff;
  border-color: var(--wood-accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--bg-subtle);
  transition: all var(--transition);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.gallery-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fce7d2;
  font-weight: 700;
}

.gallery-title {
  font-size: 0.95rem;
  font-weight: 700;
}

/* WhatsApp Quick Quote Form (Super Clean) */
.quote-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-card);
  max-width: 680px;
  margin: 0 auto;
}

.quote-title-wrapper {
  text-align: center;
  margin-bottom: 24px;
}

.quote-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.quote-type-chip {
  padding: 10px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.quote-type-chip:hover {
  border-color: var(--wood-accent);
}

.quote-type-chip.selected {
  background: var(--wood-light-tint);
  border-color: var(--wood-accent);
  color: var(--wood-accent-hover);
  font-weight: 700;
}

.quote-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.quote-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quote-input-group.full {
  grid-column: span 2;
}

.quote-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-body);
}

.quote-field {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.92rem;
  color: var(--text-main);
  transition: all var(--transition);
}

.quote-field:focus {
  background: #ffffff;
  border-color: var(--wood-accent);
  box-shadow: 0 0 0 3px rgba(180, 123, 72, 0.15);
}

.quote-preview {
  background: var(--bg-subtle);
  border-left: 3px solid var(--whatsapp);
  padding: 12px 16px;
  border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
  font-size: 0.84rem;
  color: var(--text-body);
  margin-bottom: 22px;
  white-space: pre-line;
  font-family: monospace;
}

.quote-submit-btn {
  width: 100%;
}

/* Clean About & FAQ */
.about-simple {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.65;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.about-feature-item span {
  color: var(--wood-accent);
}

/* FAQ Simple */
.faq-box {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-card-header {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  background: none;
}

.faq-card-icon {
  font-size: 0.8rem;
  color: var(--wood-accent);
  transition: transform var(--transition);
}

.faq-card.open .faq-card-icon {
  transform: rotate(180deg);
}

.faq-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-card-content {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  padding: 50px 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Floating WhatsApp */
.float-wa {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
}

.float-wa:hover {
  transform: scale(1.08);
  background: var(--whatsapp-hover);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 2rem;
  background: none;
}

/* Responsive */
@media (max-width: 860px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding: 0 16px;
  }

  .top-strip {
    font-size: 0.76rem;
    padding: 5px 0;
  }

  .top-strip-container {
    gap: 8px;
    padding: 0 12px;
  }

  .site-header {
    height: 64px;
  }

  .header-container {
    padding: 0 16px;
  }

  .logo {
    gap: 6px;
  }

  .logo-img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .logo-title {
    font-size: 0.98rem;
    white-space: nowrap;
  }

  .logo-sub {
    font-size: 0.58rem;
    white-space: nowrap;
  }

  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  /* WhatsApp Header Mobile Button */
  .header-wa-text {
    display: inline;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: -0.01em;
  }

  .header-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 34px;
    padding: 6px 10px;
    border-radius: 20px;
    background: var(--whatsapp);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
  }

  .header-wa-btn svg {
    width: 14px;
    height: 14px;
    min-width: 14px;
    margin: 0;
    display: block;
    flex-shrink: 0;
  }

  .mobile-toggle {
    display: flex;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 8px;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 20px;
    gap: 14px;
    display: none;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-menu.open {
    display: flex;
  }

  .hero {
    padding: 36px 0 45px;
  }

  .hero-grid, .about-simple {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-title {
    font-size: 1.9rem;
    line-height: 1.2;
    margin-bottom: 14px;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    margin-bottom: 22px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 24px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
  }

  .quote-inputs {
    grid-template-columns: 1fr;
  }

  .quote-input-group.full {
    grid-column: span 1;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 360px) {
  .header-container {
    padding: 0 8px;
    gap: 4px;
  }

  .logo-title {
    font-size: 0.9rem;
  }

  .logo-img {
    width: 30px;
    height: 30px;
    min-width: 30px;
  }

  .header-wa-text {
    font-size: 0.68rem;
  }

  .header-wa-btn {
    padding: 5px 8px;
    height: 32px;
    gap: 4px;
  }

  .header-wa-btn svg {
    width: 13px;
    height: 13px;
    min-width: 13px;
  }

  .mobile-toggle {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  .top-strip {
    font-size: 0.72rem;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .float-wa {
    width: 48px;
    height: 48px;
    bottom: 16px;
    right: 16px;
  }
}
