/* ============================================
   GIGI AI - Asistente Acatenango Outdoors
   Paleta: Verde #2D5A27 → Verde oscuro #1E3D1A
   RESPONSIVE DESIGN - Optimizado para todas las pantallas
   ============================================ */

/* Botón Flotante */
.gigi-fab {
    position: fixed;
    bottom: clamp(16px, 2vh, 24px);
    right: clamp(16px, 2vw, 24px);
    width: clamp(56px, 6vw, 64px);
    height: clamp(56px, 6vw, 64px);
    min-width: 52px;
    min-height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2D5A27, #4A7C3F);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(45, 90, 39, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: all 0.3s ease;
    overflow: hidden;
}

.gigi-fab img {
    width: 62.5%;
    height: 62.5%;
    min-width: 32px;
    min-height: 32px;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    display: block;
}

.gigi-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(45, 90, 39, 0.6);
}

/* Widget Container */
.gigi-widget {
    position: fixed;
    bottom: clamp(80px, 10vh, 100px);
    right: clamp(12px, 1.5vw, 16px);
    width: min(380px, calc(100vw - 32px));
    max-width: 380px;
    min-width: 280px;
    height: min(650px, calc(100vh - 120px));
    max-height: min(700px, calc(100vh - 120px));
    min-height: 400px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    z-index: 99998;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Fallback para navegadores que no soportan min() */
@supports not (width: min(380px, calc(100vw - 32px))) {
    .gigi-widget {
        width: 380px;
        max-width: calc(100vw - 32px);
    }
}

.gigi-widget.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Header */
.gigi-header {
    background: linear-gradient(135deg, #2D5A27, #4A7C3F);
    color: #fff;
    padding: clamp(14px, 2vh, 18px) clamp(16px, 2vw, 20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    min-height: 70px;
}

.gigi-header-content {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.2vw, 12px);
}

.gigi-avatar {
    width: clamp(40px, 4.5vw, 44px);
    height: clamp(40px, 4.5vw, 44px);
    min-width: 36px;
    min-height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.gigi-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.gigi-title h3 {
    margin: 0;
    font-size: clamp(16px, 1.8vw, 18px);
    font-weight: 700;
    line-height: 1.2;
}

.gigi-title span {
    font-size: clamp(11px, 1.2vw, 12px);
    opacity: 0.9;
    display: block;
    line-height: 1.2;
}

.gigi-header-actions {
    display: flex;
    gap: clamp(6px, 0.8vw, 8px);
}

.gigi-icon-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: clamp(32px, 3.5vw, 36px);
    height: clamp(32px, 3.5vw, 36px);
    min-width: 30px;
    min-height: 30px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(13px, 1.4vw, 14px);
    transition: all 0.2s;
    flex-shrink: 0;
}

.gigi-icon-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Body */
.gigi-body {
    flex: 1;
    overflow: hidden;
    background: #f8f9fa;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.gigi-chat-view {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* Messages */
.gigi-messages {
    flex: 1;
    overflow-y: auto;
    padding: clamp(12px, 1.5vh, 16px);
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.2vh, 12px);
    min-height: 0;
    max-height: calc(100% - 60px);
}

.gigi-messages::-webkit-scrollbar {
    width: clamp(5px, 0.5vw, 6px);
}

.gigi-messages::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.gigi-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Mensaje Usuario */
.gigi-msg {
    max-width: 85%;
    padding: clamp(10px, 1.2vh, 12px) clamp(14px, 1.5vw, 16px);
    border-radius: 16px;
    font-size: clamp(13px, 1.4vw, 14px);
    line-height: 1.5;
    animation: msgIn 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.gigi-msg.user {
    background: linear-gradient(135deg, #2D5A27, #3D6B35);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.gigi-msg.bot {
    background: #fff;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Typing */
.typing {
    display: flex;
    gap: 4px;
    padding: 14px 16px;
}

.typing span {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: bounce 1.2s infinite;
}

.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* Quick Actions */
.gigi-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(6px, 0.8vw, 8px);
    padding: clamp(10px, 1.2vh, 12px) clamp(12px, 1.5vw, 16px);
    background: #fff;
    border-top: 1px solid #eee;
    flex-shrink: 0;
    max-height: 120px;
    overflow-y: auto;
}

.gigi-action-btn {
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.5vw, 6px);
    padding: clamp(6px, 0.8vh, 8px) clamp(10px, 1.2vw, 14px);
    background: #e8f5e9;
    color: #2D5A27;
    border: 1px solid #2D5A27;
    border-radius: 20px;
    font-size: clamp(12px, 1.3vw, 13px);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.gigi-action-btn i {
    font-size: clamp(13px, 1.4vw, 14px);
}

.gigi-action-btn:hover {
    background: linear-gradient(135deg, #2D5A27, #4A7C3F);
    color: #fff;
    border-color: transparent;
    transform: scale(1.05);
}

/* Productos Grid */
.gigi-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(8px, 1vw, 10px);
    padding: 8px 0;
}

.gigi-product-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}

.gigi-product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.gigi-product-img {
    width: 100%;
    height: clamp(85px, 10vh, 95px);
    background: #f5f5f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gigi-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gigi-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ccc;
    font-size: clamp(28px, 3vw, 32px);
}

.gigi-product-info {
    padding: clamp(8px, 1vh, 10px);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gigi-product-cat {
    font-size: clamp(9px, 1vw, 9px);
    color: #2D5A27;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gigi-product-name {
    font-size: clamp(11px, 1.2vw, 12px);
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gigi-product-price {
    font-size: clamp(14px, 1.5vw, 15px);
    font-weight: 800;
    color: #2D5A27;
    margin-top: auto;
}

.gigi-product-stock {
    font-size: clamp(10px, 1.1vw, 10px);
    color: #28a745;
    font-weight: 500;
}

.gigi-product-stock i {
    margin-right: 3px;
}

.gigi-product-actions {
    display: flex;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.gigi-product-actions button {
    flex: 1;
    padding: clamp(8px, 1vh, 9px) clamp(4px, 0.6vw, 6px);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: clamp(11px, 1.2vw, 12px);
    color: #6c757d;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.gigi-product-actions .btn-cart:hover {
    color: #28a745;
    background: #e8f5e9;
}

.gigi-product-actions .btn-cart.success {
    color: #28a745;
    background: #e8f5e9;
}

.gigi-product-actions .btn-buy {
    color: #2563eb !important;
    font-weight: 600;
}

.gigi-product-actions .btn-buy:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #2D5A27, #4A7C3F) !important;
}

.gigi-product-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Category Buttons */
.gigi-category-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
}

.gigi-cat-btn {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 12px 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gigi-cat-btn i {
    color: #2D5A27;
    font-size: 16px;
}

.gigi-cat-btn:hover {
    background: #e8f5e9;
    border-color: #4A7C3F;
    transform: translateX(4px);
}

/* Botones especiales */
.gigi-btn-wsp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #25D366;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 8px;
    transition: all 0.2s;
}

.gigi-btn-wsp:hover {
    background: #128C7E;
    transform: scale(1.02);
}

.gigi-btn-fb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #1877F2;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 8px;
    transition: all 0.2s;
}

.gigi-btn-fb:hover {
    background: #0d65d9;
    transform: scale(1.02);
}

.gigi-btn-ig {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 8px;
    transition: all 0.2s;
}

.gigi-btn-ig:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.gigi-btn-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #EA4335;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 8px;
    transition: all 0.2s;
}

.gigi-btn-email:hover {
    background: #d33b2c;
    transform: scale(1.02);
}

.gigi-btn-pay {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #2D5A27, #4A7C3F);
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.4);
}

.gigi-btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 39, 0.6);
}

