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

:root {
    --primary-color: #00d4ff;
    --secondary-color: #ff006e;
    --accent-color: #a800ff;
    --dark-bg: #0a0e27;
    --darker-bg: #050812;
    --light-bg: #1a1f3a;
    --text-dark: #e0e6ff;
    --text-light: #a0a9c9;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(0, 212, 255, 0.1);
    --hover-color: #00ffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 50%, #1a0a2e 100%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 0, 110, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ HEADER & NAVBAR ============ */
.header {
    background: rgba(10, 14, 39, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1.2rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cat-stage {
    position: relative;
    width: 240px;
    height: 64px;
    flex-shrink: 0;
    overflow: visible;
    pointer-events: none;
}

.cat-sprite {
    position: absolute;
    top: 0;
    left: 0;
    width: 64px;
    height: 64px;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    z-index: 5;
    will-change: left, background-position;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.cat-sprite.state-idle {
    background-image: url('assets/sprites/cat-idle.png');
    background-size: 256px 64px;
    animation: catFrames4 1s steps(4) infinite;
}

.cat-sprite.state-sleep {
    background-image: url('assets/sprites/cat-sleep.png');
    background-size: 256px 64px;
    animation: catFrames4 2.4s steps(4) infinite;
}

.cat-sprite.state-groom {
    background-image: url('assets/sprites/cat-groom.png');
    background-size: 256px 64px;
    animation: catFrames4 1.4s steps(4) infinite;
}

.cat-sprite.state-stretch {
    background-image: url('assets/sprites/cat-stretch.png');
    background-size: 256px 64px;
    animation: catFrames4 1.2s steps(4) infinite;
}

.cat-sprite.state-walk {
    background-image: url('assets/sprites/cat-walk.png');
    background-size: 512px 64px;
    animation: catFrames8 0.8s steps(8) infinite;
}

.cat-sprite.state-run {
    background-image: url('assets/sprites/cat-run.png');
    background-size: 512px 64px;
    animation: catFrames8 0.45s steps(8) infinite;
}

.cat-sprite.state-pounce {
    background-image: url('assets/sprites/cat-pounce.png');
    background-size: 448px 64px;
    animation: catFrames7 0.7s steps(7) infinite;
}

@keyframes catFrames4 {
    from { background-position: 0 0; }
    to { background-position: -256px 0; }
}

@keyframes catFrames7 {
    from { background-position: 0 0; }
    to { background-position: -448px 0; }
}

@keyframes catFrames8 {
    from { background-position: 0 0; }
    to { background-position: -512px 0; }
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.logo-moon {
    background: none !important;
    -webkit-text-fill-color: unset !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 0.4rem;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -8px;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 10px var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.nav-links a:hover::before {
    width: 100%;
}

/* ============ HERO SECTION ============ */
.hero {
    padding: 140px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--hover-color) 100%);
    color: var(--dark-bg);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.4), inset 0 0 20px rgba(0, 212, 255, 0.1);
    color: var(--hover-color);
}

/* ============ UTILITIES SECTION ============ */
.utilidades {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3.5rem;
    font-size: 1.1rem;
    font-weight: 300;
}

.utilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.utility-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    group: true;
}

.utility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.5s;
}

.utility-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary-color);
    box-shadow: 0 16px 48px rgba(0, 212, 255, 0.2), inset 0 0 20px rgba(0, 212, 255, 0.05);
}

.utility-card:hover::before {
    left: 100%;
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    transition: var(--transition);
}

.utility-card:hover .card-icon {
    transform: scale(1.1) rotateY(10deg);
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.4));
}

.utility-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    font-weight: 700;
}

.utility-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 300;
}

/* ============ FEATURES SECTION ============ */
.features {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
}

.feature:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    transition: var(--transition);
}

.feature:hover .feature-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.3));
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    font-weight: 700;
}

.feature p {
    color: var(--text-light);
    line-height: 1.6;
    font-weight: 300;
}

/* ============ FOOTER ============ */
.footer {
    background: rgba(10, 14, 39, 0.7);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 10px 0 20px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    font-weight: 300;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.footer-section a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -3px;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.footer-section a:hover::before {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    color: var(--text-light);
    padding-top: 1rem;
    font-weight: 300;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .hero {
        padding: 100px 0;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .utilities-grid {
        gap: 1.5rem;
    }

    .utility-card {
        padding: 1.5rem;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        gap: 0.4rem;
        position: relative;
    }

    .hamburger {
        display: flex;
    }

    .cat-stage {
        width: 90px;
        height: 40px;
        flex-shrink: 0;
        overflow: visible;
        position: relative;
    }

    .cat-sprite{
        top: -25px;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(10, 14, 39, 0.95);
        backdrop-filter: blur(20px);
        border: 1px solid var(--border-color);
        border-top: 2px solid var(--primary-color);
        box-shadow: 0 8px 32px rgba(0, 212, 255, 0.15);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1000;
        padding: 0;
    }

    .nav-links.active {
        max-height: 300px;
        padding: 1rem 0;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        position: relative;
    }

    .nav-links a::before {
        display: none;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
        transition: width 0.3s ease;
    }

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

    .logo h1 {
        font-size: 1.1rem;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .utilities-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .utility-card {
        padding: 1.2rem;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    .utility-card h3 {
        font-size: 1.1rem;
    }

    .btn {
        display: block;
        width: 100%;
        padding: 12px 24px;
        font-size: 0.85rem;
    }

    .features-grid {
        gap: 1.2rem;
    }

    .feature {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .footer-content {
        gap: 1.5rem;
    }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(30px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.utility-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

.utility-card:nth-child(1) { animation-delay: 0.1s; }
.utility-card:nth-child(2) { animation-delay: 0.2s; }
.utility-card:nth-child(3) { animation-delay: 0.3s; }
.utility-card:nth-child(4) { animation-delay: 0.4s; }
.utility-card:nth-child(5) { animation-delay: 0.5s; }
.utility-card:nth-child(6) { animation-delay: 0.6s; }

/* ============ FRASE HUMANITARIA ============ */
.frase-humanitaria {
    text-align: center;
    padding: 1.2rem 0 1rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    margin-bottom: 1.8rem;
    position: relative;
}


#frase-diaria {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.4px;
    line-height: 1.2;
    color: var(--text-light);
    font-family: 'Palatino Linotype', 'Book Antiqua', 'Palatino', serif;
    font-style: italic;
    background: linear-gradient(135deg, #e8f4ff 0%, #ffffff 50%, #f0f8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
    display: inline-block;
}

#frase-diaria::before {
    content: '"';
    margin-right: 0.1rem;
    font-family: Georgia, serif;
    font-size:0.9rem;
    font-style: normal;
    background: linear-gradient(135deg, #e0f2ff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#frase-diaria::after {
    content: '"';
    margin-left: 0.1rem;
    font-family: Georgia, serif;
    font-size:0.9rem;
    font-style: normal;
    background: linear-gradient(135deg, #ffffff 0%, #e0f4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
