/*
  Organized (no functional changes) on 2026-01-08
  - Merged consecutive duplicate selectors
  - Removed exact duplicate declarations
*/

/* =========================================================
   THEME TOKENS
   ========================================================= */
:root {
  /* Paleta inspirada en tu logo (armonía suave) */
  --bg: #fffdf3;
  --ink: #1f2a1f;
  --green-soft: #cfe28a;
  /* vibra #c1d672 */
  --green: #a9c85b;
  --sun: #ffe65a;
  /* vibra #ffed03 */
  --sun-strong: #ffd21f;
  --accent: #f4b24a;
  /* vibra #fcc327 (poquito) */
  --pink: #ffb3c7;
  --card: rgba(255,255,255,.75);
  --border: rgba(31,42,31,.12);
  --shadow: 0 18px 40px rgba(0,0,0,.08);
  --radius: 18px;
  --font-main: 'Baloo 2', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

}

/* =========================================================
   BASE / LAYOUT
   ========================================================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background: radial-gradient(900px 600px at 10% 15%, rgba(255,230,90,.55), transparent 60%),
    radial-gradient(900px 600px at 85% 25%, rgba(207,226,138,.55), transparent 65%),
    radial-gradient(900px 600px at 50% 90%, rgba(255,179,199,.35), transparent 60%),
    var(--bg);
  color: var(--ink);
}

.container {
  width: min(1350px, 92%);
  margin: 0 auto;
  font-family: "Baloo 2", cursive;
}

main {
  padding: 26px 0 46px;
}

.muted {
  opacity: .72;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(255,255,243,.7);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-badge {
  background: linear-gradient(135deg, var(--green-soft), var(--sun));
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.brand-name {
  font-weight: 800;
  letter-spacing: .2px;
}

.brand-tag {
  font-size: .85rem;
  opacity: .75;
  margin-left: 6px;
}

.brand-logo {
  max-height: 50px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: .2s ease;
}

.site-nav a:hover {
  background: rgba(255,255,255,.75);
  border-color: var(--border);
}

.site-nav a.pill {
  background: linear-gradient(135deg, rgba(207,226,138,.9), rgba(255,230,90,.9));
  border-color: rgba(31,42,31,.12);
  box-shadow: 0 12px 26px rgba(0,0,0,.06);
}

.site-nav a.pill-2 {
  background: linear-gradient(135deg, rgba(255,230,90,.95), rgba(244,178,74,.9));
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.7);
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  border-radius: 99px;
}

/* =========================================================
   HERO / CARDS
   ========================================================= */
.hero {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: "";
  position: absolute;
  inset: -40px -60px auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,230,90,.9), transparent 60%);
  filter: blur(1px);
  transform: rotate(18deg);
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.hero p {
  margin: 0 0 18px;
  opacity: .86;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.card {
  grid-column: span 4;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.78);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 12px 26px rgba(0,0,0,.05);
}

.card h3 {
  margin: 0 0 8px;
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(207,226,138,.45);
  border: 1px dashed rgba(31,42,31,.18);
  font-size: .92rem;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border: 1px solid rgba(31,42,31,.14);
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.8);
  color: var(--ink);
  cursor: pointer;
  transition: .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}

.btn.primary {
  background: linear-gradient(135deg, var(--green-soft), var(--sun));
}

.btn.secondary {
  background: linear-gradient(135deg, rgba(255,230,90,.95), rgba(244,178,74,.9));
}

.btn.tertiary {
  background: linear-gradient(135deg, rgba(48, 238, 5, 0.95), rgba(244,178,74,.9));
}

/* =========================================================
   FORMS
   ========================================================= */
.form {
  margin-top: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.78);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 12px 26px rgba(0,0,0,.05);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

label {
  font-size: .92rem;
  opacity: .9;
}

input, select, textarea {
  border: 1px solid rgba(31,42,31,.14);
  background: rgba(255,255,255,.85);
  border-radius: 14px;
  padding: 12px;
  font: inherit;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(169,200,91,.9);
  box-shadow: 0 0 0 4px rgba(207,226,138,.35);
}

.notice {
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(31,42,31,.14);
  background: rgba(255,230,90,.35);
  margin-top: 12px;
}

