/* =========================================
   DROGUERÍA LAS VILLAS DE COLOMBIA
   STYLE.CSS v2.0
   ========================================= */


/* ========= VARIABLES ========= */
:root {
  --verde-principal:  #246600;
  --verde-secundario: #5E8F11;
  --blanco:           #FFFFFF;
  --gris-fondo:       #F7F9F5;
  --gris-claro:       #E8F0DE;
  --texto:            #222222;
  --texto-secundario: #6B7280;
  --radio:            18px;
  --sombra:           0 10px 30px rgba(0, 0, 0, .08);
  --transicion:       all .3s ease;
  --top-bar-h:        43px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 165px; /* top-bar ~43px + navbar ~98px + 24px buffer */
}

body {
  font-family: "Inter", Arial, sans-serif;
  color: var(--texto);
  background: var(--gris-fondo);
  line-height: 1.6;
}

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

/* ========= CONTENEDOR ========= */
.container {
  width: min(1200px, 92%);
  margin: auto;
}

/* ========= TOP BAR ========= */
.top-bar {
  background: var(--verde-principal);
  color: white;
  text-align: center;
  padding: 10px 16px;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .01em;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ========= NAVBAR ========= */
.navbar {
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 5%;
  position: sticky;
  top: var(--top-bar-h);
  z-index: 999;
  box-shadow: 0 2px 15px rgba(0, 0, 0, .06);
}

.logo img {
  max-height: 75px;
  width: auto;
}

.navbar ul {
  display: flex;
  gap: 28px;
  list-style: none;
}

.navbar a {
  text-decoration: none;
  color: var(--texto);
  font-weight: 600;
  font-size: .95rem;
  position: relative;
  transition: color .25s ease;
}

/* Solo los links del menú (no el logo) */
.navbar ul a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 10px;
  z-index: 0;
}

/* Punto indicador de sección activa — desktop */
.navbar ul a::before {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 4px;
  height: 4px;
  background: var(--verde-principal);
  border-radius: 50%;
  opacity: 0;
  transition: transform .25s ease, opacity .2s ease;
}

/* Subrayado que nace del centro hacia los lados — desktop */
.navbar ul a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--verde-secundario);
  border-radius: 2px;
  transition: width .3s ease;
}

.navbar ul a:hover {
  color: var(--verde-principal);
}

.navbar ul a:hover::before {
  transform: translateX(-50%) scale(0);
  opacity: 0;
}

.navbar ul a:hover::after {
  width: calc(100% - 24px);
}

/* ========= MENÚ HAMBURGUESA ========= */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--verde-principal);
  border-radius: 2px;
  transition: var(--transicion);
}

.menu-toggle.abierto span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.abierto span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.abierto span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========= ANIMACIONES GLOBALES ========= */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

/* Zoom lento + deriva suave — estilo Apple */
@keyframes ken-burns {
  0%   { transform: scale(1)    translate(0,      0); }
  30%  { transform: scale(1.05) translate(-1.2%, -0.6%); }
  65%  { transform: scale(1.07) translate(1%,    -1.2%); }
  100% { transform: scale(1)    translate(0,      0); }
}

@keyframes icon-bounce {
  0%   { transform: scale(1)    rotate(0deg); }
  35%  { transform: scale(1.3)  rotate(-10deg); }
  65%  { transform: scale(.92)  rotate(5deg); }
  100% { transform: scale(1)    rotate(0deg); }
}

@keyframes shine {
  from { left: -80%; }
  to   { left: 130%; }
}

@keyframes count-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}

@keyframes parpadeo {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes tel-pulse {
  0%   { box-shadow: 0 0 0 0    rgba(94, 143, 17, .5); }
  70%  { box-shadow: 0 0 0 10px rgba(94, 143, 17,  0); }
  100% { box-shadow: 0 0 0 0    rgba(94, 143, 17,  0); }
}

@keyframes wa-ring {
  0%   { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.9); opacity: 0; }
}

@keyframes carrusel-ken-burns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.06); }
}

/* ========= BOTONES ========= */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transicion);
  cursor: pointer;
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 50%;
  height: 200%;
  background: rgba(255, 255, 255, .22);
  transform: rotate(25deg);
  pointer-events: none;
}

.btn:hover::after {
  animation: shine .5s ease forwards;
}

.btn-primary {
  background: var(--verde-principal);
  color: white;
}

