/* =========================================================
   ALMAS BELLAS — RESCATE ANIMAL
   CSS COMPLETO
   ========================================================= */

/* =========================================================
   1. VARIABLES
   ========================================================= */

:root {
    /* Colores principales */
    --green-dark: #173d2d;
    --green: #315a3d;
    --green-medium: #55734b;
    --green-light: #dfe6cf;

    /* Morado del branding */
    --purple: #713c82;
    --purple-dark: #5b2e6c;
    --purple-light: #a878ad;
    --purple-soft: #eaddec;

    /* Fondos */
    --cream: #f7f3eb;
    --cream-dark: #eee8dc;
    --white: #ffffff;

    /* Texto */
    --text: #243029;
    --text-light: #68706a;
    --text-muted: #858b85;

    /* Detalles */
    --gold: #c49354;
    --border: #e4dfd5;

    /* Sombras */
    --shadow-sm: 0 4px 12px rgba(23, 61, 45, 0.08);
    --shadow: 0 8px 25px rgba(23, 61, 45, 0.12);
    --shadow-lg: 0 18px 45px rgba(23, 61, 45, 0.16);

    /* Bordes */
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --radius-xl: 40px;

    /* Layout */
    --container: 1180px;

    /* Transiciones */
    --transition: 0.3s ease;
}


/* =========================================================
   2. RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    min-height: 100vh;
    background: var(--white);
    color: var(--text);
    font-family: "Nunito", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}


/* =========================================================
   3. TIPOGRAFÍA
   ========================================================= */

/*
   Puedes cargar estas fuentes desde Google Fonts:

   @import url('https://fonts.googleapis.com/css2?
   family=DM+Sans:wght@400;500;600;700&
   family=Kalam:wght@400;700&
   display=swap');

   Kalam → títulos manuscritos
   DM Sans → texto general
*/

body {
    font-family: "DM Sans", Arial, sans-serif;
}

h1,
h2,
h3,
.handwritten {
    font-family: "Kalam", cursive;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 0.98;
    font-weight: 700;
}

h2 {
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    line-height: 1;
}

h3 {
    font-size: 1.7rem;
    line-height: 1.1;
}


/* =========================================================
   4. UTILIDADES
   ========================================================= */

.container {
    width: min(100% - 48px, var(--container));
    margin-inline: auto;
}

.text-purple {
    color: var(--purple);
}

.text-green {
    color: var(--green);
}

.text-center {
    text-align: center;
}

.section {
    padding: 90px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    color: var(--green-dark);
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}


/* =========================================================
   5. BOTONES
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 50px;
    padding: 12px 25px;

    border: 2px solid transparent;
    border-radius: 999px;

    font-size: 0.95rem;
    font-weight: 700;

    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--green-dark);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--green);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--green-dark);
    border-color: var(--green-dark);
}

.btn-secondary:hover {
    background: var(--green-dark);
    color: var(--white);
}

.btn-purple {
    background: var(--purple);
    color: var(--white);
}

.btn-purple:hover {
    background: var(--purple-dark);
    box-shadow: var(--shadow);
}

.btn-small {
    min-height: 42px;
    padding: 9px 20px;
    font-size: 0.85rem;
}


/* =========================================================
   6. HEADER / NAVBAR
   ========================================================= */

.site-header {
    position: relative;
    z-index: 1000;
    background: var(--white);
}

.navbar {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--purple);
    flex-shrink: 0;
}

.logo img {
    width: 72px;
    height: 58px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-family: "Kalam", cursive;
    font-size: 1.7rem;
    font-weight: 700;
}

.logo-subtitle {
    margin-top: 5px;
    font-size: 0.62rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 27px;
}

.nav-link {
    position: relative;

    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;

    padding: 30px 0;

    transition: color var(--transition);
}

.nav-link::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 21px;

    width: 0;
    height: 2px;

    background: var(--green-dark);

    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--green-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 13px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.social-link {
    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    color: var(--green-dark);

    border-radius: 50%;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.social-link:hover {
    color: var(--white);
    background: var(--purple);
    transform: translateY(-2px);
}

/* =========================================================
   7. HERO
   ========================================================= */

.hero {
    position: relative;
    min-height: 520px;

    display: flex;
    align-items: stretch;

    overflow: hidden;

    background: var(--cream);
}

.hero-content {
    position: relative;
    z-index: 3;

    width: 44%;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 70px 20px 70px max(40px, calc((100vw - var(--container)) / 2));
}

.hero-title {
    max-width: 530px;
    color: var(--green-dark);
    margin-bottom: 22px;
}

.hero-title span {
    color: var(--purple);
}

.hero-description {
    max-width: 470px;

    margin-bottom: 28px;

    color: var(--text-light);

    font-size: 1.05rem;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;

    width: 62%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.hero::after {
    content: "";

    position: absolute;
    z-index: 2;

    top: 0;
    left: 36%;

    width: 25%;
    height: 100%;

    background: linear-gradient(
        90deg,
        var(--cream) 0%,
        rgba(247, 243, 235, 0.85) 25%,
        rgba(247, 243, 235, 0) 100%
    );

    pointer-events: none;
}

/* =========================================================
   8. BLOQUE DE VALORES
   ========================================================= */

.values {
    padding: 35px 0;
    background: var(--cream);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.value-icon {
    flex: 0 0 58px;

    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--green-light);
    color: var(--green-dark);

    font-size: 1.45rem;
}

.value-item h3 {
    margin-bottom: 2px;

    font-family: "DM Sans", sans-serif;
    font-size: 1rem;
    font-weight: 800;

    color: var(--green-dark);
}

.value-item p {
    color: var(--text-light);
    font-size: 0.82rem;
    line-height: 1.35;
}


/* =========================================================
   9. ANIMALES
   ========================================================= */

.animals {
    padding: 85px 0;
    background: var(--white);
}

.animals-header {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 30px;
}

.animals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.animal-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.animal-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.animal-card:focus-visible {
    outline:3px solid var(--purple);
    outline-offset:3px;
}

.animal-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.animal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.5s ease;
}

.animal-card:hover .animal-image {
    transform: scale(1.06);
}

.animal-favorite {
    position: absolute;
    top: 14px;
    right: 14px;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);

    color: var(--purple);

    font-size: 1.15rem;

    box-shadow: var(--shadow-sm);
}

