
/* Professional pool site styles */
*{box-sizing:border-box;font-family:Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;margin:0;padding:0}
:root{
  --blue-1:#072f5f;
  --blue-2:#0b69a3;
  --blue-3:#0ea5e9;
  --accent:#22c55e;
  --muted:#6b7280;
  --glass: rgba(255,255,255,0.6);
}
body{background:linear-gradient(180deg,#e6f7ff 0%, #f8fbff 60%); color:var(--blue-900); line-height:1.6}
.container{max-width:1200px;margin:0 auto;padding:28px}
header{background:transparent;padding:18px 0}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:14px}
.brand img{height:64px;width:auto;border-radius:8px;box-shadow:0 8px 30px rgba(14,165,233,0.15)}
.brand .title{font-size:1.15rem;font-weight:800;color:var(--blue-1)}
.brand .subtitle{font-size:0.9rem;color:var(--muted);display:block;margin-top:2px}
.nav a{margin-left:18px;color:var(--blue-2);text-decoration:none;font-weight:700}
.hero{background:linear-gradient(135deg,#f0fbff,#dbeafe);color:var(--blue-900);padding:40px;border-radius:14px;margin-top:8px;box-shadow:0 18px 40px rgba(2,132,199,0.10);border:1px solid rgba(2,132,199,0.18)}
.hero-inner{display:grid;grid-template-columns:1fr 420px;gap:26px;align-items:center}
.hero h1{font-size:2rem;margin-bottom:8px;line-height:1.05}
.hero p.lead{opacity:1;font-size:1.04rem;color:var(--blue-700)}
.choice-row{display:flex;gap:18px;margin-top:18px;flex-wrap:wrap}
/*
  IMPORTANT: These two “options” (Venta / Reparación) must be readable even when the
  hero background looks light on some screens/cameras. We use a solid white card and
  a professional blue text to guarantee contrast.
*/
.choice{
  flex:1;
  min-width:240px;
  background:#ffffff;
  padding:18px;
  border-radius:12px;
  text-align:center;
  color:var(--blue-900);
  text-decoration:none;
  font-weight:800;
  box-shadow:0 8px 24px rgba(2,6,23,0.10);
  border:1px solid rgba(0,43,73,0.14);
}
.choice .emoji{font-size:28px;line-height:1;margin-right:8px}
.choice:hover{transform:translateY(-4px);transition:all .18s ease;background:#f6fbff}
.card{background:white;border-radius:12px;padding:18px;box-shadow:0 10px 30px rgba(2,6,23,0.06);border:1px solid #e6eef6}
.grid{display:grid;gap:18px}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
.item-img{width:100%;height:auto;border-radius:8px;border:1px solid #e6eef6;box-shadow: inset 0 -30px 60px rgba(14,165,233,0.04)}
.item-title{font-weight:800;margin-top:12px;color:var(--blue-1)}
.item-meta{color:var(--muted);font-size:0.95rem;margin-top:8px}
.quote-btn{display:inline-block;margin-top:12px;padding:10px 14px;background:var(--blue-2);color:white;border-radius:8px;text-decoration:none;font-weight:800;box-shadow:0 8px 18px rgba(3,105,161,0.18)}
.quote-btn.outline-btn{
  background:#ffffff;
  color:var(--blue-2);
  border:2px solid var(--blue-2);
  box-shadow:none;
}
.quote-btn.outline-btn:hover{
  background:rgba(3,105,161,0.08);
  color:var(--blue-2);
}

.info-strip{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:14px;border-radius:12px;background:linear-gradient(90deg,rgba(255,255,255,0.6), rgba(255,255,255,0.3));margin-top:18px;border:1px solid rgba(3,105,161,0.06)}
.section-title{font-size:1.35rem;font-weight:800;margin-bottom:6px;color:var(--blue-1)}
.section-sub{color:var(--muted);margin-bottom:12px}
.pricing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:12px}
.pricing{padding:18px;border-radius:12px;background:linear-gradient(180deg,#ffffff,#f1fbff);border:1px solid rgba(14,165,233,0.06);box-shadow:0 10px 30px rgba(14,165,233,0.04)}
.pricing h3{font-size:1.05rem;color:var(--blue-1)}
.badge{display:inline-block;padding:6px 10px;border-radius:999px;background:rgba(14,165,233,0.12);color:var(--blue-2);font-weight:700;margin-right:8px}
.faq dt{font-weight:800;margin-top:12px}
.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:12px}
.gallery img{width:100%;height:140px;object-fit:cover;border-radius:8px;border:1px solid #e6eef6}
.footer{margin-top:28px;padding:28px 0;text-align:center;color:var(--muted);font-size:0.95rem}
@media(max-width:980px){.hero-inner{grid-template-columns:1fr} .grid-3{grid-template-columns:repeat(2,1fr)} .gallery{grid-template-columns:repeat(2,1fr)} }
@media(max-width:600px){.grid-3{grid-template-columns:repeat(1,1fr)} .pricing-grid{grid-template-columns:repeat(1,1fr)} }


/* --- Uniform grid cards --- */
.grid {
  align-items: stretch;
}

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

.card img,
.item-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.item-title {
  min-height: 48px;
}

.item-meta {
  min-height: 56px;
}

.quote-btn {
  margin-top: auto;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  z-index: 9999;
}
.whatsapp-float i {
  margin-top: 15px;
}

h1, h2, h3 {
  color: #0a6ea8 !important;
}


/* Enfibrado: mostrar 2 fotos (antes/después) */
.img-duo{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0}
.img-duo img{width:100%;height:190px;object-fit:cover;border-radius:10px;border:1px solid rgba(15,61,115,.12)}
@media (max-width:720px){.img-duo{grid-template-columns:1fr}.img-duo img{height:210px}}


/* Force all text in blue tones */
:root{
  --blue-900:#0a3d91;
  --blue-700:#1e5bbf;
  --blue-800:#1e40af;
  --blue-600:#2563eb;
}
body{color:var(--blue-800) !important;}
h1,h2{color:var(--blue-900) !important;}
h3,h4,.item-title,.title{color:var(--blue-700) !important;}
p,span,li,.item-meta{color:var(--blue-800) !important;}
a{color:var(--blue-600) !important;}/* Hero showcase gallery */
.hero-showcase{
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(13,71,161,0.18);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}
.hero-showcase-block + .hero-showcase-block{ margin-top: 12px; }
.hero-showcase-title{
  font-weight: 800;
  color: #0D47A1;
  font-size: 14px;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
}
.hero-showcase-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.hero-showcase-grid img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(13,71,161,0.18);
  background: #fff;
}
.hero-showcase-note{
  margin-top: 10px;
  font-size: 12px;
  color: #1565C0;
}
@media (max-width: 900px){
  .hero-showcase-grid{ grid-template-columns: repeat(2, 1fr); }
}




/* ===== HERO (Inicio) estilo tipo banner con botones ===== */
.hero-hero{
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("images/hero_inicio.jpg") center/cover no-repeat;
  border-radius: 18px;
  overflow: hidden;
  margin: 6px 0 26px;
}
.hero-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55));
}
.hero-hero .hero-overlay{
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 64px 18px;
  max-width: 980px;
  color: #fff;
}
.hero-hero h1{
  margin: 0 0 12px;
  font-weight: 800;
  line-height: 1.05;
  font-size: clamp(30px, 4vw, 56px);
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.hero-hero p{
  font-size: clamp(15px, 2vw, 18px);
  max-width: 760px;
  margin: 0 auto 22px;
  opacity: 0.95;
  text-shadow: 0 8px 22px rgba(0,0,0,0.30);
}
.hero-btn:hover{ transform: translateY(-1px); opacity: .95; }
@media (max-width: 640px){
  .hero-hero{ min-height: 62vh; border-radius: 14px; }
  .hero-hero .hero-overlay{ padding: 54px 14px; }
  }

/* Force hero text to white */
.hero-hero .hero-overlay h1,
.hero-hero .hero-overlay p,
.hero-hero .hero-overlay .kicker{ color:#fff !important; }


.hero-buttons{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.hero-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
  backdrop-filter: blur(10px);
}

.hero-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.hero-btn-light{
  background: rgba(255,255,255,0.95);
  color: #0f172a;
}

.hero-btn-outline{
  background: rgba(15,23,42,0.40);
  color: #ffffff;
  border-color: rgba(255,255,255,0.55);
}

.hero-btn-whatsapp{
  background: #25D366;
  color: #ffffff;
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 520px){
  .hero-btn{ width: 100%; max-width: 340px; }
  .hero-buttons{ width: 100%; }
}



/* ===== HERO OVERRIDES (force premium contrast) ===== */
.hero-hero .hero-overlay h1,
.hero-hero .hero-overlay h1 span,
.hero-hero .hero-overlay p{
  color:#ffffff !important;
}

.hero-hero .hero-btn-light{
  background:#ffffff !important;
  color:#000000 !important;
  border-color: rgba(255,255,255,0.95) !important;
}

.hero-hero .hero-btn-outline{
  background: rgba(255,255,255,0.12) !important;
  color:#ffffff !important;
  border-color: rgba(255,255,255,0.85) !important;
}

.hero-hero .hero-btn-whatsapp{
  color:#ffffff !important;
}

/* Make sure links in hero don't inherit global link colors */
.hero-hero a{ color: inherit !important; }

/* WhatsApp CTA */
.hero .btn-whatsapp{
  background:#25D366 !important;
  color:#ffffff !important;
}


/* WhatsApp CTA buttons (ventas/reparaciones) */
.wa-cta{
  background:#25D366 !important;
  color:#ffffff !important;
  border:1px solid rgba(0,0,0,0.05);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none;
}
.wa-cta:hover{
  background:#1EBE5A !important;
}
.wa-cta .wa-ico{
  display:inline-flex;
  width:18px;
  height:18px;
}
.wa-cta .wa-svg{
  width:18px;
  height:18px;
  fill:#ffffff;
}
.wa-cta .wa-text{
  color:#ffffff !important;
  font-weight:700;
}

/* ===== OPTIMIZACIÓN MOBILE ===== */
@media (max-width: 768px){
  .hero{min-height:70vh;padding:28px 16px;text-align:center;}
  .hero h1{font-size:34px;line-height:1.05;}
  .hero p{font-size:15px;line-height:1.35;}
  .hero .cta{display:flex;flex-direction:column;gap:12px;width:100%;}
  .hero .cta a,.hero .cta button{width:100%;padding:14px 16px;border-radius:999px;}
  .services-grid,.cards-grid{grid-template-columns:1fr !important;gap:14px;}
  .card{display:flex;flex-direction:column;}
  .card img{height:180px;object-fit:cover;}
  .card .btn{margin-top:auto;}
  .galeria{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;}
  .galeria .item{min-width:78%;scroll-snap-align:start;}
  form input,form textarea,form button{width:100%;font-size:16px;}
  .whatsapp-float{bottom:78px;right:16px;}
}