.btn-primary:hover {
  background: #1d5200;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(36, 102, 0, .3);
}

.btn-secondary {
  background: var(--verde-secundario);
  color: white;
}

.btn-secondary:hover {
  background: #4e790d;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(94, 143, 17, .3);
}

.btn-outline {
  background: transparent;
  color: var(--verde-principal);
  border: 2px solid var(--verde-principal);
}

.btn-outline:hover {
  background: var(--verde-principal);
  color: white;
}

/* ========= SECCIONES — BASE ========= */
section {
  padding: 80px 5%;
}

section h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--verde-principal);
  margin-bottom: 12px;
}

section h3 {
  color: var(--verde-secundario);
  margin-bottom: 10px;
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
  color: var(--texto-secundario);
  font-size: 1.05rem;
}

/* ========= HERO (INICIO) ========= */
#inicio {
  scroll-margin-top: 240px;
  padding: 80px 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 540px;
}

#inicio h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--verde-principal);
  margin-bottom: 12px;
  line-height: 1.15;
}

#inicio h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--verde-secundario);
  margin-bottom: 20px;
}

#inicio p {
  font-size: 1.05rem;
  color: var(--texto-secundario);
  margin-bottom: 14px;
}

#inicio .hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero-image {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
}

.hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  animation: ken-burns 20s ease-in-out infinite;
  will-change: transform;
}

/* ========= HERO FULLSCREEN (solo index.html) ========= */
#inicio.hero-fullscreen {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
  gap: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ken-burns 20s ease-in-out infinite;
  will-change: transform;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(20, 72, 0, .88) 0%, rgba(36, 102, 0, .65) 45%, rgba(0, 0, 0, .18) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 130px 5% 110px;
}

#inicio.hero-fullscreen .hero-content h1 {
  color: white;
  font-size: 3.4rem;
  line-height: 1.1;
  margin-bottom: 18px;
}

#inicio.hero-fullscreen .hero-content h2 {
  color: rgba(255, 255, 255, .9);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 26px;
  min-height: 2.2rem;
}

#inicio.hero-fullscreen .hero-content p {
  color: rgba(255, 255, 255, .85);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 34px;
}

#inicio.hero-fullscreen .hero-badge {
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .3);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

#inicio.hero-fullscreen .btn-outline {
  color: white;
  border-color: rgba(255, 255, 255, .72);
}

#inicio.hero-fullscreen .btn-outline:hover {
  background: white;
  color: var(--verde-principal);
  border-color: white;
}

/* Cursor parpadeante del typewriter */
.cursor-type {
  display: inline-block;
  width: 2px;
  height: .85em;
  background: rgba(255, 255, 255, .85);
  margin-left: 2px;
  vertical-align: middle;
  border-radius: 1px;
  animation: parpadeo .75s step-end infinite;
}

/* Onda en la base del hero */
.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 3;
  line-height: 0;
  pointer-events: none;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ========= SEPARADORES ONDA ========= */
.ola {
  display: block;
  line-height: 0;
  overflow: hidden;
}
.ola svg {
  display: block;
  width: 100%;
  height: 56px;
}

/* ========= BREADCRUMB ========= */
.breadcrumb {
  padding: 14px 0;
  font-size: .9rem;
  color: var(--texto-secundario);
}

.breadcrumb a {
  color: var(--verde-principal);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 6px;
  color: var(--texto-secundario);
}

/* ========= SECCIÓN HISTORIA ========= */
#historia {
  background: white;
}

.historia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.historia-imagen {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  position: relative;
  transition: box-shadow .4s ease, transform .4s ease;
}

.historia-imagen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(36, 102, 0, .1);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

.historia-imagen:hover {
  box-shadow: 0 20px 48px rgba(36, 102, 0, .2);
  transform: translateY(-4px);
}

.historia-imagen:hover::after {
  opacity: 1;
}

.historia-imagen img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transform: scale(1.14) translateY(0);
  will-change: transform;
}

.historia-texto h3 {
  font-size: 1.5rem;
  color: var(--verde-secundario);
  margin-bottom: 16px;
}

.historia-texto p {
  color: var(--texto-secundario);
  margin-bottom: 16px;
  font-size: 1rem;
}

.historia-stat {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.historia-stat div {
  text-align: center;
}

.historia-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--verde-principal);
}

