/* =========================================
   CSS VARIABLES & RESET
========================================= */
:root {
  /* Azules principales (antes verdes) */
  --green-dark:   #16527a;   /* azul medio-oscuro, ya no casi negro */
  --green-mid:    #2d7fbf;   /* azul principal para botones y detalles */
  --green-light:  #d7e7f7;   /* azul muy claro para fondos suaves */
  --green-xlight: #f3f7fc;   /* casi blanco azulado */

  /* Neutros y acentos */
  --cream:        #f6f8fc;   /* fondo general ligeramente azulado */
  --warm-orange:  #e76f28;
  --warm-peach:   #fde1c8;

  /* Azules secundarios ya existentes */
  --blue-soft:    #4a90b8;
  --blue-xlight:  #eaf4fb;

  --text-dark:    #1a2b3a;
  --text-mid:     #35506b;
  --text-light:   #6b8f77;
  --white:        #ffffff;

  /* Sombras adaptadas al azul medio */
  --shadow-sm:    0 2px 12px rgba(22,82,122,.12);
  --shadow-md:    0 6px 28px rgba(22,82,122,.18);
  --shadow-lg:    0 16px 48px rgba(22,82,122,.22);

  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    28px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =========================================
   TYPOGRAPHY
========================================= */
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.55rem); font-weight: 600; }
p  { font-size: 1.05rem; color: var(--text-mid); }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-mid);
  background: var(--green-light);
  padding: .3em .9em;
  border-radius: 100px;
  margin-bottom: 1rem;
}

/* =========================================
   LAYOUT HELPERS
========================================= */
.container { max-width: 1160px; margin: 0 auto; padding: 0 clamp(1rem,4vw,2.5rem); }
section { padding: clamp(4rem,8vw,7rem) 0; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-header p { margin-top: .9rem; font-size: 1.1rem; }

/* =========================================
   BUTTONS
========================================= */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85em 1.8em;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: .97rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--green-dark);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(22,82,122,.35);
}
.btn-primary:hover { background: #124366; box-shadow: 0 8px 24px rgba(22,82,122,.45); }
.btn-secondary {
  background: var(--white);
  color: var(--green-dark);
  border: 2px solid var(--green-dark);
}
.btn-secondary:hover { background: var(--green-xlight); }
.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  box-shadow: 0 4px 18px rgba(37,211,102,.35);
}
.btn-whatsapp:hover { background: #1fba58; }
.btn-orange {
  background: var(--warm-orange);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(231,111,40,.35);
}
.btn-orange:hover { background: #d0631e; }

/* =========================================
   NAVBAR
========================================= */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  transition: background .3s, box-shadow .3s;
  padding: 1rem 0;
}
#navbar.scrolled {
  background: rgba(246,248,252,.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: .6rem 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: .7rem;
}

/* CONTENEDOR DEL LOGO (NAV Y FOOTER) */
.nav-logo-icon {
  width: 140px;
  height: 70px;
  background: var(--green-dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  overflow: hidden;
}

/* IMAGEN DEL LOGO */
.nav-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.15;
}
.nav-logo-text span { display: block; font-size: .72rem; font-weight: 400; font-family: var(--font-body); color: var(--text-light); letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: .93rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color .2s;
}
.nav-links a:hover { color: var(--green-dark); }
.nav-cta { display: flex; gap: .7rem; }
.nav-cta .btn { padding: .65em 1.3em; font-size: .88rem; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-dark); margin: 5px 0;
  transition: .3s;
}
#mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border-top: 1px solid var(--green-light);
}
#mobile-menu a {
  font-weight: 500; color: var(--text-mid);
  padding: .5rem 0; border-bottom: 1px solid var(--green-light);
}
#mobile-menu .btn { margin-top: .5rem; justify-content: center; }

