/* ============================================================
   PHYSIO ALIVE — styles.css
   Breakpoints:
     xs  : < 480px  (móvil pequeño)
     sm  : < 768px  (móvil)
     md  : < 1024px (tablet)
     lg  : ≥ 1024px (desktop)
   ============================================================ */

/* ── VARIABLES ── */
:root {
  --teal: #3BBFB0;
  --teal-mid: #5BCEC0;
  --teal-soft: #EBF9F7;
  --blue: #4080D0;
  --blue-soft: #EEF4FC;
  --purple: #7057A8;
  --purple-soft: #F2EEF9;
  --dark: #1C2333;
  --body: #4A5568;
  --muted: #8A94A6;
  --border: #E8ECF2;
  --bg: #F7F9FC;
  --white: #FFFFFF;
  --grad: linear-gradient(135deg, #3BBFB0 0%, #4080D0 55%, #7057A8 100%);
  --grad-soft: linear-gradient(135deg, rgba(59, 191, 176, .08), rgba(64, 128, 208, .08), rgba(112, 87, 168, .08));
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, .06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, .08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .09);
}

/* ── RESET ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

/* ── TYPOGRAPHY ── */
h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.15;
}

/* ── UTILITY ── */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 70px;
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow .3s;
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, .07);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.logo-text strong {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  color: var(--dark);
  letter-spacing: -.3px;
  line-height: 1.1;
}

.logo-text small {
  font-size: 10px;
  color: var(--teal);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Nav links (desktop) */
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transition: width .3s;
}

.nav-links a:hover {
  color: var(--dark);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Nav CTA */
.nav-cta {
  background: var(--grad);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(59, 191, 176, .3);
  transition: opacity .2s, transform .2s;
  flex-shrink: 0;
}

.nav-cta:hover {
  opacity: .9;
  transform: translateY(-1px);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  padding: 32px 6%;
  gap: 0;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--dark);
  font-size: 20px;
  font-weight: 600;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  display: block;
  transition: color .2s;
}

.mobile-menu a:hover {
  color: var(--teal);
}

.mobile-menu .mob-cta {
  margin-top: 28px;
  background: var(--grad);
  color: white;
  padding: 16px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 16px;
  border: none;
  box-shadow: 0 6px 20px rgba(59, 191, 176, .3);
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
section {
  padding: 96px 6%;
}

.s-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 10px;
}

.s-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 600;
  letter-spacing: -.3px;
  color: var(--dark);
  margin-bottom: 14px;
}

.s-sub {
  font-size: 15px;
  color: var(--body);
  max-width: 560px;
  line-height: 1.75;
  font-weight: 300;
}

.s-head {
  margin-bottom: 52px;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--grad);
  color: white;
  border: none;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(59, 191, 176, .3);
  transition: transform .2s, box-shadow .2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(59, 191, 176, .4);
}

.btn-ghost {
  background: transparent;
  color: var(--dark);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: inline-block;
  text-align: center;
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-soft);
}

/* ── FADE-IN ANIMATION ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

.fi {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.fi.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HERO
   ============================================================ */
#inicio {
  padding: 130px 6% 80px;
  background: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

#inicio::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 52%;
  height: 100%;
  background: var(--bg);
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

#inicio::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -60px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 191, 176, .1), transparent 70%);
  z-index: 0;
}

.hero-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

/* Left */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-soft);
  color: var(--teal);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid rgba(59, 191, 176, .2);
}

.hero-pill::before {
  content: '✦';
  font-size: 9px;
}