.historia-stat span {
  font-size: .85rem;
  color: var(--texto-secundario);
}

/* ========= SECCIÓN DIFERENCIALES ========= */
#diferenciales {
  background: var(--gris-fondo);
}

.diferenciales {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.diferencial {
  background: white;
  padding: 30px 24px;
  border-radius: var(--radio);
  text-align: center;
  box-shadow: var(--sombra);
  transition: transform .35s ease, box-shadow .35s ease;
  border-top: 4px solid var(--verde-secundario);
  position: relative;
  overflow: hidden;
}

.diferencial::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 45%;
  height: 200%;
  background: rgba(255, 255, 255, .5);
  transform: rotate(20deg);
  pointer-events: none;
}

.diferencial:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 44px rgba(36, 102, 0, .13);
  background: linear-gradient(160deg, #fff 60%, #f0f8e8 100%);
}

.diferencial:hover::before {
  animation: shine .55s ease forwards;
}

.diferencial-icono {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
  transition: transform .2s ease;
}

.diferencial:hover .diferencial-icono {
  animation: icon-bounce .55s ease forwards;
}

.diferencial h3 {
  font-size: 1.05rem;
  color: var(--verde-principal);
  margin-bottom: 10px;
}

.diferencial p {
  font-size: .9rem;
  color: var(--texto-secundario);
}

/* ========= SECCIÓN SEDES ========= */
#sedes {
  background: white;
}

.sedes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

/* ========= HERO BADGE ========= */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--verde-secundario);
  color: white;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(94, 143, 17, .4);
  animation: float 3s ease-in-out infinite;
}

/* ========= TARJETAS ========= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: white;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: transform .35s ease, box-shadow .35s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .14);
}

/* Imagen con zoom y overlay verde al hacer hover */
.card .card-img-wrap {
  overflow: hidden;
  position: relative;
}

.card .card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(36, 102, 0, .55) 100%);
  opacity: 0;
  transition: opacity .4s ease;
}

.card:hover .card-img-wrap::after {
  opacity: 1;
}

.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform .55s ease;
}

.card:hover img {
  transform: scale(1.07);
}

.card-content {
  padding: 22px;
}

.card-content h3 {
  font-size: 1.1rem;
  color: var(--verde-principal);
  margin-bottom: 8px;
}

.card-content p {
  font-size: .9rem;
  color: var(--texto-secundario);
  margin-bottom: 16px;
}

.card-sede-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .88rem;
  color: var(--texto-secundario);
  margin-bottom: 18px;
}

.card-sede-meta strong {
  color: var(--texto);
}

/* ========= SECCIÓN CONTACTO ========= */
#contacto {
  background: linear-gradient(160deg, var(--gris-claro) 60%, #cfe0b0 100%);
  padding: 12px 5% 12px;
}

#contacto h2 {
  margin-bottom: 4px;
  font-size: 1.5rem;
}

#contacto h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--verde-secundario);
  border-radius: 2px;
  margin: 6px auto 0;
}

#contacto .section-intro {
  margin-bottom: 10px;
  font-size: .92rem;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 8px;
}

.contacto-info h3,
.contacto-grid > div > h3 {
  color: var(--verde-principal);
  margin-bottom: 8px;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.contacto-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 7px;
  background: white;
  border-radius: 10px;
  border-left: 4px solid var(--verde-principal);
  padding: 8px 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  transition: var(--transicion);
}

.contacto-item:hover {
  box-shadow: 0 6px 20px rgba(36, 102, 0, .12);
  transform: translateX(3px);
}

.contacto-item-icono {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.contacto-item p {
  color: var(--texto-secundario);
  font-size: .9rem;
  margin-bottom: 2px;
}

.contacto-item p:first-child {
  color: var(--texto);
  font-size: .95rem;
}

.contacto-item a {
  color: var(--verde-principal);
  text-decoration: none;
  font-weight: 600;
}

.contacto-item a:hover {
  text-decoration: underline;
}

.contacto-sedes-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contacto-sedes-lista li {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  transition: var(--transicion);
  overflow: hidden;
}

.contacto-sedes-lista li:hover {
  box-shadow: 0 6px 20px rgba(36, 102, 0, .14);
  transform: translateX(3px);
}

.contacto-sedes-lista li a {
  color: var(--verde-principal);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
}

.contacto-sedes-lista li a:hover {
  background: var(--gris-claro);
}

/* ========= MAPA ========= */
.mapa-container {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
}

.mapa-container iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

/* ========= FOOTER ========= */
footer {
  background: linear-gradient(160deg, #1c5200 0%, var(--verde-principal) 100%);
  color: white;
  padding: 0 5%;
}

.footer-grid {
  display: none;
}

.footer-grid h3 {
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gris-claro);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.footer-grid p,
.footer-grid li {
  font-size: .88rem;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 5px;
  list-style: none;
}

footer a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  transition: var(--transicion);
}

footer a:hover {
  color: white;
  text-decoration: underline;
}

.footer-logo img {
  max-height: 44px;
  max-width: 150px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 6px;
  display: block;
}

.footer-bottom {
  border-top: none;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .6);
}

