/* ──────────────────────────────────────────────
   BUTTON EFFECTS
   ────────────────────────────────────────────── */

/* Base shared — ripple + lift */
.btn-green,
.btn-outline-green,
.btn-white,
a.btn-green,
a.btn-outline-green,
a.btn-white {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.22s ease,
              background-color 0.22s ease,
              color 0.22s ease !important;
}

/* Lift on hover */
.btn-green:hover,
a.btn-green:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(0,122,51,0.45) !important;
}

.btn-outline-green:hover,
a.btn-outline-green:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(0,122,51,0.35) !important;
}

.btn-white:hover,
a.btn-white:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18) !important;
}

/* Active — press down */
.btn-green:active,
.btn-outline-green:active,
.btn-white:active,
a.btn-green:active,
a.btn-outline-green:active,
a.btn-white:active {
  transform: translateY(0px) scale(0.98) !important;
  box-shadow: none !important;
  transition-duration: 0.08s !important;
}

/* Ripple wave on click */
.btn-green::after,
.btn-outline-green::after,
.btn-white::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.25);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.btn-green:active::after,
.btn-outline-green:active::after,
.btn-white:active::after {
  opacity: 1;
  transform: scale(1);
  transition-duration: 0.1s;
}

/* Shimmer sweep on hover for primary green button */
.btn-green::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.22) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn-green:hover::before { left: 130%; }

/* ── Also style inline buttons that aren't using the .btn-* class ── */
/* Nav "Participa" pill button */
header a[href="participa.html"].rounded-full,
nav a[href="participa.html"].rounded-full {
  transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}
header a[href="participa.html"].rounded-full:hover,
nav a[href="participa.html"].rounded-full:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px rgba(0,122,51,0.4) !important;
}


.img-overlay {
  position: relative;
  overflow: hidden;
}
.img-overlay img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,122,51,0.45) 0%, rgba(0,38,62,0.30) 100%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.img-overlay:hover img    { transform: scale(1.07); }
.img-overlay:hover::after { opacity: 1; }

/* ──────────────────────────────────────────────
   CARD GLOW ON HOVER
   ────────────────────────────────────────────── */
.card-glow {
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.card-glow:hover {
  box-shadow: 0 0 0 2px #007A33, 0 20px 48px rgba(0,122,51,0.18);
  transform: translateY(-5px);
}

/* ──────────────────────────────────────────────
   GALLERY ITEM HOVER
   ────────────────────────────────────────────── */
.gallery-item {
  overflow: hidden;
  border-radius: 1rem;
  position: relative;
  cursor: pointer;
  display: block;
}
.gallery-item img {
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), filter 0.4s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,38,62,0.65) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover img    { transform: scale(1.08); filter: brightness(0.88); }
.gallery-item:hover::after { opacity: 1; }

/* ──────────────────────────────────────────────
   SPLIT IMAGE HOVER
   ────────────────────────────────────────────── */
.split-img-fx {
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1), box-shadow 0.55s ease;
}
.split-img-fx:hover {
  transform: scale(1.025) translateY(-4px);
  box-shadow: 0 28px 60px rgba(0,38,62,0.22), 0 0 0 4px rgba(0,122,51,0.25);
}

/* ──────────────────────────────────────────────
   PRINCIPIO CARD HOVER
   ────────────────────────────────────────────── */
.principio-fx {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.principio-fx:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,122,51,0.15);
  border-color: #007A33 !important;
}

/* ──────────────────────────────────────────────
   LINEA NUM HOVER
   ────────────────────────────────────────────── */
.linea-num-fx {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.linea-num-fx:hover {
  transform: scale(1.12) rotate(-4deg);
  box-shadow: 0 6px 20px rgba(0,122,51,0.35);
}

/* ──────────────────────────────────────────────
   FLOATING BADGE ANIMATION
   ────────────────────────────────────────────── */
@keyframes om-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
.animate-float { animation: om-float 4.5s ease-in-out infinite; }

@keyframes om-pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,122,51,0.6); }
  50%       { opacity: 0.8; box-shadow: 0 0 0 6px rgba(0,122,51,0); }
}
.pulse-dot { animation: om-pulse-dot 2s ease-in-out infinite; }

/* ──────────────────────────────────────────────
   HEADER SCROLL SHADOW
   ────────────────────────────────────────────── */
.header-scrolled {
  box-shadow: 0 4px 28px rgba(0,0,0,0.13) !important;
}

/* ──────────────────────────────────────────────
   FLOATING SOCIAL BAR (right side — icons fixed)
   ────────────────────────────────────────────── */
#social-float {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 44px;
}

#social-float a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #00263E;
  color: #fff;
  text-decoration: none;
  overflow: visible;
  transition: background 0.22s ease;
}

#social-float a:first-child { border-radius: 8px 0 0 0; }
#social-float a:last-child  { border-radius: 0 0 0 8px; }

#social-float a .sf-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

#social-float a .sf-label {
  position: absolute;
  right: 44px;
  top: 0;
  height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  background: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border-radius: 6px 0 0 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

#social-float a:hover { background: #007A33; }
#social-float a:hover .sf-label { opacity: 1; transform: translateX(0); }

#social-float a[data-net="instagram"]:hover { background: #E1306C; }
#social-float a[data-net="youtube"]:hover   { background: #FF0000; }
#social-float a[data-net="tiktok"]:hover    { background: #010101; }
#social-float a[data-net="facebook"]:hover  { background: #1877F2; }
#social-float a[data-net="contacto"]:hover  { background: #007A33; }

@media (max-width: 767px) {
  #social-float { display: none; }
}

/* ──────────────────────────────────────────────
   BACK TO TOP BUTTON
   ────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  z-index: 999;
  width: 48px;
  height: 48px;
  background: #007A33;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,122,51,0.45);
  border: none;
}
#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}
#back-to-top:hover {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 8px 28px rgba(0,122,51,0.55);
}