.hero-left h1 {
  font-size: clamp(38px, 4.5vw, 68px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.5px;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero-left p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.75;
  margin-bottom: 36px;
  font-weight: 300;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.h-stat-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.h-stat-l {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}

/* Right card */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Hero logo wrap ── */
.hero-logo-wrap {
  position: relative;
  width: 560px;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Anillos decorativos */
.hlw-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
  animation: spinRing 18s linear infinite;
}

.ring-1 {
  width: 100%;
  height: 100%;
  border-color: rgba(59, 191, 176, .18);
  border-top-color: rgba(59, 191, 176, .5);
  animation-duration: 18s;
}

.ring-2 {
  width: 80%;
  height: 80%;
  border-color: rgba(64, 128, 208, .14);
  border-right-color: rgba(64, 128, 208, .45);
  animation-duration: 24s;
  animation-direction: reverse;
}

.ring-3 {
  width: 60%;
  height: 60%;
  border-color: rgba(112, 87, 168, .12);
  border-bottom-color: rgba(112, 87, 168, .4);
  animation-duration: 14s;
}

@keyframes spinRing {
  to {
    transform: rotate(360deg);
  }
}

/* Imagen principal */
.hlw-img-frame {
  position: relative;
  z-index: 2;
  width: 380px;
  height: 380px;
  /* más grande */
  border-radius: var(--radius-xl);
  /* esquinas redondeadas en lugar de círculo */
  background: var(--white);
  box-shadow: 0 0 0 12px rgba(59, 191, 176, .08),
    0 0 0 24px rgba(64, 128, 208, .05),
    0 20px 60px rgba(0, 0, 0, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hlw-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* llena todo el espacio */
  padding: 0;
  /* quita el padding que tenía antes */
}

/* Chips flotantes */
.hlw-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  white-space: nowrap;
  animation: floatChip 4s ease-in-out infinite;
}

.hlw-chip-icon {
  font-size: 14px;
}

.chip-tl {
  top: 12%;
  left: -8%;
  animation-delay: 0s;
}

.chip-tr {
  top: 12%;
  right: -8%;
  animation-delay: 1s;
}

.chip-bl {
  bottom: 12%;
  left: -8%;
  animation-delay: 2s;
}

.chip-br {
  bottom: 12%;
  right: -8%;
  animation-delay: 3s;
}

@keyframes floatChip {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }
}

.hero-badge-float {
  position: absolute;
  bottom: -80px;
  left: -28px;
  z-index: 10;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hbf-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.hbf-text strong {
  display: block;
  font-size: 14px;
  color: var(--dark);
  font-weight: 700;
}

.hbf-text span {
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   NOSOTROS
   ============================================================ */
#nosotros {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 3px;
  background: var(--grad);
  border-radius: 0 0 3px 3px;
}

.about-card-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.about-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.75;
}

.about-location {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad);
  color: white;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
}

.about-location:hover {
  opacity: .9;
}

.values {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.val {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--white);
  transition: all .25s;
}

.val:hover {
  border-color: rgba(59, 191, 176, .4);
  box-shadow: 0 6px 24px rgba(59, 191, 176, .08);
}

.val-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--grad-soft);
}

.val h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.val p {
  font-size: 13px;
  color: var(--body);
  line-height: 1.6;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
#servicios {
  background: var(--white);
}

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.fbtn {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.fbtn.on,
.fbtn:hover {
  background: var(--grad);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(59, 191, 176, .25);
}

.srv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

/* ── Card shell ── */
.srv-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s;
  display: flex;
  flex-direction: column;
}

.srv-card:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 36px rgba(59, 191, 176, .12);
  transform: translateY(-4px);
}

/* ── Image area ── */
.srv-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
}

.srv-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease;
}

.srv-card:hover .srv-img-wrap img {
  transform: scale(1.04);
}

/* SVG placeholder until real photos are available */
.srv-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ph-a), var(--ph-b));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter .3s;
}

.srv-img-placeholder svg {
  width: 72px;
  height: 72px;
  opacity: .85;
  transition: opacity .3s, transform .3s;
}

.srv-card:hover .srv-img-placeholder svg {
  opacity: 1;
  transform: scale(1.06);
}

/* Category tag badge inside image */
.srv-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(59, 191, 176, .25);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  line-height: 1.4;
}

.srv-tag--p {
  color: var(--purple);
  border-color: rgba(112, 87, 168, .25);
}

.srv-tag--e {
  color: var(--blue);
  border-color: rgba(64, 128, 208, .25);
}

/* ── Text body ── */
.srv-body {
  padding: 18px 20px 22px;
  flex: 1;
}

.srv-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 7px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--dark);
  line-height: 1.3;
}

.srv-card p {
  font-size: 13px;
  color: var(--body);
  line-height: 1.65;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 600;
  color: var(--dark);
  max-width: 560px;
  line-height: 1.2;
}

.cta-band h2 em {
  font-style: italic;
}

/* ============================================================
   EQUIPO
   ============================================================ */
#especialistas {
  background: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all .3s;
}

.team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(59, 191, 176, .3);
}