.animal-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.animal-name {
    margin-bottom: 3px;

    color: var(--green-dark);

    font-family: "Kalam", cursive;
    font-size: 1.55rem;
}

.animal-meta {
    margin-bottom: 5px;

    color: var(--text-light);

    font-size: 0.85rem;
    font-weight: 600;
}

.animal-description {
    min-height: 65px;

    margin-bottom: 15px;

    color: var(--text-light);

    font-size: 0.85rem;
    line-height: 1.45;
}

.animal-card .btn {
    width: 100%;
    margin-top: auto;
}

.animal-dialog {
    position:fixed;
    inset:0;
    margin:auto;
    width:min(960px, calc(100% - 32px));
    max-width:960px;
    max-height:calc(100% - 32px);
    padding:0;
    overflow:auto;
    border:0;
    border-radius:20px;
    background:var(--white);
    color:var(--text);
    box-shadow:var(--shadow-lg);
}
.animal-dialog::backdrop { background:rgba(12,25,18,.68); backdrop-filter:blur(3px); }
.animal-dialog-card { position:relative; display:grid; grid-template-columns:minmax(220px,.9fr) 1.1fr; min-height:360px; }
.animal-dialog-image { width:100%; height:100%; min-height:360px; object-fit:cover; }
.animal-dialog-content { display:flex; flex-direction:column; align-items:flex-start; padding:32px; }
.animal-dialog-content h2 { margin:16px 0 4px; color:var(--green-dark); }
.animal-dialog-meta { margin:0 0 18px; color:var(--text-light); font-weight:700; }
.animal-dialog-description { margin-bottom:24px; white-space:pre-line; color:var(--text-light); line-height:1.6; }
.animal-dialog-description p { margin:0 0 1em; }
.animal-dialog-description p:last-child { margin-bottom:0; }
.animal-dialog-content .btn { margin-top:auto; }
.animal-dialog-close { position:absolute; z-index:1; top:12px; right:12px; display:grid; place-items:center; width:40px; height:40px; border:0; border-radius:50%; background:var(--white); color:var(--green-dark); font-size:1.6rem; cursor:pointer; box-shadow:var(--shadow-sm); }
.animal-carousel { grid-column:1 / -1; width:100%; margin:4px 0 0; padding:0 32px 28px; }
.animal-carousel[hidden] { display:none; }
.animal-carousel-view { position:relative; display:grid; grid-template-columns:38px minmax(0,1fr) 38px; align-items:center; gap:6px; }
.animal-carousel-image { width:100%; height:auto; aspect-ratio:1; border-radius:12px; background:var(--cream); object-fit:contain; }
.animal-carousel-control { display:grid; place-items:center; width:36px; height:36px; border:1px solid var(--border); border-radius:50%; background:var(--cream); color:var(--green-dark); font-size:1.5rem; line-height:1; cursor:pointer; }
.animal-carousel-control[hidden] { display:none; }
.animal-carousel-control:hover { background:var(--green-dark); color:var(--white); }
.animal-carousel-count { margin:7px 0 0; color:var(--text-light); font-size:.8rem; text-align:center; }


/* =========================================================
   10. SECCIÓN "CÓMO PUEDES AYUDAR"
   ========================================================= */

.help {
    position: relative;

    padding: 85px 0;

    overflow: hidden;

    background: var(--cream);
}

.help::before {
    content: "";

    position: absolute;

    right: -100px;
    top: -100px;

    width: 430px;
    height: 430px;

    border-radius: 50%;

    background: rgba(223, 230, 207, 0.55);
}

.help-header {
    position: relative;
    z-index: 2;

    margin-bottom: 30px;
}

.help-grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.help-card {
    padding: 30px 20px;

    text-align: center;

    background: rgba(255, 255, 255, 0.88);

    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}

.help-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.help-icon {
    width: 55px;
    height: 55px;

    margin: 0 auto 15px;

    display: grid;
    place-items: center;

    color: var(--purple);

    font-size: 2rem;
}

.help-card h3 {
    margin-bottom: 8px;

    color: var(--green-dark);

    font-family: "DM Sans", sans-serif;
    font-size: 1rem;
    font-weight: 800;
}

.help-card p {
    min-height: 65px;

    margin-bottom: 17px;

    color: var(--text-light);

    font-size: 0.84rem;
}


/* =========================================================
   11. HISTORIAS
   ========================================================= */

.stories {
    padding: 85px 0;
    background: var(--white);
}

.stories-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
}

.stories-column {
    min-width: 0;
}

.story-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 25px;

    align-items: center;
}

.story-images {
    display: grid;
    grid-template-columns: 1fr 1fr;

    overflow: hidden;

    border-radius: var(--radius);
}

.story-images img {
    height: 220px;
    object-fit: cover;
}

.story-info h3 {
    margin-bottom: 10px;

    color: var(--green-dark);
}

.story-info p {
    margin-bottom: 17px;

    color: var(--text-light);

    font-size: 0.9rem;
}

.story-label {
    display: inline-block;

    margin-bottom: 10px;
    padding: 4px 9px;

    background: var(--cream);

    color: var(--green-dark);

    border-radius: 5px;

    font-size: 0.72rem;
    font-weight: 700;
}


/* =========================================================
   12. SOBRE NOSOTROS
   ========================================================= */

.about {
    position: relative;

    padding-left: 60px;

    border-left: 1px solid var(--border);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin: 15px 0 20px;

    color: var(--text-light);

    font-size: 0.92rem;
}

