
/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  background: #0b0b0b;
  color: white;
}

/* HEADER */
.hero {
  position: relative;
}

.hero img {
  width: 100%;
  
}

.hero-overlay {
  position: absolute;
  bottom: 20px;
  right: 20px;
  text-align: right;
}

.hero-text {
  font-size: 14px;
  margin-bottom: 5px;
}

.btn-whatsapp {
  background: #25D366;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: bold;
}

/* SECCIONES */
.section {
  padding: 50px 20px;
  text-align: center;
}

.section h2 {
  margin-bottom: 40px;
  font-size: 3rem;
}

/* SERVICIOS */
/* GRID */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 25px;
}

/* CARD BASE */
.card {
  background: #111;
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
}

/* ICONO */
.icon {
  font-size: 40px;
  margin-bottom: 15px;
}

/* TITULO */
.card h3 {
  margin-bottom: 10px;
}

/* TEXTO */
.card p {
  font-size: 14px;
  margin-bottom: 15px;
}

/* BOTON BASE */
.btn {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  font-weight: bold;
}

/* ===== COLORES POR CATEGORIA ===== */

/* ⚡ ENERGÍA */
.energia {
  border-top: 4px solid #FFD700;
}
.energia .icon {
  color: #FFD700;
}
.energia .btn {
  background: #FFD700;
  color: black;
}

/* ☀️ SOLAR */
.solar {
  border-top: 4px solid #FFA500;
}
.solar .icon {
  color: #FFA500;
}
.solar .btn {
  background: #FFA500;
}

/* ❄️ AIRE */
.aire {
  border-top: 4px solid #00BFFF;
}
.aire .icon {
  color: #00BFFF;
}
.aire .btn {
  background: #00BFFF;
}

/* 🔥 CALEFACCIÓN */
.calefaccion {
  border-top: 4px solid #FF4C4C;
}
.calefaccion .icon {
  color: #FF4C4C;
}
.calefaccion .btn {
  background: #FF4C4C;
}

/* HOVER MÁS PRO */
.card::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 0%;
  bottom: 0;
  left: 0;
  background: rgba(255,255,255,0.05);
  transition: 0.3s;
}

.card:hover::before {
  height: 100%;
}

.card:hover .icon {
  transform: scale(1.2) rotate(5deg);
  transition: 0.3s;
}
/*GALERIA*/

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.destacada {
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
}

.galeria img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.galeria img:hover {
  transform: scale(1.05);
}



/* CONFIANZA */
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.badges span {
  background: #111;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 14px;
}

/* FOOTER */
footer{
    background:#000;
    padding:25px 20px;
    text-align:center;
    font-size:14px;
    color:#bdbdbd;
}

.creditos{
    margin-top:8px;
    font-size:13px;
    color:#888;
}

.creditos a{
    color:#25D366;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.creditos a:hover{
    color:#fff;
}

/* PROMOS*/
/* =========================
   PROMOS
========================= */

.promo-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:24px;
    max-width:1100px;
    margin:0 auto;
}
.promo-poster{
    
    overflow:hidden;
    border-radius:16px;
    background:#111;
    transition:.3s;
    box-shadow:0 10px 25px rgba(0,0,0,.25);

}

.promo-poster:hover{
    transform:translateY(-6px);
}

.promo-poster img{
    width:100%;
    display:block;
    aspect-ratio:427 / 640;
    object-fit:cover;
}

.promo-overlay{
    position:static;
    background:#111;
    padding:20px;
    text-align:center;
}

.promo-overlay h3{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    margin-bottom:10px;
    font-size:22px;
}

.promo-overlay p{
    color:#cfcfcf;
    margin-bottom:18px;
    line-height:1.5;
}
@media(max-width:768px){

    .promo-grid{

        grid-template-columns:1fr;

        max-width:280px;

        gap:18px;

    }

    .promo-poster img{

        max-height:420px;

        object-fit:cover;

    }

}

/* CARD */
.promo-card {

  background: #111;

  border-radius: 18px;

  padding: 22px;

  width: 100%;
  max-width: 360px;

  text-align: center;

  transition: 0.3s;
}

.promo-card:hover {
  transform: translateY(-5px);
}

/* IMAGEN */
.promo-card img {

  width: 100%;

  max-width: 220px;

  border-radius: 12px;

  margin-bottom: 20px;
}

/* TITULO */
.promo-card h3 {

  margin-bottom: 10px;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* TEXTO */
.promo-card p {

  margin-bottom: 20px;

  opacity: 0.9;
}

/* ICONOS */
.bi-sun-fill {
  color: orange;
}

.bi-fire {
  color: #ff4c4c;
}

/* BOTONES */
.solar-btn {
  background: orange;
}

.fuego-btn {
  background: #ff4c4c;
}
.aire-btn {
  background:#00BFFF;
}
.electro-btn {
  background:#25D366;
}

/* MOBILE */
@media (max-width:768px){

  .promo-card{
    max-width: 300px;
  }

  .promo-card img{
    max-width: 180px;
  }

}



/* FILTROS */
.filtros {
  text-align: center;
  margin-bottom: 20px;
}

.filtros button {
  margin: 5px;
  padding: 8px 12px;
  border: none;
  background: var(--third-color);
  color: white;
  border-radius: 5px;
  cursor: pointer;
}



/* MODAL */
#modal {
  display: none;
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.85);
  justify-content:center;
  align-items:center;
  z-index: 999;
}

#modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

/* WHATSAPP */
.wp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  font-size: 24px;
  padding: 12px;
  border-radius: 50%;
}

/*RESE;AS*/
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 20px;
  margin-top: 30px;
}

.review-card {
  background: white;
  color: #000;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stars {
  color: #FFD700;
  font-size: 20px;
  margin-bottom: 10px;
}

.review-card p {
  font-size: 15px;
  margin-bottom: 15px;
}

.review-card h4 {
  color: var(--third-color);
}
/* =========================
   MOBILE OPTIMIZATION
========================= */
@media (max-width: 768px) {

  /* HERO */
  .hero img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
  }

  /* SECCIONES */
  .section {
    padding: 35px 15px;
  }

  /* TITULOS */
  .section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  /* SERVICIOS */
  .services{
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 300px;
    margin: auto;
  }

  .card {
    padding: 16px 14px;
    border-radius: 10px;
  }

  .card h3 {
    font-size:16px;
    margin-bottom:8px;
  }

  .card p{
    font-size:12px;
    line-height:1.4;
    margin-bottom:12px;
}

  /* ICONOS */
  .icon {
    font-size: 26px;
    margin-bottom: 8px;
  }

  /* BOTONES */
  .btn,
  .btn-whatsapp {
    padding: 10px 14px;
    font-size: 14px;
  }

  /* GALERIA */
  .galeria {
    grid-template-columns: repeat(2,1fr);
    gap: 8px;
  }

  .destacada {
    grid-template-columns: repeat(2,1fr);
  }

  /* BADGES */
  .badges span {
    font-size: 12px;
    padding: 8px 12px;
  }

  /* RESEÑAS */
  .review-card {
    padding: 16px;
  }

  .review-card p {
    font-size: 14px;
  }

  .review-card h4 {
    font-size: 14px;
  }

  /* CARRUSEL */
  .carousel img {
    max-height: 220px;
    padding: 5px;
  }

}