.team-photo {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.team-photo.purple {
  background: var(--purple-soft);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.team-placeholder {
  font-size: 72px;
  opacity: .35;
}

.team-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.team-badge.t {
  background: var(--teal-soft);
  color: var(--teal);
}

.team-badge.p {
  background: var(--purple-soft);
  color: var(--purple);
}

.team-body {
  padding: 24px;
}

.team-body h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.25;
}

.team-role {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
  display: block;
}

.team-role.p {
  color: var(--purple);
}

.team-body p {
  font-size: 13px;
  color: var(--body);
  line-height: 1.65;
}

.team-btn {
  display: block;
  margin: 0 24px 24px;
  padding: 10px;
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1.5px solid var(--border);
  color: var(--dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
}

.team-btn:hover {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: var(--teal);
}

/* ============================================================
   ASEGURADORAS
   ============================================================ */
#aseguradoras {
  background: var(--bg);
}

.ins-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--blue-soft);
  border: 1px solid rgba(64, 128, 208, .2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--body);
  margin-bottom: 36px;
  line-height: 1.6;
}

.ins-note span:first-child {
  flex-shrink: 0;
  font-size: 18px;
}

.ins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}

.ins-chip {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ins-chip img {
  width: 73px;
  height: 36px;
  object-fit: contain;
  object-position: center;
  filter: grayscale(30%);
  transition: filter .2s;
}

.ins-chip:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-soft);
}

.ins-chip:hover img {
  filter: grayscale(0%);
}

.ins-chip span {
  line-height: 1.3;
}

/* ============================================================
   CONTACTO
   ============================================================ */
#contacto {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.wa-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: white;
  text-decoration: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  transition: opacity .2s;
}

.wa-btn:hover {
  opacity: .9;
}

.cinfo-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.cinfo-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  background: var(--teal-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.cinfo-item h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.cinfo-item a,
.cinfo-item p {
  font-size: 13px;
  color: var(--body);
  text-decoration: none;
  display: block;
}

.cinfo-item a:hover {
  color: var(--teal);
}

.map-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 220px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-top: 8px;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.form-box {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
}

.form-box h3 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 24px;
}

.form-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fg {
  margin-bottom: 16px;
}

.fg label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.fg input,
.fg select,
.fg textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(59, 191, 176, .12);
}

.fg textarea {
  resize: vertical;
  min-height: 110px;
}

/* ============================================================
   GALERÍA DE INSTALACIONES
   ============================================================ */
#galeria {
  background: var(--bg);
}

/* Grid tipo mosaico con items anchos intercalados */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}

/* Items que ocupan 2 columnas */
.gallery-item--wide {
  grid-column: span 2;
}

/* Celda individual */
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid var(--border);
  transition: transform .25s, box-shadow .25s;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(59, 191, 176, .15);
}

/* Placeholder de color hasta tener fotos reales */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.gallery-ph-icon {
  font-size: 40px;
}

.gallery-ph-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--body);
  letter-spacing: .3px;
}

/* Imagen real cuando exista */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Overlay hover */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 35, 51, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: white;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid rgba(255, 255, 255, .7);
  padding: 8px 20px;
  border-radius: 50px;
}

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20, 25, 40, .92);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lb-content {
  position: relative;
  max-width: 860px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lb-media {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .04);
}

.lb-media img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  display: block;
}

/* Placeholder dentro del lightbox */
.lb-placeholder {
  width: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255, 255, 255, .6);
  border: 2px dashed rgba(255, 255, 255, .15);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.lb-placeholder p {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
}

.lb-placeholder small {
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
}

.lb-caption {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
  text-align: center;
}

.lb-counter {
  font-size: 12px;
  color: rgba(255, 255, 255, .4);
  letter-spacing: 1px;
}

/* Botones navegación */
.lb-close,
.lb-prev,
.lb-next {
  position: fixed;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  color: white;
  cursor: pointer;
  transition: background .2s;
  font-family: inherit;
  line-height: 1;
}

.lb-close,
.lb-prev,
.lb-next {
  border-radius: 50%;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  background: rgba(255, 255, 255, .2);
}

.lb-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 22px;
}

.lb-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 28px;
}

.lb-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 28px;
}

/* ── Gallery responsive ── */
@media (max-width:1024px) {
  .gallery-grid {
    grid-auto-rows: 180px;
  }
}

