/* ============================================
   AV HORSE SELECTION
   Premium Equestrian Portfolio
   ============================================ */

/* ---------- 1. Custom Properties ---------- */
:root {
    --color-bg: #f8f5f0;
    --color-bg-elevated: #ffffff;
    --color-bg-card: #ffffff;
    --color-bg-input: #f3f0eb;
    --color-bg-dark: #2c1e14;
    --color-gold: #8b5e34;
    --color-gold-light: #a06b3c;
    --color-gold-dark: #6d4828;
    --color-text: #2c2420;
    --color-text-muted: #7a6f66;
    --color-text-subtle: #a69d94;
    --color-text-light: #f0ebe3;
    --color-border: rgba(139, 94, 52, 0.12);
    --color-border-subtle: rgba(0, 0, 0, 0.06);
    --color-overlay: rgba(30, 22, 16, 0.50);
    --color-overlay-heavy: rgba(30, 22, 16, 0.65);

    --font-heading: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;

    --container-max: 1240px;
    --container-narrow: 860px;
    --gap: 2rem;
    --radius: 4px;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.2s ease;

    --header-height: 80px;
}

/* ---------- 2. Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-gold-dark);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    letter-spacing: 0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: 0.02em;
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

h4 {
    font-size: 1.3rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

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

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

/* ---------- 4. Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: 7rem 0;
}

.section--dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--color-text-light);
}

.section--dark p {
    color: rgba(240, 235, 227, 0.7);
}

.section--dark .hero-pretitle {
    color: #c4984a;
}

.section--dark .divider-diamond {
    background: #c4984a;
}

.section--dark .divider::before,
.section--dark .divider::after {
    background: #c4984a;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem auto;
    width: 200px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-gold);
    opacity: 0.4;
}

.divider-diamond {
    width: 8px;
    height: 8px;
    background: var(--color-gold);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* ---------- 5. Navigation ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
    background-color: rgba(248, 245, 240, 0.97);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-header.scrolled .logo,
.site-header.scrolled .nav-links a {
    color: var(--color-text);
}

.site-header.scrolled .nav-links a:hover,
.site-header.scrolled .nav-links a.active {
    color: var(--color-gold);
}

.site-header.scrolled .nav-toggle span {
    background: var(--color-text);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

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

.logo span {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.8);
}

.logo:hover {
    color: var(--color-gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-gold);
}

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

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 1.5px;
    background: var(--color-text);
    transition: var(--transition);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- 6. Hero Sections ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: calc(var(--header-height) + 2rem) 2rem 4rem;
    overflow: hidden;
}

.hero--short {
    min-height: 65vh;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-overlay-heavy);
    z-index: 1;
}

/* Hero backgrounds - use real images via inline style, these are fallbacks */
.hero-bg--home {
    background: linear-gradient(160deg, #3d2e1f 0%, #5a4530 30%, #2c1e14 70%, #1e1610 100%);
}

.hero-bg--ganadero {
    background: linear-gradient(160deg, #3a2d1e 0%, #4d3a26 40%, #2c1e14 100%);
}

.hero-bg--nava {
    background: linear-gradient(160deg, #2a3d2e 0%, #3d5030 40%, #1e2c1f 100%);
}

.hero-bg--caballos {
    background: linear-gradient(160deg, #3d2e22 0%, #5a4030 40%, #2c1e14 100%);
}

.hero-bg--contacto {
    background: linear-gradient(160deg, #2e2a3d 0%, #3d3040 40%, #1e1c28 100%);
}

.hero-bg--caballo {
    background: linear-gradient(160deg, #3d3020 0%, #4d3c24 40%, #2c2010 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-pretitle {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #c4984a;
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-style: italic;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2.5rem;
}

.hero .divider::before,
.hero .divider::after {
    background: #c4984a;
}

.hero .divider-diamond {
    background: #c4984a;
}

.hero .divider {
    margin-bottom: 2rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: opacity var(--transition);
    cursor: pointer;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.scroll-indicator-arrow {
    width: 20px;
    height: 20px;
    border-right: 1px solid #c4984a;
    border-bottom: 1px solid #c4984a;
    transform: rotate(45deg);
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

/* ---------- 7. Content Sections ---------- */

/* Intro / About blocks */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: var(--radius);
}

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

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    pointer-events: none;
}

.about-text h2 {
    margin-bottom: 0.5rem;
}

.about-text .divider {
    justify-content: flex-start;
    margin: 1rem 0 1.5rem;
    width: 120px;
}

.about-text p {
    font-size: 1.02rem;
    line-height: 1.8;
}

/* Image placeholder styling */
.img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-elevated) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-subtle);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.img-placeholder::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid var(--color-border);
    border-radius: 2px;
}

.img-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 0.8rem;
    opacity: 0.3;
    fill: var(--color-gold);
}

/* Feature highlights */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    transition: border-color var(--transition), transform var(--transition);
}

.feature-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    color: var(--color-gold);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.2;
}