.footer-bottom a {
  color: rgba(255, 255, 255, .7);
}

/* ========= CARRUSEL ========= */
.carrusel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  background: #000;
  aspect-ratio: 16 / 9;
}

/* Degradado en la base para legibilidad de dots */
.carrusel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to top, rgba(0, 0, 0, .5), transparent);
  pointer-events: none;
  z-index: 5;
}

.carrusel-track {
  position: relative;
  height: 100%;
}

.carrusel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.carrusel-slide.activo {
  opacity: 1;
}

.carrusel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
}

.carrusel-slide.activo img {
  animation: carrusel-ken-burns 11s ease forwards;
}

.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(36, 102, 0, .75);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

.carrusel-btn:hover {
  background: rgba(36, 102, 0, .95);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .4);
}

.carrusel-btn.prev { left: 14px; }
.carrusel-btn.next { right: 14px; }

.carrusel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.carrusel-dot {
  width: 24px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .5);
  border: none;
  cursor: pointer;
  transition: width .35s ease, background .35s ease;
  padding: 0;
}

.carrusel-dot.activo {
  width: 44px;
  background: white;
}

/* ========= ANIMACIONES DE SCROLL ========= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========= ENLACE ACTIVO EN NAVBAR ========= */
.navbar ul a.activo {
  color: var(--verde-principal);
}
.navbar ul a.activo::before {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}
.navbar ul a.activo::after {
  width: calc(100% - 24px);
}

/* ========= VOLVER ARRIBA ========= */
#volver-arriba {
  position: fixed;
  /*bottom: 96px;*/
  bottom: 42px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--verde-principal);
  color: white;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(36, 102, 0, .35);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
  z-index: 890;
}
#volver-arriba.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#volver-arriba:hover {
  background: #1d5200;
  transform: translateY(-3px);
}

/* ========= WHATSAPP FLOTANTE ========= */
#whatsapp-btn {
  position: fixed;
  bottom: 32px;
  right: 26px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, .45);
  transition: transform .3s ease, box-shadow .3s ease, background .2s ease;
  z-index: 891;
  text-decoration: none;
}
#whatsapp-btn svg {
  width: 28px;
  height: 28px;
  fill: white;
  display: block;
}
#whatsapp-btn:hover {
  background: #1daa57;
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, .55);
}
#whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, .35);
  animation: wa-ring 2s ease-out infinite;
  pointer-events: none;
}

/* ========= TELÉFONOS CON PULSO ========= */
.tel-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--verde-principal);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  transition: color .2s ease;
}
.tel-link::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--verde-secundario);
  box-shadow: 0 0 0 0 rgba(94, 143, 17, .5);
  animation: tel-pulse 1.8s ease-out infinite;
  flex-shrink: 0;
}
.tel-link:hover {
  color: var(--verde-secundario);
}

/* ========= TELÉFONOS WHATSAPP ========= */
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--verde-principal);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  transition: color .2s ease;
}
.whatsapp-link::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--verde-secundario);
  box-shadow: 0 0 0 0 rgba(94, 143, 17, .5);
  animation: tel-pulse 1.8s ease-out infinite;
  flex-shrink: 0;
}
.whatsapp-link:hover {
  color: var(--verde-secundario);
}


/* ========= RESPONSIVE: TABLET ========= */
@media (max-width: 992px) {
  #inicio {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  #inicio .hero-cta {
    justify-content: center;
  }

  .hero-image {
    max-width: 540px;
    margin: 0 auto;
  }

  .historia-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .historia-imagen {
    order: -1;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  #inicio.hero-fullscreen {
    text-align: left;
  }

  #inicio.hero-fullscreen .hero-content {
    max-width: 100%;
  }
}

