/* ============================================
   BLIZEN CONEJO — Premium Landing Page
   Countryside / Watercolor Palette
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --sage: #8BA87E;
    --wheat: #D4BC6A;
    --cream: #FBF6EE;
    --leaf: #9BB86E;
    --dusty-rose: #C9A3A0;
    --sky: #B5D0E0;
    --brown: #7A6554;
    --dark: #4a4a42;

    --ff-display: 'Cormorant Garamond', Georgia, serif;
    --ff-body: 'Poppins', 'Segoe UI', sans-serif;

    --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--ff-body);
    background: var(--cream);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-smooth), visibility 0.6s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.preloader-img {
    width: 150px;
    height: auto;
    animation: bunnyBounce 1.5s ease-in-out infinite;
}

@keyframes bunnyBounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-12px) rotate(-2deg);
    }

    75% {
        transform: translateY(-4px) rotate(2deg);
    }
}

.preloader-text {
    font-family: 'Hunters', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--brown);
    letter-spacing: 2px;
}

.preloader-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--leaf);
    animation: dotPulse 1.2s ease-in-out infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* --- Header --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}

#main-header.scrolled {
    background: rgba(251, 246, 238, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.06);
    padding: 12px 40px;
}

.header-logo img {
    height: 55px;
    width: auto;
    transition: height 0.4s var(--ease-smooth);
}

#main-header.scrolled .header-logo img {
    height: 42px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-family: var(--ff-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--brown);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--leaf);
    transition: width 0.3s var(--ease-smooth);
}

.nav-link:hover {
    color: var(--leaf);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-ig {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--brown);
    transition: border-color 0.3s, color 0.3s, transform 0.3s;
}

.nav-ig::after {
    display: none;
}

.nav-ig:hover {
    border-color: var(--leaf);
    color: var(--leaf);
    transform: scale(1.08);
}

/* --- Hero --- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--cream);
}

/* Blurred animation background */
.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-bg #product-canvas {
    width: 55%;
    height: auto;
    max-height: 80vh;
    opacity: 1;
    image-rendering: auto;
}

/* Organic blobs — countryside tones */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    will-change: transform;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--sage);
    top: -15%;
    right: -10%;
    animation: float1 12s ease-in-out infinite;
}

.blob-2 {
    width: 450px;
    height: 450px;
    background: var(--wheat);
    bottom: -10%;
    left: -8%;
    animation: float2 14s ease-in-out infinite;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: var(--sky);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    animation: float3 10s ease-in-out infinite;
}

@keyframes float1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-40px, 30px) scale(1.08);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -40px) scale(1.05);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    padding: 0 24px 0 310px;
    max-width: 1300px;
    margin-right: auto;
}

.hero-text-img {
    max-width: 800px;
    width: 95%;
    height: auto;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(30px);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)) brightness(0.9);
}

.hero-cta {
    display: inline-block;
    font-family: var(--ff-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cream);
    background: var(--leaf);
    padding: 16px 44px;
    border-radius: 50px;
    transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s;
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(155, 184, 110, 0.4);
}

/* --- Conejo Feature Section --- */
#conejo-feature {
    position: relative;
    padding: 60px 24px;
    background: linear-gradient(180deg, var(--cream) 0%, #f4f1e6 100%);
    overflow: hidden;
}

.feature-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-image {
    flex: 0 0 45%;
    opacity: 0;
    transform: translateX(-50px);
}

.feature-image img {
    width: 100%;
    border-radius: 24px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

.feature-text {
    flex: 1;
    opacity: 0;
    transform: translateX(50px);
}

.feature-description {
    font-family: var(--ff-body);
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--dark);
    line-height: 1.8;
    margin-top: 20px;
}

/* --- Locations --- */
#sedes {
    position: relative;
    padding: 40px 24px 80px;
    background: linear-gradient(180deg, #f4f1e6 0%, #eef2e6 100%);
    overflow: hidden;
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-family: var(--ff-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--leaf);
    background: rgba(155, 184, 110, 0.12);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 18px;
}

.section-title {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    color: var(--brown);
    line-height: 1.1;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.location-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 168, 126, 0.25);
    border-radius: 24px;
    padding: 40px 36px;
    text-align: center;
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s, border-color 0.4s;
    opacity: 0;
    transform: translateY(40px);
}

.location-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(139, 168, 126, 0.18);
    border-color: var(--leaf);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--leaf), var(--sage));
    color: white;
    margin-bottom: 20px;
}

.location-card h3 {
    font-family: var(--ff-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--brown);
    margin-bottom: 20px;
}

.location-card li {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--dark);
    padding: 10px 0;
    border-bottom: 1px solid rgba(139, 168, 126, 0.15);
    transition: color 0.3s;
}

.location-card li:last-child {
    border-bottom: none;
}

.location-card:hover li {
    color: var(--brown);
}

/* --- Product Gallery --- */
#productos {
    padding: 80px 0;
    background: var(--cream);
    position: relative;
    z-index: 2;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 48px;
    padding: 0 20px;
}

.product-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(139, 168, 126, 0.15);
    transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
    text-align: center;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(139, 168, 126, 0.25);
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* --- Footer --- */
#main-footer {
    background: var(--brown);
    color: var(--cream);
    padding: 50px 24px;
    text-align: center;
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    height: 50px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-ig {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(251, 246, 238, 0.75);
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s;
}

.footer-ig:hover {
    color: var(--leaf);
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(251, 246, 238, 0.45);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    #main-header {
        padding: 14px 20px;
    }

    #main-header.scrolled {
        padding: 10px 20px;
    }

    .header-logo img {
        height: 42px;
    }

    #main-header.scrolled .header-logo img {
        height: 36px;
    }

    .header-nav {
        gap: 16px;
    }

    .nav-link:not(.nav-ig) {
        display: none;
    }

    .hero-video-bg #product-canvas {
        width: 80%;
    }

    .feature-layout {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .feature-image {
        flex: none;
        width: 80%;
        max-width: 400px;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        padding: 14px 32px;
        font-size: 0.8rem;
    }

    .location-card {
        padding: 28px 20px;
    }
}

/* --- Mobile Menu --- */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.hamburger-btn .bar {
    width: 100%;
    height: 2px;
    background-color: var(--brown);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--cream);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-smooth), visibility 0.4s;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-link {
    font-family: var(--ff-display);
    font-size: 2.5rem;
    color: var(--brown);
    text-transform: capitalize;
    opacity: 0;
    transform: translateY(20px);
    transition: color 0.3s;
}

.mobile-menu.active .mobile-link {
    animation: fadeInUp 0.6s var(--ease-smooth) forwards;
}

/* Stagger animation for links */
.mobile-menu.active .mobile-link:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-menu.active .mobile-link:nth-child(2) {
    animation-delay: 0.2s;
}

.mobile-link:hover {
    color: var(--leaf);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hamburger animation state */
.hamburger-btn.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .header-nav {
        display: none;
    }

    .hero-content {
        padding: 0 24px;
        text-align: center;
        margin: 0 auto;
    }

    .section-title {
        font-size: 2.5rem;
    }
}