@media (max-width:768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  /* En móvil los wide siguen siendo 2 columnas (que es todo el ancho) */
  .gallery-item--wide {
    grid-column: span 2;
  }

  .lb-prev {
    left: 8px;
  }

  .lb-next {
    right: 8px;
  }
}

@media (max-width:480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 180px;
  }

  .gallery-item--wide {
    grid-column: span 1;
  }

  .lb-prev,
  .lb-next {
    display: none;
  }

  /* swipe en móvil pequeño — sin botones */
}

/* ============================================================
   ============================================================ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 6% 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--body);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 280px;
}

.f-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.f-col a {
  display: block;
  font-size: 13px;
  color: var(--body);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color .2s;
}

.f-col a:hover {
  color: var(--teal);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}


/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float-wrap {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* ── FAB principal ── */
.wa-fab {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, .45);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s;
  flex-shrink: 0;
}

.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 32px rgba(37, 211, 102, .55);
}

.wa-fab.active {
  transform: scale(1.05) rotate(0deg);
}

/* Iconos open / close */
.wa-fab-icon {
  position: absolute;
  transition: opacity .2s, transform .2s;
}

.wa-icon-open {
  width: 34px;
  height: 34px;
}

.wa-icon-close {
  width: 22px;
  height: 22px;
  opacity: 0;
  transform: scale(.6) rotate(90deg);
}

.wa-fab.active .wa-icon-open {
  opacity: 0;
  transform: scale(.6) rotate(-90deg);
}

.wa-fab.active .wa-icon-close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Pulso animado */
.wa-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid rgba(37, 211, 102, .45);
  animation: waPulse 2.2s ease-out infinite;
}

.wa-fab.active .wa-pulse {
  display: none;
}

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: .9;
  }

  70% {
    transform: scale(1.35);
    opacity: 0;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* ── Tooltip ── */
.wa-tooltip {
  position: absolute;
  right: 72px;
  bottom: 14px;
  background: var(--dark);
  color: white;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity .3s, transform .3s;
}

.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: var(--dark);
}

.wa-tooltip.show {
  opacity: 1;
  transform: translateX(0);
}

/* ── Panel de opciones ── */
.wa-options {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .14);
  min-width: 240px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.97);
  transform-origin: bottom right;
  transition: opacity .25s cubic-bezier(.4, 0, .2, 1), transform .25s cubic-bezier(.4, 0, .2, 1);
}

.wa-options.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.wa-options-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  padding: 0 4px;
}

.wa-option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--dark);
  transition: background .18s;
  cursor: pointer;
}

.wa-option-btn:hover {
  background: var(--bg);
}

.wa-option-btn+.wa-option-btn {
  margin-top: 4px;
}

.wa-option-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #E8F9EF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.wa-option-info {
  flex: 1;
}

.wa-option-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.wa-option-role {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.wa-option-arrow {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .2s, color .2s;
}

.wa-option-btn:hover .wa-option-arrow {
  transform: translateX(3px);
  color: var(--teal);
}

/* ── Responsive ── */
@media (max-width:480px) {
  .wa-float-wrap {
    bottom: 18px;
    right: 16px;
  }

  .wa-fab {
    width: 54px;
    height: 54px;
  }

  .wa-options {
    min-width: 210px;
  }
}

/* ============================================================
   SERVICE MODAL
   ============================================================ */
.srv-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(20, 25, 40, .75);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.srv-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.srv-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .25);
  transform: translateY(28px) scale(.97);
  transition: transform .35s cubic-bezier(.34, 1.3, .64, 1);
  position: relative;
}

.srv-modal-overlay.active .srv-modal {
  transform: translateY(0) scale(1);
}

/* Left – imagen */
.srv-modal-img {
  position: relative;
  overflow: hidden;
  min-height: 340px;
}

.srv-modal-img .srv-img-placeholder {
  height: 100%;
  min-height: 340px;
}

.srv-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.srv-modal-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 35, 51, .65) 0%, transparent 55%);
}

.srv-modal-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: white;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .3);
  padding: 5px 12px;
  border-radius: 20px;
}

/* Right – contenido */
.srv-modal-body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.srv-modal-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.15;
}

.srv-modal-subtitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
  display: block;
}