/* Audio Player */
.gigi-audio-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #ede9fe;
    border-radius: 20px;
    align-self: flex-start;
    margin-top: 4px;
}

.gigi-audio-play {
    background: linear-gradient(135deg, #2D5A27, #4A7C3F);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.gigi-audio-play:hover {
    transform: scale(1.05);
}

/* Input Area */
.gigi-input-area {
    display: flex;
    gap: clamp(6px, 0.8vw, 8px);
    padding: clamp(10px, 1.2vh, 12px) clamp(12px, 1.5vw, 16px);
    background: #fff;
    border-top: 1px solid #eee;
    flex-shrink: 0;
    min-height: 65px;
}

.gigi-input-area input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 24px;
    padding: clamp(8px, 1vh, 10px) clamp(12px, 1.5vw, 16px);
    font-size: clamp(13px, 1.4vw, 14px);
    outline: none;
    transition: border-color 0.2s;
    min-width: 0;
}

.gigi-input-area input:focus {
    border-color: #2D5A27;
}

#gigi-voice {
    background: #f5f5f5;
    color: #666;
    border: none;
    width: clamp(38px, 4vw, 42px);
    height: clamp(38px, 4vw, 42px);
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(14px, 1.5vw, 16px);
    transition: all 0.2s;
    flex-shrink: 0;
}

#gigi-voice:hover {
    background: #e0e0e0;
}

#gigi-voice.recording {
    background: #dc3545;
    color: #fff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
}

#gigi-send {
    background: linear-gradient(135deg, #2D5A27, #4A7C3F);
    color: #fff;
    border: none;
    width: clamp(38px, 4vw, 42px);
    height: clamp(38px, 4vw, 42px);
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(14px, 1.5vw, 16px);
    transition: all 0.2s;
    flex-shrink: 0;
}

