:root {
    --cream: #f4ecdf;
    --light-cream: #fbf7ef;
    --brown: #3a2415;
    --dark-brown: #1f140d;
    --medium-brown: #765235;
    --tan: #b89063;
    --gold: #c99b55;
    --green: #344535;
    --white: #ffffff;
    --shadow: 0 20px 45px rgba(44, 27, 16, 0.14);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--light-cream);
    color: var(--dark-brown);
    font-family: "DM Sans", sans-serif;
    overflow-x: hidden;
}

body::before {
    background-image: url("https://www.transparenttextures.com/patterns/cream-paper.png");
    content: "";
    inset: 0;
    opacity: 0.2;
    pointer-events: none;
    position: fixed;
    z-index: 100;
}

img {
    display: block;
    max-width: 100%;
}

button,
a {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.navbar {
    align-items: center;
    display: flex;
    height: 100px;
    justify-content: flex-end;
    left: 0;
    padding: 10px 6%;
    position: fixed;
    right: 0;
    top: 0;
    transition: 0.35s ease;
    width: 100%;
    z-index: 50;
}

.navbar.scrolled {
    background: rgba(31, 20, 13, 0.96);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    height: 82px;
    backdrop-filter: blur(12px);
}


.navbar-logo {
    align-items: center;
    display: flex;
    height: 82px;
    position: relative;
    width: 230px;
    z-index: 3;
}

.navbar-logo img {
    filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.4));
    height: 100%;
    object-fit: contain;
    object-position: left center;
    transition: 0.3s ease;
    width: 100%;
}

.navbar-logo:hover img {
    transform: scale(1.04);
}

.navbar.scrolled .navbar-logo {
    height: 66px;
    width: 195px;
}


.nav-links {
    align-items: center;
    display: flex;
    gap: 38px;
    margin-left: auto;
}

.nav-links a {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 8px 0;
    position: relative;
    text-transform: uppercase;
}

.nav-links a::after {
    background: var(--gold);
    bottom: 0;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    width: 100%;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-button {
    background: transparent;
    border: 0;
    color: var(--white);
    cursor: pointer;
    display: none;
    font-size: 1.6rem;
}



.hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(24, 15, 9, 0.92) 0%,
            rgba(35, 22, 13, 0.7) 48%,
            rgba(32, 20, 12, 0.18) 100%
        ),
        linear-gradient(
            0deg,
            rgba(22, 14, 9, 0.7) 0%,
            transparent 45%
        );
    inset: 0;
    position: absolute;
}



.hero {
    align-items: center;
    background:
        url("images/hero-caballo.jpg")
        center 42% / cover no-repeat;
    display: grid;
    gap: 5%;
    grid-template-columns: minmax(400px, 0.9fr) minmax(440px, 1.1fr);
    min-height: 100vh;
    overflow: hidden;
    padding: 140px 8% 90px;
    position: relative;
}

.hero::after {
    border: 1px solid rgba(255, 255, 255, 0.18);
    bottom: 30px;
    content: "";
    left: 30px;
    pointer-events: none;
    position: absolute;
    right: 30px;
    top: 30px;
}

.hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(24, 15, 9, 0.92) 0%,
            rgba(35, 22, 13, 0.7) 45%,
            rgba(32, 20, 12, 0.25) 100%
        ),
        linear-gradient(
            0deg,
            rgba(22, 14, 9, 0.65),
            transparent 45%
        );
    inset: 0;
    position: absolute;
}

.hero-content {
    color: var(--white);
    max-width: 700px;
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-family: "Rye", serif;
    font-size: clamp(3.2rem, 5.2vw, 6.3rem);
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.05;
    margin-bottom: 25px;
    text-wrap: balance;
}

.hero-description {
    color: rgba(255, 255, 255, 0.83);
    font-size: 1.12rem;
    line-height: 1.8;
    max-width: 600px;
}



.eyebrow {
    align-items: center;
    color: #e2c59d;
    display: flex;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 13px;
    letter-spacing: 3px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.eyebrow span {
    background: var(--gold);
    height: 1px;
    width: 45px;
}



.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 38px;
}

