/* Custom Styles for Petshop Mi Amigo Fiel */

:root {
    --primary: #91430F;
    --secondary: #E3AFCC;
    --accent: #E4BE63;
    --surface: #FFF8F6;
    --on-surface: #2B1612;
}

/* Parallax Background */
.parallax-container {
    overflow: hidden;
}

.parallax-bg {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

@media (max-width: 768px) {
    .parallax-bg {
        transform: scale(1.1) !important; /* Slight scale for static mobile bg */
    }
}

/* Glassmorphism Header - Blanco con texto legible */
#main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

#main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(145, 67, 15, 0.1);
}

#main-header .font-headline {
    color: #91430f;
}

#main-header nav a {
    color: #55433a;
    font-weight: 500;
}

#main-header nav a:hover {
    color: #91430f;
}

/* Organic Blob Animation */
.organic-blob-container {
    width: 100%;
    height: 500px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    overflow: hidden;
    animation: morph 8s ease-in-out infinite;
    background: var(--primary);
}

@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Editorial Typography */
.font-headline {
    letter-spacing: -0.03em;
}

h1.font-headline {
    text-transform: uppercase;
    letter-spacing: -0.05em;
}

/* Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://www.transparenttextures.com/patterns/cubes.png");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

/* Community Section Design */
#comunidad {
    position: relative;
}

.community-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    text-transform: uppercase;
}

.reel-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.reel-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.reel-card .play-btn {
    transition: all 0.3s ease;
}

.reel-card:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.2);
    background-color: var(--accent);
    color: var(--on-surface);
}

.reel-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 5px;
}

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

/* No Scrollbar for horizontal scrolling */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Animations */
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

/* Responsive Grid for Catalog */
@media (max-width: 768px) {
    .organic-blob-container {
        height: 350px;
    }
}

/* Section Typography - Marrón oscuro/gris */
section:not(#comunidad):not(.parallax-container) {
    color: #55433a;
}

section h2 {
    color: #2b1612;
    font-weight: 700;
}

section p {
    color: #55433a;
    font-weight: 400;
}

/* Links hover - Color primary */
a:not(.bg-primary):not(.bg-accent):not(.bg-white) {
    color: #55433a;
    transition: color 0.3s ease;
}

a:not(.bg-primary):not(.bg-accent):not(.bg-white):hover {
    color: #91430f;
}

/* Footer links */
footer a {
    color: #55433a;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #91430f;
}

/* Botones secondary */
.bg-white\/10 {
    color: #fff;
}

.bg-white\/10:hover {
    color: #2b1612;
    background: white;
}