/* =========================================
   HERO
========================================= */
#hero {
  /* ANTES: min-height: 100vh; */
  min-height: auto;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(45,127,191,.2) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(231,111,40,.08) 0%, transparent 60%),
    linear-gradient(160deg, #f3f7fc 0%, #f6f8fc 55%, #eaf4fb 100%);
  display: flex; align-items: center;
  padding-top: 90px;
  position: relative;
  overflow: hidden;
}
.hero-shapes {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-shapes svg { position: absolute; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--white);
  border: 1px solid var(--green-light);
  border-radius: 100px;
  padding: .45em 1.1em;
  font-size: .85rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.hero-badge .stars { color: #f4b942; letter-spacing: -.05em; }
.hero-title { margin-bottom: 1.2rem; }
.hero-title em { font-style: italic; color: var(--green-mid); }
.hero-subtitle { font-size: 1.13rem; max-width: 500px; margin-bottom: 2rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2.5rem; }
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}
.hero-stat-label { font-size: .82rem; color: var(--text-light); margin-top: .2rem; }
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, var(--green-light) 0%, var(--blue-xlight) 50%, var(--warm-peach) 100%);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-img-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232d7fbf' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-icon-big { font-size: 5rem; filter: drop-shadow(0 4px 12px rgba(22,82,122,.2)); }
.hero-img-caption {
  font-size: .88rem; font-weight: 600; color: var(--green-dark);
  background: var(--white); padding: .5em 1.2em; border-radius: 100px;
  box-shadow: var(--shadow-sm);
}
.hero-floating-card {
  position: absolute; bottom: 2rem; left: -1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.3rem;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .8rem;
  max-width: 220px;
  animation: floatCard 4s ease-in-out infinite;
}
@keyframes floatCard { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.fcard-icon { font-size: 1.6rem; }
.fcard-text { font-size: .8rem; font-weight: 500; color: var(--text-mid); }
.fcard-text strong { display: block; font-size: .88rem; color: var(--text-dark); }

/* =========================================
   SOBRE NOSOTROS
========================================= */
#nosotros { background: var(--white); }
.nosotros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.nosotros-visual { position: relative; }
.nosotros-img-block {
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green-xlight) 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  font-size: 7rem;
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.nosotros-img-block::after {
  content: '';
  position: absolute; bottom: -20px; right: -20px;
  width: 120px; height: 120px;
  background: var(--warm-peach);
  border-radius: 50%;
  z-index: 0;
}
.commitment-box {
  background: var(--green-xlight);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 2.5rem;
  border-left: 4px solid var(--green-mid);
}
.commitment-box h4 { font-size: 1rem; font-family: var(--font-display); color: var(--green-dark); margin-bottom: 1rem; }
.commitment-list { display: flex; flex-direction: column; gap: .7rem; }
.commitment-item {
  display: flex; align-items: flex-start; gap: .7rem;
  font-size: .95rem; color: var(--text-mid);
}
commitment-item .ci-icon {
  width: 22px; height: 22px; min-width: 22px;
  background: var(--green-mid); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: var(--white); margin-top: .15rem;
}
.nosotros-text p + p { margin-top: 1rem; }
.nosotros-text .vision-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--green-dark);
  border-left: 3px solid var(--green-mid);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
}

/* =========================================
   SERVICIOS
========================================= */
#servicios { background: var(--cream); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .22s;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-mid), var(--blue-soft));
  opacity: 0;
  transition: opacity .22s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--green-light); }
