:root{
  --bg:#f4f4f4;
  --card: rgba(255,255,255,.92);
  --alt:#ffffff;
  --txt:#111827;
  --muted:#6b7280;
  --line:rgba(17,24,39,.12);

  /* Identidad electricidad */
  --primary:#0b5ed7;        /* azul eléctrico */
  --primary-2:#083b8a;      /* azul profundo */
  --accent:#f59e0b;         /* amarillo energía */
  --radius:18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--txt);

  background-color: #0f1720;
  background-image: linear-gradient(rgba(105, 96, 96, 0.5)), url("../multimedia/electbody.webp");
  background-repeat: repeat-y;
  background-position: top center;
  background-size: auto 900px;
}

/* capa de suavizado */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.12);
  pointer-events: none;
  z-index: -1;
}


a{color:inherit; text-decoration:none}
.container{width:min(1100px, 92%); margin:0 auto}

/* =========================
   HEADER / NAV
========================= */
.header{
  position:sticky; top:0; z-index:50;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner{
  display:flex; align-items:center; gap:14px;
  padding:12px 0;
}
.brand{display:flex; align-items:center; gap:10px}
.brand__logo{
  width:42px; height:42px; display:grid; place-items:center;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(245,158,11,.95), rgba(245,158,11,.75));
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}
.brand__text strong{color:var(--alt)}
.brand__text small{display:block; color:rgba(255,255,255,.86); font-size:12px}

.nav{display:flex; gap:16px; margin-left:auto; align-items:center}
.nav a{color:rgba(255,255,255,.92); font-size:14px}
.nav a:hover{color:var(--alt)}

.nav__toggle{
  display:none;
  margin-left:auto;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  color:rgba(255,255,255,.92);
  padding:10px 12px;
  border-radius: 12px;
  cursor:pointer;
}

/* =========================
   BUTTONS
========================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:11px 14px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.12);
  color:var(--alt);
  font-weight:700;
  cursor:pointer;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
}
.btn:hover{transform: translateY(-1px); filter: brightness(1.03)}
.btn:active{transform: translateY(0)}

.btn--primary{
  background: linear-gradient(180deg, rgba(245,158,11,.98), rgba(245,158,11,.78));
  border-color: rgba(245,158,11,.55);
  color:#0b1220;
}
.btn--ghost{
  background: rgba(134, 126, 126, 0.877);
  border-color: rgba(255,255,255,.22);
  color:rgba(255,255,255,.95);
}

.header__cta{display:inline-flex}

/* =========================
   HERO
========================= */
.hero{padding:46px 0 26px}
.hero{
  position: relative;
  width: 100%;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;          /* recorta la capa */
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("../multimedia/electhero.webp") center/cover no-repeat;
  z-index:0;

  animation: bgFadeZoom 3s ease-out forwards;
  transform-origin: center;
  will-change: transform, opacity;
}

.hero > *{
  position: relative;
  z-index:1; /* contenido arriba */
}

@keyframes bgFadeZoom{
  from { opacity:0; transform: scale(1.70); }
  to   { opacity:1; transform: scale(1); }
}

#animtext {
  opacity: 0;
  transform: scale(0.92);
  animation: titleIn 3s ease-out 1.5s forwards;
}

@keyframes titleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
#animbut {
  opacity: 0;
  transform: translateY(14px);
  animation: btnIn 0.45s ease-out forwards;
}

#animbut:nth-child(1) { animation-delay: 0.9s; }
#animbut:nth-child(2) { animation-delay: 1.05s; }
#animbut:nth-child(3) { animation-delay: 1.2s; }
#animbut:nth-child(4) { animation-delay: 0.9s; }
#animbut:nth-child(5) { animation-delay: 1.05s; }
#animbut:nth-child(6) { animation-delay: 1.2s; }

@keyframes btnIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.hero__grid{
  display:grid;
  place-items: center;
  gap:90px;
  align-items:center;
  transform: translateY(-7vh);
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center; /* o start si no querés centrado */
  gap: 0px;           /* separación vertical */
}
.empresa{
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 8vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #f5f7fa;
}
.empresa__accent{
  color: #f6b21a;
}