/* =========================================================
   SIMPLE SITE FOOTER (if still used)
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255,255,243,.75);
  padding: 22px 0;
}

.footer-inner {
  display: grid;
  gap: 14px;
}

.footer-title {
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  opacity: .8;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-copy {
  font-size: .92rem;
}

/* =========================================================
   PRELOADER
   ========================================================= */
#preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(900px 600px at 50% 40%, rgba(255,230,90,.55), rgba(255,255,243,.96));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .35s ease, visibility .35s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-card {
  text-align: center;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  border-radius: 22px;
  padding: 22px 26px;
  box-shadow: var(--shadow);
}

.preloader-card .sparkle {
  font-size: 1.8rem;
  animation: floaty 1.8s ease-in-out infinite;
}

.preloader-card .heart {
  font-size: 2.2rem;
  animation: pop 1.3s ease-in-out infinite;
}

.preloader-card .text {
  margin-top: 8px;
  opacity: .85;
}

@keyframes floaty {
  0%,100% {
    transform: translateY(0);
  }

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

@keyframes pop {
  0%,100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

/* =========================================================
   MODERN FOOTER (FINAL, DEDUPED)
   - wavy top
   - smaller height
   - top grid vertically centered
   - center logo 300px
   - big social icons + more gap
   - bottom centered layout uses .footer-modern__bottom--center
   ========================================================= */
.footer-modern {
  margin-top: 48px;
  background: #0f172a;
  color: rgba(255,255,255,.92);
  position: relative;
  /* smaller height */
  padding: 55px 0 22px;
  /* wave needs to be visible above */
  overflow: visible;
}

.footer-modern a {
  color: rgba(255,255,255,.92);
  text-decoration: none;
}

.footer-modern a:hover {
  text-decoration: underline;
}

.footer-modern__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* reduced */
}

/* top grid */
.footer-modern__top {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr;
  gap: 20px;
  /* reduced */
  align-items: center;
  /* vertically centered */
}

/* center image column */
.footer-modern__center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-modern__logo-center {
  width: 300px;
  max-width: 100%;
  height: auto;
}

/* labels + title: bigger + decorated */
.footer-modern__label {
  display: inline-block;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 8px;
}

.footer-modern__title {
  margin: 8px 0 10px;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
}

.footer-modern__title::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,230,90,.95), rgba(207,226,138,.85));
}

/* newsletter form */
.footer-modern__form {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.footer-modern__form input {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
}

.footer-modern__form input::placeholder {
  color: rgba(255,255,255,.7);
}

.footer-modern__list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* socials: bigger + more space */
.footer-modern__socials {
  display: flex;
  gap: 30px;
  margin-top: 18px;
  align-items: center;
}

.footer-modern__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* remove pill background */
  width: auto;
  height: auto;
  border: none;
  background: none;
  font-size: 3.8rem;
  /* BIG */
  line-height: 1;
  font-weight: 800;
  color: rgba(255,255,255,.92);
  transition: transform .2s ease, opacity .2s ease;
}

.footer-modern__socials a:hover {
  transform: translateY(-2px);
  opacity: 1;
}

/* bottom */
.footer-modern__bottom {
  padding-top: 14px;
  /* reduced */
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-modern__bottom--center {
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 10px;
}

.footer-modern__nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  font-weight: 500;
}

.footer-modern__nav span {
  opacity: .5;
}

.footer-modern__copy {
  font-size: .95rem;
  opacity: .85;
}

/* Wavy top edge */
.footer-modern::before {
  content: "";
  position: absolute;
  left: 0;
  top: -45px;
  width: 100%;
  height: 45px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'><path fill='%230f172a' d='M0,64 C240,120 480,0 720,56 C960,112 1200,16 1440,72 L1440,120 L0,120 Z'/></svg>");
  pointer-events: none;
}

/* responsive */
@media (max-width: 980px) {
  .footer-modern__top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-modern__form {
    flex-direction: column;
  }

  .footer-modern__form .btn {
    width: 100%;
  }

  .footer-modern__socials {
    justify-content: center;
  }
}

.footer-modern__msg {
  margin-top: 10px;
  font-size: 1.05rem;
  min-height: 1.4em;
  opacity: .95;
}

.footer-modern__msg.is-loading {
  opacity: .75;
}

.footer-modern__msg.is-success {
  color: rgba(255,255,255,.95);
}

.footer-modern__msg.is-error {
  color: #ffb3c7;
}
html,
body {
  font-family: var(--font-main);
  font-weight: 400;
}
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
