/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #1a0a0a;
    --color-bg-secondary: #e8e307;
    --color-primary: #d00000;
    --color-primary-light: #ff0000;
    --color-accent: #f69f3b;
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-border: rgba(255, 255, 255, 0.1);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg) !important;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#crystalCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 212, 170, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 212, 170, 0.05) 0%, transparent 30%);
    z-index: 2;
    pointer-events: none;
}

/* Navbar */
.navbar {
    position: sticky;
    z-index: 1000;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 4rem;
    backdrop-filter: blur(10px);
    background: rgba(10, 15, 26, 0.5);
    border-bottom: 1px solid var(--color-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.big-number {
    color: var(--color-primary);
    font-size: 3rem;
    font-family: var(--font-heading);
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-text);
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-nav {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-nav:hover {
    background: var(--color-primary);
    color: var(--color-bg);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 4rem 4rem;
    max-width: 800px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--color-primary);
    width: fit-content;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease forwards;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.title-line.highlight {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: 1.35rem;
    color: var(--color-text-muted);
    max-width: 600px;
    text-align: justify;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

/* Buttons */
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

#eliminacion-cadena-frio {
    background-color: #1b1015;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='72' viewBox='0 0 36 72'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23301717' fill-opacity='0.5'%3E%3Cpath d='M2 6.hero2L8 18 2 6zm18 36h12l-6 12-6-12z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    padding: 20px;
    height: fit-content;
    padding-bottom: 200px;
    display: flex;
    flex-direction: row-reverse;
}

.eliminacion-frio-info {
    display: flex;
    width: 60%;
    flex-direction: column;
    align-items: center;
}

.eliminacion-frio-info>.icons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.eliminacion-frio-info>.icons>.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon>i {
    font-size: 40px;
}

.icon>span {}

.eliminacion-frio-img {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;

}

.eliminacion-frio-img>img {
    height: 100%;
    max-height: 500px;
    rotate: 15deg;
}

#libre-crueldad-animal {
    background-color: #f8fafc;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #b86e00 100%);
    color: var(--color-bg);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.3);
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
}

.play-icon {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1s forwards;
}

.stat {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.stat>i {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;

    -webkit-animation: shadow-drop-center 1.2s cubic-bezier(0.860, 0.000, 0.070, 1.000) infinite alternate both;
    animation: shadow-drop-center 1.2s cubic-bezier(0.860, 0.000, 0.070, 1.000) infinite alternate both;
}



@-webkit-keyframes shadow-drop-center {
    0% {
        -webkit-filter: drop-shadow(0 0 0 rgba(255, 23, 68, 0));
        filter: drop-shadow(0 0 0 rgba(255, 23, 68, 0));
    }

    100% {
        -webkit-filter:
            drop-shadow(0 0 6px rgba(255, 23, 68, 0.6)) drop-shadow(0 0 18px rgba(255, 23, 68, 0.5)) drop-shadow(0 0 32px rgba(255, 23, 68, 0.4));

        filter:
            drop-shadow(0 0 6px rgba(255, 23, 68, 0.6)) drop-shadow(0 0 18px rgba(255, 23, 68, 0.5)) drop-shadow(0 0 32px rgba(255, 23, 68, 0.4));
    }
}

@keyframes shadow-drop-center {
    0% {
        -webkit-filter: drop-shadow(0 0 0 rgba(255, 23, 68, 0));
        filter: drop-shadow(0 0 0 rgba(255, 23, 68, 0));
    }

    100% {
        -webkit-filter:
            drop-shadow(0 0 6px rgba(255, 23, 68, 0.6)) drop-shadow(0 0 18px rgba(255, 23, 68, 0.5)) drop-shadow(0 0 32px rgba(255, 23, 68, 0.4));

        filter:
            drop-shadow(0 0 6px rgba(255, 23, 68, 0.6)) drop-shadow(0 0 18px rgba(255, 23, 68, 0.5)) drop-shadow(0 0 32px rgba(255, 23, 68, 0.4));
    }
}

.stat-number {
    color: var(--color-primary);
    font-size: 3rem;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 1.5 rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    padding: 30px;
    position: absolute;
    right: 0;
    top: 90px;
    width: 50%;
    height: calc(100% - 90px);
    z-index: 3;
    pointer-events: none;
    align-items: center;
    justify-content: center;

}

.hero-visual>img {
    opacity: 0;
    width: 80%;
    object-fit: cover;
    border-radius: 50%;
    filter:
        drop-shadow(0 0 57px rgba(255, 23, 69, 0.411));
    animation: fadeInUp 0.6s ease 1.0s forwards;

}

.dna-helix {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate3d 20s linear infinite;
}

@keyframes rotate3d {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

.helix-strand {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(0, 212, 170, 0.2);
    border-radius: 50%;
    transform: rotateX(70deg);
}

.helix-strand:nth-child(2) {
    transform: rotateX(70deg) rotateZ(60deg);
    border-color: rgba(59, 130, 246, 0.2);
}

.molecule-structure {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.atom {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(0, 212, 170, 0.5);
    animation: atomFloat 3s ease-in-out infinite;
}

.atom-1 {
    top: -60px;
    left: -10px;
}

.atom-2 {
    top: 40px;
    left: -80px;
    animation-delay: 0.5s;
    background: var(--color-accent);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.atom-3 {
    top: 40px;
    left: 60px;
    animation-delay: 1s;
}

@keyframes atomFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.bond {
    position: absolute;
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    transform-origin: top center;
}

.bond-1 {
    top: -50px;
    left: 0;
    transform: rotate(-35deg);
}

.bond-2 {
    top: -50px;
    left: 0;
    transform: rotate(35deg);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 5;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.2s forwards;
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    animation: bounce 2s infinite;
}

.scroll-arrow svg {
    width: 100%;
    height: 100%;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(8px);
    }

    60% {
        transform: translateY(4px);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-visual {
        /* opacity: 0.3; */
        right: -10%;
    }
}

@media (max-width: 768px) {
    .hero-overlay {
        display: flex;
        flex-direction: column;
    }

    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .hero-visual {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        padding: 10px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
        align-items: flex-start;
    }

    .eliminacion-frio-info {
        width: 100%;
    }


    .stat {
        width: 150px;
    }

    .stat-divider {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .scroll-indicator {
        position: relative;
        left: 0;
        bottom: 0;
    }

    #eliminacion-cadena-frio {
        padding: 60px 20px;
        flex-direction: column;
    }

    .eliminacion-frio-img {
        width: 100%;
    }

    .eliminacion-frio-img>img {
        max-height: 300px;
    }
}