.service-card:hover::before { opacity: 1; }
.service-card-icon {
  width: 52px; height: 52px;
  background: var(--green-xlight);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.service-card h3 { font-size: 1.1rem; margin-bottom: .5rem; color: var(--text-dark); }
.service-card p { font-size: .92rem; color: var(--text-light); }
.service-card .service-benefit {
  margin-top: .9rem;
  font-size: .84rem;
  color: var(--green-dark);
  font-weight: 600;
  display: flex; align-items: center; gap: .4rem;
}

/* =========================================
   OPINIONES
========================================= */
#opiniones {
  background: linear-gradient(160deg, #16527a 0%, #124366 100%);
  color: var(--white);
}
#opiniones .section-label { background: rgba(255,255,255,.15); color: var(--white); }
#opiniones h2 { color: var(--white); }
#opiniones .section-header p { color: rgba(255,255,255,.75); }
.rating-highlight {
  display: flex; align-items: center; justify-content: center; gap: 3rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap; gap: 2rem;
}
.rating-big { text-align: center; }
.rating-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: #f4b942;
  line-height: 1;
}
.rating-stars { font-size: 1.3rem; color: #f4b942; margin: .3rem 0; }
.rating-desc { font-size: .88rem; color: rgba(255,255,255,.65); }
.rating-divider { width: 1px; height: 70px; background: rgba(255,255,255,.15); }
.rating-areas { display: flex; gap: 2.5rem; flex-wrap: wrap; justify-content: center; }
.rating-area { text-align: center; }
.rating-area-label { font-size: .82rem; color: rgba(255,255,255,.65); margin-bottom: .4rem; }
.rating-area-bar {
  width: 120px; height: 6px;
  background: rgba(255,255,255,.15);
  border-radius: 100px;
  overflow: hidden;
  margin: 0 auto;
}
.rating-area-fill { height: 100%; background: #f4b942; border-radius: 100px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.3rem; }
.testimonial-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: background .2s;
}
.testimonial-card:hover { background: rgba(255,255,255,.12); }
.testimonial-stars { color: #f4b942; margin-bottom: .8rem; font-size: .95rem; }
.testimonial-text { font-size: .97rem; color: rgba(255,255,255,.88); line-height: 1.65; margin-bottom: 1.1rem; font-style: italic; }
.testimonial-author {
  display: flex; align-items: center; gap: .7rem;
}
.author-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  background: rgba(255,255,255,.15);
}
.author-name { font-weight: 600; font-size: .88rem; color: var(--white); }
.author-pet { font-size: .78rem; color: rgba(255,255,255,.55); }
.testimonials-note {
  text-align: center; margin-top: 2rem;
  font-size: .82rem; color: rgba(255,255,255,.45);
}

/* =========================================
   CONTACTO
========================================= */
#contacto { background: var(--white); }
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info-items { display: flex; flex-direction: column; gap: 1.2rem; margin: 2rem 0; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 1rem;
}
.ci-icon-wrap {
  width: 44px; height: 44px; min-width: 44px;
  background: var(--green-xlight);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.ci-label { font-size: .8rem; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.ci-value { font-size: .98rem; color: var(--text-dark); font-weight: 500; margin-top: .1rem; }
.ci-value a { color: var(--green-dark); font-weight: 600; }
.quick-actions { display: flex; flex-direction: column; gap: .8rem; margin-top: 1rem; }
quick-actions .btn { justify-content: center; }
.urgencias-box {
  background: var(--warm-peach);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  margin-top: 1.5rem;
  border-left: 4px solid var(--warm-orange);
  font-size: .92rem;
  color: #7a3a10;
}
.urgencias-box strong { display: block; margin-bottom: .3rem; color: var(--warm-orange); }

/* FORM */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text-mid); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .8em 1.1em;
  border: 1.5px solid #d0e2f2;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .97rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: border .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,127,191,.18);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { align-self: flex-start; }
.map-section {
  margin-top: 4rem;
}
.map-intro { text-align: center; margin-bottom: 1.5rem; }
.map-intro p { color: var(--text-light); font-size: .97rem; }
.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 380px;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* =========================================
   SUCURSALES
========================================= */
#sucursales { background: var(--green-xlight); }
.sucursales-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.5rem; }
.sucursal-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: border .2s, box-shadow .2s;
}
.sucursal-card.active { border-color: var(--green-mid); }
.sucursal-card.upcoming {
  opacity: .65;
  border: 2px dashed #bfd4ea;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; min-height: 200px;
}
.sucursal-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .3em .9em; border-radius: 100px;
  margin-bottom: 1rem;
}
.badge-open { background: #d7e7f7; color: var(--green-dark); }
.badge-soon { background: var(--warm-peach); color: #7a3a10; }
.sucursal-name { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: .5rem; }
.sucursal-info { font-size: .9rem; color: var(--text-light); line-height: 1.8; }
.sucursal-info strong { color: var(--text-mid); }
.sucursal-actions { margin-top: 1.3rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.sucursal-actions .btn { font-size: .82rem; padding: .6em 1.2em; }
.upcoming-icon { font-size: 2.5rem; margin-bottom: .8rem; opacity: .5; }
.upcoming-text { font-family: var(--font-display); font-size: 1.1rem; color: var(--text-mid); }
.upcoming-sub { font-size: .85rem; color: var(--text-light); margin-top: .4rem; }

/* =========================================
   NOVEDADES / BLOG
========================================= */
#novedades { background: var(--white); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.8rem; }
.blog-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--green-light);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-img {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}
.blog-body { padding: 1.5rem; }
.blog-meta {
  display: flex; align-items: center; gap: .7rem;
  font-size: .78rem; color: var(--text-light); margin-bottom: .7rem;
}
.blog-tag {
  background: var(--green-light);
  color: var(--green-dark);
  padding: .2em .7em;
  border-radius: 100px;
  font-weight: 600;
}
.blog-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.blog-card p { font-size: .9rem; }
.blog-readmore {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--green-dark);
}
.blog-readmore:hover { text-decoration: underline; }
.future-note {
  text-align: center;
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  background: var(--green-xlight);
  border-radius: var(--radius-md);
  font-size: .92rem;
  color: var(--text-mid);
}

/* =========================================
   FOOTER
========================================= */
footer {
  background: #143551; /* azul más claro que la versión 1 */
  color: rgba(255,255,255,.86);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand p { font-size: .9rem; margin-top: .9rem; line-height: 1.75; color: rgba(255,255,255,.92); /* MÁS contraste para el texto largo */}
.footer-social { display: flex; gap: .7rem; margin-top: 1.3rem; }
.social-icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background .2s;
}
.social-icon:hover { background: var(--green-mid); }
.footer-col h4 { font-family: var(--font-display); font-size: 1rem; color: var(--white); margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .55rem; }
.footer-col ul li a { font-size: .88rem; color: rgba(255,255,255,.7); transition: color .2s; }
.footer-col ul li a:hover { color: var(--green-mid); }
.footer-contact-item { display: flex; gap: .6rem; margin-bottom: .7rem; font-size: .88rem; }
.footer-contact-item .fci { color: var(--green-mid); min-width: 16px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 2rem;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: .82rem; }
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a {font-size: .82rem; color: rgba(223,234,246,.85); /* azul muy clarito, ya no “verde” */ transition: color .2s;}
.footer-legal a:hover { color: var(--green-mid); /* sigue siendo azul medio de la marca */}
.footer-seo {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.15);
  text-align: center;
}
.footer-seo p { font-size: .78rem; color: rgba(255,255,255,.4); max-width: 700px; margin: 0 auto; }

