/* styles.css - Estilos base para la landing page */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Ajustá este valor según la altura de tu menú */
}



/* ==================== RESET ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-base);
  color: var(--color-texto);
  background-color: var(--color-fondo);
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== HERO ==================== */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.hero-content {
  max-width: 600px;
  padding: 40px;
}
.hero h1 {
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}
.hero .marca {
  background-color: #000;
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
}
.hero .subtitulo {
  font-size: var(--text-md);
  margin-bottom: 20px;
  color: #FFFFFF;
}
.btn-llamar {
  display: inline-block;
  background-color: var(--color-principal);
  color: #fff;
  padding: 12px 25px;
  font-weight: bold;
  border-radius: 4px;
  font-size: var(--text-md);
  transition: background-color 0.3s ease;
}
.btn-llamar:hover {
  background-color: var(--color-secundario);
}
.hero .nota {
  margin-top: 25px;
  font-size: 13px;
  color: #f0f0f0;
  font-weight: 300;
}

/* ==================== SECCIÓN SERVICIO INFO ==================== */
.servicio-info {
  padding: 80px 0;
  background-color: var(--color-fondo);
}

.servicio-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.servicio-texto {
  flex: 1;
  padding-right: var(--space-md);
}

.etiqueta {
  color: var(--color-principal);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  position: relative;
  padding-left: 28px;
  margin-bottom: 18px;
  display: inline-block;
  letter-spacing: 0.5px;
}

