/* ==========================================================================
   SERVICIO TÉCNICO WINIA - DISEÑO OFICIAL LIMPIO Y SENCILLO (HTML5/CSS3)
   ========================================================================== */

:root {
  --primary-color: #0a3c71;
  --primary-hover: #072b52;
  --accent-color: #0183e4;
  --text-dark: #181818;
  --text-body: #333333;
  --text-muted: #555555;
  --bg-page: #ffffff;
  --bg-footer: #d8d8d8;
  --border-color: #e5e5e5;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Quicksand', sans-serif;
  --container-max: 980px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-body);
  background-color: var(--bg-page);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

ul {
  list-style: none;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
  color: var(--primary-color);
}

h1 {
  color: var(--text-dark);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.7rem;
  margin: 2rem 0 1rem 0;
}

h3 {
  font-size: 1.35rem;
  margin: 1.8rem 0 0.8rem 0;
}

p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.text-center, .has-text-align-center {
  text-align: center;
}

/* Línea azul decorativa bajo títulos centrados */
h2.has-text-align-center::after,
h3.has-text-align-center::after,
h2.text-center::after,
h3.text-center::after {
  content: "";
  display: block;
  width: 40%;
  margin: 0 auto;
  border-bottom: 4px solid var(--primary-color);
  padding-bottom: 10px;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: #ffffff;
  z-index: 1000;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.12);
}

.site-header-content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
}

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-container {
  display: flex;
  align-items: center;
}

.header-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu-item {
  position: relative;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
}

.menu-item > a {
  color: #111111;
  padding: 0.5rem 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.menu-item > a:hover {
  color: var(--primary-color);
}

/* Dropdown */
.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid #555555;
  border-bottom: 2px solid #555555;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.2s ease;
}

.menu-item-has-children:hover > a::after {
  transform: rotate(225deg);
  border-color: var(--primary-color);
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 1010;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: #333333;
  font-size: 0.88rem;
  font-weight: 500;
  border-bottom: 1px solid #f4f4f4;
  transition: all 0.2s ease;
}

.sub-menu li:last-child a {
  border-bottom: none;
}

.sub-menu li a:hover {
  background-color: #f0f7ff;
  color: var(--primary-color);
  padding-left: 1.5rem;
}

/* Botón azul del menú */
.btn-asistencia-header a {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  padding: 8px 18px !important;
  border-radius: 4px;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  text-transform: uppercase;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(10, 60, 113, 0.25);
}

.btn-asistencia-header a:hover {
  background-color: var(--primary-hover) !important;
  transform: translateY(-1px);
}

/* Botón Hamburguesa Móvil */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1020;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background-color: #222222;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- HERO SECTION --- */
.asap-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 3rem 1.5rem;
  overflow: hidden;
}

.asap-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(30, 30, 30, 0.4) 0%, rgba(10, 10, 10, 0.75) 100%);
  z-index: 1;
}

.asap-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: #ffffff;
}

.asap-hero-content h1 {
  color: #ffffff !important;
  font-size: 2.3rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-hero, .asap-btn-dl {
  display: inline-block;
  background-color: var(--primary-color);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-hero:hover, .asap-btn-dl:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* --- MAIN CONTAINER --- */
.main-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem 1.25rem;
}

.the-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
}

.the-content p {
  margin-bottom: 1.4rem;
}

.the-content strong {
  color: #111111;
}

/* Banners de llamada */
.banner-call-box {
  display: block;
  text-align: center;
  margin: 2rem auto;
  max-width: 320px;
}

.banner-call-box img {
  margin: 0 auto;
  border-radius: 6px;
}

.banner-bottom-cta {
  display: block;
  text-align: center;
  margin: 2.5rem auto 1.5rem auto;
  max-width: 580px;
}

.banner-bottom-cta img {
  margin: 0 auto;
}

/* --- CONTENT CLUSTERS (TARJETAS) --- */
.content-cluster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 2.2rem 0;
}

.article-loop, .cluster-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.article-loop:hover, .cluster-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.article-loop a, .cluster-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-loop .article-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-loop img, .cluster-card .card-image img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-loop:hover img, .cluster-card:hover .card-image img {
  transform: scale(1.05);
}

.article-loop .entry-title, .cluster-card .card-title {
  padding: 0.85rem 0.6rem;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
  margin: 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- LISTAS DE AVERÍAS --- */
.listado-servicios {
  margin: 1.5rem 0;
  padding: 0;
}

.listado-servicios li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.85rem;
  font-size: 1.02rem;
  line-height: 1.6;
}

.listado-servicios li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 1.1rem;
  height: 1.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230a3c71'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* --- VENTAJAS (2 COLUMNAS) --- */
.su-row {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
}

.su-column {
  flex: 1;
}

.su-service {
  position: relative;
  padding-left: 48px;
}

.su-service-icon {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  width: 36px;
  height: 36px;
}

.su-service-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.su-service-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: #111111;
  margin-bottom: 0.3rem;
}

.su-service-content {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- FOOTER ORIGINAL --- */
footer {
  background: var(--bg-footer);
  color: #222222;
  margin-top: 3.5rem;
}

.content-footer {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 35px 20px;
}

.widget-content-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
  gap: 2rem;
}

.widget-area p.widget-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111111;
  text-transform: uppercase;
}

.footer-logo {
  margin-bottom: 0.85rem;
  max-width: 180px;
}

.textwidget ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.textwidget ul li a {
  color: #333333;
  font-size: 0.88rem;
}

.textwidget ul li a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.disclaimer-text {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #555555;
  margin-top: 0.5rem;
}

/* --- BARRA FLOTANTE MÓVIL --- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
  padding: 12px 15px;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.mobile-call-bar a {
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.mobile-call-bar svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
  .content-cluster {
    grid-template-columns: repeat(2, 1fr);
  }
  .widget-content-footer {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 60px;
  }

  .mobile-call-bar {
    display: block;
  }

  .hamburger {
    display: block;
  }

  .nav-container {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #ffffff;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-container.is-active {
    height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .header-menu {
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    align-items: flex-start;
  }

  .su-row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .asap-hero-content h1 {
    font-size: 1.8rem;
  }

  .menu-item-has-children .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }
}

@media (max-width: 540px) {
  .content-cluster {
    grid-template-columns: 1fr;
  }
  .widget-content-footer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}


/* --- TRUST BAR --- */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: #f0f7ff;
  border: 1px solid #d0e4ff;
  border-radius: 10px;
  padding: 1.25rem 1rem;
  margin: 2.2rem 0;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.trust-icon {
  font-size: 1.6rem;
}

.trust-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-color);
}

.trust-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* --- PASOS DEL SERVICIO --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 2.2rem 0;
}

.step-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.5rem 1rem;
  text-align: center;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.step-number {
  width: 38px;
  height: 38px;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 0.75rem auto;
}

.step-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 0.4rem;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --- PREGUNTAS FRECUENTES (FAQ) --- */
.faq-container {
  margin: 2.2rem 0;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.faq-question {
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-body);
  background-color: #ffffff;
}

/* --- BARRIOS BADGES --- */
.barrios-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 2rem 0;
}

.barrio-badge {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

@media (max-width: 800px) {
  .trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .trust-bar {
    grid-template-columns: 1fr;
  }
  .process-steps {
    grid-template-columns: 1fr;
  }
}