.hero__content h1:not(.empresa){
  font-size: clamp(28px, 4vw, 50px);
  line-height:1.1;
  margin:0 0 10px;
  color: white;
}

.lead{color:white; font-size:20px; margin:0 0 10px}
.hero__actions{display:flex; flex-wrap:wrap; gap:10px; margin-bottom:14px}

.badges{display:flex; flex-wrap:wrap; gap:8px}
.badge{
  border:1px solid var(--line);
  background: rgba(255,255,255,.8);
  padding:8px 10px;
  border-radius: 999px;
  color:var(--txt);
  font-size:13px;
}

/* Fondo hero más “eléctrico” */
.hero__media{
  height:320px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background:
    
    url("../multimedia/frenteloc.jpg") center/cover no-repeat;
}

/* =========================
   SECTIONS
========================= */
.section{padding:44px 0}
.section--alt{
  background: transparent;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line)
}
.section h2{margin:0 0 8px; font-size:28px; color: rgb(235, 235, 32);}
.section__subtitle{margin:0 0 18px; font-size: 20px; color:rgb(235, 235, 26)}

.grid{display:grid; gap:14px}

/* Cards servicios */
.cards{grid-template-columns: repeat(3, 1fr)}
.card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.85);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: 0 10px 22px rgba(0,0,0,.05);
}
.card h3{margin:0 0 6px}
.card p{margin:0; color:var(--muted)}

/* Categorías */
.categories{grid-template-columns: repeat(4, 1fr)}
.category{
  border:1px solid var(--line);
  background: rgba(255,255,255,.85);
  border-radius: 16px;
  padding:14px;
  color:var(--txt);
  text-align:center;
  box-shadow: 0 10px 22px rgba(0,0,0,.04);
}

.center{display:flex; justify-content:center; margin-top:16px}

/* =========================
   PROMOS / GRID TIENDA
========================= */
.promos{
  margin: 26px auto 6px;
  font-size: 28px;
  width: min(1100px, 92%);
  color: rgb(226, 226, 34);
}

