:root {
    --primary: #0d2137;
    --primary-light: #1a3a5c;
    --secondary: #f39c12;
    --secondary-hover: #e08e0b;
    --light: #f8f9fa;
    --dark: #0d2137;
    --gray: #6c757d;
}

* {
    font-family: 'Inter', sans-serif;
}

body {
    padding-top: 70px;
    background: var(--light);
}

.navbar {
    background: var(--primary) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    padding: 12px 0;
}

.navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px !important;
    border-radius: 6px;
    transition: all 0.3s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1a3a5c 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(243,156,18,0.08) 0%, transparent 60%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}

.btn-primary-custom {
    background: var(--secondary);
    border: none;
    color: var(--primary);
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 50px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243,156,18,0.4);
    color: var(--primary);
}

.btn-outline-custom {
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 50px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-custom:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.section-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--secondary);
}

.service-card .icon {
    font-size: 2.8rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.service-card h5 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1a3a5c 100%);
    padding: 100px 0 60px;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    font-weight: 800;
    font-size: 2.5rem;
}

.page-header p {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
}

.section {
    padding: 80px 0;
}

.about-img-placeholder {
    background: var(--primary-light);
    border-radius: 16px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 4rem;
}

.valor-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 100%;
    transition: all 0.3s;
}

.valor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.valor-card .icon {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.valor-card h5 {
    font-weight: 700;
    color: var(--primary);
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    height: 250px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.2);
    font-size: 3rem;
    transition: all 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-info-item .icon {
    font-size: 1.5rem;
    color: var(--secondary);
    width: 50px;
    height: 50px;
    background: rgba(243,156,18,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item h6 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-info-item p {
    color: var(--gray);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.form-custom {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.form-custom .form-control,
.form-custom .form-select {
    border-radius: 10px;
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    font-size: 0.95rem;
}

.form-custom .form-control:focus,
.form-custom .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(243,156,18,0.15);
}

.form-custom label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.footer {
    background: var(--primary);
    padding: 50px 0 20px;
    color: #fff;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.footer a:hover {
    color: var(--secondary) !important;
}

.footer .bi {
    margin-right: 8px;
    color: var(--secondary);
}

.share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.share-bar span {
    font-size: 0.8rem;
    color: var(--gray);
    margin-right: 5px;
}

.share-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.share-link:hover {
    transform: scale(1.15);
    color: #fff;
}

.share-link.whatsapp { background: #25D366; }
.share-link.whatsapp:hover { background: #1da851; }
.share-link.facebook { background: #1877F2; }
.share-link.facebook:hover { background: #166fe5; }
.share-link.twitter { background: #000; }
.share-link.twitter:hover { background: #333; }
.share-link.instagram { background: #E4405F; }
.share-link.instagram:hover { background: #c13544; }

.toast-instagram {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #0d2137;
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.chatbot-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--primary);
    border: none;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(243,156,18,0.4);
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s;
}

.chatbot-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(243,156,18,0.5);
    color: var(--primary);
}

.chatbot-fab .tooltip-text {
    position: absolute;
    right: 70px;
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    font-weight: 500;
}

.chatbot-fab .tooltip-text::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid var(--primary);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.chatbot-fab:hover .tooltip-text {
    opacity: 1;
}

.chatbot-modal {
    position: fixed;
    bottom: 105px;
    right: 30px;
    width: 380px;
    max-height: 560px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.2);
    z-index: 9997;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.chatbot-modal.open {
    display: flex;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chatbot-header {
    background: var(--primary);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header h6 {
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chatbot-header .btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.7;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #fff;
}

.chatbot-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    min-height: 300px;
    max-height: 350px;
    background: #f8f9fa;
}

.chatbot-msg {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.chatbot-msg.bot {
    align-items: flex-start;
}

.chatbot-msg.user {
    align-items: flex-end;
}

.chatbot-msg .bubble {
    max-width: 85%;
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chatbot-msg.bot .bubble {
    background: #fff;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.chatbot-msg.user .bubble {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chatbot-msg .time {
    font-size: 0.7rem;
    color: #999;
    margin-top: 4px;
    padding: 0 4px;
}

.chatbot-footer {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
    background: #fff;
}

.chatbot-footer input {
    flex: 1;
    border: 1.5px solid #e0e0e0;
    border-radius: 25px;
    padding: 10px 16px;
    font-size: 0.9rem;
    outline: none;
    transition: border 0.3s;
}

.chatbot-footer input:focus {
    border-color: var(--secondary);
}

.chatbot-footer .btn-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--primary);
    border: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.chatbot-footer .btn-send:hover {
    background: var(--secondary-hover);
    transform: scale(1.05);
}

.chatbot-footer .btn-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chatbot-quick {
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chatbot-quick button {
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.chatbot-quick button:hover {
    background: var(--primary);
    color: #fff;
}

.chatbot-typing {
    display: flex;
    gap: 4px;
    padding: 10px 16px;
}

.chatbot-typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    animation: typing 1.4s infinite both;
}

.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; background: var(--secondary); }
}

.tool-card {
    padding: 25px 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.tool-card .icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.tool-card h6 {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    border-color: var(--secondary);
}

.tool-card:hover .icon {
    color: var(--primary);
}

.kb-wrap {
    max-width: 100%;
    overflow-x: auto;
    padding: 16px 10px;
    background: #1a1a2e;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.kb-row {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
    justify-content: center;
}

.kb-key {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2d2d44;
    border: 1px solid #3d3d5c;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #bbb;
    cursor: default;
    min-height: 40px;
    padding: 3px 5px;
    min-width: 28px;
    box-shadow: 0 2px 0 #1a1a2e;
    transition: all 0.2s;
    user-select: none;
    font-family: 'Inter', sans-serif;
    text-transform: lowercase;
}

.kb-key.special {
    font-size: 0.6rem;
    font-weight: 500;
}

.kb-key.pressed {
    background: #c8c8c8;
    border-color: #aaa;
    color: #222;
    box-shadow: 0 1px 0 #1a1a2e;
    transform: translateY(1px);
}

.kb-key.w-2 { min-width: 52px; }
.kb-key.w-3 { min-width: 72px; }
.kb-key.w-4 { min-width: 90px; }
.kb-key.w-5 { min-width: 110px; }
.kb-key.w-6 { min-width: 130px; }
.kb-key.w-7 { min-width: 150px; }
.kb-key.w-8 { min-width: 170px; }
.kb-key.w-space { min-width: 200px; flex: 1; max-width: 320px; }
.kb-key.w-enter { min-width: 62px; }
.kb-key.w-shift { min-width: 72px; }
.kb-key.w-shift2 { min-width: 90px; }

.kb-led {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 12px;
    padding: 8px;
}

.kb-led span {
    font-size: 0.7rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kb-led .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
    transition: background 0.3s;
}

.kb-led .dot.on { background: #2ecc71; box-shadow: 0 0 6px rgba(46,204,113,0.6); }

.kb-status {
    text-align: center;
    margin-bottom: 16px;
    color: var(--gray);
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .chatbot-modal {
        width: calc(100% - 30px);
        right: 15px;
        bottom: 90px;
        max-height: 70vh;
    }
    .chatbot-fab {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .hero { min-height: 60vh; padding: 60px 0; }
    .page-header { padding: 80px 0 40px; }
    .page-header h1 { font-size: 1.8rem; }
    .section { padding: 50px 0; }
    .form-custom { padding: 25px; }
    .about-img-placeholder { height: 250px; }
}
