/* ====== BASE PALETA ====== */
:root {
  --ink: #1d2b2d;
  --brand: #2bc4e3;
  --ink-soft: #5e6c70;
  --bg-1: #eef3f7;
  --bg-2: #e6edf3;
  --white: #ffffff;
  --ring: conic-gradient(from 0deg, #2bc4e3, #91e3f3, #b0f0ff, #2bc4e3);
}

/* ====== FOOTER ====== */
.footer {
  background: radial-gradient(circle at top left, rgba(43,196,227,0.25), transparent 50%),
              radial-gradient(circle at bottom right, rgba(29,43,45,0.25), transparent 50%),
              linear-gradient(135deg, var(--bg-1), var(--bg-2));
  color: var(--ink);
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  padding: 56px min(5vw,48px) 24px;
  position: relative;
  overflow: hidden;
}

/* ====== EFECTO DE BRILLOS BG ====== */
.footer::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(43,196,227,0.3), transparent 70%);
  filter: blur(80px);
  z-index: 0;
}

.footer::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(29,43,45,0.25), transparent 70%);
  filter: blur(70px);
  z-index: 0;
}

/* ====== NEWSLETTER ====== */
.newsle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(45,55,72,0.08);
  border-radius: 20px;
  padding: 32px;
  margin: 0 auto 56px;
  max-width: 1100px;
  box-shadow: 0 8px 24px rgba(16,24,40,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  z-index: 1;
}

.newsle:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(16,24,40,0.12);
}

.newsle .imgnews img {
  width: 110px;
  height: auto;
}

.textnews h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px;
}

.textnews p {
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 16px;
}

.inputnews {
  display: flex;
  gap: 10px;
  align-items: center;
}

.inputnews input {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  min-width: 260px;
  outline: none;
  font-size: 15px;
  background: rgba(255,255,255,0.85);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.inputnews input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(43,196,227,0.15);
}

.inputnews button {
  padding: 14px 22px;
  border-radius: 14px;
  border: 0;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand), #71d9ee);
  box-shadow: 0 6px 18px rgba(43,196,227,0.35);
  transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.inputnews button:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow: 0 10px 26px rgba(43,196,227,0.45);
}

/* ====== INFO + LOGO ====== */
.infologo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  max-width: 980px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 1;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.logo img {
  width: clamp(120px, 22vw, 180px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: radial-gradient(120% 120% at 30% 20%, #ffffff 20%, #f2f7fb 60%, #e8f6fb 100%);
  border-radius: 50%;
  padding: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 16px rgba(16,24,40,0.08), inset 0 0 0 1px rgba(255,255,255,0.6);
  position: relative;
}

.logo img::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--ring);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.logo img:hover::before {
  opacity: 0.9;
  animation: spin 3.5s linear infinite;
}

.info p {
  margin: 0;
  color: var(--ink-soft);
}

.info a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ====== SOCIAL LINKS ====== */
.links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.links a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.75);
  border-radius: 50%;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 14px rgba(16,24,40,0.08);
  color: black;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: transform 0.18s ease, box-shadow 0.25s ease, color 0.2s ease, background 0.2s ease;
}

.links a i {
  font-size: 18px;
  line-height: 1;
}

.links a::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--ring);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}

.links a::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  filter: blur(10px);
  background: radial-gradient(closest-side, rgba(43,196,227,0.35), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: scale(0.9);
  z-index: -2;
}

.links a:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.9);
  color: #0f172a;
  box-shadow: 0 10px 26px rgba(16,24,40,0.15);
}

.links a:hover::before {
  opacity: 1;
  animation: spin 2.8s linear infinite;
}

.links a:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Animación flotante */
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.links a:nth-child(3n+1) {
  animation: floaty 6s ease-in-out infinite;
}

.links a:nth-child(3n+2) {
  animation: floaty 7s ease-in-out infinite 0.5s;
}

.links a:nth-child(3n+3) {
  animation: floaty 8s ease-in-out infinite 0.9s;
}

/* ====== QUICKLINKS ====== */
.quicklinks {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  align-items: flex-start;
  justify-items: center;
  margin: 30px auto 10px;
  max-width: 1100px;
  position: relative;
  z-index: 1;
}

.quicklinks ul {
  list-style: none;
  width: 100%;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 18px 16px;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px rgba(16,24,40,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quicklinks ul:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16,24,40,0.12);
}

.quicklinks h3 {
  font-size: 16px;
  margin: 0 0 10px;
  color: var(--ink);
  font-weight: 700;
}

.quicklinks li {
  margin: 8px 0;
}

.quicklinks a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.15s ease;
}

.quicklinks a:hover {
  color: var(--brand);
  transform: translateX(4px);
}

/* ====== CREDITS / LEGAL ====== */
.credits {
  text-align: center;
  margin: 26px 0 8px;
}

.credits h3 {
  font-size: 13px;
  color: #6b7a80;
  font-weight: 500;
}

.copylegal {
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: 12px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  color: #6b7a80;
  font-size: 14px;
}

.legal a {
  color: var(--ink-soft);
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.2s ease;
}

.legal a:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ====== ANIMACIONES ====== */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1100px) {
  .quicklinks {
    grid-template-columns: repeat(3, minmax(160px,1fr));
  }
}

@media (max-width: 780px) {
  .newsle {
    flex-direction: column;
    text-align: center;
  }
  .inputnews {
    flex-direction: column;
  }
  .inputnews input,
  .inputnews button {
    width: 100%;
  }
  .quicklinks {
    grid-template-columns: repeat(2, minmax(160px,1fr));
  }
}

@media (max-width: 520px) {
  .quicklinks {
    grid-template-columns: 1fr;
  }
  .logo img {
    width: 140px;
  }
}

/* ====== REDUCIR MOTION ====== */
@media (prefers-reduced-motion: reduce) {
  .links a,
  .links a::before,
  .links a::after,
  .logo img::before,
  .newsle,
  .quicklinks ul {
    animation: none !important;
    transition: none !important;
  }
}
