/**
 * Estilos personalizados para el Home
 * One Geek - Página Principal
 */

:root {
    --navy: #2D3C59;
    --sage: #94A378;
    --yellow: #E5BA41;
    --orange: #D1855C;
    --navy-dark: #1e2838;
    --navy-light: #3d4c69;
    --bg-dark: #2D3C59;
    --bg-darker: #1e2838;
    --text-light: #f5f5f5;
    --text-gray: #a8b5c8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-darker);
    color: var(--text-light);
    overflow-x: hidden;
}

/* ===========================
   NAVIGATION BAR
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(45, 60, 89, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 186, 65, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(45, 60, 89, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.nav-logo i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo:hover {
    transform: translateY(-2px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link i {
    font-size: 1.1rem;
}

.nav-link:hover {
    color: var(--yellow);
    background: rgba(229, 186, 65, 0.1);
}

.nav-link.active {
    color: var(--yellow);
    background: rgba(229, 186, 65, 0.15);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--yellow);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===========================
   ANIMATED BACKGROUND
   =========================== */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, var(--bg-darker) 0%, #3d4c69 50%, var(--bg-dark) 100%);
    overflow: hidden;
    pointer-events: none;
}

.animated-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(229, 186, 65, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(148, 163, 120, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(209, 133, 92, 0.06) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

.animated-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 50px, rgba(229, 186, 65, 0.02) 50px, rgba(229, 186, 65, 0.02) 51px),
        repeating-linear-gradient(-45deg, transparent, transparent 50px, rgba(148, 163, 120, 0.02) 50px, rgba(148, 163, 120, 0.02) 51px);
    animation: slide 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes slide {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 100px 100px, -100px -100px;
    }
}

.main-content {
    position: relative;
    z-index: 10;
    padding-top: 70px;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
    position: relative;
}

.hero-logo {
    animation: float 3s ease-in-out infinite;
}

.hero-logo i {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(229, 186, 65, 0.4));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-title {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--sage) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(229, 186, 65, 0.5);
    animation: slideInDown 1s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    min-height: 80px;
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Typed.js cursor */
.typed-cursor {
    color: var(--yellow);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

/* CTA Buttons */
.cta-buttons {
    animation: slideInUp 1s ease-out 0.5s backwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::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;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-primary {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 100%);
    color: var(--navy-dark);
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(229, 186, 65, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(229, 186, 65, 0.5);
}

.cta-secondary {
    background: rgba(229, 186, 65, 0.1);
    color: var(--yellow);
    border: 2px solid var(--yellow);
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: rgba(229, 186, 65, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(229, 186, 65, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 32px;
    color: var(--text-gray);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ===========================
   TOOLS SECTION
   =========================== */
.tools-section {
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.5) 100%);
}

.section-title {
    background: linear-gradient(135deg, var(--text-light) 0%, var(--text-gray) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-gray);
}

/* Tool Cards */
.tool-card {
    position: relative;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 20px;
    padding: 32px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--sage) 0%, var(--yellow) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.tool-card:hover::before {
    opacity: 0.1;
}

.tool-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--sage);
    box-shadow:
        0 20px 60px rgba(148, 163, 120, 0.3),
        0 0 0 1px rgba(148, 163, 120, 0.2);
}

.tool-icon-container {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.tool-card:hover .tool-icon-container {
    transform: rotate(10deg) scale(1.1);
}

.tool-icon {
    font-size: 40px;
    color: white;
}

.tool-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-light);
}

.tool-description {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.tool-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tool-link {
    color: var(--yellow);
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: gap 0.3s ease;
}

.tool-card:hover .tool-link {
    gap: 8px;
}

/* ===========================
   SEO SECTION
   =========================== */
.seo-section {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.5) 100%);
}

.seo-content {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.seo-list {
    list-style: none;
    padding: 0;
}

.seo-list li {
    font-size: 1.1rem;
    line-height: 1.8;
}

.tool-item {
    transition: all 0.3s ease;
}

.tool-item:hover {
    transform: translateX(10px);
    border-color: var(--sage);
    box-shadow: 0 10px 30px rgba(148, 163, 120, 0.2);
}

/* ===========================
   FEATURES SECTION
   =========================== */
.features-section {
    background: rgba(15, 23, 42, 0.3);
}

.feature-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.5);
    border-color: var(--sage);
    box-shadow: 0 20px 40px rgba(148, 163, 120, 0.2);
}

.feature-icon-container {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--sage) 0%, var(--yellow) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon-container {
    transform: scale(1.15) rotate(360deg);
}

.feature-icon {
    font-size: 32px;
    color: white;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-light);
}

.feature-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===========================
   FOOTER
   =========================== */
.footer-section {
    background: linear-gradient(180deg, transparent 0%, var(--navy-dark) 100%);
    border-top: 1px solid rgba(148, 163, 120, 0.1);
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 10;
    width: 100%;
    clear: both;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Footer Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.footer-logo i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.footer-logo:hover i {
    transform: rotate(10deg) scale(1.1);
}

.footer-tagline {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(229, 186, 65, 0.1);
    border: 1px solid rgba(229, 186, 65, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--yellow);
    color: var(--navy-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(229, 186, 65, 0.3);
}

/* Footer Links */
.footer-links h4 {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--sage) 0%, transparent 100%);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--yellow);
    transform: translateX(5px);
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(148, 163, 120, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.heart-icon {
    color: var(--orange);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
}

.footer-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(148, 163, 120, 0.1);
    border: 1px solid rgba(148, 163, 120, 0.2);
    border-radius: 20px;
    color: var(--sage);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(148, 163, 120, 0.2);
    transform: translateY(-2px);
}

/* Highlight Text */
.highlight-text {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--sage) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.emoji-hint {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    margin-left: 0.5rem;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    /* Navbar mobile */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: rgba(45, 60, 89, 0.98);
        padding: 2rem;
        transition: left 0.3s ease;
        gap: 0.5rem;
        border-bottom: 1px solid rgba(229, 186, 65, 0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        width: 100%;
        padding: 1rem;
        justify-content: center;
    }

    /* Footer responsive */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-logo i {
        font-size: 4rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }

    .tool-card,
    .feature-card {
        padding: 24px;
    }

    .tool-icon-container {
        width: 60px;
        height: 60px;
    }

    .tool-icon {
        font-size: 30px;
    }

    .feature-icon-container {
        width: 60px;
        height: 60px;
    }

    .feature-icon {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .tool-card,
    .feature-card {
        padding: 20px;
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ===========================
   SMOOTH SCROLLING
   =========================== */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--yellow) 0%, var(--orange) 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--sage) 0%, var(--yellow) 100%);
}