.primary-button,
.secondary-button {
    align-items: center;
    border: 1px solid var(--gold);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    gap: 12px;
    justify-content: center;
    letter-spacing: 1.3px;
    min-height: 56px;
    padding: 0 26px;
    text-transform: uppercase;
    transition: 0.3s ease;
}

.primary-button {
    background: var(--brown);
    color: var(--white);
}

.primary-button:hover {
    background: var(--gold);
    color: var(--dark-brown);
    transform: translateY(-3px);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.07);
    color: var(--white);
    backdrop-filter: blur(5px);
}

.secondary-button:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--dark-brown);
    transform: translateY(-3px);
}

.secondary-button i {
    color: #64d883;
    font-size: 1.25rem;
}

.scroll-indicator {
    align-items: center;
    bottom: 46px;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    flex-direction: column;
    font-size: 0.68rem;
    gap: 10px;
    left: 50%;
    letter-spacing: 2px;
    position: absolute;
    text-transform: uppercase;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator i {
    animation: bounce 1.8s infinite;
}
.catalog-section {
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(185, 144, 99, 0.13),
            transparent 25%
        ),
        var(--light-cream);
    min-height: 100vh;
    padding: 90px 4%;
}

.section-heading {
    margin: 0 auto 45px;
    max-width: 900px;
    text-align: center;
}

.section-label {
    color: var(--medium-brown);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section-heading h2 {
    font-size: clamp(2.8rem, 4.2vw, 4.5rem);
}
.about-content h2,
.contact-content h2 {
    font-family: "Rye", serif;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 18px;
}

.section-heading > p:last-child {
    color: #76685c;
    line-height: 1.7;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 42px;
}

.filter-button {
    background: transparent;
    border: 1px solid #cdbca8;
    color: var(--medium-brown);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 12px 20px;
    text-transform: uppercase;
    transition: 0.25s ease;
}

.filter-button:hover,
.filter-button.active {
    background: var(--brown);
    border-color: var(--brown);
    color: var(--white);
}

.horses-grid {
    align-items: stretch;
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 1500px;
    width: 100%;
}

.horse-card {
    background: var(--white);
    box-shadow: 0 12px 30px rgba(53, 32, 18, 0.12);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    width: 100%;
}

.horse-information {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 28px;
}

.card-bottom {
    margin-top: auto;
}
.horse-card {
    background: var(--white);
    box-shadow: 0 12px 30px rgba(53, 32, 18, 0.12);
    overflow: hidden;
    width: 100%;
}

.horse-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-10px);
}

.horse-card.hidden {
    display: none;
}

.horse-image {
    height: 430px;
    overflow: hidden;
    position: relative;
}

.horse-image::after {
    background: linear-gradient(transparent 55%, rgba(25, 15, 8, 0.55));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.horse-image img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}


.horse-card:hover .horse-image img {
    transform: scale(1.06);
}

.horse-status {
    background: var(--green);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 700;
    left: 18px;
    letter-spacing: 1.3px;
    padding: 9px 13px;
    position: absolute;
    text-transform: uppercase;
    top: 18px;
    z-index: 2;
}

.favorite-button {
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 0;
    border-radius: 50%;
    color: var(--brown);
    cursor: pointer;
    display: flex;
    font-size: 1.05rem;
    height: 42px;
    justify-content: center;
    position: absolute;
    right: 18px;
    top: 18px;
    transition: 0.25s ease;
    width: 42px;
    z-index: 2;
}

.favorite-button:hover {
    transform: scale(1.1);
}

.favorite-button.liked {
    background: var(--brown);
    color: var(--white);
}

.horse-information {
    padding: 28px;
}

.horse-title {
    align-items: flex-start;
    border-bottom: 1px solid #e6ded4;
    display: flex;
    gap: 15px;
    justify-content: space-between;
    padding-bottom: 20px;
}

