:root {
  --ps-blue-900: #062f4f;
  --ps-blue-700: #0b5394;
  --ps-blue-500: #1a8fe3;
  --ps-blue-300: #6ec1ee;
  --ps-blue-100: #e6f4fc;
  --ps-yellow: #f7c948;
  --ps-yellow-soft: #fde9a8;
  --ps-text: #1f2d3d;
  --ps-muted: #5b6b7c;
  --ps-bg: #ffffff;
  --ps-bg-alt: #f5fafd;
  --ps-shadow: 0 10px 30px rgba(6, 47, 79, .08);
  --ps-shadow-strong: 0 20px 50px rgba(6, 47, 79, .18);
  --ps-radius: 16px;
}

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 100px; }

body {
  font-family: 'Inter', 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
  color: var(--ps-text);
  background: var(--ps-bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-weight: 700;
  color: var(--ps-blue-900);
  letter-spacing: -.01em;
}

.display-1, .display-2, .display-3, .display-4 { font-weight: 800; }

.text-muted-soft { color: var(--ps-muted) !important; }
.text-ps-blue { color: var(--ps-blue-500) !important; }
.text-wa { color: #25d366 !important; }

a { color: var(--ps-blue-700); text-decoration: none; }
a:hover { color: var(--ps-blue-500); }

.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-alt { background: var(--ps-bg-alt); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ps-blue-500);
  background: var(--ps-blue-100);
  padding: .35rem .75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ========== NAVBAR ========== */
.navbar-piscisol {
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(6, 47, 79, .06);
  transition: box-shadow .25s ease;
}
.navbar-piscisol.scrolled { box-shadow: 0 6px 20px rgba(6,47,79,.08); }
.navbar-piscisol .navbar-brand img { height: 56px; width: auto; max-width: 220px; }
@media (max-width: 575px) {
  .navbar-piscisol .navbar-brand img { height: 44px; max-width: 170px; }
}
.navbar-piscisol .nav-link {
  font-weight: 600;
  color: var(--ps-blue-900);
  padding: .5rem 1rem !important;
  border-radius: 8px;
  transition: all .2s ease;
}
.navbar-piscisol .nav-link:hover,
.navbar-piscisol .nav-link.active {
  color: var(--ps-blue-700);
  background: var(--ps-blue-100);
}
.navbar-piscisol .btn-cta {
  background: var(--ps-yellow);
  color: var(--ps-blue-900);
  border: none;
  font-weight: 700;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  transition: all .2s ease;
}
.navbar-piscisol .btn-cta:hover {
  background: var(--ps-blue-900);
  color: #fff;
  transform: translateY(-1px);
}

/* ========== TOP BAR ========== */
.topbar {
  background: var(--ps-blue-900);
  color: #cfe6f5;
  font-size: .85rem;
  padding: .5rem 0;
}
.topbar a { color: #fff; font-weight: 500; }
.topbar a:hover { color: var(--ps-yellow); }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(6,47,79,.85) 0%, rgba(11,83,148,.65) 50%, rgba(26,143,227,.45) 100%),
    url('../img/hero-1.jpg') center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 80' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,32 C240,80 480,0 720,32 C960,64 1200,16 1440,48 L1440,80 L0,80 Z'/%3E%3C/svg%3E") center/cover no-repeat;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  font-weight: 800;
}
.hero h1 .accent { color: var(--ps-yellow); }
.hero p.lead { font-size: 1.25rem; color: rgba(255,255,255,.9); max-width: 620px; }
.hero .badges-row { gap: .5rem; }
.hero .badge-soft {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-weight: 500;
  padding: .45rem .9rem;
  border-radius: 999px;
  font-size: .85rem;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* Sub-hero (interior pages) */
.subhero {
  position: relative;
  padding: 7rem 0 5rem;
  background:
    linear-gradient(135deg, rgba(6,47,79,.88), rgba(11,83,148,.7)),
    url('../img/hero-1.jpg') center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.subhero::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,24 C360,60 720,0 1080,24 C1260,36 1380,18 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") center/cover no-repeat;
}
.subhero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.subhero .breadcrumb { background: transparent; padding: 0; margin: 0; }
.subhero .breadcrumb-item, .subhero .breadcrumb-item a { color: rgba(255,255,255,.85); }
.subhero .breadcrumb-item.active { color: var(--ps-yellow); }
.subhero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ========== BUTTONS ========== */
.btn-primary-ps {
  background: var(--ps-yellow);
  color: var(--ps-blue-900);
  font-weight: 700;
  border: none;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  transition: all .25s ease;
  box-shadow: 0 8px 20px rgba(247, 201, 72, .35);
}
.btn-primary-ps:hover {
  background: #ffd866;
  color: var(--ps-blue-900);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(247, 201, 72, .45);
}
.btn-outline-ps {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  font-weight: 600;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  transition: all .25s ease;
}
.btn-outline-ps:hover {
  background: #fff;
  color: var(--ps-blue-900);
  border-color: #fff;
}
.btn-dark-ps {
  background: var(--ps-blue-900);
  color: #fff;
  font-weight: 600;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: none;
  transition: all .25s ease;
}
.btn-dark-ps:hover { background: var(--ps-blue-700); color: #fff; transform: translateY(-2px); }

.btn-wa {
  background: #25d366;
  color: #fff;
  font-weight: 700;
  border: none;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  transition: all .25s ease;
  box-shadow: 0 8px 20px rgba(37, 211, 102, .35);
}
.btn-wa:hover {
  background: #1ebe57;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 211, 102, .45);
}

/* ========== STATS ========== */
.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
}
.stat-card .num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--ps-blue-700);
  line-height: 1;
}
.stat-card .num .plus { color: var(--ps-yellow); }
.stat-card .num.text { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.01em; }
.stat-card .lbl {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .08em;
  font-size: .85rem;
  color: var(--ps-muted);
  margin-top: .5rem;
}

