/* AA SmartWired — hoja de estilos compartida (sitio estático)
   Sistema visual replicado del sitio actual en Snapps (aasmartwired.com):
   rojo de marca #b5121b, fondo blanco, texto #111827, grises #e5e7eb/#f3f4f6,
   verde #16a34a solo para confirmaciones. Títulos Oswald, cuerpo Manrope. */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Oswald:wght@500;600;700&display=swap');

:root {
  --red: #b5121b;
  --red-bright: #d61f26;
  --red-hot: #ee1d22;
  --ink: #111827;
  --black: #000000;
  --gray-text: #4b5563;
  --gray-line: #e5e7eb;
  --gray-bg: #f3f4f6;
  --green: #16a34a;
  --white: #ffffff;
  --max-width: 1200px;
  --radius-card: 20px 0 20px 0;
  --shadow-card: 0 3px 11px rgba(0, 0, 0, 0.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}

::selection { background: var(--red); color: var(--white); }

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

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.9rem; margin-top: 1.2em; }
h3 { font-size: 1.25rem; margin-top: 1.1em; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.center { text-align: center; }

/* ---------- Encabezado (blanco, como el sitio actual) ---------- */
.site-header {
  background: var(--white);
  color: var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand img {
  height: 62px;
  width: auto;
  display: block;
}
/* El logo plano ya trae el nombre; el texto junto al logo se oculta
   para replicar el encabezado actual (solo logo + navegación). */
.brand-name { display: none; }
.main-nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.main-nav a {
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border-radius: 6px;
}
.main-nav a:hover { color: var(--red); text-decoration: none; }
.call-btn {
  background: var(--red);
  color: var(--white) !important;
  padding: 11px 18px !important;
  margin-left: 8px;
  border-radius: 6px;
  font-weight: 800;
}
.call-btn:hover { background: var(--red-bright); color: var(--white) !important; }

/* ---------- Barra superior (franja roja sobre el encabezado, como el actual) ---------- */
.top-bar {
  background: var(--red);
  color: var(--white);
  font-size: 16px;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 18px;
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 6px;
}
.top-bar a { color: var(--white); font-weight: 700; }
.top-bar a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Franja de confianza ---------- */
.trust-bar {
  background: var(--red);
  color: var(--white);
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  padding: 10px 16px;
}

/* ---------- Héroe de subpáginas (banda oscura de marca) ---------- */
.hero {
  background: linear-gradient(120deg, #111827 0%, #000000 90%);
  color: var(--white);
  border-bottom: 5px solid var(--red);
  padding: 54px 0 46px;
}
.hero h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 0.4em; }
.hero .lead { font-size: 1.12rem; color: #d1d5db; max-width: 52em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Héroe de portada (foto a ancho completo, como el actual) ---------- */
.hero-home {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.74) 0%, rgba(0,0,0,0.45) 58%, rgba(0,0,0,0.28) 100%),
    url("../img/asiel-drywall.webp") center 30% / cover no-repeat;
  padding: 104px 0 96px;
}
.hero-home h1 {
  font-size: 2.9rem;
  max-width: 935px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}
.hero-home .lead { color: #ffffff; font-size: 1.18rem; max-width: 1077px; }

/* Pastilla de confianza dentro del héroe (borde blanco, como el sitio actual) */
.trust-pill {
  display: block;
  border: 1px solid #ffffff;
  border-radius: 5px;
  padding: 4px 14px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 28px;
}

.btn {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 13px 26px;
  border-radius: 6px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.98rem;
  border: 2px solid var(--red);
  cursor: pointer;
}
.btn:hover { background: var(--red-bright); border-color: var(--red-bright); text-decoration: none; }
.btn-dark { background: var(--black); border-color: var(--black); }
.btn-dark:hover { background: #1f2937; border-color: #1f2937; }
/* En héroes, el botón secundario va en contorno blanco */
.hero .btn-dark {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.hero .btn-dark:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- Secciones y tarjetas ---------- */
.section { padding: 52px 0 4px; }
.section h2:first-child { margin-top: 0; }
.section-alt { background: var(--gray-bg); padding: 52px 0 36px; margin-top: 44px; }
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 20px 0 30px;
}
.card {
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 26px;
  background: var(--white);
}
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .icon { width: 56px; height: 56px; margin-bottom: 10px; }
.common { color: var(--gray-text); font-size: 0.95rem; }

/* Tarjetas de servicios de la portada: rojas con texto blanco,
   esquinas 20px 0 20px 0, igual que el sitio actual */
.services-cards .card {
  background: var(--red);
  border: none;
  color: var(--white);
  padding: 44px 30px;
  box-shadow: 0 3px 11px rgba(0, 0, 0, 0.14);
}
.services-cards .card h3 { color: var(--white); }
.services-cards .card p { color: rgba(255, 255, 255, 0.93); }
.services-cards .card .common { color: rgba(255, 255, 255, 0.72); }

/* Banda fotográfica entre secciones (posición del sitio actual) */
.photo-band {
  height: 300px;
  border-radius: var(--radius-card);
  background: url("../img/pexels-6474471.webp") center / cover no-repeat;
  margin-top: 26px;
}

.two-col { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
figure { margin: 0 0 20px; }
figure img { border-radius: var(--radius-card); display: block; width: 100%; }
.photo { border-radius: var(--radius-card); margin: 0 0 20px; width: 100%; }
.banner-logo {
  background: var(--ink);
  border-radius: var(--radius-card);
  padding: 18px;
  text-align: center;
  margin: 0 0 24px;
}
.banner-logo img { max-height: 90px; width: auto; }

.areas-list {
  columns: 2;
  list-style: none;
  padding: 0;
}
.areas-list li {
  padding: 7px 0;
  border-bottom: 1px solid var(--gray-line);
  font-weight: 700;
}

.testimonial {
  border: 1px solid var(--gray-line);
  background: var(--white);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  margin: 0 auto 18px;
  max-width: 860px;
}
.testimonial::before {
  content: "★★★★★";
  display: block;
  color: var(--red);
  letter-spacing: 4px;
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.testimonial p { font-style: italic; color: #374151; }
.testimonial .author {
  font-style: normal;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.faq-item { border-bottom: 1px solid var(--gray-line); padding: 16px 0; }
.faq-item h3 { margin: 0 0 6px; font-size: 1.08rem; text-transform: none; letter-spacing: 0; }
.faq-item p { margin: 0; }

.estimate-box {
  background: var(--gray-bg);
  color: var(--ink);
  border-top: 5px solid var(--red);
  border-radius: var(--radius-card);
  padding: 34px 36px;
  margin: 34px 0 6px;
}
.estimate-box h2 { color: var(--ink); margin-top: 0; font-size: 2.1rem; }
.estimate-box .fineprint { font-size: 0.82rem; color: #6b7280; margin-top: 16px; }

/* Formulario dentro de la caja de estimados de la portada */
.estimate-form { max-width: 640px; margin-top: 16px; }
.estimate-form label { display: block; font-weight: 700; margin: 13px 0 5px; }
.estimate-form label:first-child { margin-top: 0; }
.estimate-form input,
.estimate-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}
.estimate-form input:focus,
.estimate-form textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 0;
  border-color: var(--red);
}
.estimate-form button { margin-top: 16px; }

/* ---------- Sección "More Ways" (fondo patchwork como el actual) ---------- */
.more-ways {
  background:
    linear-gradient(rgba(255, 255, 255, 0.41), rgba(255, 255, 255, 0.41)),
    url("../img/drywall-patchwork.webp") center / cover no-repeat;
  border-radius: var(--radius-card);
  padding: 80px 40px;
  margin-top: 52px;
}
.more-ways h2 { margin-top: 0; }
.more-ways figure { margin: 0; }
.more-ways figure img { border-radius: 33px; height: 100%; object-fit: cover; }

/* ---------- Banda del área de servicio (gráfico de fondo + fotos) ---------- */
.service-area-band {
  background: var(--gray-bg) url("../img/service-area-map.webp") right center / cover no-repeat;
  border-top: 1px solid var(--gray-line);
  border-radius: var(--radius-card);
  padding: 70px 34px;
  margin-top: 52px;
}
.band-photos { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 780px; }
.band-photos figure { margin: 0; }
.band-photos img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-card);
}

/* ---------- Blog ---------- */
.post-meta { color: var(--gray-text); font-size: 0.92rem; margin-bottom: 1.2em; }
.post-card {
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px 24px;
  margin-bottom: 18px;
  background: var(--white);
}
.post-card h3 { margin-top: 0; text-transform: none; letter-spacing: 0; font-size: 1.3rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--red); }
.article { max-width: 780px; }

/* ---------- Formulario ---------- */
.contact-form {
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px;
  background: var(--white);
  max-width: 640px;
}
.contact-form label { display: block; font-weight: 700; margin: 14px 0 6px; }
.contact-form label:first-child { margin-top: 0; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 0;
  border-color: var(--red);
}
.contact-form button {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
  border-radius: 6px;
  padding: 13px 26px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.98rem;
  cursor: pointer;
  margin-top: 16px;
}
.contact-form button:hover { background: var(--red-bright); border-color: var(--red-bright); }
.contact-form .fineprint { font-size: 0.82rem; color: var(--gray-text); margin-top: 14px; }
.form-success { color: var(--green); font-weight: 700; }

/* ---------- Pie (negro, como el sitio actual) ---------- */
.site-footer {
  background: var(--black);
  color: #e5e7eb;
  margin-top: 56px;
  padding: 44px 0 24px;
}
.site-footer h3 { color: var(--white); font-size: 1.02rem; letter-spacing: 0.06em; }
.site-footer a { color: #e5e7eb; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.footer-logo { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; }
.footer-areas { columns: 2; list-style: none; padding: 0; margin: 0; }
.footer-areas li { margin-bottom: 4px; }
.footer-bottom {
  border-top: 1px solid #1f2937;
  margin-top: 28px;
  padding-top: 16px;
  font-size: 0.85rem;
  color: #9ca3af;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}
.review-badge { max-width: 220px; margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .band-photos { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 2.6rem; }
  .hero-home h1 { font-size: 3.4rem; }
  h2 { font-size: 2.15rem; }
  .cards { grid-template-columns: 1fr 1fr 1fr; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .areas-list { columns: 3; }
}
@media (max-width: 639px) {
  .header-inner { justify-content: center; text-align: center; }
  .brand { margin-right: 0; }
  .brand img { height: 52px; }
  .main-nav { justify-content: center; }
  .call-btn { margin-left: 0; }
  .hero-home { padding: 64px 0 56px; }
  .hero-home h1 { font-size: 2rem; }
  .services-cards .card { padding: 32px 24px; }
  .estimate-box { padding: 26px 22px; }
  .top-bar-inner { justify-content: center; text-align: center; }
  .trust-pill { font-size: 10px; letter-spacing: 2px; }
  .more-ways { padding: 44px 22px; }
  .service-area-band { padding: 44px 20px; }
  .photo-band { height: 200px; }
  body { font-size: 16px; }
}