.horse-title p {
    color: var(--tan);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.horse-title h3 {
    font-size: 1.9rem;
}

.horse-title > span {
    background: var(--cream);
    color: var(--medium-brown);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 7px 10px;
    white-space: nowrap;
}

.horse-details {
    color: #77695e;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.77rem;
    gap: 15px;
    padding: 20px 0;
}

.horse-details span {
    align-items: center;
    display: flex;
    gap: 6px;
}

.horse-details i {
    color: var(--tan);
}

.card-bottom {
    align-items: center;
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.price {
    font-size: 1.15rem;
}

.horse-button {
    align-items: center;
    background: var(--brown);
    border: 0;
    color: var(--white);
    cursor: pointer;
    display: flex;
    font-size: 0.73rem;
    font-weight: 700;
    gap: 9px;
    letter-spacing: 0.6px;
    padding: 13px 16px;
    text-transform: uppercase;
    transition: 0.25s ease;
}

.horse-button:hover {
    background: #287a43;
}

.horse-button i {
    font-size: 1.1rem;
}

.about-section {
    align-items: center;
    background: var(--cream);
    display: grid;
    gap: 8%;
    grid-template-columns: 1fr 1fr;
    padding: 120px 8%;
}

.about-image {
    min-height: 620px;
    position: relative;
}

.about-image::before {
    border: 2px solid var(--tan);
    bottom: -22px;
    content: "";
    left: -22px;
    position: absolute;
    right: 22px;
    top: 22px;
}

.about-image img {
    height: 620px;
    object-fit: cover;
    position: relative;
    width: 100%;
    z-index: 1;
}

.experience-box {
    background: var(--brown);
    bottom: 35px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    padding: 22px 28px;
    position: absolute;
    right: -32px;
    z-index: 2;
}

.experience-box strong {
    font-family: "Rye", serif;
    font-size: 1.8rem;
    font-weight: 400;
}

.experience-box span {
    color: #dec4a4;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-top: 5px;
    text-transform: uppercase;
}

.about-content > p:not(.section-label) {
    color: #6c5f54;
    line-height: 1.8;
    margin-bottom: 15px;
}

.qualities {
    display: grid;
    gap: 20px;
    margin: 32px 0;
}

.qualities > div {
    align-items: center;
    display: flex;
    gap: 16px;
}

.qualities i {
    align-items: center;
    border: 1px solid var(--tan);
    color: var(--medium-brown);
    display: flex;
    font-size: 1.2rem;
    height: 48px;
    justify-content: center;
    min-width: 48px;
}

.qualities span {
    color: #75685c;
    display: flex;
    flex-direction: column;
    font-size: 0.87rem;
    gap: 3px;
}

.qualities strong {
    color: var(--dark-brown);
    font-size: 0.97rem;
}

.about-content .primary-button {
    margin-top: 5px;
}

.contact-section {
    align-items: center;
    background:
        linear-gradient(rgba(28, 17, 10, 0.88), rgba(28, 17, 10, 0.92)),
        url("images/contacto-caballo.jpg") center / cover;
    color: var(--white);
    display: flex;
    justify-content: center;
    min-height: 570px;
    padding: 100px 7%;
    text-align: center;
}

.contact-content {
    max-width: 780px;
}

.contact-content .section-label {
    color: #d9b987;
}

.contact-content > p:not(.section-label) {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin: 0 auto 30px;
    max-width: 610px;
}

.contact-whatsapp {
    align-items: center;
    background: #236d3a;
    display: flex;
    gap: 16px;
    margin: 0 auto;
    max-width: 360px;
    padding: 18px 22px;
    text-align: left;
    transition: 0.3s ease;
}

.contact-whatsapp:hover {
    background: #2e8a4a;
    transform: translateY(-4px);
}

.contact-whatsapp > i:first-child {
    font-size: 2rem;
}

.contact-whatsapp span {
    display: flex;
    flex: 1;
    flex-direction: column;
    font-size: 0.95rem;
    font-weight: 700;
}

.contact-whatsapp small {
    font-size: 0.7rem;
    font-weight: 400;
    margin-bottom: 3px;
    opacity: 0.8;
}

footer {
    background: #170f0a;
    color: rgba(255, 255, 255, 0.7);
    padding: 55px 7% 25px;
    text-align: center;
}



.footer-logo {
    background: #f8f0e4;
    display: inline-flex;
    height: 105px;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
    padding: 8px 16px;
    width: 250px;
}

.footer-logo img {
    filter: none;
    height: 100%;
    object-fit: contain;
    width: 100%;
}
footer > p {
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.78rem;
    gap: 28px;
    justify-content: center;
    letter-spacing: 1px;
    margin: 35px 0;
    text-transform: uppercase;
}

.footer-links a {
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    font-size: 0.72rem;
    justify-content: space-between;
    padding-top: 22px;
}

.floating-whatsapp {
    align-items: center;
    background: #25d366;
    border-radius: 50%;
    bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    color: var(--white);
    display: flex;
    font-size: 1.7rem;
    height: 58px;
    justify-content: center;
    position: fixed;
    right: 25px;
    transition: 0.3s ease;
    width: 58px;
    z-index: 40;
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(5deg);
}

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }
}


