:root {
  /* Nuevo tema: negro + oro (industrial moderno) */
  --color-primary: #d4af37; /* Oro clásico */
  --color-secondary: #e6c65b; /* Oro claro para hover/acento */
  --color-bg: #0c0c0c; /* Fondo principal casi negro */
  --color-bg-soft: #121212; /* Paneles */
  --color-border: #1f1f1f; /* Bordes sutiles */
  --color-text: #e8e8e8;
  --color-text-dim: #b8b8b8;
  --color-white: #ffffff;

  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}
html { scroll-behavior: smooth; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12,12,12,0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); }
.brand-text { display: grid; }
.brand-text strong { font-size: 1.05rem; line-height: 1.1; color: var(--color-primary); letter-spacing: 0.5px; }
.brand-text span { font-size: 0.82rem; color: var(--color-text-dim); }

.nav ul { display: flex; gap: 16px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--color-text); font-weight: 600; }
.nav a:hover { color: var(--color-secondary); }

.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-text); margin: 5px 0; }

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  color: var(--color-white);
  background: radial-gradient(1200px 600px at 50% -10%, rgba(212,175,55,0.08), rgba(0,0,0,0)), #0f0f0f;
  border-bottom: 1px solid var(--color-border);
}
.hero-content {
  background: rgba(12,12,12,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  backdrop-filter: blur(8px) saturate(140%);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.hero-content h1, .hero-content p { text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.hero .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,12,12,0.55), rgba(12,12,12,0.85)), radial-gradient(ellipse at center, rgba(212,175,55,0.08), rgba(0,0,0,0) 60%);
}
.hero-content { position: relative; text-align: center; padding: 60px 0; }
.hero h1 { font-size: clamp(1.8rem, 3.2vw + 1rem, 3rem); margin: 0 0 10px; }
.hero p { font-size: clamp(1rem, 1.2vw + 0.5rem, 1.25rem); margin: 0 0 20px; color: #f0f0f0; }

.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 64px 0; background: var(--color-bg-soft); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section-alt { background: linear-gradient(180deg, #0e0e0e, #0c0c0c); }
.section-header { text-align: center; margin-bottom: 28px; }
.section-header h2 { font-size: 1.8rem; margin: 0 0 6px; color: var(--color-white); letter-spacing: 0.5px; }
.section-header p { color: var(--color-text-dim); margin: 0; }

/* Cards and grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: rgba(15,15,15,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(6px) saturate(130%);
  backdrop-filter: blur(6px) saturate(130%);
}
.card h3 { margin-top: 0; margin-bottom: 8px; color: var(--color-primary); font-size: 1.1rem; }
.card p { margin: 0; color: var(--color-text-dim); }

/* Media card: título arriba e imagen centrada verticalmente */
.media-card { display: grid; grid-template-rows: auto auto auto; gap: 10px; }
.media-card .media {
  display: block; overflow: visible;
  background: transparent; border: 0; border-radius: 0; min-height: 0; padding: 0;
}
.media-card .media img { width: 100%; height: auto; max-height: none; object-fit: initial; }

/* Before/After comparison */
.compare {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
}
.compare img { display: block; width: 100%; height: auto; }
.compare .after { position: absolute; inset: 0; width: var(--w, 50%); overflow: hidden; }
.compare .after img { width: 100%; height: 100%; object-fit: cover; }
.compare .handle {
  position: absolute; top: 0; bottom: 0; left: calc(var(--w, 50%) - 1px); width: 2px; background: var(--color-primary);
}
.compare .handle::before {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--color-primary);
  background: rgba(12,12,12,0.6);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.4);
}
.compare .label {
  position: absolute; top: 10px; left: 10px; background: rgba(12,12,12,0.55); color: #fff; padding: 4px 8px; border-radius: 8px; font-size: 12px; border: 1px solid rgba(255,255,255,0.08);
}
.compare .label.right { left: auto; right: 10px; }

/* Video cards */
.video-card video { width: 100%; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.08); background: #000; }

/* Socials */
.socials { display: grid; gap: 20px; justify-items: center; }
.social-icons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.social { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); color: var(--color-text); background: rgba(12,12,12,0.45); backdrop-filter: blur(8px); }
.social:hover { color: var(--color-secondary); text-decoration: none; border-color: var(--color-secondary); }
.social svg { width: 22px; height: 22px; color: var(--color-primary); }
.social-embed { width: 100%; display: flex; justify-content: center; }
.fb-page { width: 100% !important; max-width: 820px; margin: 0 auto !important; display: block; }
.fb-page iframe { margin: 0 auto !important; display: block !important; }

/* Contact */
.contact-cards { display: grid; gap: 16px; grid-template-columns: repeat(1, 1fr); }
@media (min-width: 700px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
.contact-card { text-align: center; }
.contact-card h3 { margin-top: 0; margin-bottom: 4px; }
.contact-card a { color: var(--color-white); font-weight: 600; }
.contact-card a:hover { color: var(--color-secondary); }
/* Center social links within contact cards */
.contact-card .social { display: inline-flex; justify-content: center; margin: 0 auto; }

/* Footer */
.site-footer { background: #0a0a0a; color: #cfcfcf; border-top: 1px solid var(--color-border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.site-footer a { color: #d7c589; margin-left: 10px; }
.site-footer a:hover { color: var(--color-white); }

/* Buttons */
.btn {
  display: inline-block;
  background: linear-gradient(180deg, #e1c766, #d4af37);
  color: #1a1a1a;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid #b8962d;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 0 #b8962d, 0 10px 20px rgba(0,0,0,0.25) inset;
}
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--color-primary); border: 1px solid #b8962d; }
.btn-secondary:hover { background: rgba(212,175,55,0.1); }
.btn-outline { background: transparent; color: var(--color-white); border: 1px solid var(--color-border); }
.btn-outline:hover { border-color: var(--color-secondary); color: var(--color-secondary); }

/* Mobile nav */
@media (max-width: 860px) {
  .nav { position: fixed; top: 60px; left: 0; right: 0; background: rgba(12,12,12,0.55); border-bottom: 0; transform: translateY(calc(-100% - 2px)); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .25s ease, opacity .2s ease; -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%); }
  .nav ul { flex-direction: column; align-items: stretch; padding: 14px; }
  .nav a, .btn-outline { padding: 10px 14px; border-radius: 10px; }
  .nav-toggle { display: inline-block; }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; border-bottom: 1px solid rgba(255,255,255,0.08); }
}

/* Utilidad: efecto vidrio (glass) para uso puntual */
.glass {
  background: rgba(12,12,12,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  backdrop-filter: blur(8px) saturate(140%);
}

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