/* =========================================
   WHATSAPP FLOATING BUTTON
========================================= */
.whatsapp-fab {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  font-size: 1.6rem;
  transition: transform .2s, box-shadow .2s;
  animation: fabPulse 3s ease-in-out infinite;
}
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,.55); }
@keyframes fabPulse {
  0%,100%{ box-shadow: 0 6px 24px rgba(37,211,102,.45); }
  50%{ box-shadow: 0 6px 24px rgba(37,211,102,.45), 0 0 0 10px rgba(37,211,102,.1); }
}

/* =========================================
   SCROLL ANIMATIONS
========================================= */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: none;
}

/* =========================================
   INSTALACIONES
========================================= */
#instalaciones { background: var(--white); }

.instalaciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.inst-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--green-light);
  display: flex;
  flex-direction: column;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}

/* Algunas tarjetas pueden ocupar más ancho en pantallas grandes */
.inst-card-wide {
  grid-column: span 2;
}

.inst-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-mid);
}

.inst-img {
  width: 100%;
  height: 220px;      /* antes max-height: 260px; */
  overflow: hidden;
}

.inst-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .4s;
}

.inst-card:hover .inst-img img {
  transform: scale(1.06);
}

.inst-body {
  padding: 1.1rem 1.4rem 1.3rem;
}

.inst-body h3 {
  font-size: 1.05rem;
  margin-bottom: .4rem;
  color: var(--text-dark);
}

.inst-body p {
  font-size: .92rem;
  color: var(--text-light);
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-image-wrap { max-width: 420px; margin: 0 auto; }
  .nosotros-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contacto-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
  #mobile-menu.open { display: flex; }
  .hero-stats { gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .rating-highlight { flex-direction: column; gap: 1.5rem; }
  .rating-divider { display: none; }

  /* AJUSTES EXTRA DEL HERO PARA MÓVIL */
  #hero {
    padding-top: 80px;
    padding-bottom: 3rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-floating-card {
    bottom: 1rem;
    left: .5rem;
    max-width: 200px;
  }

  /* INSTALACIONES: una columna en móvil */
  .instalaciones-grid {
    grid-template-columns: 1fr;
  }

  .inst-card-wide {
    grid-column: auto;
  }
}

/* Ajustes rápidos para móvil */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* =========================================
   PÁGINAS LEGALES
========================================= */

.legal-text {
  max-width: 900px;
  margin: 0 auto;
  font-size: .95rem;
  color: var(--text-mid);          /* texto principal en azul/gris elegante */
  line-height: 1.7;
}

.legal-text h2 {
  font-size: 1.1rem;
  margin: 1.8rem 0 .8rem;
  color: var(--green-dark);        /* azul titular */
}

.legal-text p {
  margin-bottom: 1rem;
}

.legal-text ul {
  margin: 1rem 0 1.5rem 1.2rem;
  list-style: disc;
}

.legal-text li {
  margin-bottom: .4rem;
}

.legal-text a {
  color: var(--green-mid);         /* enlaces en azul medio */
  font-weight: 600;
}

.legal-text a:hover {
  color: var(--warm-orange);       /* o var(--green-dark) si prefieres todo azul */
  text-decoration: underline;
}

/* =========================================
   COOKIE BANNER
========================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
  background: rgba(20,53,81,0.96); /* mismo tono que footer */
  color: rgba(255,255,255,0.9);
  padding: 1rem 0;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.25);
  display: none; /* se muestra desde JS si no hay consentimiento */
}

.cookie-banner-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(1rem,4vw,2.5rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1 1 260px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}

.cookie-text a {
  color: var(--green-mid);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.cookie-buttons .btn {
  font-size: 0.82rem;
  padding: 0.5em 1.2em;
}

/* Variante secundaria adaptada al fondo oscuro del banner */
.cookie-buttons .btn.btn-secondary {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.6);
}

.cookie-buttons .btn.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
}

/* Responsive: banner cómodo en móvil */
@media (max-width: 680px) {
  .cookie-banner-inner {
    align-items: flex-start;
  }
  .cookie-text {
    font-size: 0.8rem;
  }
  .cookie-buttons {
    width: 100%;
    justify-content: flex-start;
  }
}