/*==============================================================
  MEJORAS - Almacén de Baterías
  Este archivo va en css/mejoras.css y se carga último,
  así pisa los estilos de style.css y style2.css.
==============================================================*/

:root {
  --brand: #18a4b1;
  --brand-dark: #12808a;
  --accent: #f5b301;
  --dark: #111;
  --text: #555;
  --light: #f5f7f8;
  --wa: #25d366;
  --wa-dark: #1da851;
}

body {
  color: var(--text);
  background: #fff;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.section-title {
  font-size: 32px;
  letter-spacing: 0.5px;
}

.section-description {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px auto;
  font-size: 16px;
  color: #777;
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
#hero .hero-container {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.75) 100%);
  padding: 90px 20px 40px 20px;
}

#hero .hero-logo {
  margin: 0 auto 10px auto;
}

#hero .hero-logo img {
  max-height: 180px;
}

#hero .hero-title {
  font-family: "Raleway", sans-serif;
  font-size: 54px;
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  text-transform: uppercase;
  margin: 20px 0 8px 0;
}

#hero .hero-subtitle {
  display: inline-block;
  font-family: "Raleway", sans-serif;
  font-size: 30px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--dark);
  background: var(--accent);
  padding: 8px 22px;
  margin: 6px 0 22px 0;
}

#hero .hero-text {
  color: #eee;
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 26px auto;
  line-height: 1.5;
}

#hero .actions a,
#cta-auxilio .cta-buttons a {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  margin: 8px;
  transition: 0.3s;
}

#hero .actions a .fa,
#cta-auxilio .cta-buttons a .fa {
  margin-right: 8px;
  font-size: 18px;
}

.btn-hero-wa {
  background: var(--wa);
  border: 2px solid var(--wa);
  color: #fff !important;
}

.btn-hero-wa:hover,
.btn-hero-wa:focus {
  background: var(--wa-dark);
  border-color: var(--wa-dark);
}

.btn-hero-call {
  background: transparent;
  border: 2px solid #fff;
  color: #fff !important;
}

.btn-hero-call:hover,
.btn-hero-call:focus {
  background: #fff;
  color: var(--dark) !important;
}

@media (max-width: 768px) {
  #hero .hero-container {
    padding: 70px 16px 30px 16px;
  }
  #hero .hero-logo img {
    max-height: 120px;
  }
  #hero .hero-title {
    font-size: 32px;
  }
  #hero .hero-subtitle {
    font-size: 20px;
    letter-spacing: 1px;
    padding: 6px 16px;
  }
  #hero .hero-text {
    font-size: 16px;
  }
  #hero .actions a {
    display: block;
    margin: 10px auto;
    max-width: 320px;
  }
}

/*--------------------------------------------------------------
# Franja de beneficios
--------------------------------------------------------------*/
#header #logo h1 {
  font-size: 28px;
  padding: 10px 0;
}

.nav-menu a {
  padding: 10px 12px;
  font-size: 14px;
}

@media (min-width: 769px) and (max-width: 1199px) {
  #header #logo h1 {
    font-size: 22px;
  }
  .nav-menu a {
    padding: 10px 8px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  #header #logo h1 {
    font-size: 19px;
    padding: 14px 0;
  }
}

@media (min-width: 769px) and (max-width: 991px) {
  #header #logo {
    display: none;
  }
  #nav-menu-container {
    float: none;
    display: flex;
    justify-content: center;
  }
}

#header .container::after {
  content: "";
  display: table;
  clear: both;
}

.benefits-bar {
  clear: both;
  position: relative;
  background: var(--brand);
  color: #fff;
  padding: 18px 0;
}

.benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 12px 24px;
}

.benefits-list li {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 15px;
}

.benefits-list .fa {
  color: var(--dark);
  margin-right: 6px;
  font-size: 17px;
}

@media (max-width: 767px) {
  .benefits-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .benefits-list li {
    font-size: 14px;
  }
}

/*--------------------------------------------------------------
# Quiénes somos
--------------------------------------------------------------*/
#about {
  background: #fff;
  padding: 80px 0;
}

#about .about-row {
  align-items: center;
  margin-top: 20px;
}

#about .about-img img {
  width: 100%;
  border-radius: 6px;
}

#about .about-content {
  background: transparent;
  padding-top: 10px;
}

#about .about-text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--text);
}

#about .about-text strong {
  color: var(--dark);
}

.btn-brand {
  display: inline-block;
  margin-top: 10px;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 26px;
  border-radius: 50px;
  background: var(--brand);
  border: 2px solid var(--brand);
  color: #fff !important;
  transition: 0.3s;
}

.btn-brand:hover,
.btn-brand:focus {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-brand .fa {
  margin-right: 8px;
}

@media (max-width: 991px) {
  #about .about-img {
    margin-bottom: 30px;
  }
}