.feature-item h4 {
    margin-bottom: 0.8rem;
    font-family: var(--font-heading);
    font-size: 1.35rem;
}

.feature-item p {
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* Stats */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 5rem;
    padding: 4rem 0;
}

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

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* ---------- 8. Horse Cards & Grid ---------- */
.horses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.horse-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    cursor: pointer;
    display: block;
    color: var(--color-text);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.horse-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-border);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    color: var(--color-text);
}

.horse-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, #e8e2da 0%, #d8d0c6 100%);
}

.horse-card-image .img-placeholder {
    border: none;
    border-radius: 0;
}

.horse-card-image .img-placeholder::before {
    display: none;
}

.horse-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.horse-card:hover .horse-card-image img {
    transform: scale(1.05);
}

.horse-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 22, 16, 0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.horse-card:hover .horse-card-overlay {
    opacity: 1;
}

.horse-card-overlay .btn--small {
    font-size: 0.7rem;
}

.horse-card-body {
    padding: 1.5rem;
}

.horse-card-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: var(--color-text);
}

.horse-card-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
}

.horse-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.horse-card-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--color-gold);
    opacity: 0.5;
}

.horse-card-status {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.3rem 0.8rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    border-radius: 2px;
}

/* ---------- 9. Horse Detail Page ---------- */
.horse-detail {
    padding: 5rem 0;
}

.horse-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.horse-gallery {
    display: grid;
    gap: 1rem;
}

.horse-gallery-main {
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border-subtle);
}

.horse-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.horse-gallery-thumbs .thumb {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border-subtle);
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.horse-gallery-thumbs .thumb:hover,
.horse-gallery-thumbs .thumb.active {
    border-color: var(--color-gold);
}

.horse-info h2 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.horse-info .divider {
    justify-content: flex-start;
    margin: 1rem 0 2rem;
    width: 100px;
}

/* Data sheet (Ficha Técnica) */
.ficha-tecnica {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
}

.ficha-tecnica-header {
    background: rgba(139, 94, 52, 0.06);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.ficha-tecnica-header h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin: 0;
}

.ficha-row {
    display: flex;
    border-bottom: 1px solid var(--color-border-subtle);
}

.ficha-row:last-child {
    border-bottom: none;
}

.ficha-label {
    flex: 0 0 140px;
    padding: 0.85rem 1.5rem;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    background: rgba(139, 94, 52, 0.03);
    border-right: 1px solid var(--color-border-subtle);
}

.ficha-value {
    flex: 1;
    padding: 0.85rem 1.5rem;
    font-size: 0.92rem;
    color: var(--color-text);
}

.ficha-value.pending {
    color: var(--color-text-subtle);
    font-style: italic;
}

/* Genealogy */
.genealogy {
    margin-top: 2rem;
}

.genealogy h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.genealogy-tree {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.genealogy-item {
    padding: 1.2rem;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius);
    text-align: center;
}

.genealogy-item label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.3rem;
}

.genealogy-item span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-text);
    font-style: italic;
}

/* Horse navigation */
.horse-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0;
    border-top: 1px solid var(--color-border-subtle);
    margin-top: 3rem;
}

.horse-nav a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.horse-nav a:hover {
    color: var(--color-gold);
}

.horse-nav-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-text);
}