@media (max-width: 760px) {
    .navbar {
        height: 82px;
        padding: 8px 5%;

      .gallery-modal {
    padding: 10px;
}

.gallery-dialog {
    max-height: calc(100vh - 20px);
}

.gallery-visual {
    min-height: auto;
    padding: 12px;
}

.gallery-viewer {
    height: 55vh;
    min-height: 390px;
}

.gallery-thumbnail {
    height: 64px;
}

.horse-profile {
    padding: 32px 20px 24px;
}

.profile-heading {
    padding-right: 45px;
}

.gallery-close {
    height: 42px;
    right: 12px;
    top: 12px;
    width: 42px;
}

.navbar.scrolled .navbar-logo {
    height: 58px;
    width: 160px;
}
.gallery-modal {
    padding: 12px;
}

.gallery-dialog {
    max-height: calc(100vh - 24px);
    padding: 18px;
}

.gallery-viewer {
    height: 52vh;
}

.gallery-arrow {
    height: 42px;
    width: 42px;
}

.gallery-previous {
    left: 8px;
}

.gallery-next {
    right: 8px;
}

.gallery-thumbnail {
    height: 65px;
}

.gallery-footer {
    align-items: stretch;
    flex-direction: column;
}

.gallery-footer .horse-button {
    width: 100%;
}
    }



    .menu-button {
        display: block;
        position: relative;
        z-index: 3;
    }

    .nav-links {
        align-items: center;
        background: var(--dark-brown);
        flex-direction: column;
        gap: 28px;
        inset: 0;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        position: fixed;
        transform: translateY(-20px);
        transition: 0.3s ease;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1rem;
    }

    .hero {
        background-position: 62% center;
        display: flex;
        padding: 130px 7% 90px;
    }

    .hero::after {
        bottom: 15px;
        left: 15px;
        right: 15px;
        top: 15px;
    }

    .hero-overlay {
        background: rgba(25, 15, 9, 0.72);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 13vw, 4.5rem);
    }



    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .scroll-indicator {
        display: none;
    }

    .catalog-section,
    .about-section {
        padding: 85px 5%;
    }

    .horses-grid {
        grid-template-columns: 1fr;
    }

    .horse-image {
        height: 380px;
    }

    .about-image,
    .about-image img {
        height: 440px;
        min-height: 440px;
    }

    .about-image::before {
        bottom: -12px;
        left: -12px;
        right: 12px;
        top: 12px;
    }

    .experience-box {
        bottom: 20px;
        right: -5px;
    }

    .contact-section {
        padding: 85px 5%;
    }

    .footer-bottom {
        align-items: center;
        flex-direction: column;
        gap: 10px;
    }
}

.horse-image {
    background: #ddd4c7;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: block;
    height: 430px;
    overflow: hidden;
    padding: 0;
    position: relative;
    text-align: left;
    width: 100%;
}