.grid-tienda{
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 18px 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Card promo (usa tus article) */
article{
  background: linear-gradient(180deg, #ffffff, #f9fafb);
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow:
    0 10px 24px rgba(0,0,0,.06),
    0 2px 6px rgba(0,0,0,.04);
}

/* Imagen */
article img{
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  background: #e5e7eb;
}

/* Si usás estructura paintCard__... la dejamos linda */
.paintCard__body{padding: 14px 16px 16px}
.paintCard__title{margin:0 0 8px; font-size: 1.05rem; font-weight: 800; color:#111827}
.paintCard__desc{margin:0 0 12px; font-size:.95rem; color:#6b7280; line-height:1.35}
.paintCard__footer{display:flex; align-items:center; justify-content:space-between; gap:10px}
.paintCard__price{margin:0; font-size:1.05rem; font-weight: 900; color:#111827}
.btn--small{padding:10px 12px; border-radius:12px; font-weight:800}

/* Tag tipo “promo/oferta” */
.paintCard__media{position:relative}
.paintCard__tag{
  position:absolute;
  top:12px; left:12px;
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  background: rgba(245,158,11,.95);
  color:#0b1220;
  border:1px solid rgba(0,0,0,.10);
}

/* =========================
   MARCAS
========================= */
.marc h2{
  margin: 0 0 18px;
}
.marc__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.logos{
  width:100%;
  height: 120px;
  object-fit: contain;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,.04);
}

/* =========================
   CALCULADORA
========================= */
.calc{
  border:1px solid var(--line);
  background: rgba(255,255,255,.9);
  border-radius: var(--radius);
  padding:16px;
  display:grid;
  gap:12px;
  max-width: 520px;
  box-shadow: 0 10px 22px rgba(0,0,0,.04);
}
.calc label{display:grid; gap:6px; color:var(--muted); font-size:14px}

input, textarea{
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(17,24,39,.16);
  background: rgba(255,255,255,.95);
  color:var(--txt);
  outline:none;
}
input:focus, textarea:focus{
  border-color: rgba(11,94,215,.55);
  box-shadow: 0 0 0 4px rgba(11,94,215,.12);
}
.calc__result{
  padding:12px;
  border-radius: 14px;
  border:1px dashed rgba(17,24,39,.22);
  color:var(--txt);
}

/* Testimonios y reseñas*/
.reviews-demo{
  padding: 72px 0;
  background: transparent;
}

.reviews-demo__head{
  text-align: center;
  margin-bottom: 36px;
}
h2{color: white; font-size: 28px;}
.reviews-demo__subtitle{
  color: white;
  font-size: 20px;
}

.reviews-demo__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.review-card{
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(0,0,0,.08);
  position: relative;
}

.review-badge{
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  color: #555;
}

.review-text{
  font-size: 0.95rem;
  margin: 22px 0 14px;
  line-height: 1.5;
}

.review-meta{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #666;
}

.review-stars{
  color: #f5b301;
  letter-spacing: 1px;
}

.reviews-demo__notice{
  margin-top: 40px;
  text-align: center;
  padding: 18px;
  border-radius: 14px;
  background: rgba(0,0,0,.04);
}
.resengoogle{color: white;}
.reviews-demo__btn{
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  background: #ccc;
  color: #666;
  cursor: not-allowed;
}


/* =========================
   CONTACTO
========================= */
.contact{
  display:grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 28px;
  align-items:start;
  margin-top: 16px;
}
.contact__info{display:grid; gap:14px}

.infoBox{
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 22px rgba(0,0,0,.05);
}
.infoBox h3{margin:0 0 8px; font-size:15px; color:var(--txt)}
.infoBox p{margin:0; color:var(--muted); line-height:1.6}
.infoBox a{
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,0,0,0.25);
}

.contact__info .btn{justify-self:start; margin-top:6px}

.contact__form{
  background: rgba(255,255,255,.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 22px rgba(0,0,0,.05);
  display:grid;
  gap: 12px;
}
.contact__form label{display:grid; gap:8px; font-size:14px; color:var(--txt)}
.contact__form textarea{resize: vertical; min-height: 140px}
#formMsg{margin:0; min-height:18px}

/* si hay <br> en el HTML */
.contact__form br{display:none}

/* Mapa */
.map{
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(0,0,0,.05);
  background: var(--card);
}
.map iframe{
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* =========================
   FOOTER
========================= */
.footer{
  padding:22px 0;
  border-top:1px solid var(--line);
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  color: rgba(255,255,255,.92);
}
.footer__inner{
  display:flex;
  justify-content: flex-start;
  gap:12px;
  flex-wrap:wrap
}
.muted{color:rgba(255,255,255,.78)}

/* =========================
   WHATSAPP FLOAT (queda igual)
========================= */
.wa-float{
  position:fixed;
  right:18px;
  bottom:18px;
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  background:#25d366;
  border-radius:50%;
  z-index:9999;
  animation: pulse 2.5s infinite;
}
@keyframes pulse{
  0%{box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6)}
  70%{box-shadow: 0 0 0 14px rgba(37, 211, 102, 0)}
  100%{box-shadow: 0 0 0 0 rgba(37, 211, 102, 0)}
}
.wa-float img{width:28px; height:28px}

/* =========================
   MODAL
========================= */
.modal{
  border:none;
  border-radius: 18px;
  padding:0;
  max-width:min(880px, 92vw);
  background: rgba(11,12,16,.92);
  color:var(--txt);
}
.modal::backdrop{background: rgba(0,0,0,.65)}
.modal img{width:100%; height:auto; display:block; border-radius: 18px}
.modal__close{
  position:absolute;
  top:10px; right:10px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color:rgba(255,255,255,.92);
  padding:8px 10px;
  border-radius: 12px;
  cursor:pointer;
}

/* =========================
   Sobre Nosotros – Electricidad (body blanco)
   ========================= */
:root{
  --elec-blue: var(--primary, #0b5fff);   /* azul eléctrico */
  --elec-yellow: var(--accent, #ffd400);  /* amarillo */
}

.about--electric{display: flex;
  justify-content: space-between;
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
  position: relative;
  overflow: hidden;
}

/* doble acento: barra azul + detalle amarillo */
.about--electric::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:8px;
  background: linear-gradient(180deg, var(--elec-blue), rgba(11,95,255,.55));
  border-radius: 18px 0 0 18px;
}

.about--electric::after{
  content:"";
  position:absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,212,0,.35), rgba(255,212,0,0) 60%);
  pointer-events: none;
}

.about--electric .about__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.about--electric p{
  color: rgba(0,0,0,.78);
  line-height: 1.7;
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.about--electric p strong{
  color: rgba(0,0,0,.95);
}

/* badges: borde azul + toque amarillo */
.about--electric .about__badges{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 14px;
}

.about--electric .badge{
  background: rgba(11,95,255,.06);
  border: 1px solid rgba(11,95,255,.22);
  color: rgba(0,0,0,.78);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .9rem;
}

.about--electric .badge::before{
  content:"";
  display:inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--elec-yellow);
  margin-right: 8px;
  box-shadow: 0 0 0 4px rgba(255,212,0,.18);
  vertical-align: middle;
}

/* box lateral */
.about--electric .about__box{
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 16px;
}

.about--electric .about__box h3{
  margin: 0 0 10px;
  color: rgba(0,0,0,.92);
}

/* lista */
.about--electric .about__list{
  margin: 0 0 12px;
  padding-left: 18px;
  color: rgba(0,0,0,.72);
  line-height: 1.55;
}

.about--electric .about__note{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,212,0,.12);
  border: 1px dashed rgba(255,212,0,.45);
  color: rgba(0,0,0,.78);
}

.redes{
  width: 40px;
  height: 40px;
}

/* ✅ Tarjeta que entra desde el costado */
.side-card{
  position: fixed;
  right: 18px;
  top: 96px;
  z-index: 9999;

  width: min(340px, calc(100vw - 36px));
  padding: 14px 16px;

  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);

  box-shadow: 0 14px 40px rgba(0,0,0,.18);

  transform: translateX(130%);
  opacity: 0;
  pointer-events: none;

  transition: transform .8s ease, opacity .8s ease;
}

.side-card__title{
  margin: 0 0 6px;
  font-weight: 800;
  line-height: 1.2;
  color: #111;
}

.side-card__text{
  margin: 0;
  font-size: .95rem;
  line-height: 1.35;
  color: rgba(17,17,17,.82);
}

/* ✅ Estado visible (entra despacio desde la derecha) */
.side-card.is-show{
  transform: translateX(0);
  opacity: 1;
}

/* ✅ Estado salida (baja opacidad y se va) */
.side-card.is-hide{
  transform: translateX(130%);
  opacity: 0;
}

@media (max-width: 768px) {
  
  #animtext  {
    transform: translateY(-55px) !important; 
  } 
  .hero__content{
    padding-top: 64px;   /* probá 48 / 64 / 80 */
  }
}


