:root {
  /* Brand Accents */
  --color-primary: #ed4e05;
  --color-primary-hover: #db4400;
  --color-primary-light: #fff3ee;
  --color-primary-glow: rgba(237, 78, 5, 0.18);
  
  /* Modern Engineering Light Palette */
  --color-bg-base: #f8fafc;
  --color-bg-surface: #ffffff;
  --color-bg-subtle: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-hover: #cbd5e1;
  
  /* High-legibility Typography */
  --color-text-main: #0f172a;
  --color-text-muted: #475569;
  --color-text-dim: #94a3b8;
  
  /* Badges & Accents */
  --color-accent-green: #10b981;
  --color-accent-green-bg: #ecfdf5;
  
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 30px -6px rgba(15, 23, 42, 0.12);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow-x: clip) {
  html, body {
    overflow-x: hidden;
  }
}

body {
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.85rem 0;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo img {
  height: 42px;
  width: auto;
}

.brand-name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
  color: var(--color-text-main);
}

.brand-name span {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--color-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--color-primary-glow);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-primary-glow);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-outline {
  border-color: var(--color-border);
  color: var(--color-text-main);
  background: var(--color-bg-surface);
  box-shadow: var(--shadow-sm);
}

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

/* Hero Section */
.hero {
  position: relative;
  padding: 5rem 0 4.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  background: var(--color-primary-light);
  border: 1px solid rgba(237, 78, 5, 0.2);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(237, 78, 5, 0.25);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: var(--color-text-main);
  margin-bottom: 1.25rem;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.65;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-tags {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

.tag-badge {
  background: var(--color-bg-surface);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  font-weight: 600;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
  background: var(--color-bg-surface);
}

.hero-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.hero-media-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-main);
  box-shadow: var(--shadow-md);
}

/* Trust / Stats Bar */
.stats-bar {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  letter-spacing: -0.5px;
}

.stat-item p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Sections */
.section {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.75px;
  color: var(--color-text-main);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

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

.service-card-img {
  height: 220px;
  overflow: hidden;
  background: var(--color-bg-subtle);
}

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

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

.service-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.75rem;
}

.service-card-body p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
}

.service-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.spec-pill {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}

/* Tracking Banner (MetalFlow) */
.tracking-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3.5rem;
  box-shadow: var(--shadow-md);
}

.tracking-info h4 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tracking-info h4 svg {
  color: var(--color-primary);
}

.tracking-info p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 650px;
}

/* Feature Box / Soluciones a Medida */
.feature-box {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.feature-list li strong {
  color: var(--color-text-main);
}

.feature-list svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.feature-card-inner {
  background: var(--color-bg-base);
  padding: 2.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

/* Specs Table */
.specs-table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-surface);
}

.specs-table th, .specs-table td {
  padding: 1.1rem 1.4rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.specs-table th {
  background: var(--color-bg-subtle);
  color: var(--color-text-main);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table tr:hover td {
  background: #fdfbf9;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  position: relative;
  height: 240px;
  box-shadow: var(--shadow-sm);
}

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

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85), transparent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Reviews Section */
.reviews-summary {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

.reviews-score {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.score-number {
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--color-text-main);
  line-height: 1;
}

.score-stars {
  color: #f59e0b;
  font-size: 1.35rem;
  display: flex;
  gap: 0.2rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.review-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question svg {
  transition: transform var(--transition);
  color: var(--color-text-dim);
}

details[open] .faq-question svg {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid var(--color-bg-subtle);
  padding-top: 1rem;
}

/* Location / Map Section */
.location-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: stretch;
}

.location-info {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.location-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.location-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.location-details svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.location-map {
  min-height: 380px;
  width: 100%;
  border-left: 1px solid var(--color-border);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: none;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--color-bg-base) 0%, #ffffff 100%);
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: -0.75px;
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2.5rem;
  background: #ffffff;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--color-text-muted);
  margin-top: 0.85rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--color-text-main);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--color-text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

/* Floating WhatsApp */
.floating-wa {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}

.floating-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-media img {
    height: 340px;
  }
  .feature-box {
    grid-template-columns: 1fr;
    padding: 2.5rem;
    gap: 2.5rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .reviews-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .reviews-summary .btn {
    width: 100%;
    text-align: center;
  }
  .location-card {
    grid-template-columns: 1fr;
  }
  .location-map {
    border-left: none;
    border-top: 1px solid var(--color-border);
    min-height: 320px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
  .site-header {
    padding: 0.65rem 0;
  }
  .nav-links {
    display: none;
  }
  .btn-whatsapp {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  .hero {
    padding: 3rem 0 2.5rem;
  }
  .hero-title {
    font-size: 2.25rem;
    letter-spacing: -0.8px;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-media img {
    height: 260px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
  .stat-item h3 {
    font-size: 1.75rem;
  }
  .stat-item p {
    font-size: 0.8rem;
  }
  .section {
    padding: 3.5rem 0;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .tracking-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .tracking-banner .btn {
    width: 100%;
    justify-content: center;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .gallery-item {
    height: 180px;
  }
  .location-info {
    padding: 1.75rem;
  }
  .location-info .btn {
    width: 100%;
    justify-content: center;
  }
  .location-details {
    margin-bottom: 1.5rem;
  }
  .cta-section {
    padding: 4rem 0;
  }
  .cta-box h2 {
    font-size: 1.85rem;
  }
  .cta-box .btn {
    width: 100%;
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  .floating-wa {
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    right: calc(1.25rem + env(safe-area-inset-right, 0px));
    width: 52px;
    height: 52px;
    max-width: calc(100vw - 2rem);
  }
  .floating-wa svg {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .hero-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }
  .hero-title {
    font-size: 1.95rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .service-card-body {
    padding: 1.5rem;
  }
  .feature-box {
    padding: 1.5rem;
  }
  .feature-card-inner {
    padding: 1.25rem;
  }
  .specs-table th, .specs-table td {
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
  }
}
