/* ==========================================
   ESTILOS GENERALES Y RESET
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #090d16;
    color: #f8fafc;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1e293b;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #f8fafc;
}

.logo .dot {
    color: #10b981;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #f8fafc;
}

.btn-nav {
    background-color: #111827;
    border: 1px solid #334155;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: #f8fafc !important;
    transition: all 0.2s ease;
}

.btn-nav:hover {
    border-color: #10b981;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    padding: 10rem 2rem 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    max-width: 900px;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero h1 .highlight {
    color: #10b981;
}

.hero p {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 750px;
    margin-bottom: 2.5rem;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 900px;
    margin-bottom: 2.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1e293b;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 480px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #10b981;
    color: #090d16;
}

.btn-primary:hover {
    background-color: #059669;
}

.btn-secondary {
    background-color: #111827;
    color: #f8fafc;
    border: 1px solid #334155;
}

.btn-secondary:hover {
    border-color: #64748b;
    background-color: #1e293b;
}

/* ==========================================
   ABOUT SECTION & CARDS HOVER EFFECT
   ========================================== */
.about, .expertise, .projects {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header-left {
    margin-bottom: 3rem;
}

.section-header-left h2 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.section-subtitle-left {
    color: #94a3b8;
    font-size: 1.05rem;
}

.grid-about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: #111827;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: #10b981;
    box-shadow: 0 12px 30px -10px rgba(16, 185, 129, 0.15);
}

.card-icon {
    font-size: 1.8rem;
    color: #10b981;
    margin-bottom: 1.2rem;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.card p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* ==========================================
   TECHNICAL EXPERTISE SECTION & HOVER
   ========================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.skill-category {
    background-color: #111827;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-6px);
    border-color: #10b981;
    box-shadow: 0 12px 30px -10px rgba(16, 185, 129, 0.15);
}

.skill-category h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 0.8rem;
    transition: border-color 0.3s ease;
}

.skill-category:hover h3 {
    border-color: rgba(16, 185, 129, 0.3);
}

.skill-category ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.skill-category li {
    color: #94a3b8;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: color 0.2s ease;
}

.skill-category li:hover {
    color: #f8fafc;
}

.skill-category li i {
    color: #10b981;
    font-size: 0.85rem;
}

/* ==========================================
   PROJECTS BANNER
   ========================================== */
.projects-banner {
    background-color: #111827;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
}

.projects-banner:hover {
    transform: translateY(-4px);
    border-color: #10b981;
    box-shadow: 0 12px 30px -10px rgba(16, 185, 129, 0.15);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.banner-content i {
    font-size: 2.5rem;
    color: #10b981;
    transition: transform 0.3s ease;
}

.projects-banner:hover .banner-content i {
    transform: scale(1.1);
}

.banner-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.banner-content p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* ==========================================
   FOOTER / CONTACT
   ========================================== */
.footer {
    border-top: 1px solid #1e293b;
    background-color: #090d16;
    padding: 5rem 2rem 3rem 2rem;
    text-align: center;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
}

.footer h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer p {
    color: #94a3b8;
    margin-bottom: 2rem;
}

.footer-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.copyright {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* ==========================================
   ESTILOS WIDGET DE CHAT PROPIO (N8N)
   ========================================== */
#fz-chat-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

#fz-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #10b981;
    color: #090d16;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#fz-chat-toggle:hover {
    background-color: #059669;
    transform: scale(1.05);
}

#fz-chat-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 360px;
    height: 480px;
    background-color: #111827;
    border: 1px solid #1e293b;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#fz-chat-window.fz-chat-hidden {
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    visibility: hidden;
}

.fz-chat-header {
    background-color: #090d16;
    padding: 1rem;
    border-bottom: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fz-chat-title-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fz-status-dot {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.fz-chat-title-area h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f8fafc;
}

.fz-chat-title-area small {
    font-size: 0.75rem;
    color: #94a3b8;
}

#fz-chat-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

#fz-chat-close:hover {
    color: #f8fafc;
}

#fz-chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background-color: #111827;
}

.fz-message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.fz-bot-message {
    background-color: #1e293b;
    color: #f8fafc;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.fz-user-message {
    background-color: #10b981;
    color: #090d16;
    align-self: flex-end;
    font-weight: 500;
    border-bottom-right-radius: 2px;
}

.fz-chat-input-area {
    padding: 0.8rem;
    background-color: #090d16;
    border-top: 1px solid #1e293b;
    display: flex;
    gap: 0.5rem;
}

#fz-chat-input {
    flex: 1;
    background-color: #111827;
    border: 1px solid #334155;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    color: #f8fafc;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
}

#fz-chat-input:focus {
    border-color: #10b981;
}

#fz-chat-send {
    background-color: #10b981;
    color: #090d16;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

#fz-chat-send:hover {
    background-color: #059669;
}

/* ==========================================
   RESPONSIVE DESIGN ADICIONAL
   ========================================== */
@media (max-width: 480px) {
    #fz-chat-window {
        width: 90vw;
        right: -10px;
        height: 420px;
    }
}