/* =====================================================================
   Nacho el Iguano — Hoja de estilos (tema vida salvaje / iNaturalist)
   ===================================================================== */

:root {
    --green-900: #1b3a2b;
    --green-800: #244f38;
    --green-700: #2f6b47;
    --green-600: #3a8c57;
    --green-500: #74ac00;   /* verde insignia iNaturalist */
    --green-400: #8fc31f;
    --lime:      #b6d94c;
    --sand:      #f4f1e8;
    --cream:     #fbfaf5;
    --ink:       #24312b;
    --muted:     #6b7a70;
    --line:      #e4e6de;
    --danger:    #c0392b;
    --info:      #2e7d9a;
    --shadow:    0 10px 30px rgba(27, 58, 43, .10);
    --radius:    16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Nunito Sans", system-ui, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
}

h1, h2, h3, h4, .brand__text strong { font-family: "Poppins", sans-serif; }

a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ------------------------- Navbar ------------------------- */
.navbar {
    background: var(--green-900);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
    overflow: visible;
}
.navbar__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 4rem;
    flex-wrap: wrap;
    overflow: visible;
}
.brand {
    display: flex; align-items: center; gap: 0.75rem; color: #fff;
    position: relative; z-index: 2; overflow: visible;
}
.brand:hover { text-decoration: none; }
/* Slot fijo en el header; la iguana crece y la cola cuelga por debajo */
.brand__logo-wrap {
    display: block;
    width: 2.625rem;   /* mismo “line box” que antes (~42px) */
    height: 2.625rem;
    flex: none;
    position: relative;
    overflow: visible;
}
.brand__logo {
    position: absolute;
    left: 50%;
    top: -0.15rem;
    width: 4.75rem;
    height: 4.75rem;
    max-width: none;
    transform: translateX(-50%);
    object-fit: contain;
    object-position: center top;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,.35));
    pointer-events: none;
    user-select: none;
}
.brand__text { position: relative; z-index: 1; }
.brand__text strong { display: block; font-size: 18px; line-height: 1.1; }
.brand__text small { color: var(--lime); font-size: 12px; }

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-wrap: wrap;
}
.nav > a {
    color: #dfe7db;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
}
.nav > a:hover { background: rgba(255,255,255,.10); text-decoration: none; }
.nav > a.is-active { background: var(--green-500); color: #fff; }
.nav__user {
    display: inline-flex; align-items: center; gap: 8px;
    color: #eef3ea; font-weight: 600; font-size: 14px;
    padding-left: 10px; border-left: 1px solid rgba(255,255,255,.2);
}

.nav-toggle { display: none; }
.nav-toggle__btn { display: none; cursor: pointer; font-size: 24px; margin-left: auto; }

/* chips de rol */
.chip {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    padding: 3px 9px; border-radius: 999px; letter-spacing: .3px;
    background: #cfd8cf; color: #2a3a2f;
}
.chip--admin    { background: #ffd27a; color: #6b4a00; }
.chip--empleado { background: #a7e0b8; color: #14512a; }
.chip--foraneo  { background: #cfe6f5; color: #124b63; }

/* ------------------------- Botones ------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; cursor: pointer; font-family: inherit; font-weight: 700;
    padding: 12px 22px; border-radius: 999px; font-size: 15px;
    transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
    text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--green-500); color: #fff; box-shadow: 0 6px 16px rgba(116,172,0,.35); }
.btn--primary:hover { background: var(--green-400); }
.btn--dark { background: var(--green-800); color: #fff; }
.btn--dark:hover { background: var(--green-700); }
.btn--ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { background: #fff; border: 1.5px solid var(--green-500); color: var(--green-700); }
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* ------------------------- Layout ------------------------- */
.page { min-height: 60vh; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section__head h2 { font-size: 34px; margin: 0 0 10px; color: var(--green-900); }
.section__head p { color: var(--muted); font-size: 17px; margin: 0; }
.eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: 1.5px;
    font-size: 12px; font-weight: 700; color: var(--green-600);
    background: #eaf3df; padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}

/* ------------------------- Hero ------------------------- */
.hero {
    position: relative;
    color: #fff;
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(143,195,31,.35), transparent 60%),
        linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 55%, var(--green-600) 100%);
    overflow: hidden;
}
.hero::after {
    content: "🌿🐍🦎🌴🐒🦜🌿";
    position: absolute; inset: auto -20px -30px auto;
    font-size: 120px; opacity: .08; letter-spacing: 20px; white-space: nowrap;
    transform: rotate(-8deg);
}
.hero__inner {
    max-width: 1180px; margin: 0 auto; padding: 90px 20px 100px;
    position: relative; z-index: 1; max-width: 760px;
}
.hero h1 { font-size: 48px; line-height: 1.1; margin: 0 0 18px; }
.hero p { font-size: 20px; color: #e7f2e0; margin: 0 0 28px; max-width: 620px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.hero__stats div strong { font-size: 30px; display: block; font-family: "Poppins"; }
.hero__stats div span { color: var(--lime); font-size: 14px; }

/* Carrusel del hero: solo cambia el fondo, el contenido queda fijo encima */
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    background-attachment: fixed; /* efecto parallax: el fondo queda fijo al hacer scroll */
    opacity: 0; transition: opacity 1.2s ease; will-change: opacity;
}
/* En móvil el "fixed" es problemático (iOS lo ignora); usamos scroll normal */
@media (max-width: 900px) {
    .hero__slide { background-attachment: scroll; }
}
.hero__slide.is-active { opacity: 1; }
/* Capa oscura para mantener el texto legible sobre las fotos */
.hero--carousel .hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(15,32,23,.86) 0%, rgba(27,58,43,.62) 55%, rgba(58,140,87,.42) 100%);
}
/* Ocultamos la decoración de emojis cuando hay fotos de fondo */
.hero--carousel::after { display: none; }
/* El contenido va por encima del fondo */
.hero__inner { position: relative; z-index: 2; }

.hero__dots {
    position: absolute; bottom: 18px; left: 0; right: 0; z-index: 3;
    display: flex; gap: 10px; justify-content: center;
}
.hero__dot {
    width: 11px; height: 11px; padding: 0; border-radius: 50%; cursor: pointer;
    border: 2px solid rgba(255,255,255,.85); background: transparent;
    transition: background .2s ease, transform .2s ease;
}
.hero__dot:hover { transform: scale(1.2); }
.hero__dot.is-active { background: #fff; }

/* ------------------------- Grid tarjetas ------------------------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
    transition: transform .12s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(27,58,43,.16); }
.card__media {
    height: 190px; display: flex; align-items: center; justify-content: center;
    font-size: 74px; color: #fff; position: relative;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body h3 { margin: 0; font-size: 19px; color: var(--green-900); }
.card__sci { font-style: italic; color: var(--muted); font-size: 14px; margin: 0; }
.card__desc { font-size: 15px; color: #47554c; margin: 6px 0 0; }
.card__foot {
    margin-top: auto; padding-top: 14px; display: flex; align-items: center;
    justify-content: space-between; gap: 10px;
}
.price { font-weight: 800; color: var(--green-700); font-size: 18px; font-family: "Poppins"; }

.tag {
    display: inline-block; font-size: 12px; font-weight: 700;
    padding: 3px 10px; border-radius: 999px; background: #eef3ea; color: var(--green-700);
}
.tag--danger { background: #fdecec; color: var(--danger); }

/* ------------------------- Franja de conservación ------------------------- */
.band {
    background: var(--green-800); color: #fff; border-radius: 24px;
    padding: 44px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 34px;
    align-items: center;
}
.band h2 { color: #fff; margin: 0 0 10px; font-size: 30px; }
.band p { color: #dce9d8; margin: 0; font-size: 17px; }
.band__points { display: grid; gap: 14px; }
.band__points div { background: rgba(255,255,255,.08); padding: 14px 18px; border-radius: 12px; }
.band__points strong { display: block; }

/* ------------------------- Comunidad / redes ------------------------- */
.social-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; text-align: center; box-shadow: var(--shadow);
}
.social-card .ico { font-size: 46px; }
.social-card h3 { margin: 10px 0 4px; }
.social-card--link {
    display: block; color: inherit; text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.social-card--link:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(27,58,43,.14); text-decoration: none; color: inherit; }
.social-card__brand {
    width: 64px; height: 64px; margin: 0 auto; border-radius: 16px;
    display: grid; place-items: center; color: #fff;
}
.social-card--instagram .social-card__brand {
    background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #8134af 75%, #515bd4);
}
.social-card--tiktok .social-card__brand {
    background: linear-gradient(135deg, #25f4ee, #111 48%, #fe2c55);
}
.social-card--youtube .social-card__brand {
    background: linear-gradient(135deg, #ff3d3d, #b00000);
}
.handle { font-family: "Poppins"; font-weight: 700; color: var(--green-600); font-size: 20px; }

.ig-embed {
    background: linear-gradient(135deg,#f58529,#dd2a7b 45%,#8134af 75%,#515bd4);
    color: #fff; border-radius: 24px; padding: 40px; text-align: center;
}
.ig-embed .handle { color: #fff; font-size: 28px; }

/* ------------------------- Posts / observaciones ------------------------- */
.post {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.post__img { height: 210px; object-fit: cover; width: 100%; background: #e9efe6; }
.post__img--ph { display:flex; align-items:center; justify-content:center; font-size:64px;
    background: linear-gradient(135deg, var(--green-600), var(--green-800)); color:#fff; }
.post__body { padding: 18px 20px 22px; }
.post__meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.avatar {
    width: 30px; height: 30px; border-radius: 50%; background: var(--green-500);
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px;
}

/* ------------------------- Formularios ------------------------- */
.auth-wrap { max-width: 460px; margin: 50px auto; }
.form-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px; box-shadow: var(--shadow);
}
.form-card h1 { margin: 0 0 4px; font-size: 26px; color: var(--green-900); }
.form-card .sub { color: var(--muted); margin: 0 0 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; color: #35443b; }
.field input, .field textarea, .field select {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
    border-radius: 10px; font-family: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(116,172,0,.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field small { color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Grupo de teléfono: select de lada (bandera) pegado al input */
.phone-group { display: flex; align-items: stretch; }
.phone-group__lada {
    width: auto; max-width: 150px; flex: 0 0 auto;
    border-radius: 10px 0 0 10px !important;
    border-right: 0 !important;
    background: #f5f8f1; font-weight: 700;
    padding-right: 8px; cursor: pointer;
}
.phone-group__num {
    flex: 1 1 auto; min-width: 0;
    border-radius: 0 10px 10px 0 !important;
    letter-spacing: .5px;
}
.phone-group__lada:focus,
.phone-group__num:focus { position: relative; z-index: 1; }

/* ------------------------- Flash / alertas ------------------------- */
.flash {
    max-width: 1180px; margin: 18px auto 0; padding: 14px 18px; border-radius: 12px;
    font-weight: 600; border: 1px solid;
}
.flash--success { background: #eafaef; border-color: #b6e6c4; color: #1c6b38; }
.flash--error   { background: #fdeeee; border-color: #f2c4c0; color: #9c261c; }
.flash--info    { background: #eaf4f8; border-color: #bfe0ec; color: #1b5a72; }

/* ------------------------- Tablas panel ------------------------- */
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { background: #f3f6ef; color: var(--green-900); font-family: "Poppins"; font-size: 13px; }
table.data tr:last-child td { border-bottom: 0; }

/* ------------------------- Stats panel ------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.stat {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow);
}
.stat strong { font-size: 32px; font-family: "Poppins"; color: var(--green-700); display: block; }
.stat span { color: var(--muted); font-weight: 600; }

.panel {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow); margin-bottom: 24px;
}
.panel h2 { margin-top: 0; color: var(--green-900); }

.breadcrumb { color: var(--muted); font-size: 14px; margin: 26px 0 8px; }
.page-title { font-size: 36px; color: var(--green-900); margin: 4px 0 8px; }
.lead { color: var(--muted); font-size: 18px; max-width: 720px; }

.empty { text-align: center; color: var(--muted); padding: 50px 20px; }

/* ------------------------- Tarjeta enlazable + meta ------------------------- */
.card--link { color: inherit; text-decoration: none; }
.card--link:hover { text-decoration: none; }
.card__media { position: relative; }
.card__count {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 700;
    padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(2px);
}
.card__meta-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.card__meta-list li {
    display: flex; gap: 8px; align-items: baseline; font-size: 14px; color: #47554c;
}
.card__meta-list li span { color: var(--muted); }
.card__cta { color: var(--green-600); font-weight: 700; font-size: 14px; }

/* ------------------------- Detalle de especie ------------------------- */
.especie-detalle {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start;
    padding-bottom: 40px;
}

.galeria__principal {
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
    height: 420px; display: flex; align-items: center; justify-content: center;
}
.galeria__principal img { width: 100%; height: 100%; object-fit: cover; }
.galeria__emoji { font-size: 140px; }
.galeria__thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.galeria__thumb {
    position: relative; width: 84px; height: 64px; padding: 0; cursor: pointer;
    border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #eee;
    transition: border-color .15s ease, transform .1s ease;
}
.galeria__thumb:hover { transform: translateY(-2px); }
.galeria__thumb.is-cover { border-color: var(--green-500); }
.galeria__thumb img { width: 100%; height: 100%; object-fit: cover; }
.galeria__badge {
    position: absolute; top: 6px; left: 6px; background: var(--green-500); color: #fff;
    font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
}
.galeria__vacia { color: var(--muted); margin-top: 16px; }

.ficha__nombre { font-size: 34px; color: var(--green-900); margin: 10px 0 2px; }
.ficha__sci { font-style: italic; color: var(--muted); font-size: 18px; margin: 0 0 20px; }
.ficha__datos { display: grid; gap: 12px; margin: 18px 0; }
.dato {
    display: grid; grid-template-columns: 40px 160px 1fr; align-items: center;
    background: #f5f8f1; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
}
.dato__ico { font-size: 22px; }
.dato__label { color: var(--muted); font-weight: 700; font-size: 14px; }
.dato__valor { font-weight: 700; color: var(--ink); }
.dato__valor--danger { color: var(--danger); }
.ficha__desc { font-size: 16px; color: #3d4a41; }

/* ------------------------- Barra de progreso de subida ------------------------- */
.progress { display: flex; align-items: center; gap: 12px; margin: 6px 0 18px; }
.progress__track {
    flex: 1; height: 14px; background: #e6ece1; border-radius: 999px; overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.12);
}
.progress__bar {
    width: 0; height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--green-500), var(--green-400));
    transition: width .2s ease;
    background-size: 30px 30px;
    background-image: linear-gradient(45deg, rgba(255,255,255,.25) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.25) 50%, rgba(255,255,255,.25) 75%, transparent 75%);
    animation: progress-stripes 0.7s linear infinite;
}
@keyframes progress-stripes { from { background-position: 0 0; } to { background-position: 30px 0; } }
.progress__pct { font-weight: 700; color: var(--green-700); min-width: 46px; text-align: right; }

/* ------------------------- Gestor de galería (admin) ------------------------- */
.galeria-admin {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.galeria-admin.is-cover { border: 2px solid var(--green-500); }
.galeria-admin.is-off { opacity: .55; }
.galeria-admin__img { position: relative; height: 150px; background: #eef2ea; }
.galeria-admin__img img { width: 100%; height: 100%; object-fit: cover; }
.galeria-admin__cap { margin: 0; padding: 8px 12px 0; font-size: 13px; color: var(--muted); }
.galeria-admin__acts { display: flex; gap: 8px; padding: 12px; margin-top: auto; flex-wrap: wrap; }

/* ------------------------- Vista previa de enlaces (tipo banner) ------------------------- */
.link-preview {
    position: relative; display: flex; align-items: stretch;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    overflow: hidden; box-shadow: var(--shadow);
    transition: transform .12s ease, box-shadow .15s ease;
    color: inherit; text-decoration: none;
}
.link-preview:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(27,58,43,.15); text-decoration: none; }
.link-preview__main { display: flex; align-items: stretch; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.link-preview__main:hover { text-decoration: none; }

.link-preview__img {
    flex: 0 0 120px; width: 120px; min-height: 112px;
    background: linear-gradient(135deg, var(--green-600), var(--green-900));
    display: flex; align-items: center; justify-content: center; font-size: 38px; color: #fff;
}
.link-preview__img img { width: 100%; height: 100%; object-fit: cover; }

.link-preview__body {
    padding: 14px 16px; display: flex; flex-direction: column; gap: 4px;
    justify-content: center; min-width: 0;
}
.link-preview__site { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.link-preview__title {
    color: var(--green-900); font-size: 16px; line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    word-break: break-word;
}
.link-preview__desc {
    font-size: 13px; color: #5a6a5f;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.link-preview__del {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(192,57,43,.92); color: #fff; font-weight: 700; line-height: 1; font-size: 13px;
}
.link-preview__del:hover { background: var(--danger); }

/* ------------------------- Contenido legal ------------------------- */
.legal .panel { margin-bottom: 24px; }
.legal h2 {
    color: var(--green-900); border-bottom: 2px solid var(--line);
    padding-bottom: 12px; margin-top: 0;
}
.legal h3 { color: var(--green-700); margin: 24px 0 6px; font-size: 18px; }
.legal p, .legal li { color: #3d4a41; }
.legal ul { padding-left: 22px; margin: 8px 0 4px; }
.legal li { margin-bottom: 8px; }
.legal em { color: var(--green-800); }
.legal__disclaimer { background: #f5f8f1; border-left: 4px solid var(--green-500); }
.legal-toc {
    margin: 22px 0 8px; padding: 16px 20px; border-radius: 12px;
    background: linear-gradient(135deg, #eef5ea, #f7faf4);
    border: 1px solid var(--line);
}
.legal-toc ol { margin: 8px 0 0; padding-left: 22px; }
.legal-toc a { color: var(--green-800); font-weight: 600; }
.legal-callout {
    margin: 0 0 28px; padding: 22px 24px 20px; border-radius: 14px;
    background: #eef6e8;
    border: 1px solid #b7cda8;
    border-left: 6px solid #2f7a3e;
    box-shadow: 0 6px 18px rgba(15, 36, 24, .08);
    color: #13261b;
}
.legal-callout__label {
    display: inline-block; margin: 0 0 10px; padding: 4px 10px;
    border-radius: 999px; background: #2f7a3e; color: #fff;
    font-family: Poppins, sans-serif; font-size: 11px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
}
.legal .legal-callout p,
.legal-callout p {
    margin: 0; color: #13261b; font-size: 16px; line-height: 1.6; font-weight: 500;
}
.legal .legal-callout strong,
.legal-callout strong { color: #0a1a10; font-weight: 700; }
.legal .legal-callout em,
.legal-callout em { color: #1a3d28; font-style: normal; font-weight: 600; }

/* ------------------------- Nosotros ------------------------- */
.nosotros-hero {
    position: relative; color: #fff; padding: 72px 0 56px; overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(76,175,80,.35), transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(27,58,43,.55), transparent 55%),
        linear-gradient(160deg, #0f2418 0%, #1b3a2b 45%, #2f5a42 100%);
}
.nosotros-hero::before {
    content: ""; position: fixed; inset: 0; opacity: .08; pointer-events: none; z-index: 0;
    background-image: 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='%23ffffff' fill-opacity='1'%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");
}
.nosotros-hero > * { position: relative; z-index: 1; }
.nosotros-hero__inner { position: relative; max-width: 760px; }
.nosotros-hero__brand {
    font-family: Poppins, sans-serif; font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.1; margin: 12px 0 14px; letter-spacing: -.02em;
}
.nosotros-hero__lead { font-size: 1.15rem; color: #d7e8cf; max-width: 540px; margin: 0 0 28px; }

.nosotros-social { display: flex; flex-wrap: wrap; gap: 12px; }
.nosotros-social__btn {
    display: flex; align-items: center; gap: 12px; min-width: 180px;
    padding: 12px 16px; border-radius: 14px; text-decoration: none; color: #fff;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
    transition: transform .15s ease, background .15s ease;
}
.nosotros-social__btn:hover { transform: translateY(-2px); background: rgba(255,255,255,.14); text-decoration: none; color: #fff; }
.nosotros-social__ico {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
}
.nosotros-social__btn--instagram .nosotros-social__ico {
    background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #8134af 75%, #515bd4);
}
.nosotros-social__btn--tiktok .nosotros-social__ico {
    background: linear-gradient(135deg, #25f4ee, #111 48%, #fe2c55);
}
.nosotros-social__btn--youtube .nosotros-social__ico {
    background: linear-gradient(135deg, #ff3d3d, #b00000);
}
.nosotros-social__meta { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.nosotros-social__meta strong { font-size: 15px; }
.nosotros-social__meta span { font-size: 13px; color: #cfe0c6; }

.nosotros-story {
    display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center;
}
.nosotros-story--reverse { grid-template-columns: .85fr 1.15fr; }
.nosotros-story--reverse .nosotros-story__text { order: 2; }
.nosotros-story--reverse .nosotros-story__media { order: 1; }
.nosotros-story__text h2 { margin: 6px 0 14px; color: var(--green-900); }
.nosotros-story__text p { color: #3d4a41; margin: 0 0 12px; }
.nosotros-story__media {
    margin: 0; border-radius: 18px; overflow: hidden;
    box-shadow: 0 16px 40px rgba(15,36,24,.18);
    aspect-ratio: 4 / 5; background: #1b3a2b;
}
.nosotros-story__media img {
    display: block; width: 100%; height: 100%; object-fit: cover;
}

.nosotros-objetivos {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.nosotros-obj {
    padding: 8px 4px 8px 0;
    border-top: 3px solid var(--green-500);
}
.nosotros-obj__tag {
    display: inline-block; font-family: Poppins, sans-serif; font-weight: 700;
    font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
    color: var(--green-700); margin-bottom: 8px;
}
.nosotros-obj h3 { margin: 0 0 10px; color: var(--green-900); font-size: 1.15rem; }
.nosotros-obj p { margin: 0; color: #3d4a41; font-size: 15px; }

.nosotros-escuelas {
    max-width: 720px; color: #3d4a41;
}
.nosotros-escuelas p { font-size: 1.05rem; margin: 0 0 18px; }

.nosotros-mv {
    display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px;
    padding-bottom: 8px;
}
.nosotros-mv__item h2 { margin: 6px 0 10px; color: var(--green-900); }
.nosotros-mv__item p { color: #3d4a41; margin: 0; }

.nosotros-valores {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 28px;
}
.nosotros-valor strong {
    display: block; color: var(--green-900); font-size: 1.05rem; margin-bottom: 6px;
    font-family: Poppins, sans-serif;
}
.nosotros-valor p { margin: 0; color: #5a6a5f; font-size: 15px; }

@media (max-width: 860px) {
    .nosotros-story, .nosotros-story--reverse,
    .nosotros-mv, .nosotros-valores, .nosotros-objetivos { grid-template-columns: 1fr; }
    .nosotros-story--reverse .nosotros-story__text,
    .nosotros-story--reverse .nosotros-story__media { order: unset; }
}

/* ------------------------- Footer ------------------------- */
.footer {
    position: relative;
    margin-top: 80px;
    background:
        radial-gradient(900px 320px at 15% -20%, rgba(143,195,31,.18), transparent 60%),
        linear-gradient(180deg, var(--green-900) 0%, #142a1f 100%);
    color: #d7e3d2;
    padding: 66px 0 0;
    overflow: hidden;
}
/* Cinta de hojas decorativa en el borde superior */
.footer__leaves {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex; justify-content: space-around;
    font-size: 22px;
    padding: 8px 0;
    background: var(--green-500);
    letter-spacing: 6px;
    filter: saturate(1.1);
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
}

.footer__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 20px 46px;
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr 1.2fr;
    gap: 36px;
}

/* Marca */
.footer__logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.footer__logo:hover { text-decoration: none; }
.footer__logo-icon {
    width: 52px; height: 52px; flex: none;
    object-fit: contain; object-position: center;
    padding: 4px; border-radius: 14px;
    background: rgba(143,195,31,.18); border: 1px solid rgba(143,195,31,.35);
}
.footer__logo strong { display: block; font-size: 20px; line-height: 1.1; }
.footer__logo small { color: var(--lime); font-size: 12px; }
.footer__about { color: #b7c7b1; font-size: 15px; margin: 16px 0 22px; max-width: 380px; }

/* Botones de redes sociales */
.footer__social { display: flex; flex-direction: column; gap: 12px; max-width: 340px; }
.social-btn {
    display: flex; align-items: center; gap: 14px;
    padding: 10px 14px; border-radius: 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    color: #eaf3e4;
    transition: transform .12s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.social-btn:hover {
    text-decoration: none; transform: translateY(-2px);
    background: rgba(255,255,255,.09);
    border-color: rgba(143,195,31,.4);
    box-shadow: 0 10px 26px rgba(0,0,0,.28);
}
.social-btn__icon {
    width: 42px; height: 42px; flex: none; border-radius: 12px;
    display: grid; place-items: center; color: #fff;
    background: var(--sb-grad, linear-gradient(135deg,#3a8c57,#1b3a2b));
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.social-btn__icon svg { display: block; width: 22px; height: 22px; }
.social-btn__meta { display: flex; flex-direction: column; line-height: 1.25; }
.social-btn__plat { font-size: 12px; color: #9db396; text-transform: uppercase; letter-spacing: .6px; }
.social-btn__handle { font-weight: 700; color: #fff; font-size: 15px; }

/* Columnas de enlaces */
.footer__col h4 {
    color: #fff; margin: 0 0 16px; font-size: 16px;
    position: relative; padding-bottom: 10px;
}
.footer__col h4::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 34px; height: 3px; border-radius: 3px; background: var(--green-500);
}
.footer__col a {
    display: block; color: #c3d2bd; padding: 7px 0; font-size: 15px;
    transition: color .15s ease, transform .15s ease;
}
.footer__col a:hover { color: #fff; text-decoration: none; transform: translateX(4px); }
.footer__contact-ico { display: inline-block; width: 22px; }

.footer__cta {
    display: flex !important;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    color: #0f2418 !important;
    background: linear-gradient(135deg, #c6e86a 0%, #8fc31f 55%, #6fa010 100%);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 10px 28px rgba(143,195,31,.28);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}
.footer__cta:hover {
    color: #0f2418 !important;
    text-decoration: none;
    transform: translateY(-3px) !important;
    box-shadow: 0 14px 34px rgba(143,195,31,.4);
    filter: brightness(1.04);
}
.footer__cta-ico {
    width: 40px; height: 40px; flex: none; border-radius: 12px;
    display: grid; place-items: center;
    background: rgba(15,36,24,.12); color: #0f2418;
}
.footer__cta-text {
    display: flex; flex-direction: column; gap: 1px; line-height: 1.2; flex: 1; min-width: 0;
}
.footer__cta-text strong {
    font-family: Poppins, sans-serif; font-size: 15px; font-weight: 700;
}
.footer__cta-text small {
    font-size: 12px; font-weight: 600; color: rgba(15,36,24,.72);
}
.footer__cta-arrow {
    font-size: 18px; font-weight: 700; transition: transform .18s ease;
}
.footer__cta:hover .footer__cta-arrow { transform: translateX(4px); }

/* ------------------------- Reveal (fade-in up) ------------------------- */
.reveal {
    opacity: 0;
    transform: translate3d(0, 1.75rem, 0);
    transition:
        opacity .7s cubic-bezier(.22, 1, .36, 1),
        transform .7s cubic-bezier(.22, 1, .36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
.reveal.is-inview {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
/* Tras el reveal, el hover de cards sigue funcionando */
.card.reveal.is-inview:hover,
.social-card--link.reveal.is-inview:hover {
    transform: translateY(-4px);
}
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}

/* Barra inferior */
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.10);
    padding: 20px;
    max-width: 1180px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    flex-wrap: wrap;
    font-size: 14px; color: #9db396;
}
.footer__bottom-note { color: var(--lime); }

/* ------------------------- Responsive ------------------------- */
@media (max-width: 900px) {
    .footer__inner { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer__brand { grid-column: 1 / -1; }
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .band { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2,1fr); }
    .hero h1 { font-size: 38px; }
    .especie-detalle { grid-template-columns: 1fr; gap: 26px; }
    .galeria__principal { height: 340px; }
}
@media (max-width: 680px) {
    .nav-toggle__btn { display: block; }
    .nav {
        display: none; width: 100%; flex-direction: column; align-items: stretch;
        margin: 8px 0 12px;
    }
    .nav-toggle:checked ~ .nav { display: flex; }
    .nav__user { border-left: 0; padding-left: 0; }
    .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero__inner { padding: 60px 20px 70px; }
    .hero h1 { font-size: 32px; }
    .band { padding: 28px; }
    .footer__inner { grid-template-columns: 1fr; gap: 26px; text-align: left; }
    .footer__social { max-width: 100%; }
    .footer__bottom { flex-direction: column; text-align: center; }
    .footer__leaves { font-size: 16px; letter-spacing: 3px; }
    .galeria__principal { height: 260px; }
    .dato { grid-template-columns: 34px 1fr; row-gap: 2px; }
    .dato__ico { grid-row: span 2; }
    .ficha__nombre { font-size: 28px; }
}