.media-count {
    align-items: center;
    background: rgba(31, 20, 13, 0.82);
    bottom: 18px;
    color: var(--white);
    display: flex;
    font-size: 0.72rem;
    gap: 8px;
    padding: 9px 12px;
    position: absolute;
    right: 18px;
    z-index: 2;
}

.media-count i {
    color: #dcb77f;
}

.payment-summary {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
    padding: 20px 0 12px;
}

.payment-summary div {
    background: var(--cream);
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 13px;
}

.payment-summary span,
.gallery-footer span {
    color: var(--medium-brown);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.payment-summary strong {
    color: var(--dark-brown);
    font-family: "Rye", serif;
    font-size: 0.94rem;
    font-weight: 400;
}

.payment-description {
    color: #77695e;
    font-size: 0.78rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.gallery-button {
    align-items: center;
    background: transparent;
    border: 1px solid var(--medium-brown);
    color: var(--brown);
    cursor: pointer;
    display: flex;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    letter-spacing: 0.6px;
    padding: 13px 16px;
    text-transform: uppercase;
    transition: 0.25s ease;
}

.gallery-button:hover {
    background: var(--cream);
}
.gallery-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding: 28px;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.3s ease;
    z-index: 200;
}

.gallery-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.gallery-backdrop {
    background: rgba(18, 12, 8, 0.9);
    inset: 0;
    position: absolute;
    backdrop-filter: blur(10px);
}

.gallery-dialog {
    background: var(--light-cream);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
    max-height: calc(100vh - 56px);
    max-width: 1420px;
    overflow: hidden;
    position: relative;
    transform: translateY(25px) scale(0.98);
    transition: transform 0.3s ease;
    width: 100%;
    z-index: 1;
}

.gallery-modal.open .gallery-dialog {
    transform: translateY(0) scale(1);
}

.gallery-close {
    align-items: center;
    background: var(--dark-brown);
    border: 0;
    color: var(--white);
    cursor: pointer;
    display: flex;
    font-size: 1.25rem;
    height: 48px;
    justify-content: center;
    position: absolute;
    right: 18px;
    top: 18px;
    transition: 0.25s ease;
    width: 48px;
    z-index: 10;
}

.gallery-close:hover {
    background: var(--gold);
    color: var(--dark-brown);
    transform: rotate(90deg);
}

.gallery-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(360px, 0.75fr);
    min-height: 720px;
}

.gallery-visual {
    background: #160f0b;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
}

.gallery-viewer {
    background: #0f0b08;
    flex: 1;
    min-height: 540px;
    overflow: hidden;
    position: relative;
}

.gallery-media {
    height: 100%;
    position: absolute;
    inset: 0;
    width: 100%;
}

.gallery-media img,
.gallery-media video {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.gallery-arrow {
    align-items: center;
    background: rgba(25, 16, 10, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    font-size: 1rem;
    height: 48px;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.25s ease;
    width: 48px;
    z-index: 3;
}

.gallery-arrow:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark-brown);
}

.gallery-previous {
    left: 18px;
}

.gallery-next {
    right: 18px;
}

.gallery-counter {
    background: rgba(25, 16, 10, 0.76);
    bottom: 16px;
    color: var(--white);
    font-size: 0.72rem;
    letter-spacing: 1px;
    padding: 8px 12px;
    position: absolute;
    right: 16px;
    z-index: 3;
}

.gallery-thumbnails {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 12px;
}

.gallery-thumbnail {
    background: #211711;
    border: 2px solid transparent;
    cursor: pointer;
    height: 90px;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    border-color: var(--gold);
}

.gallery-thumbnail img,
.gallery-thumbnail video {
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
    transition: 0.25s ease;
    width: 100%;
}

.gallery-thumbnail:hover img,
.gallery-thumbnail:hover video,
.gallery-thumbnail.active img,
.gallery-thumbnail.active video {
    opacity: 1;
}

.video-thumbnail-icon {
    align-items: center;
    background: rgba(20, 13, 8, 0.75);
    border-radius: 50%;
    color: var(--white);
    display: flex;
    height: 38px;
    justify-content: center;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
}