.srv-modal-desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.75;
  margin-bottom: 22px;
  font-weight: 300;
}

.srv-modal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.srv-modal-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--body);
  line-height: 1.5;
}

.srv-modal-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal-soft);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 9l3 3 6-6' stroke='%233BBFB0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: 1px;
}

.srv-modal-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.srv-modal-cta .btn-primary {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 12px 20px;
  font-size: 13px;
}

/* Close button */
.srv-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--dark);
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  transition: background .2s, transform .2s;
  font-family: inherit;
}

.srv-modal-close:hover {
  background: var(--white);
  transform: scale(1.08);
}

/* Card cursor */
.srv-card {
  cursor: pointer;
}

/* Responsive modal */
@media (max-width: 768px) {
  .srv-modal {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }

  .srv-modal-img {
    min-height: 200px;
  }

  .srv-modal-img .srv-img-placeholder {
    min-height: 200px;
  }

  .srv-modal-body {
    padding: 24px 22px;
  }

  .srv-modal-body h2 {
    font-size: 22px;
  }
}

/*============================================================*/
@media (max-width: 1024px) {
  section {
    padding: 80px 5%;
  }

  .navbar {
    padding: 0 5%;
  }

  /* Hero */
  .hero-wrap {
    gap: 48px;
  }

  .hero-badge-float {
    display: none;
  }

  .hero-logo-wrap {
    width: 460px;
    height: 460px;
  }

  .hlw-img-frame {
    width: 300px;
    height: 300px;
  }

  .hlw-chip {
    font-size: 11px;
    padding: 6px 10px;
  }

  .chip-tl {
    left: -4%;
  }

  .chip-tr {
    right: -4%;
  }

  .chip-bl {
    left: -4%;
  }

  .chip-br {
    right: -4%;
  }

  /* Nosotros */
  .about-grid {
    gap: 48px;
  }

  /* Equipo */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Contacto */
  .contact-grid {
    gap: 48px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   RESPONSIVE — MÓVIL  (< 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* Navbar */
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  section {
    padding: 64px 5%;
  }

  /* Hero */
  #inicio {
    padding: 100px 5% 64px;
    min-height: auto;
    align-items: flex-start;
  }

  #inicio::before {
    display: none;
  }

  #inicio::after {
    display: none;
  }

  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-left h1 {
    font-size: clamp(34px, 8vw, 48px);
  }

  .hero-left p {
    font-size: 15px;
    max-width: 100%;
  }

  .hero-logo-wrap {
    width: 320px;
    height: 320px;
  }

  .hlw-img-frame {
    width: 240px;
    height: 240px;
  }

  .hlw-chip {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
    text-align: center;
  }

  .hero-stats {
    gap: 20px;
  }

  /* Nosotros */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-card {
    padding: 28px;
  }

  /* Servicios */
  .srv-grid {
    grid-template-columns: 1fr;
  }

  /* CTA band */
  .cta-band {
    flex-direction: column;
    text-align: center;
  }

  .cta-band .btn-primary {
    width: 100%;
  }

  /* Equipo */
  .team-grid {
    grid-template-columns: 1fr;
  }

  /* Aseguradoras */
  .ins-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contacto */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .wa-btns {
    grid-template-columns: 1fr;
  }

  .form-row2 {
    grid-template-columns: 1fr;
  }

  .form-box {
    padding: 24px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-brand p {
    max-width: 100%;
  }

  /* s-head */
  .s-head {
    margin-bottom: 36px;
  }
}

/* ============================================================
   RESPONSIVE — MÓVIL PEQUEÑO  (< 480px)
   ============================================================ */
@media (max-width: 480px) {
  section {
    padding: 56px 4%;
  }

  .navbar {
    padding: 0 4%;
  }

  .logo-text small {
    display: none;
  }

  .hero-left h1 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    border-top: none;
    margin-top: 32px;
    padding-top: 0;
  }

  .hv-item .hv-label {
    font-size: 13px;
  }

  .filter-row {
    gap: 8px;
  }

  .fbtn {
    padding: 7px 14px;
    font-size: 12px;
  }

  .ins-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ins-chip {
    font-size: 11px;
    padding: 9px 10px;
  }

  .team-body h3 {
    font-size: 17px;
  }

  .form-box {
    padding: 20px;
  }

  .form-box h3 {
    font-size: 22px;
  }
}