/* Opcional: en pantallas muy chicas que no tape tanto */
@media (max-width: 420px){
  .side-card{ top: 76px; right: 12px; }
}


/* responsive */
@media (max-width: 900px){
  .about--electric .about__grid{ grid-template-columns: 1fr; }
  .about--electric{ padding: 18px; }
  .about--electric::before{ width: 6px; }
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px){
  .hero__grid{grid-template-columns: 1fr}
  .cards{grid-template-columns: repeat(2, 1fr)}
  .categories{grid-template-columns: repeat(2, 1fr)}
  .contact{grid-template-columns: 1fr}
  .header__cta{display:none}
  .nav__toggle{display:inline-flex}

  .nav{
    display:none;
    position:absolute;
    left:0; right:0;
    top:64px;
    padding:12px;
    background: rgba(8,59,138,.96);
    border-bottom: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
    justify-content:center;
    flex-wrap:wrap;
  }
  .nav.is-open{display:flex}
}

/* Tablet */
@media (max-width: 870px){
  .section{padding:56px 0}
  .grid-tienda{grid-template-columns: repeat(2, 1fr)}
  .marc__grid{grid-template-columns: repeat(2, 1fr)}
  .map iframe{height:280px}
  .contact__info .btn{justify-self: stretch; text-align:center}
  .contact__form .btn{width:100%}
}

/* Celular */
@media (max-width: 480px){
  .promos{
    margin: 18px auto 8px;
    font-size: 22px;
    text-align: center;
  }
  .grid-tienda{
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 0 22px;
  }
  article img{height: 300px}
  .marc__grid{grid-template-columns: 1fr; justify-items:center}
  
  
}