.about-image {
    flex: 0 0 170px;

    width: 170px;
    height: 170px;

    overflow: hidden;

    border-radius: 50%;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   13. FRASE INSPIRACIONAL
   ========================================================= */

.quote {
    position: relative;

    padding: 45px 20px;

    text-align: center;

    background: var(--cream);
}

.quote::before,
.quote::after {
    content: "";

    position: absolute;

    width: 100%;
    height: 50px;

    left: 0;

    background: var(--white);
}

.quote::before {
    top: -1px;

    clip-path: ellipse(55% 55% at 50% 0%);
}

.quote::after {
    bottom: -1px;

    clip-path: ellipse(55% 55% at 50% 100%);
}

.quote-text {
    position: relative;
    z-index: 2;

    max-width: 800px;

    margin: 0 auto;

    color: var(--purple);

    font-family: "Kalam", cursive;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.quote-text::before {
    content: "“";
}

.quote-text::after {
    content: " ♥";
}


/* =========================================================
   14. FOOTER
   ========================================================= */

.footer {
    position: relative;

    padding: 65px 0 25px;

    background: var(--green-dark);
    color: var(--white);

    overflow: hidden;
}

.footer::before {
    content: "";

    position: absolute;

    left: -5%;
    top: -45px;

    width: 110%;
    height: 90px;

    background: var(--cream);

    border-radius: 50%;
}

.footer-grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr 1fr;

    gap: 45px;

    padding-top: 30px;
}

.footer-logo {
    display: inline-flex;
    flex-direction: column;

    color: var(--white);
}

.footer-logo .logo-name {
    color: var(--white);
}

.footer-logo .logo-subtitle {
    color: var(--purple-light);
}

.footer-column h3 {
    margin-bottom: 15px;

    color: var(--white);

    font-family: "DM Sans", sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);

    font-size: 0.82rem;

    transition:
        color var(--transition),
        padding-left var(--transition);
}

.footer-links a:hover {
    padding-left: 5px;
    color: var(--white);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    color: rgba(255, 255, 255, 0.75);

    font-size: 0.82rem;
}

.contact-icon {
    flex-shrink: 0;

    color: var(--purple-light);
}

.footer-social {
    display: flex;
    gap: 9px;
}

.footer-social a {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;

    color: var(--white);

    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.footer-social a:hover {
    background: var(--purple);
    border-color: var(--purple);
    transform: translateY(-3px);
}

.footer-bottom {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 50px;
    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.13);

    color: rgba(255, 255, 255, 0.55);

    font-size: 0.72rem;
}

.footer-legal {
    display: flex;
    gap: 18px;
}


/* =========================================================
   15. DECORACIONES
   ========================================================= */

.paw-decoration {
    position: absolute;

    color: rgba(113, 60, 130, 0.1);

    pointer-events: none;

    user-select: none;
}

.heart-decoration {
    color: var(--purple);
    font-size: 2rem;
}


/* =========================================================
   16. FORMULARIOS
   ========================================================= */

.form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-label {
    color: var(--green-dark);

    font-size: 0.85rem;
    font-weight: 700;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;

    padding: 13px 15px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

    outline: none;

    color: var(--text);

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(113, 60, 130, 0.1);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}


/* =========================================================
   17. CONTACTO
   ========================================================= */

.contact {
    padding: 90px 0;

    background: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;

    align-items: start;
}

.contact-info h2 {
    margin-bottom: 15px;
}

.contact-info > p {
    max-width: 500px;

    margin-bottom: 25px;

    color: var(--text-light);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 13px;
}

.contact-detail-icon {
    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--purple-soft);
    color: var(--purple);
}


/* =========================================================
   18. ADOPCIÓN
   ========================================================= */

.adoption-process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.process-step {
    position: relative;

    padding: 25px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    text-align: center;
}

.process-number {
    width: 48px;
    height: 48px;

    margin: 0 auto 15px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--purple);
    color: var(--white);

    font-weight: 800;
}

.process-step h3 {
    margin-bottom: 8px;

    font-family: "DM Sans", sans-serif;
    font-size: 1rem;
    font-weight: 800;

    color: var(--green-dark);
}

.process-step p {
    color: var(--text-light);
    font-size: 0.84rem;
}


/* =========================================================
   19. ANIMACIONES
   ========================================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.animate-up {
    animation: fadeUp 0.7s ease both;
}

.float {
    animation: float 4s ease-in-out infinite;
}


/* =========================================================
   20. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .navbar {
        padding: 0 25px;
    }

    .nav-menu {
        gap: 17px;
    }

    .nav-link {
        font-size: 0.82rem;
    }

    .animals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .help-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stories-layout {
        grid-template-columns: 1fr;
    }

    .about {
        padding-left: 0;
        padding-top: 50px;
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .adoption-process {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   21. RESPONSIVE — MÓVIL
   ========================================================= */