/* ========== SERVICE CARDS ========== */
.service-card {
  background: #fff;
  border-radius: var(--ps-radius);
  padding: 2rem 1.75rem;
  border: 1px solid rgba(6,47,79,.06);
  transition: all .3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--ps-blue-500), var(--ps-yellow));
  transition: width .35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ps-shadow-strong);
  border-color: transparent;
}
.service-card:hover::before { width: 100%; }
.service-card .icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: var(--ps-blue-100);
  color: var(--ps-blue-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  transition: all .3s ease;
}
.service-card:hover .icon {
  background: var(--ps-yellow);
  color: var(--ps-blue-900);
  transform: scale(1.05);
}
.service-card h3 { font-size: 1.2rem; margin-bottom: .65rem; }
.service-card p { color: var(--ps-muted); font-size: .95rem; margin: 0; }

/* ========== FEATURE LIST ========== */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  padding: .55rem 0 .55rem 2rem;
  position: relative;
  color: var(--ps-text);
}
.feature-list li::before {
  content: "\F26B";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0; top: .55rem;
  color: var(--ps-blue-500);
  font-weight: 700;
}

/* ========== SERVICE DETAIL BLOCKS (servicios.html) ========== */
.service-block {
  background: #fff;
  border-radius: var(--ps-radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(6,47,79,.06);
  box-shadow: var(--ps-shadow);
}
.service-block .head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px dashed var(--ps-blue-100);
}
.service-block .head .icon-big {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ps-blue-500), var(--ps-blue-700));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.service-block h3 { margin: 0; font-size: 1.35rem; }

/* ========== PARTNERS ========== */
.partner-group-title {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ps-muted);
}
.partner-card {
  background: #fff;
  border-radius: var(--ps-radius);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(6,47,79,.06);
  transition: all .3s ease;
  height: 100%;
}
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--ps-shadow); }
.partner-card .partner-name {
  font-weight: 800;
  color: var(--ps-blue-900);
  font-size: 1.15rem;
  letter-spacing: .02em;
}
.partner-card .partner-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ps-blue-500);
  background: var(--ps-blue-100);
  padding: .25rem .6rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}

