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

:root {
    --gold: #c9a96e;
    --gold-light: #d4b87a;
    --dark: #0a0a0f;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(201, 169, 110, 0.1);
}

html, body {
    min-height: 100vh;
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    color: #f5f5f5;
    overflow-x: hidden;
}

body {
    background: var(--dark);
}

/* ===== ANIMATED BACKGROUND ===== */
.bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
}

.bg-glow--1 {
    width: 600px;
    height: 600px;
    background: var(--gold);
    top: -200px;
    right: -150px;
    animation: float1 20s ease-in-out infinite;
}

.bg-glow--2 {
    width: 400px;
    height: 400px;
    background: #8b6914;
    bottom: -100px;
    left: -100px;
    animation: float2 25s ease-in-out infinite;
}

.bg-glow--3 {
    width: 300px;
    height: 300px;
    background: #d4a855;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float3 18s ease-in-out infinite;
    opacity: 0.04;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, 40px) scale(1.1); }
    66% { transform: translate(30px, -20px) scale(0.95); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 50px) scale(0.9); }
}

@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
}

/* ===== MAIN CONTAINER ===== */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: 100vh;
}

/* ===== HEADER ===== */
.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease both;
}

.header-logo {
    width: 50px;
    height: auto;
    background: #fff;
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 1rem;
}

.header-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #fff;
    margin-bottom: 1rem;
}

.header-line {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 0.8rem;
}

.header-sub {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 300;
}

/* ===== BRANDS GRID (estilo Anderson's) ===== */
.brands {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* ===== BRAND CARD ===== */
.brand-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: #f5f5f5;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease both;
}

.brand-card:nth-child(1) { animation-delay: 0.05s; }
.brand-card:nth-child(2) { animation-delay: 0.1s; }
.brand-card:nth-child(3) { animation-delay: 0.15s; }
.brand-card:nth-child(4) { animation-delay: 0.2s; }
.brand-card:nth-child(5) { animation-delay: 0.25s; }
.brand-card:nth-child(6) { animation-delay: 0.3s; }
.brand-card:nth-child(7) { animation-delay: 0.35s; }

.brand-card:hover {
    border-color: var(--gold);
    transform: translateY(-6px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(201, 169, 110, 0.2),
        0 0 40px rgba(201, 169, 110, 0.08);
}

/* Image */
.brand-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.brand-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-card:hover .brand-img {
    transform: scale(1.08);
}

/* Loading skeleton */
.brand-img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0.02) 30%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.02) 70%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    z-index: 0;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Instagram badge */
.brand-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* Card footer */
.brand-footer {
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transition: background 0.3s ease;
}

.brand-card:hover .brand-footer {
    background: rgba(201, 169, 110, 0.04);
}

.brand-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-type {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.05em;
    font-weight: 300;
    transition: color 0.3s ease;
}

.brand-card:hover .brand-type {
    color: var(--gold);
}

/* Hover overlay */
.brand-hover {
    position: absolute;
    inset: 0;
    background: rgba(6, 6, 10, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 3;
}

.brand-card:hover .brand-hover {
    opacity: 1;
}

.brand-cta {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    background: var(--gold);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.brand-card:hover .brand-cta:hover {
    background: var(--gold-light);
    transform: scale(1.05);
}

/* ===== SOCIAL LIST / GRID ===== */
.social-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.social-item {
    position: relative;
    display: block;
    text-decoration: none;
    color: #f5f5f5;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease both;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
}

.social-item:nth-child(1) { animation-delay: 0.05s; }
.social-item:nth-child(2) { animation-delay: 0.1s; }
.social-item:nth-child(3) { animation-delay: 0.15s; }
.social-item:nth-child(4) { animation-delay: 0.2s; }
.social-item:nth-child(5) { animation-delay: 0.25s; }
.social-item:nth-child(6) { animation-delay: 0.3s; }
.social-item:nth-child(7) { animation-delay: 0.35s; }

.social-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.3) saturate(0.6);
    transition: all 0.5s ease;
}

.social-item:hover .social-bg {
    filter: brightness(0.45) saturate(1);
    transform: scale(1.08);
}

.social-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(201, 169, 110, 0.2),
        0 0 30px rgba(201, 169, 110, 0.06);
}

.social-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.2rem;
    height: 100%;
    text-align: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.social-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.social-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-handle {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.03em;
    font-weight: 300;
    transition: color 0.3s ease;
}

.social-item:hover .social-handle {
    color: var(--gold);
}

.social-arrow {
    display: none;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-border), transparent);
}

.divider-text {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 400;
    white-space: nowrap;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding-top: 2rem;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.footer p {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: rgba(201, 169, 110, 0.3);
    font-weight: 300;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .brands {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .social-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .container {
        padding: 2rem 1.2rem;
    }

    .header-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 520px) {
    .brands {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .container {
        padding: 1.5rem 1rem;
    }

    .header-title {
        font-size: 1.4rem;
    }

    .header-logo {
        width: 40px;
    }

    .brand-name {
        font-size: 0.9rem;
    }

    .brand-footer {
        padding: 0.8rem 1rem;
    }

    /* Redes sociales: lista en movil */
    .social-list {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .social-item {
        aspect-ratio: auto;
        height: 60px;
        border-radius: 12px;
    }

    .social-bg {
        display: none;
    }

    .social-content {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        padding: 0 1rem;
        gap: 0.8rem;
    }

    .social-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .social-icon svg {
        width: 14px;
        height: 14px;
    }

    .social-name {
        font-size: 0.85rem;
    }

    .social-arrow {
        display: block;
        flex-shrink: 0;
        opacity: 0.3;
    }
}

/* Touch devices */
@media (hover: none) {
    .brand-card:hover {
        transform: none;
        box-shadow: none;
    }

    .brand-card:active {
        border-color: var(--gold);
        transform: scale(0.98);
    }

    .brand-hover {
        display: none;
    }
}