@media (max-width: 768px) {

    .container {
        width: min(100% - 30px, var(--container));
    }

    .section {
        padding: 65px 0;
    }


    /* HEADER */

    .navbar {
        min-height: 70px;
        padding: 0 15px;
    }

    .logo img {
        width: 52px;
        height: 45px;
    }

    .logo-name {
        font-size: 1.35rem;
    }

    .logo-subtitle {
        font-size: 0.5rem;
    }

    .nav-menu {
        display: none;
    }

    .nav-actions .social-links {
        display: none;
    }

    .nav-actions .btn {
        min-height: 42px;
        padding: 8px 17px;
        font-size: 0.82rem;
    }


    /* HERO */

    .hero {
        min-height: auto;

        display: flex;
        flex-direction: column;
    }

    .hero-content {
        width: 100%;

        padding: 60px 20px 35px;

        order: 1;
    }

    .hero-image {
        position: relative;

        width: 100%;
        height: 310px;

        order: 2;
    }

    .hero::after {
        display: none;
    }

    .hero-title {
        font-size: clamp(2.6rem, 12vw, 4rem);
    }

    .hero-description {
        font-size: 0.95rem;
    }

    /* VALUES */

    .values {
        padding: 30px 0;
    }

    .values-grid {
        grid-template-columns: 1fr 1fr;
        gap: 22px 15px;
    }

    .value-item {
        align-items: flex-start;
    }

    .value-icon {
        flex-basis: 45px;

        width: 45px;
        height: 45px;

        font-size: 1.1rem;
    }

    .value-item h3 {
        font-size: 0.85rem;
    }

    .value-item p {
        font-size: 0.72rem;
    }


    /* ANIMALES */

    .animals {
        padding: 65px 0;
    }

    .animals-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

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

    .animal-image-wrapper {
        height: 250px;
    }


    /* HELP */

    .help-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .help-card {
        padding: 25px 13px;
    }

    .help-card h3 {
        font-size: 0.88rem;
    }

    .help-card p {
        font-size: 0.76rem;
    }

    .help-card .btn {
        width: 100%;
        padding-inline: 10px;
        font-size: 0.72rem;
    }


    /* STORIES */

    .story-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .story-images img {
        height: 190px;
    }

    .about-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .about-image {
        width: 140px;
        height: 140px;
    }


    /* FOOTER */

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px 25px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-legal {
        flex-wrap: wrap;
    }


    /* CONTACT */

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


    /* ADOPTION */

    .adoption-process {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   22. MÓVILES PEQUEÑOS
   ========================================================= */

@media (max-width: 480px) {

    .hero-content {
        padding: 45px 17px 30px;
    }

    .hero-title {
        font-size: 2.7rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-image {
        height: 260px;
    }

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

    .value-item {
        align-items: center;
    }

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

    .help-card p {
        min-height: auto;
    }

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

    .footer-column:first-child {
        grid-column: auto;
    }

    .footer {
        padding-bottom: 20px;
    }

    .quote {
        padding: 55px 20px;
    }
}


/* =========================================================
   23. ACCESIBILIDAD
   ========================================================= */

:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   24. SELECCIÓN DE TEXTO
   ========================================================= */

::selection {
    background: var(--purple);
    color: var(--white);
}


/* =========================================================
   25. SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--green-medium);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple);
}

/* Portada de la asociación */
.site-header { position: sticky; top: 0; box-shadow: 0 3px 18px rgba(23,61,45,.06); }
.navbar { max-width: 1600px; min-height: 76px; margin: auto; padding-inline: clamp(20px,4vw,54px); gap: 22px; }
.logo { gap: 9px; }
.logo-mark { display:block; flex:0 0 auto; width:48px; height:48px; object-fit:contain; }
.paw-inline { display:inline-block; width:1em; height:1em; object-fit:contain; vertical-align:-.15em; }
.btn-primary .paw-inline { filter:brightness(0) invert(1); }
.value-icon img { width:30px; height:30px; object-fit:contain; }
.logo-name { font-size:1.55rem; }
.logo-subtitle { letter-spacing:2.3px; }
.nav-menu { gap: clamp(12px,2vw,26px); }
.nav-link { white-space:nowrap; font-size:.82rem; }
.nav-actions { gap: 16px; }
.donate-nav { min-height:44px; padding:9px 23px; border-radius:16px; }
.hero { min-height:490px; background:linear-gradient(90deg,#f8f5ee 0%,#f8f5ee 35%,#ece5da 100%); }
.hero-content { width:48%; padding-top:54px; padding-bottom:48px; }
.hero-title { font-size:clamp(2.8rem,4.2vw,4rem); margin-bottom:14px; }
.hero-description { margin-bottom:19px; font-size:.98rem; }
.eyebrow { margin-bottom:10px; color:var(--purple); text-transform:uppercase; letter-spacing:.13em; font-size:.72rem; font-weight:800; }
.hero-note { margin-top:22px; color:var(--purple); font-family:"Kalam",cursive; font-size:1.2rem; transform:rotate(-3deg); }
.hero-note span { font-size:1.8rem; vertical-align:middle; }
.hero-image { width:64%; object-position:center 45%; }
.hero::after { left:36%; width:27%; background:linear-gradient(90deg,#f8f5ee 0%,rgba(248,245,238,.84) 25%,rgba(248,245,238,0) 100%); }
.values { padding:22px 0; }
.values-grid { gap:18px; }
.animals { padding:48px 0 40px; }
.animals-header { margin-bottom:40px; }
.animals-header .section-header, .animals-header.section-header { margin-bottom:0; }
.animals-all-link { display:flex; justify-content:center; margin-top:20px; }
.section-header h2, .help-header h2, .stories h2, .about h2 { font-size:clamp(2rem,3vw,2.65rem); color:var(--green-dark); margin-bottom:5px; }
.section-header p { font-size:.9rem; }
.animals-grid { gap:16px; }
.animal-card { border-radius:13px; }
.animal-image-wrapper { height:170px; flex:0 0 auto; }
.animal-content { padding:12px; }
.animal-name { font-size:1.35rem; }
.animal-description { display:-webkit-box; min-height:60px; margin-bottom:9px; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:4; }
.animal-favorite { background:rgba(23,39,29,.58); color:white; box-shadow:none; font-size:1.6rem; }
.help { padding:45px 0; }
.help-header { margin-bottom:16px; }
.help-grid { gap:14px; }
.help-card { padding:17px 13px; border-radius:14px; }
.help-icon { height:42px; margin-bottom:7px; font-size:1.8rem; }
.help-card:not(.help-card-raffle) .btn { display:none; }
.help-card p { min-height:44px; margin-bottom:10px; font-size:.8rem; }
.help-card h3 { margin-bottom:4px; }
.stories { padding:38px 0; }
.stories-layout { gap:34px; }
.stories .section-header { margin-bottom:12px; }
.story-card { grid-template-columns:minmax(190px,.85fr) 1.15fr; gap:16px; }
.story-images img { height:155px; }
.story-info h3 { font-family:"DM Sans",sans-serif; font-size:1.1rem; }
.story-info p, .about-text p { font-size:.82rem; line-height:1.5; }
.about { padding-left:32px; }
.about-content { gap:18px; }
.about-image { flex-basis:140px; width:140px; height:140px; }
.quote { padding:25px 20px; }
.footer { padding:46px 0 20px; }
.footer-grid { grid-template-columns:1fr 1fr; gap:24px; padding-top:18px; }
.footer-logo + .footer-social { margin-top:12px; }
.footer-logo .logo-name { font-size:1.6rem; }
.footer-bottom { margin-top:28px; padding-top:14px; }
.footer-column h3 { margin-bottom:10px; }

@media (max-width:1100px) {
  .navbar { flex-wrap:wrap; justify-content:center; padding-block:12px; }
  .nav-menu { order:3; width:100%; justify-content:center; }
  .nav-link { padding:8px 0; }
  .nav-link::after { bottom:2px; }
  .hero-content { width:52%; }
}
@media (max-width:768px) {
  .navbar { min-height:65px; flex-wrap:nowrap; justify-content:space-between; }
  .nav-menu { display:none; }
  .logo-mark { width:40px; height:40px; }
  .logo-name { font-size:1.35rem; }
  .hero { min-height:0; }
  .hero-content { width:100%; padding:43px 20px 26px; }
  .hero-image { width:100%; height:300px; object-position:center 47%; }
  .hero::after { display:none; }
  .hero-note { margin-top:15px; }
  .animals { padding:42px 0 34px; }
  .animal-image-wrapper { height:205px; }
  .stories-layout { gap:32px; }
  .about { padding:25px 0 0; }
  .story-card { grid-template-columns:1fr; }
  .story-images img { height:180px; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:24px; }
}
@media (max-width:480px) {
  .navbar { padding-inline:12px; gap:8px; }
  .logo { gap:7px; }
  .logo-mark { width:35px; height:35px; }
  .logo-name { font-size:1.15rem; }
  .logo-subtitle { font-size:.45rem; letter-spacing:1.5px; }
  .nav-actions { gap:0; }
  .nav-actions .btn { min-height:38px; padding:7px 12px; }
  .hero-title { font-size:2.65rem; }
  .hero-buttons { flex-direction:row; }
  .hero-buttons .btn { width:auto; flex:1; padding-inline:10px; }
  .hero-image { height:245px; }
  .values-grid { grid-template-columns:1fr 1fr; gap:18px 12px; }
  .value-item { align-items:flex-start; }
  .value-icon { flex-basis:40px; width:40px; height:40px; font-size:1rem; }
  .value-icon img { width:24px; height:24px; }
  .animals-header { gap:12px; }
  .animals-header .btn { align-self:flex-start; }
  .animals-grid, .help-grid { grid-template-columns:1fr; }
  .animal-image-wrapper { height:230px; }
  .help-card { padding:20px 15px; }
  .help-card p { min-height:0; }
  .footer-grid { grid-template-columns:1fr; }
  .footer-column:first-child { grid-column:auto; }
  .footer-legal { gap:10px; }
}

.data-notice { margin:0 0 16px; padding:12px 16px; border-left:4px solid var(--gold); border-radius:8px; background:#fff8e9; color:#594323; font-size:.88rem; }

.excel-test-page { min-height:100vh; background:var(--cream); }
.excel-test { width:min(100% - 32px,760px); padding-block:clamp(32px,8vh,80px); }
.excel-test-back { display:inline-block; margin-bottom:36px; color:var(--green-dark); font-weight:700; }
.excel-test-header { margin-bottom:28px; }
.excel-test-mark { display:grid; place-items:center; width:56px; height:56px; margin-bottom:18px; border-radius:18px; background:var(--green-light); font-size:1.7rem; }
.excel-test-header .eyebrow { margin-bottom:8px; }
.excel-test-header h1 { margin-bottom:8px; color:var(--green-dark); font-size:clamp(2.4rem,6vw,3.5rem); }
.excel-test-header > p:last-child { color:var(--text-light); }
.excel-test-card { padding:clamp(20px,5vw,34px); border:1px solid var(--border); border-radius:var(--radius); background:white; box-shadow:var(--shadow); }
.excel-test-card-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.excel-test-kicker { color:var(--purple); font-size:.72rem; font-weight:800; letter-spacing:.12em; }
.excel-test-card h2 { margin-top:4px; color:var(--green-dark); font-family:"DM Sans",sans-serif; font-size:1.35rem; }
.excel-test-card h3 { margin:24px 0 12px; color:var(--green-dark); font-size:1rem; }
.excel-test-badge { flex-shrink:0; padding:6px 11px; border-radius:99px; font-size:.78rem; font-weight:800; }
.excel-test-badge.is-loading { background:#f3f0e9; color:#6e685a; }
.excel-test-badge.is-success { background:#e7f3e9; color:#245c36; }
.excel-test-badge.is-error { background:#fbe9e5; color:#943b2d; }
.excel-test-message { min-height:48px; padding:13px 15px; border-radius:10px; background:var(--cream); color:var(--text); font-size:.92rem; }
.excel-test-details { display:grid; grid-template-columns:1fr 1fr; gap:0 22px; margin:20px 0; }
.excel-test-details > div { padding:12px 0; border-bottom:1px solid var(--border); }
.excel-test-details dt { color:var(--text-light); font-size:.78rem; }
.excel-test-details dd { margin:4px 0 0; color:var(--green-dark); font-weight:700; overflow-wrap:anywhere; }
.excel-test-details code { padding:2px 6px; border-radius:5px; background:var(--cream); }
.excel-test-button { width:100%; }
.excel-test-button:disabled { cursor:wait; opacity:.65; }
.excel-test-preview[hidden] { display:none; }
.excel-test-table-scroll { overflow-x:auto; }
.excel-test-preview table { width:100%; border-collapse:collapse; text-align:left; font-size:.86rem; }
.excel-test-preview th, .excel-test-preview td { padding:10px 8px; border-bottom:1px solid var(--border); }
.excel-test-preview th { color:var(--text-light); font-size:.76rem; }
.excel-test-row-state { display:inline-block; padding:3px 8px; border-radius:99px; font-size:.74rem; font-weight:800; }
.excel-test-row-state.is-published { background:#e7f3e9; color:#245c36; }
.excel-test-row-state.is-hidden { background:#fbe9e5; color:#943b2d; }
.excel-test-note { margin-top:18px; color:var(--text-light); text-align:center; font-size:.84rem; }
@media(max-width:520px) { .excel-test-details { grid-template-columns:1fr; } .excel-test-card-heading { flex-direction:column; } }

.mobile-nav-toggle { display:none; }
@media(max-width:768px) {
  .navbar { position:relative; }
  .mobile-nav-toggle {
    display:grid;
    place-items:center;
    flex:0 0 42px;
    width:42px;
    height:42px;
    padding:0;
    border:1px solid var(--green-dark);
    border-radius:12px;
    background:var(--white);
    color:var(--green-dark);
    font-size:1.55rem;
    line-height:1;
    cursor:pointer;
  }
  .nav-menu.is-open {
    position:absolute;
    z-index:1001;
    top:100%;
    right:0;
    left:0;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:8px 18px 14px;
    background:var(--white);
    box-shadow:0 12px 20px rgba(23,61,45,.12);
  }
  .nav-menu.is-open .nav-link { padding:13px 4px; border-bottom:1px solid var(--cream-dark); }
  .nav-menu.is-open .nav-link:last-child { border-bottom:0; }
}

.raffle-page { min-height:100vh; display:flex; flex-direction:column; background:var(--cream); }
.about-page { min-height:100vh; display:flex; flex-direction:column; background:var(--white); }
.about-main { flex:1; }
.about-hero { padding:clamp(48px,8vw,96px) 0; background:linear-gradient(120deg,var(--cream) 0%,#fff 58%,var(--purple-soft) 100%); }
.about-hero-inner { max-width:980px; }
.about-hero .eyebrow, .about-section-heading .eyebrow, .about-location .eyebrow, .about-values .eyebrow, .about-contact .eyebrow { margin-bottom:8px; color:var(--purple); font-size:.78rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.about-hero h1 { max-width:800px; margin-bottom:16px; color:var(--green-dark); font-size:clamp(2.8rem,7vw,5rem); }
.about-hero-inner > p:not(.eyebrow) { max-width:820px; color:var(--text-light); font-size:clamp(1rem,2vw,1.2rem); line-height:1.7; }
.about-badges { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.about-badges span { padding:9px 14px; border:1px solid var(--border); border-radius:999px; background:rgba(255,255,255,.8); color:var(--green-dark); font-size:.88rem; font-weight:700; }
.about-section { padding-block:clamp(42px,6vw,76px); }
.about-section-heading { max-width:760px; margin-bottom:22px; }
.about-section-heading h2, .about-location h2, .about-values h2, .about-contact h2 { margin-bottom:10px; color:var(--green-dark); font-size:clamp(2rem,4vw,3rem); }
.about-section-heading > p:last-child, .about-lead, .about-location-grid > div:first-child > p:not(.eyebrow), .about-values-inner > div > p:not(.eyebrow), .about-vida > p { color:var(--text-light); line-height:1.7; }
.about-lead { max-width:900px; margin-bottom:26px; font-size:1.08rem; }
.about-pillars { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.about-pillar { padding:24px; border:1px solid var(--border); border-radius:18px; background:var(--cream); }
.about-pillar > span { display:grid; place-items:center; width:48px; height:48px; margin-bottom:14px; border-radius:16px; background:var(--green-light); color:var(--green-dark); font-size:1.6rem; }
.about-pillar > span img { width:28px; height:28px; object-fit:contain; }
.about-pillar h3, .about-team-grid h3 { margin-bottom:6px; color:var(--green-dark); font-family:"Kalam",cursive; font-size:1.45rem; }
.about-pillar p, .about-team-grid p { margin:0; color:var(--text-light); line-height:1.55; }
.about-location { padding-block:clamp(42px,6vw,72px); background:var(--cream); }
.about-location-grid { display:grid; grid-template-columns:1.4fr .8fr; align-items:center; gap:40px; }
.about-location-card { padding:28px; border-radius:20px; background:var(--green-dark); color:var(--white); box-shadow:var(--shadow); }
.about-location-card > span { display:block; margin-bottom:12px; font-size:1.8rem; }
.about-location-card p { margin-bottom:16px; line-height:1.5; }
.about-location-card p:last-child { margin-bottom:0; }
.about-team-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }
.about-team-grid article { padding:18px; border:1px solid var(--border); border-radius:15px; background:var(--white); box-shadow:var(--shadow-sm); }
.about-team-grid h3 { font-size:1.25rem; }
.about-team-grid p { font-size:.9rem; }
.about-values { padding-block:clamp(42px,6vw,72px); background:var(--green-dark); color:var(--white); }
.about-values-inner { display:grid; grid-template-columns:1.2fr .8fr; align-items:center; gap:36px; }
.about-values h2 { color:var(--white); }
.about-values-inner > div > p:not(.eyebrow) { color:rgba(255,255,255,.86); }
.about-values blockquote { margin:0; color:#f4dfbd; font-family:"Kalam",cursive; font-size:clamp(1.5rem,3vw,2.3rem); line-height:1.35; text-align:center; }
.about-vida { max-width:920px; }
.about-contact { padding:clamp(42px,6vw,72px) 0; background:var(--cream); text-align:center; }
.about-contact .container { max-width:900px; }
.about-contact .container > p:not(.eyebrow) { max-width:780px; margin:0 auto 22px; color:var(--text-light); line-height:1.7; }
.about-contact-links { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:24px auto 28px; }
.about-contact-links a { padding:10px 14px; border:1px solid var(--border); border-radius:999px; background:var(--white); color:var(--green-dark); font-size:.9rem; font-weight:700; text-decoration:none; }
.about-contact-links a:hover { border-color:var(--purple); color:var(--purple); }
.about-action-buttons { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:22px; }
.help-contact-actions .btn { border:3px solid var(--green-dark); background:var(--cream); color:var(--green-dark); }
.help-contact-actions .btn:hover { border-color:var(--green-dark); background:var(--cream-dark); color:var(--green-dark); }
.stories-page { min-height:100vh; display:flex; flex-direction:column; background:var(--white); }
.stories-main { flex:1; }
.stories-hero { padding:clamp(46px,8vw,88px) 0; background:linear-gradient(120deg,var(--cream) 0%,#fff 56%,var(--purple-soft) 100%); }
.stories-hero .container { max-width:960px; }
.stories-hero .eyebrow, .vida-story .eyebrow, .other-stories .eyebrow { margin-bottom:8px; color:var(--purple); font-size:.78rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.stories-hero h1 { margin-bottom:12px; color:var(--green-dark); font-size:clamp(2.8rem,7vw,5rem); }
.stories-hero p:last-child { max-width:720px; margin:0; color:var(--text-light); font-size:1.1rem; line-height:1.65; }
.vida-story { max-width:960px; padding-block:clamp(42px,6vw,76px); }
.vida-story-heading { display:flex; align-items:center; gap:16px; margin-bottom:18px; }
.vida-paw { display:grid; flex:0 0 62px; place-items:center; width:62px; height:62px; border-radius:20px; background:var(--green-light); color:var(--green-dark); font-size:2rem; }
.vida-paw img { width:34px; height:34px; object-fit:contain; }
.vida-story-heading .eyebrow { margin-bottom:2px; }
.vida-story-heading h2 { margin:0; color:var(--green-dark); font-size:clamp(2.3rem,5vw,3.5rem); }
.vida-story-copy { max-width:860px; }
.vida-story-copy p, .vida-family-note { color:var(--text-light); font-size:1.03rem; line-height:1.75; }
.vida-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:26px 0 30px; }
.vida-gallery img { width:100%; height:280px; object-fit:contain; }
.vida-timeline { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:30px 0 22px; }
.vida-timeline article { display:flex; gap:13px; padding:20px; border:1px solid var(--border); border-radius:17px; background:var(--cream); }
.vida-timeline article > span { display:grid; flex:0 0 38px; place-items:center; width:38px; height:38px; border-radius:50%; background:var(--green-dark); color:var(--white); font-size:.8rem; font-weight:800; }
.vida-timeline h3, .vida-support-card h3 { margin-bottom:6px; color:var(--green-dark); font-family:"Kalam",cursive; font-size:1.25rem; }
.vida-timeline p, .vida-support-card p { margin:0; color:var(--text-light); font-size:.91rem; line-height:1.6; }
.vida-support-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:22px; }
.vida-support-card { padding:22px; border-left:4px solid var(--purple); border-radius:0 14px 14px 0; background:#faf6fb; }
.vida-family-note { padding:18px 22px; border-radius:14px; background:#eef2e6; }
.vida-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:22px; }
.other-stories { padding:clamp(34px,5vw,58px) 0; background:var(--cream); }
.other-stories-inner { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.other-stories h2 { margin-bottom:6px; color:var(--green-dark); }
.other-stories p:not(.eyebrow) { max-width:660px; margin:0; color:var(--text-light); line-height:1.6; }
.stories-thanks { display:flex; align-items:center; justify-content:center; gap:16px; padding-block:26px; text-align:center; }
.stories-thanks p { margin:0; color:var(--purple); font-family:"Kalam",cursive; font-size:1.25rem; }
.stories-thanks a { color:var(--green-dark); font-weight:700; }
.story-card-text-only { grid-template-columns:1fr; }
.adoption-page { min-height:100vh; display:flex; flex-direction:column; background:var(--cream); }
.adoption-main { flex:1; }
.adoption-page .animals { min-height:55vh; }
.adoption-header { margin-bottom:34px; }
.adoption-header .eyebrow { margin-bottom:6px; color:var(--purple); font-weight:800; }
.adoption-header h1 { margin:0 0 8px; color:var(--green-dark); font-family:"Kalam",cursive; font-size:clamp(2.2rem,4vw,3.2rem); }
.adoption-contact { margin-top:32px; text-align:center; color:var(--text-light); }
.adoption-contact a { color:var(--purple); font-weight:800; }

.adopted-page { min-height:100vh; display:flex; flex-direction:column; background:var(--cream); }
.adopted-main { flex:1; }
.adopted-section { min-height:55vh; }
.adopted-section .adoption-header { margin-bottom:34px; }
.adopted-grid { position:relative; display:block; width:100vw; height:100vh; margin-left:calc(50% - 50vw); overflow:hidden; }
.adopted-card { position:absolute; overflow:hidden; border-radius:var(--radius); background:var(--white); box-shadow:var(--shadow-sm); transition:transform var(--transition), box-shadow var(--transition), filter var(--transition); }
.adopted-card { cursor:pointer; }
.adopted-card:hover { z-index:1000 !important; transform:scale(1.04) rotate(0deg) !important; box-shadow:var(--shadow); }
.adopted-image-frame { display:grid; width:100%; aspect-ratio:var(--adopted-image-ratio,1); place-items:center; overflow:hidden; background:var(--cream-dark); }
.adopted-image { display:block; width:100%; height:100%; object-fit:contain; }
.adopted-gallery-dialog { width:min(94vw,1000px); max-width:none; max-height:94vh; margin:auto; padding:0; overflow:visible; border:0; border-radius:var(--radius); background:var(--white); color:var(--text); box-shadow:var(--shadow-lg); }
.adopted-gallery-dialog::backdrop { background:rgba(12,25,18,.72); backdrop-filter:blur(3px); }
.adopted-gallery-card { position:relative; display:flex; flex-direction:column; align-items:center; max-height:94vh; padding:24px 30px 20px; }
.adopted-gallery-card h2 { margin:0 50px 16px; color:var(--green-dark); text-align:center; font-family:"Kalam",cursive; font-size:clamp(1.5rem,3vw,2.2rem); }
.adopted-gallery-view { display:grid; width:100%; grid-template-columns:46px minmax(0,1fr) 46px; align-items:center; gap:8px; }
.adopted-gallery-image { display:block; width:100%; max-height:76vh; object-fit:contain; }
.adopted-gallery-control { display:grid; width:40px; height:40px; place-items:center; border:1px solid var(--border); border-radius:50%; background:var(--cream); color:var(--green-dark); font-size:1.6rem; line-height:1; cursor:pointer; }
.adopted-gallery-control:hover { background:var(--green-dark); color:var(--white); }
.adopted-gallery-control[hidden], .adopted-gallery-count[hidden] { display:none; }
.adopted-gallery-count { margin:10px 0 0; color:var(--text-light); font-size:.85rem; }
.adopted-gallery-close { position:absolute; z-index:2; top:10px; right:10px; display:grid; width:40px; height:40px; place-items:center; border:0; border-radius:50%; background:var(--cream); color:var(--green-dark); font-size:1.6rem; cursor:pointer; }
.adopted-gallery-dialog.single-image { width:fit-content; max-width:94vw; background:var(--cream); }
.adopted-gallery-dialog.single-image .adopted-gallery-card { width:fit-content; max-width:94vw; max-height:94vh; padding:0; background:var(--cream); }
.adopted-gallery-dialog.single-image .adopted-gallery-card h2 { position:relative; z-index:1; width:100%; margin:0; padding:24px 64px 20px 24px; color:var(--green-dark); text-align:center; text-shadow:none; }
.adopted-gallery-dialog.single-image .adopted-gallery-view { display:block; width:fit-content; max-width:94vw; }
.adopted-gallery-dialog.single-image .adopted-gallery-image { display:block; width:auto; height:auto; max-width:94vw; max-height:calc(94vh - 82px); }
.adopted-gallery-dialog.single-image .adopted-gallery-close { background:rgba(255,255,255,.92); }

@media (max-width:620px) { .adopted-card { border-radius:13px; } .adopted-gallery-card { padding:20px 12px 14px; } .adopted-gallery-view { grid-template-columns:34px minmax(0,1fr) 34px; gap:3px; } .adopted-gallery-control { width:32px; height:32px; } .adopted-gallery-image { max-height:78vh; } }
.raffle-page .site-header { position:sticky; top:0; }
.raffle-back a { color:var(--green-dark); font-weight:700; }
.raffle-back a:hover { color:var(--purple); }
.raffle-main { flex:1; padding-block:20px; }
.raffle-hero { max-width:560px; margin:0 auto 18px; padding:18px 24px; border-radius:20px; background:linear-gradient(135deg,#fff 0%,var(--purple-soft) 100%); text-align:center; box-shadow:var(--shadow); }
.raffle-heading { display:flex; align-items:center; justify-content:center; gap:10px; margin-bottom:6px; }
.raffle-icon { display:grid; flex:0 0 42px; place-items:center; width:42px; height:42px; margin:0; border-radius:14px; background:var(--white); font-size:1.4rem; }
.raffle-hero .eyebrow { margin-bottom:10px; }
.raffle-hero h1 { margin:0; color:var(--green-dark); font-size:clamp(1.8rem,4vw,2.5rem); }
.raffle-lead { max-width:500px; margin:0 auto 12px; color:var(--text-light); font-size:.95rem; }
.raffle-layout { display:grid; grid-template-columns:minmax(240px,.8fr) minmax(320px,1.2fr); gap:24px; max-width:980px; margin:0 auto 28px; }
.raffle-prizes, .raffle-numbers-panel { padding:clamp(20px,4vw,32px); border:1px solid var(--border); border-radius:20px; background:var(--white); }
.raffle-kicker { margin-bottom:8px; color:var(--purple); font-size:.72rem; font-weight:800; letter-spacing:.12em; }
.raffle-prizes h2, .raffle-numbers-panel h2 { margin-bottom:12px; color:var(--green-dark); }
.raffle-prize-table { width:100%; border-collapse:collapse; text-align:left; }
.raffle-prize-table th, .raffle-prize-table td { padding:12px 8px; border-bottom:1px solid var(--border); vertical-align:top; }
.raffle-prize-table th { color:var(--text-light); font-size:.8rem; }
.raffle-prize-description { margin:16px 0; color:var(--text-light); }
.raffle-gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:10px; margin-top:18px; }
.raffle-gallery:empty { display:none; }
.raffle-gallery img { width:100%; aspect-ratio:1; border-radius:12px; object-fit:cover; }
.raffle-pending-note, .raffle-numbers-panel > p { margin-top:12px; color:var(--text-light); font-size:.86rem; }
.raffle-number-status, .raffle-number-legend { margin-top:10px; color:var(--text-light); font-size:.86rem; }
.raffle-number-legend span { margin-right:5px; }
.raffle-number-legend .paw-inline { width:1.15em; height:1.15em; }
.raffle-number-grid { display:grid; grid-template-columns:repeat(10,minmax(0,1fr)); gap:7px; margin-top:16px; padding:2px; }
.raffle-number { display:grid; place-items:center; min-height:32px; border:1px solid var(--green-light); border-radius:8px; background:var(--cream); color:var(--green-dark); font-size:.79rem; font-weight:800; }
.raffle-number.is-purchased { border-color:var(--purple-soft); background:var(--purple-soft); font-size:1rem; }
.raffle-info { max-width:760px; margin:0 auto; padding:28px; border:1px solid var(--border); border-radius:20px; background:var(--white); text-align:center; }
.raffle-info h2 { margin-bottom:10px; color:var(--green-dark); }
.raffle-info p { margin-bottom:12px; color:var(--text-light); }
.raffle-email { color:var(--purple); font-weight:800; }
.raffle-back { max-width:760px; margin:24px auto 0; }
.raffle-footer { padding:22px 16px; background:var(--green-dark); color:var(--white); text-align:center; font-size:.84rem; }
.raffle-footer p { margin:0; }
@media(max-width:900px) {
  .about-pillars { grid-template-columns:1fr 1fr; }
  .about-team-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .vida-timeline { grid-template-columns:1fr 1fr; }
}
@media(max-width:640px) {
  .about-hero { padding-block:42px; }
  .about-pillars, .about-location-grid, .about-values-inner { grid-template-columns:1fr; }
  .about-team-grid { grid-template-columns:1fr 1fr; }
  .about-action-buttons { flex-direction:column; }
  .about-action-buttons .btn { width:100%; }
  .vida-timeline, .vida-support-grid { grid-template-columns:1fr; }
  .vida-gallery { grid-template-columns:1fr; }
  .vida-gallery img { height:auto; max-height:440px; }
  .other-stories-inner, .stories-thanks { align-items:flex-start; flex-direction:column; }
  .vida-actions { flex-direction:column; }
  .vida-actions .btn { width:100%; }
}
@media(max-width:640px) {
  .animal-dialog-card { grid-template-columns:1fr; }
  .animal-dialog-image { height:220px; min-height:0; }
  .animal-dialog-content { padding:22px; }
  .animal-dialog-content h2 { margin-top:0; }
  .animal-carousel { padding:0 22px 22px; }
  .raffle-page .navbar { gap:10px; }
  .raffle-page .donate-nav { margin-left:auto; }
  .raffle-main { padding-block:36px; }
  .raffle-layout { grid-template-columns:1fr; }
}