#gigi-send:hover {
    transform: scale(1.05);
}

/* ============================================
   RESPONSIVE BREAKPOINTS - Optimizado para múltiples resoluciones
   ============================================ */

/* Pantallas pequeñas de laptop (1366x768) */
@media (max-width: 1366px) and (min-width: 1280px) {
    .gigi-widget {
        width: min(360px, calc(100vw - 32px));
        height: min(620px, calc(100vh - 110px));
        max-height: min(680px, calc(100vh - 110px));
    }

    .gigi-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pantallas medianas (1440x900) */
@media (max-width: 1440px) and (min-width: 1367px) {
    .gigi-widget {
        width: min(370px, calc(100vw - 32px));
        height: min(640px, calc(100vh - 115px));
    }
}

/* Pantallas estándar (1536x864) */
@media (max-width: 1536px) and (min-width: 1441px) {
    .gigi-widget {
        width: min(380px, calc(100vw - 32px));
        height: min(650px, calc(100vh - 120px));
    }
}

/* Tablet landscape y pantallas grandes (hasta 1024px) */
@media (max-width: 1280px) and (min-width: 769px) {
    .gigi-widget {
        width: min(350px, calc(100vw - 32px));
        height: min(600px, calc(100vh - 110px));
        max-height: min(650px, calc(100vh - 110px));
    }

    .gigi-fab {
        width: 60px;
        height: 60px;
    }

    .gigi-fab img {
        width: 36px;
        height: 36px;
    }
}

/* Tablet portrait (768px y menos) */
@media (max-width: 768px) {
    .gigi-widget {
        width: min(400px, calc(100vw - 24px));
        height: min(650px, calc(100vh - 100px));
        bottom: clamp(70px, 8vh, 90px);
        right: clamp(12px, 2vw, 16px);
        border-radius: 16px;
    }

    .gigi-fab {
        width: 58px;
        height: 58px;
        bottom: clamp(14px, 2vh, 20px);
        right: clamp(14px, 2vw, 16px);
    }

    .gigi-fab img {
        width: 36px;
        height: 36px;
    }

    .gigi-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gigi-header {
        padding: 14px 16px;
    }

    .gigi-messages {
        padding: 14px;
    }

    .gigi-input-area {
        padding: 10px 14px;
    }
}

/* Móvil grande (480px a 640px) */
@media (max-width: 640px) {
    .gigi-widget {
        width: calc(100vw - 16px);
        height: calc(100vh - 90px);
        bottom: 80px;
        right: 8px;
        border-radius: 14px;
        min-width: 280px;
        max-width: none;
    }

    .gigi-fab {
        width: 56px;
        height: 56px;
        bottom: 14px;
        right: 14px;
    }

    .gigi-fab img {
        width: 34px;
        height: 34px;
    }

    .gigi-products-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .gigi-product-img {
        height: 120px;
    }

    .gigi-header {
        padding: 14px;
    }

    .gigi-header-content {
        gap: 10px;
    }

    .gigi-avatar {
        width: 40px;
        height: 40px;
    }

    .gigi-title h3 {
        font-size: 16px;
    }

    .gigi-title span {
        font-size: 11px;
    }

    .gigi-messages {
        padding: 12px;
        gap: 10px;
    }

    .gigi-msg {
        padding: 10px 14px;
        font-size: 13px;
    }

    .gigi-quick-actions {
        padding: 10px 12px;
        gap: 6px;
    }

    .gigi-action-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .gigi-input-area {
        padding: 10px 12px;
        gap: 6px;
    }

    .gigi-input-area input {
        padding: 8px 12px;
        font-size: 13px;
    }

    #gigi-voice,
    #gigi-send {
        width: 40px;
        height: 40px;
    }
}