/* ========== GALLERY ========== */
.gallery-item {
  position: relative;
  border-radius: var(--ps-radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--ps-shadow);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6,47,79,.55) 100%);
  opacity: 0;
  transition: opacity .3s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }

/* ========== ANTES / DESPUES ========== */
.beforeafter-card {
  position: relative;
  border-radius: var(--ps-radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--ps-shadow);
  background: #000;
}
.beforeafter-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.beforeafter-card .ba-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  background: rgba(6, 47, 79, .85);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .4rem .85rem;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 2;
}
.beforeafter-card.after .ba-tag {
  background: var(--ps-yellow);
  color: var(--ps-blue-900);
}
.beforeafter-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--ps-blue-500);
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--ps-blue-900), var(--ps-blue-700));
  color: #fff;
  border-radius: var(--ps-radius);
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(247,201,72,.25), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { color: #fff; }

/* ========== CONTACT ========== */
.contact-card {
  background: #fff;
  border-radius: var(--ps-radius);
  padding: 1.75rem;
  border: 1px solid rgba(6,47,79,.06);
  box-shadow: var(--ps-shadow);
  height: 100%;
}
.contact-card .ico {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: var(--ps-blue-100);
  color: var(--ps-blue-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.contact-card h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.contact-card p { margin: 0; color: var(--ps-muted); }
.contact-card a { color: var(--ps-blue-700); font-weight: 600; }

.form-aside {
  position: sticky;
  top: 100px;
  align-self: flex-start;
}
@media (max-width: 991.98px) {
  .form-aside { position: static; }
}

.process-steps {
  list-style: none;
  counter-reset: ps-step;
  padding: 0;
  margin: 0;
}
.process-steps li {
  counter-increment: ps-step;
  position: relative;
  padding: .5rem 0 1rem 3rem;
  border-left: 2px solid var(--ps-blue-100);
  margin-left: 1rem;
}
.process-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.process-steps li::before {
  content: counter(ps-step);
  position: absolute;
  left: -1rem;
  top: .25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ps-blue-500);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}

.form-control-ps {
  border-radius: 12px;
  border: 1.5px solid rgba(6,47,79,.12);
  padding: .75rem 1rem;
  transition: all .2s ease;
}
.form-control-ps:focus {
  border-color: var(--ps-blue-500);
  box-shadow: 0 0 0 4px rgba(26,143,227,.12);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--ps-blue-900);
  color: #cfe6f5;
  padding: 4rem 0 1.5rem;
}
.footer .footer-logo {
  background: #fff;
  padding: .75rem 1rem;
  border-radius: 12px;
  display: inline-block;
  height: auto;
  max-width: 240px;
}
.footer .footer-logo img { height: 50px; width: auto; display: block; }
.footer h5 { color: #fff; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; margin-bottom: 1.25rem; }
.footer a { color: #cfe6f5; transition: color .2s ease; }
.footer a:hover { color: var(--ps-yellow); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: .25rem 0; }
.footer .footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .85rem;
  color: rgba(255,255,255,.6);
}
.footer .social-links a {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  margin-right: .5rem;
  transition: all .2s ease;
}
.footer .social-links a:hover { background: var(--ps-yellow); color: var(--ps-blue-900); transform: translateY(-2px); }

/* ========== FLOATING WHATSAPP ========== */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  z-index: 1000;
  transition: all .25s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.reveal { opacity: 0; }
.reveal.in { animation: fadeUp .7s ease forwards; }

/* ========== RESPONSIVE TWEAKS ========== */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .hero { min-height: 80vh; padding: 5rem 0 3rem; }
  .subhero { padding: 5rem 0 4rem; }
  .cta-banner { padding: 2rem 1.5rem; }
}