.etiqueta::before {
  content: "";
  width: 20px;
  height: 2px;
  background-color: var(--color-principal);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.titulo-servicio {
  font-size: 40px;
  font-weight: 800;
  color: var(--color-azul-oscuro);
  margin-bottom: 18px;
  line-height: 1.3;
  font-family: var(--font-heading);
}

.descripcion {
  font-size: var(--text-md);
  color: var(--color-texto);
  line-height: 1.7;
  max-width: 520px;
}

.servicio-imagen {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.imagen-fondo {
  background-image: url('../img/marcas/fondos_agua.jpg');
  background-size: cover;
  background-position: center;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imagen-fondo img {
  width: 360px;
  transform: translateX(-150px);
  border-radius: 50%;
  z-index: 2;
  background: transparent;
}

/* ==================== QUIENES SOMOS ==================== */
.quienes_somos {
  padding: 80px 20px;
  background-color: #f9f9f9;
}

.quienes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.quienes-texto {
  flex: 1 1 55%;
}

.quienes-texto h2 {
  font-size: 26px;
  margin-bottom: 20px;
  color: var(--color-principal);
}

.quienes-texto p {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 15px;
}

.quienes-imagen {
  flex: 1 1 40%;
  text-align: center;
}

.quienes-imagen img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}


/* ======= SECCIÓN SERVICIOS TARJETAS ======= */

.servicios-tarjetas {
  background-color: #f8f8f8; /* o var(--color-relleno) */
  position: relative;
  padding: 0 0 60px;
  text-align: center;
  z-index: 1;
}


.servicios-tarjetas .titulo-seccion {
  color: var(--color-azul-oscuro);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.servicios-tarjetas .subtitulo-seccion {
  color: var(--color-texto);
  font-weight: 600;
  margin-bottom: 10px;
}

.servicios-tarjetas .descripcion-seccion {
  color: var(--color-texto);
  font-size: 14px;
  margin-bottom: 40px;
}

.tarjetas-servicio {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.tarjeta {
  max-width: 250px;
  text-align: center;
}

.circulo-imagen {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background-color: var(--color-principal);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.circulo-imagen img {
  width: 120px;
  height: auto;
}

.tarjeta h3 {
  font-size: 18px;
  color: var(--color-azul-oscuro);
  font-weight: 700;
  margin-bottom: 10px;
}

.tarjeta p {
  font-size: 14px;
  color: var(--color-texto);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .tarjetas-servicio {
    flex-direction: column;
    align-items: center;
  }
}

/* ==================== WAVE DECORATIVA ==================== */
.wave-top {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -2px;
}

.wave-top svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ==================== SECCIÓN MARCA CALENTADORES ==================== */

.marca-calentadores {
  position: relative;
  background-image: url('../img/marcas/parallax_thermomaster.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Efecto PARALLAX */
  color: #fff;
  overflow: hidden;
  padding: 80px 0;
}

.marca-calentadores .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(82, 165, 209, 0.50); /* Azul oscuro semitransparente */
  z-index: 1;
}

.marca-calentadores .contenedor {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.marca-calentadores .texto {
  flex: 1 1 50%;
  color: #fff;
}

.marca-calentadores .texto h2 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
}

.marca-calentadores .texto h2 span {
  display: inline-block;
  background-color: #000;
  padding: 0 10px;
  font-weight: 700;
}

.marca-calentadores .texto p {
  margin-top: 10px;
  font-size: 16px;
}

.marca-calentadores .slider {
  flex: 1 1 40%;
  max-width: 400px;
  height: 320px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marca-calentadores .slider-track {
  display: flex;
  width: 400%;
  animation: slideAuto 16s infinite;
}

.marca-calentadores .slider-track img {
  width: 100%;
  height: auto;
  object-fit: contain;
  padding: 0 10px;
}

@keyframes slideAuto {
  0% { transform: translateX(0); }
  20% { transform: translateX(0); }
  25% { transform: translateX(-100%); }
  45% { transform: translateX(-100%); }
  50% { transform: translateX(-200%); }
  70% { transform: translateX(-200%); }
  75% { transform: translateX(-300%); }
  95% { transform: translateX(-300%); }
  100% { transform: translateX(0); }
}


/* ==================== BOTÓN VOLVER ARRIBA ==================== */
#topButton {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--color-principal);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  font-size: 20px;
  transition: background-color 0.3s ease;
}
#topButton:hover {
  background-color: var(--color-secundario);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .top-bar .contact-item {
    display: block;
    margin: 5px 0;
  }
  .main-nav {
    flex-direction: column;
  }
  .main-nav a {
    margin: 8px 0;
    font-size: var(--text-sm);
  }
  .call-action {
    margin-top: 10px;
  }
  .main-header .logo img {
    height: 45px;
  }
  .hero {
    background-attachment: scroll;
    text-align: center;
    justify-content: center;
    padding: 60px 20px;
    height: auto;
  }
  .hero-content {
    padding: 0;
  }
  .hero h1 {
    font-size: var(--text-xl);
  }
  .hero .subtitulo {
    font-size: var(--text-sm);
  }
  .btn-llamar {
    font-size: var(--text-sm);
    padding: 10px 20px;
  }
  .servicio-grid {
    flex-direction: column;
    text-align: center;
  }
  .imagen-fondo {
    width: 280px;
    height: 280px;
  }
  .imagen-fondo img {
    width: 140px;
    border-radius: 50%;
  }
}

/* ==================== BOTÓN WHATSAPP FLOTANTE ==================== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  width: 55px;
  height: 55px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 100%;
  height: auto;
  display: block;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.marca-thermomaster .quienes-grid {
  flex-direction: row-reverse;
}




/* ====== Fondos únicos por marca en sección marca-calentadores ====== */


/* === .marca-thermomaster .marca-calentadores {
  background-image: url('../img/marcas/parallax_thermomaster.webp');
} ===*/

.marca-stiebel_eltron .marca-calentadores {
  background-image: url('../img/marcas/parallax_stiebel_eltron.webp');
}

.marca-aqua_power .marca-calentadores {
  background-image: url('../img/marcas/parallax_aquapower.webp');
}

.marca-thermomax .marca-calentadores {
  background-image: url('../img/marcas/parallax_thermomax.webp');
}

.marca-galaxy .marca-calentadores {
  background-image: url('../img/marcas/parallax_galaxy.webp');
}

.marca-iheat .marca-calentadores {
  background-image: url('../img/marcas/parallax_iheat.webp');
}

.marca-ecosmart .marca-calentadores {
  background-image: url('../img/marcas/parallax_ecosmart.webp');
}

.marca-gines .marca-calentadores {
  background-image: url('../img/marcas/parallax_gines.webp');
}

.marca-ecolezer .marca-calentadores {
  background-image: url('../img/marcas/parallax_ecolezer.webp');
}

.marca-airpax .marca-calentadores {
  background-image: url('../img/marcas/parallax_airpax.webp');
}

.marca-geyser .marca-calentadores {
  background-image: url('../img/marcas/parallax_geyser.webp');
}

.marca-thermosolutions .marca-calentadores {
  background-image: url('../img/marcas/parallax_thermosolutions.webp');
}

.marca-titan_usa .marca-calentadores {
  background-image: url('../img/marcas/parallax_titanusa.webp');
}

.marca-titan_plus .marca-calentadores {
  background-image: url('../img/marcas/parallax_titanplus.webp');
}