/*--------------------------------------------------------------
# Marcas
--------------------------------------------------------------*/
#clients {
  background: var(--light);
  padding: 70px 0;
}

#clients .clients-wrap {
  margin-top: 20px;
  border: none;
}

#clients .client-logo {
  background: #fff;
  border: 1px solid #e8e8e8;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin: 6px;
}

#clients .client-logo img {
  max-height: 80px;
  width: auto;
}

/*--------------------------------------------------------------
# Servicios
--------------------------------------------------------------*/
#services {
  padding: 80px 0 50px 0;
}

.service-col {
  margin-bottom: 30px;
  display: flex;
}

.service-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-top: 4px solid var(--brand);
  padding: 30px 26px;
  width: 100%;
  transition: border-color 0.3s;
}

.service-card:hover {
  border-top-color: var(--accent);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-card-icon .fa {
  color: #fff;
  font-size: 24px;
}

.service-card h4 {
  font-family: "Raleway", sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 10px 0;
}

.service-card p {
  margin: 0;
  line-height: 1.6;
  font-size: 15px;
}

/*--------------------------------------------------------------
# Llamado a la acción
--------------------------------------------------------------*/
#cta-auxilio {
  background: var(--dark);
  padding: 50px 0;
}

#cta-auxilio .cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

#cta-auxilio h3 {
  color: #fff;
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  font-size: 30px;
  margin: 0 0 6px 0;
}

#cta-auxilio p {
  color: #ccc;
  font-size: 17px;
  margin: 0;
}

.btn-cta-call {
  background: var(--accent);
  border: 2px solid var(--accent);
  color: var(--dark) !important;
}

.btn-cta-call:hover,
.btn-cta-call:focus {
  background: #fff;
  border-color: #fff;
}

@media (max-width: 767px) {
  #cta-auxilio {
    text-align: center;
  }
  #cta-auxilio .cta-inner {
    justify-content: center;
  }
  #cta-auxilio h3 {
    font-size: 24px;
  }
}

/*--------------------------------------------------------------
# Trabajos
--------------------------------------------------------------*/
#work {
  background: var(--light);
  padding: 80px 0 50px 0;
}

#work .work-row {
  margin-left: -8px;
  margin-right: -8px;
}

#work .work-row > div {
  padding-left: 8px;
  padding-right: 8px;
}

#work .work-box {
  display: block;
  margin-bottom: 16px;
  box-shadow: none;
  border-radius: 6px;
  overflow: hidden;
}

#work .work-img {
  aspect-ratio: 1 / 1;
}

#work .work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

#work .work-box:hover img {
  transform: scale(1.08);
}

/*--------------------------------------------------------------
# Reseñas (ajustes sobre lo ya existente)
--------------------------------------------------------------*/
#resenas {
  background: #fff;
}

/*--------------------------------------------------------------
# Contacto y footer
--------------------------------------------------------------*/
.footer-paralax {
  margin-top: 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.contact-list li {
  font-size: 16px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-list .fa {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.contact-list a {
  color: var(--dark);
  word-break: break-word;
}

.contact-list a:hover {
  color: var(--brand);
}

#contact .form-control {
  border-radius: 4px;
  padding: 12px 14px;
  height: auto;
}

#contact .form-control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(24, 164, 177, 0.2);
}

#contact .button-a {
  background: var(--brand);
  border-color: var(--brand);
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/*--------------------------------------------------------------
# Botones flotantes y barra fija en celulares
--------------------------------------------------------------*/
.whatsapp,
.instagram {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp:hover,
.instagram:hover {
  color: #fff;
}

.whatsapp-icon,
.instagram-icon {
  margin-top: 0;
}

.mobile-cta-bar {
  display: none;
}

@media (max-width: 767px) {
  .whatsapp,
  .instagram {
    display: none;
  }

  body {
    padding-bottom: 64px;
  }

  .mobile-cta-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--dark);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
  }

  .mobile-cta-bar a {
    flex: 1;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #fff;
  }

  .mobile-cta-bar a .fa {
    font-size: 22px;
  }

  .mobile-cta-call {
    background: var(--brand);
  }

  .mobile-cta-wa {
    background: var(--wa);
  }

  .back-to-top {
    bottom: 80px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/*--------------------------------------------------------------
# Formulario por WhatsApp
--------------------------------------------------------------*/
#contact .btn-wa-submit {
  background: var(--wa);
  border-color: var(--wa);
}

#contact .btn-wa-submit:hover,
#contact .btn-wa-submit:focus {
  background: var(--wa-dark);
  border-color: var(--wa-dark);
}

#contact .btn-wa-submit .fa {
  margin-right: 8px;
}

.wa-form-note {
  font-size: 13px;
  color: #888;
  margin: 10px 0 0 0;
}

.wa-form-error {
  color: #c0392b;
  font-size: 14px;
  margin: 0 0 10px 0;
}

.wa-form-error:empty {
  display: none;
}