/* ==========================================================================
   SERVICIO TÉCNICO WHIRLPOOL - DISEÑO ORIGINAL LIMPIO Y SENCILLO
   ========================================================================== */

:root {
  --primary-color: #fdc100;
  --primary-hover: #e0ab00;
  --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: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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(--text-dark);
}

h1 {
  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 {
  text-align: center;
}

/* Línea amarilla decorativa bajo títulos centrados (diseño original) */
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-hover);
}

/* Flechita 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);
}

/* Submenú desplegable */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  padding: 0.4rem 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: #fff9e6;
  color: #000;
  padding-left: 1.5rem;
}

/* Botón amarillo del menú (diseño original) */
.btn-asistencia-header a {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  padding: 8px 16px !important;
  border-radius: 3px;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  text-transform: uppercase;
  transition: all 0.2s ease !important;
}

.btn-asistencia-header a:hover {
  background-color: var(--primary-hover) !important;
}

/* 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 (DISEÑO ORIGINAL) --- */
.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;
  font-size: 2.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.btn-hero {
  display: inline-block;
  background-color: var(--primary-color);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: 3px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-hero:hover {
  background-color: var(--primary-hover);
}

/* --- MAIN CONTAINER --- */
.main-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem 1.5rem;
}

.the-content {
  font-size: 1.05rem;
  line-height: 1.75;
}

.the-content strong {
  font-weight: 700;
  color: #111111;
}

/* Banners de llamada originales */
.banner-call-box {
  display: block;
  text-align: center;
  margin: 2rem auto;
  max-width: 300px;
}

.banner-call-box img {
  margin: 0 auto;
}

.banner-bottom-cta {
  display: block;
  text-align: center;
  margin: 2.5rem auto 1.5rem auto;
  max-width: 569px;
}

.banner-bottom-cta img {
  margin: 0 auto;
}

/* --- CONTENT CLUSTERS (TARJETAS ORIGINALES) --- */
.content-cluster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 2.2rem 0;
}

.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;
}

.cluster-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.cluster-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cluster-card .card-image {
  overflow: hidden;
  height: 135px;
  background-color: #f5f5f5;
}

.cluster-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cluster-card:hover .card-image img {
  transform: scale(1.05);
}

.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;
}

/* --- VENTAJAS (2 COLUMNAS ORIGINALES) --- */
.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;
}

/* --- LISTAS DE SERVICIOS --- */
.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='%2357ad00'%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;
}

.listado-servicios li strong {
  color: #111111;
}

/* --- FOOTER ORIGINAL --- */
footer {
  background: var(--bg-footer);
  color: #222222;
  margin-top: 3rem;
}

.content-footer {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 30px 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;
}

.nap {
  font-size: 0.88rem;
  line-height: 1.6;
}

.nap a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-weight: 700;
  color: #111111;
}

.nap a svg {
  width: 14px;
  height: 14px;
  fill: #000000;
}

.textwidget ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-list a:hover {
  text-decoration: underline;
}

.footer-list .icon-check svg {
  width: 13px;
  height: 13px;
  fill: #57ad00;
  flex-shrink: 0;
}

.footer-list .icon-doc svg {
  width: 13px;
  height: 13px;
  fill: #2c89d0;
  flex-shrink: 0;
}

.footer-payments-img {
  margin-bottom: 0.75rem;
  max-width: 220px;
}

.footer-disclaimer-text {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #444444;
}

/* --- BOTÓN FLOTANTE MÓVIL ORIGINAL --- */
.call-now-button {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background-color: var(--primary-color);
  color: #ffffff;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.call-now-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media screen and (max-width: 980px) {
  .widget-content-footer {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  body {
    padding-bottom: 50px;
  }

  .call-now-button {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .header-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 0.5rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .header-menu.is-open {
    transform: translateX(0);
  }

  .menu-item {
    width: 100%;
  }

  .menu-item > a {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
    justify-content: space-between;
  }

  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: #fafafa;
    border-radius: 4px;
    margin: 0.4rem 0;
    display: none;
  }

  .menu-item-has-children.active-mobile .sub-menu {
    display: block;
  }

  .btn-asistencia-header {
    margin-top: 1rem;
    width: 100%;
  }

  .btn-asistencia-header a {
    width: 100%;
    text-align: center;
    display: block;
  }

  .asap-hero {
    min-height: 280px;
    padding: 2rem 1rem;
  }

  .asap-hero-content h1 {
    font-size: 1.8rem;
  }

  .content-cluster {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .su-row {
    flex-direction: column;
    gap: 1.25rem;
  }

  .widget-content-footer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .asap-hero-content h1 {
    font-size: 1.6rem;
  }

  .content-cluster {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .cluster-card .card-image {
    height: 110px;
  }

  .cluster-card .card-title {
    font-size: 0.82rem;
    padding: 0.65rem 0.4rem;
  }
}