/* ========= RESPONSIVE: MÓVIL ========= */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .navbar ul {
    display: none;
    position: fixed;
    top: var(--top-bar-h);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--top-bar-h));
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 1000;
  }

  .navbar ul.abierto {
    display: flex;
  }

  /* Links del menú hamburguesa */
  .navbar ul a {
    font-size: 1.3rem;
    padding: 12px 40px;
    border-radius: 14px;
    box-shadow: inset 3px 0 0 transparent;
    transition: color .25s ease, box-shadow .25s ease, background .25s ease;
  }

  .navbar ul a::before {
    display: none;
  }

  .navbar ul a::after {
    display: none;
  }

  .navbar ul a:hover {
    color: var(--verde-principal);
    box-shadow: inset 3px 0 0 var(--verde-principal);
    background: rgba(36, 102, 0, .06);
  }

  .navbar ul a.activo {
    box-shadow: inset 3px 0 0 var(--verde-principal);
    background: rgba(36, 102, 0, .06);
  }

  #inicio h1 {
    font-size: 2rem;
  }

  #inicio h2 {
    font-size: 1.2rem;
  }

  section {
    padding: 56px 5%;
  }

  section h2 {
    font-size: 1.6rem;
  }

  .historia-stat {
    justify-content: center;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .carrusel {
    aspect-ratio: 4 / 3;
  }

  #inicio.hero-fullscreen .hero-content {
    padding: 100px 5% 90px;
    text-align: center;
  }

  #inicio.hero-fullscreen .hero-content h1 {
    font-size: 2.1rem;
  }

  #inicio.hero-fullscreen .hero-content h2 {
    font-size: 1.25rem;
  }

  #inicio.hero-fullscreen .hero-content p {
    margin-inline: auto;
  }

  #inicio.hero-fullscreen .hero-cta {
    justify-content: center;
  }

  .hero-wave svg {
    height: 48px;
  }

  .ola svg {
    height: 38px;
  }

  #volver-arriba {
    width: 40px;
    height: 40px;
    bottom: 100px;
    right: 20px;
    font-size: 1rem;
  }

  #whatsapp-btn {
    bottom: 28px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  #whatsapp-btn svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .diferenciales {
    grid-template-columns: 1fr;
  }

  #inicio h1 {
    font-size: 1.7rem;
  }

  .top-bar {
    font-size: .78rem;
  }

  .btn {
    padding: 12px 20px;
    font-size: .9rem;
  }
}

/* ========= POPUP ALERTA ========= */
.popup-alerta {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .4s ease;
}

.popup-alerta.visible {
  opacity: 1;
}

.popup-alerta-card {
  background: white;
  border-radius: var(--radio);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
  border-top: 5px solid var(--verde-principal);
  transform: translateY(20px);
  transition: transform .4s ease;
}

.popup-alerta.visible .popup-alerta-card {
  transform: translateY(0);
}

.popup-alerta h1 {
  color: var(--verde-principal);
  font-size: 1.4rem;
  margin-bottom: 6px;
  text-align: center;
}

.popup-alerta h2 {
  color: var(--verde-principal);
  font-size: 1.2rem;
  margin-bottom: 6px;
  text-align: center;
}

.popup-alerta h3 {
  color: var(--verde-secundario);
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 16px;
}

.popup-alerta p {
  color: var(--texto-secundario);
  font-size: .92rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.popup-alerta ul {
  list-style: none;
  padding: 0;
  margin: 14px 0;
}

.popup-alerta ul li {
  padding: 8px 0;
  font-size: .92rem;
  color: var(--texto);
  line-height: 1.5;
  border-bottom: 1px solid var(--gris-claro);
}

.popup-alerta ul li:last-child {
  border-bottom: none;
}

.popup-alerta-cerrar {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--verde-principal);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}

.popup-alerta-cerrar:hover {
  background: #1d5200;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .popup-alerta-card {
    padding: 22px 18px;
    max-height: 90vh;
  }

  .popup-alerta h2 {
    font-size: 1.2rem;
  }
}

/* ========= ACCESIBILIDAD ========= */
:focus-visible {
  outline: 3px solid var(--verde-secundario);
  outline-offset: 3px;
  border-radius: 4px;
}
