:root {
  --bg: #0a0a0c;
  --bg-elevated: #111114;
  --bg-card: #16161a;
  --bg-panel: #131316;
  --text: #f0f0f2;
  --text-muted: #b8b8be;
  --silver: #d8d8dc;
  --accent: #a83844;
  --accent-hover: #c04452;
  --border: rgba(255, 255, 255, 0.07);
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  background-image: linear-gradient(rgba(10, 10, 12, 0.94), rgba(10, 10, 12, 0.94)), url("/bg-subtle.png");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--silver);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #fff;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  line-height: 0;
}
.logo img {
  height: 95px;
  width: auto;
  object-fit: contain;
  display: block;
}
@media (min-width: 900px) {
  .logo img {
    height: 155px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.nav a:hover {
  color: var(--silver);
}
.nav-phone {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
}
.nav-phone:hover {
  color: var(--accent-hover);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  color: #fff;
  padding: 8px;
  cursor: pointer;
  border-radius: 4px;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

@media (max-width: 768px) {
  .logo img {
    height: 88px;
  }
  .nav {
    position: fixed;
    top: 118px;
    left: 0;
    right: 0;
    background: #000000;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav a {
    color: #fff;
  }
  .menu-toggle {
    display: flex;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  .menu-toggle span {
    transition: transform 0.2s, opacity 0.2s;
  }
}

/* Hero — texto sobre fondo sólido con gradiente suave, sin patrón que moleste */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(10, 10, 12, 0.88), rgba(10, 10, 12, 0.92)),
    radial-gradient(ellipse 90% 60% at 50% -5%, rgba(168, 56, 68, 0.1) 0%, transparent 55%),
    url("/bg-subtle.png");
  background-size: 100% 100%, 100% 100%, cover;
  background-position: 0 0, 0 0, center;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(1.875rem, 4.5vw, 2.875rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-seo {
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 2rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid var(--border);
  border-radius: 13px;
  animation: scroll 2s ease-in-out infinite;
}
.hero-scroll::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  margin-left: -4px;
  width: 8px;
  height: 8px;
  background: var(--silver);
  border-radius: 50%;
}
@keyframes scroll {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* Services */
.services {
  padding: 5rem 0;
  background: linear-gradient(rgba(17, 17, 20, 0.95), rgba(17, 17, 20, 0.95)), url("/bg-subtle.png");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

.services h2 {
  font-size: clamp(1.625rem, 3.5vw, 2.125rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.section-intro {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 2.5rem;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.services-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.services-grid li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.25s;
}
.services-grid li:hover {
  border-color: rgba(168, 56, 68, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.service-icon {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.services-grid h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.services-grid p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* Areas */
.areas {
  padding: 5rem 0;
  background: linear-gradient(rgba(10, 10, 12, 0.95), rgba(10, 10, 12, 0.95)), url("/bg-subtle.png");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

.areas h2 {
  font-size: clamp(1.625rem, 3.5vw, 2.125rem);
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.areas-content {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 800px;
}

.areas-intro {
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin: 0 0 1.75rem;
}

.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
}
.areas-list li {
  color: var(--silver);
  font-size: 1rem;
}
.areas-list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.4rem;
}

.seo-content {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}
.seo-content p {
  margin: 0 0 1rem;
}
.seo-content p:last-child {
  margin-bottom: 0;
}

/* Contact */
.contact {
  padding: 5rem 0;
  background: linear-gradient(rgba(17, 17, 20, 0.95), rgba(17, 17, 20, 0.95)), url("/bg-subtle.png");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.625rem, 3.5vw, 2.125rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.contact-info > p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.contact-info address {
  font-style: normal;
  color: var(--silver);
  font-size: 1rem;
}
.contact-info address p {
  margin: 0.35rem 0;
}
.contact-info address a {
  color: var(--accent);
}
.contact-info address a:hover {
  color: var(--accent-hover);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.25rem;
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--silver);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}
.form-status.success {
  color: #86efac;
}
.form-status.error {
  color: #fca5a5;
}

.contact-form .btn {
  width: 100%;
  padding: 1rem 1.5rem;
}

@media (max-width: 768px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: #000000;
}
.footer p {
  margin: 0.35rem 0;
}
.footer a {
  color: var(--silver);
}
.footer a:hover {
  color: #fff;
}