/* Móvil pequeño (hasta 480px) */
@media (max-width: 480px) {
    .gigi-widget {
        width: 100vw;
        height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
        max-height: 100vh;
        min-height: 100vh;
    }

    .gigi-fab {
        bottom: 12px;
        right: 12px;
        width: 54px;
        height: 54px;
    }

    .gigi-fab img {
        width: 32px;
        height: 32px;
    }

    .gigi-products-grid {
        grid-template-columns: 1fr;
    }

    .gigi-product-img {
        height: 140px;
    }

    .gigi-product-card {
        max-width: 100%;
    }

    .gigi-header {
        padding: 12px;
        min-height: 64px;
    }

    .gigi-avatar {
        width: 38px;
        height: 38px;
    }

    .gigi-title h3 {
        font-size: 15px;
    }

    .gigi-title span {
        font-size: 10px;
    }

    .gigi-messages {
        padding: 10px;
    }

    .gigi-msg {
        max-width: 90%;
        padding: 9px 12px;
        font-size: 13px;
    }

    .gigi-quick-actions {
        padding: 8px 10px;
    }

    .gigi-action-btn {
        padding: 6px 9px;
        font-size: 11px;
    }

    .gigi-input-area {
        padding: 8px 10px;
        min-height: 60px;
    }

    .gigi-input-area input {
        padding: 8px 10px;
        font-size: 13px;
    }

    #gigi-voice,
    #gigi-send {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}

/* Pantallas muy pequeñas (360px y menos) */
@media (max-width: 360px) {
    .gigi-fab {
        width: 50px;
        height: 50px;
        bottom: 10px;
        right: 10px;
    }

    .gigi-fab img {
        width: 30px;
        height: 30px;
    }

    .gigi-header {
        padding: 10px;
    }

    .gigi-avatar {
        width: 36px;
        height: 36px;
    }

    .gigi-title h3 {
        font-size: 14px;
    }

    .gigi-title span {
        font-size: 10px;
    }

    .gigi-msg {
        padding: 8px 11px;
        font-size: 12px;
    }

    .gigi-action-btn {
        padding: 5px 8px;
        font-size: 11px;
    }

    .gigi-input-area input {
        padding: 7px 10px;
        font-size: 12px;
    }

    #gigi-voice,
    #gigi-send {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* Zoom adaptation - Prevenir desbordamiento */
@media (max-height: 600px) {
    .gigi-widget {
        max-height: calc(100vh - 80px);
        height: auto;
        min-height: 350px;
    }

    .gigi-header {
        padding: 10px 14px;
        min-height: 60px;
    }

    .gigi-avatar {
        width: 36px;
        height: 36px;
    }

    .gigi-title h3 {
        font-size: 15px;
    }

    .gigi-title span {
        font-size: 10px;
    }

    .gigi-messages {
        padding: 10px;
        gap: 8px;
    }

    .gigi-msg {
        padding: 8px 12px;
        font-size: 12px;
    }

    .gigi-quick-actions {
        padding: 8px 12px;
        max-height: 100px;
    }

    .gigi-action-btn {
        padding: 5px 9px;
        font-size: 11px;
    }

    .gigi-input-area {
        padding: 8px 12px;
        min-height: 55px;
    }

    .gigi-product-img {
        height: 80px;
    }
}

/* Pantallas ultra anchas (1920px+) */
@media (min-width: 1920px) {
    .gigi-widget {
        width: 380px;
        height: 680px;
        bottom: 100px;
        right: 24px;
    }

    .gigi-fab {
        width: 68px;
        height: 68px;
        bottom: 26px;
        right: 26px;
    }

    .gigi-fab img {
        width: 42px;
        height: 42px;
    }

    .gigi-header {
        padding: 20px 24px;
    }

    .gigi-avatar {
        width: 48px;
        height: 48px;
    }

    .gigi-title h3 {
        font-size: 19px;
    }

    .gigi-title span {
        font-size: 13px;
    }

    .gigi-messages {
        padding: 18px;
    }

    .gigi-msg {
        font-size: 15px;
    }

    .gigi-action-btn {
        font-size: 14px;
    }

    .gigi-input-area input {
        font-size: 15px;
    }
}

/* Ajustes para nivel de zoom bajo (75%-90%) */
@media (max-width: 1024px) and (max-height: 650px) {
    .gigi-widget {
        width: min(320px, calc(100vw - 24px));
        height: min(550px, calc(100vh - 100px));
        max-height: min(600px, calc(100vh - 100px));
    }

    .gigi-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gigi-product-img {
        height: 75px;
    }
}

/* Landscape mode en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .gigi-widget {
        width: min(450px, calc(100vw - 24px));
        height: calc(100vh - 40px);
        bottom: 20px;
        right: 12px;
        max-height: 480px;
    }

    .gigi-header {
        padding: 10px 14px;
        min-height: 55px;
    }

    .gigi-messages {
        padding: 10px;
        gap: 8px;
    }

    .gigi-quick-actions {
        padding: 8px 12px;
        max-height: 80px;
    }

    .gigi-input-area {
        padding: 8px 12px;
        min-height: 50px;
    }
}

/* Mejoras de accesibilidad y preferencias de movimiento */
@media (prefers-reduced-motion: reduce) {
    .gigi-widget {
        transition: none;
    }

    .gigi-fab {
        transition: none;
    }

    .gigi-msg {
        animation: none;
    }

    .gigi-action-btn:hover {
        transform: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .gigi-fab {
        box-shadow: 0 4px 20px rgba(45, 90, 39, 0.4);
    }

    .gigi-widget {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
}