.horse-profile {
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(201, 155, 85, 0.13),
            transparent 32%
        ),
        var(--light-cream);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 48px 38px 34px;
}

.profile-heading {
    border-bottom: 1px solid #ddd0c0;
    padding-bottom: 26px;
}

.profile-heading > p {
    color: var(--medium-brown);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.profile-heading h2 {
    font-family: "Rye", serif;
    font-size: clamp(1.8rem, 2.5vw, 2.8rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 18px;
}

.availability-badge {
    align-items: center;
    color: var(--green);
    display: flex;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.availability-badge i {
    font-size: 0.5rem;
}

.profile-specifications {
    display: grid;
    gap: 10px;
    padding: 24px 0;
}

.profile-specification {
    align-items: center;
    background: rgba(236, 225, 210, 0.64);
    display: flex;
    gap: 14px;
    padding: 13px 15px;
}

.profile-specification > i {
    align-items: center;
    border-right: 1px solid #d2c0ac;
    color: var(--medium-brown);
    display: flex;
    font-size: 1rem;
    height: 34px;
    justify-content: flex-start;
    min-width: 35px;
}

.profile-specification span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.profile-specification small {
    color: #8e7e70;
    font-size: 0.64rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.profile-specification strong {
    color: var(--dark-brown);
    font-size: 0.85rem;
}

.profile-price {
    border-bottom: 1px solid #ddd0c0;
    border-top: 1px solid #ddd0c0;
    padding: 20px 0;
}

.profile-price p {
    color: var(--medium-brown);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.profile-price strong {
    color: var(--brown);
    font-family: "Rye", serif;
    font-size: 1.85rem;
    font-weight: 400;
}

.financing-box {
    background: var(--brown);
    color: var(--white);
    margin-top: 22px;
    padding: 19px;
}

.financing-heading {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 17px;
}

.financing-heading > i {
    color: var(--gold);
    font-size: 1.2rem;
}

.financing-heading span {
    display: flex;
    flex-direction: column;
    font-family: "Rye", serif;
    font-size: 1rem;
    gap: 2px;
}

.financing-heading small {
    color: #d5b991;
    font-family: "DM Sans", sans-serif;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.financing-details {
    display: grid;
    gap: 9px;
    grid-template-columns: 1fr 1fr;
}

.financing-details div {
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 11px;
}

.financing-details span {
    color: #d8c1a2;
    font-size: 0.62rem;
    text-transform: uppercase;
}

.financing-details strong {
    font-size: 0.9rem;
}

.financing-box > p {
    color: rgba(255, 255, 255, 0.67);
    font-size: 0.69rem;
    line-height: 1.55;
    margin-top: 13px;
}

.profile-whatsapp {
    align-items: center;
    background: #286e40;
    display: flex;
    justify-content: flex-start;
    margin-top: auto;
    min-height: 62px;
    padding: 12px 16px;
    width: 100%;
}

.profile-whatsapp:hover {
    background: #32874f;
}

.profile-whatsapp > i:first-child {
    font-size: 1.6rem;
}

.profile-whatsapp span {
    display: flex;
    flex: 1;
    flex-direction: column;
    text-align: left;
}

.profile-whatsapp small {
    font-size: 0.6rem;
    font-weight: 400;
    margin-bottom: 2px;
    opacity: 0.75;
}

body.gallery-open {
    overflow: hidden;
}



    .eyebrow {
        font-size: 0.63rem;
        letter-spacing: 2px;
    }

    .eyebrow span {
        width: 22px;
    }

   

    .horse-image {
        height: 310px;
    }

    .card-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .horse-button {
        justify-content: center;
    }

    .about-image,
    .about-image img {
        height: 370px;
        min-height: 370px;
    }


.payment-summary.single-price {
    grid-template-columns: 1fr;
}

.financing-box.hidden {
    display: none;
}

.gallery-arrow.hidden {
    display: none;
}
.profile-specification.hidden {
    display: none;
}

@media (max-width: 1050px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-content {
        max-width: 650px;
    }

    .horses-grid {
    grid-template-columns: 1fr;
    max-width: 760px;
}

    .horse-image {
        height: 400px;
    }

    .about-section {
        gap: 60px;
        grid-template-columns: 1fr;
    }

    .about-image {
        margin: auto;
        max-width: 720px;
        width: 100%;
    }

    .about-content {
        margin: auto;
        max-width: 720px;
    }

    .gallery-dialog {
        overflow-y: auto;
    }

    .gallery-layout {
        grid-template-columns: 1fr;
    }

    .gallery-visual {
        min-height: 620px;
    }

    .gallery-viewer {
        min-height: 500px;
    }

    .horse-profile {
        overflow: visible;
    }

    .profile-whatsapp {
        margin-top: 25px;
    }
}

@media (max-width: 760px) {
    .navbar {
        height: 82px;
        padding: 8px 5%;
    }

    .menu-button {
        display: block;
        position: relative;
        z-index: 3;
    }

    .nav-links {
        align-items: center;
        background: var(--dark-brown);
        flex-direction: column;
        gap: 28px;
        inset: 0;
        justify-content: center;
        margin-left: 0;
        opacity: 0;
        pointer-events: none;
        position: fixed;
        transform: translateY(-20px);
        transition: 0.3s ease;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1rem;
    }

    .hero {
        background-position: 62% center;
        display: flex;
        padding: 130px 7% 90px;
    }

    .hero::after {
        bottom: 15px;
        left: 15px;
        right: 15px;
        top: 15px;
    }

    .hero-overlay {
        background: rgba(25, 15, 9, 0.72);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 13vw, 4.5rem);
    }

    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .scroll-indicator {
        display: none;
    }

    .catalog-section,
    .about-section {
        padding: 85px 5%;
    }

    .horses-grid {
        grid-template-columns: 1fr;
    }

    .horse-image {
        height: 380px;
    }

    .about-image,
    .about-image img {
        height: 440px;
        min-height: 440px;
    }

    .about-image::before {
        bottom: -12px;
        left: -12px;
        right: 12px;
        top: 12px;
    }

    .experience-box {
        bottom: 20px;
        right: -5px;
    }

    .contact-section {
        padding: 85px 5%;
    }

    .footer-bottom {
        align-items: center;
        flex-direction: column;
        gap: 10px;
    }

    .gallery-modal {
        padding: 10px;
    }

    .gallery-dialog {
        max-height: calc(100vh - 20px);
    }

    .gallery-visual {
        min-height: auto;
        padding: 12px;
    }

    .gallery-viewer {
        height: 55vh;
        min-height: 390px;
    }

    .gallery-arrow {
        height: 42px;
        width: 42px;
    }

    .gallery-previous {
        left: 8px;
    }

    .gallery-next {
        right: 8px;
    }

    .gallery-thumbnail {
        height: 64px;
    }

    .horse-profile {
        padding: 32px 20px 24px;
    }

    .profile-heading {
        padding-right: 45px;
    }

    .gallery-close {
        height: 42px;
        right: 12px;
        top: 12px;
        width: 42px;
    }
}

@media (max-width: 460px) {
    .hero h1 {
        font-size: 2.65rem;
    }

    .eyebrow {
        font-size: 0.63rem;
        letter-spacing: 2px;
    }

    .eyebrow span {
        width: 22px;
    }

    .horse-image {
        height: 310px;
    }

    .card-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .gallery-button,
    .horse-button {
        justify-content: center;
        width: 100%;
    }

    .about-image,
    .about-image img {
        height: 370px;
        min-height: 370px;
    }

    .gallery-viewer {
        height: 48vh;
        min-height: 320px;
    }

    .gallery-thumbnails {
        gap: 6px;
    }

    .gallery-thumbnail {
        height: 56px;
    }

    .financing-details {
        grid-template-columns: 1fr;
    }
}
.horse-image {
    aspect-ratio: 4 / 3;
    background: #211711;
    height: auto;
    line-height: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.horse-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    width: 100%;
}

.horse-card:hover .horse-image img {
    transform: scale(1.03);
}

.horse-status,
.media-count {
    line-height: normal;
}