/* ---------- 10. Contact Page ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.9rem 1.2rem;
    background: var(--color-bg-input);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius);
    color: var(--color-text);
    transition: border-color var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--color-gold);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-subtle);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-info {
    padding-left: 2rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-info .divider {
    justify-content: flex-start;
    margin: 1rem 0 2rem;
    width: 80px;
}

.contact-detail {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.contact-detail-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-gold);
}

.contact-detail-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.contact-detail-text h4 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
    color: var(--color-text);
}

.contact-detail-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--color-text-muted);
}

.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-muted);
    transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.social-link:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
    background: rgba(139, 94, 52, 0.08);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Map */
.contact-map {
    margin-top: 4rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border-subtle);
    aspect-ratio: 21/9;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.8) brightness(0.6) contrast(1.2);
    transition: filter var(--transition);
}

.contact-map:hover iframe {
    filter: grayscale(0.3) brightness(0.8) contrast(1.1);
}

/* Form success message */
.form-success {
    display: none;
    text-align: center;
    padding: 3rem;
    border: 1px solid var(--color-gold);
    border-radius: var(--radius);
    background: rgba(139, 94, 52, 0.05);
}

.form-success.show {
    display: block;
}

.form-success h3 {
    color: var(--color-gold);
    margin-bottom: 1rem;
}

/* ---------- 11. Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: var(--radius);
    transition: all var(--transition);
    text-align: center;
    cursor: pointer;
}

.btn--primary {
    background: var(--color-gold);
    color: var(--color-bg);
    border: 1px solid var(--color-gold);
}

.btn--primary:hover {
    background: var(--color-gold-light);
    color: #ffffff;
    border-color: var(--color-gold-light);
    box-shadow: 0 8px 30px rgba(139, 94, 52, 0.2);
}

.btn--primary {
    color: #ffffff;
}

.btn--outline {
    background: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
}

.btn--outline:hover {
    background: var(--color-gold);
    color: #ffffff;
}

.btn--small {
    padding: 0.6rem 1.5rem;
    font-size: 0.68rem;
}

.btn--large {
    padding: 1.1rem 3.2rem;
    font-size: 0.8rem;
}

/* ---------- 12. Footer ---------- */
.site-footer {
    background: var(--color-bg-dark);
    border-top: none;
    padding: 5rem 0 2rem;
    color: var(--color-text-light);
}

.site-footer h4 {
    color: var(--color-text-light);
}

.site-footer p,
.site-footer a {
    color: rgba(240, 235, 227, 0.65);
}

.site-footer a:hover {
    color: #c4984a;
}

.site-footer .logo {
    color: var(--color-text-light);
}

.site-footer .logo span {
    color: rgba(240, 235, 227, 0.6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul a {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer-col ul a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border-subtle);
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--color-text-subtle);
    margin-bottom: 0;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
}

/* ---------- 13. CTA Section ---------- */
.cta-section {
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 94, 52, 0.04) 0%, transparent 50%, rgba(139, 94, 52, 0.04) 100%);
}

.cta-section h2 {
    margin-bottom: 1rem;
    position: relative;
}

.cta-section p {
    max-width: 500px;
    margin: 0 auto 2rem;
    position: relative;
}

.cta-section .btn {
    position: relative;
}

/* ---------- 14. Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.5s; }

.stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .about-grid {
        gap: 3rem;
    }

    .horse-detail-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .stats-row {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 65px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        background: rgba(44, 30, 20, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transition: right var(--transition);
        z-index: 999;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
        letter-spacing: 0.2em;
    }

    .section {
        padding: 4.5rem 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        max-height: 400px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

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

    .contact-info {
        padding-left: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .stats-row {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .stat-item {
        flex: 0 0 calc(50% - 1rem);
    }

    .horse-nav {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .genealogy-tree {
        grid-template-columns: 1fr;
    }

    .ficha-label {
        flex: 0 0 120px;
        font-size: 0.75rem;
    }

    .contact-map {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.2rem;
    }

    h1 {
        font-size: 2.4rem;
    }

    .hero {
        min-height: 90vh;
    }

    .hero--short {
        min-height: 55vh;
    }

    .btn--large {
        padding: 1rem 2rem;
        font-size: 0.72rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .horse-card-body {
        padding: 1.2rem;
    }
}
