:root {
    --verde-julguer: #1b4332;
    --azul-oscuro: #1e293b;
    --gris-suave: #f8fafc;
    --borde: #e2e8f0;
    --texto-muted: #64748b;
}

.julguer-wrapper {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f1f5f9;
    padding: 40px 10px;
    border-radius: 12px;
}

    <style>
        :root {
            --verde-julguer: #1b4332;
            --azul-oscuro: #1e293b;
            --gris-suave: #f8fafc;
            --borde: #e2e8f0;
            --texto-muted: #64748b;
        }

        .julguer-wrapper {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background: #f1f5f9;
            padding: 40px 10px;
            border-radius: 12px;
        }

        .julguer-card {
            max-width: 950px;
            margin: auto;
            background: white;
            border-radius: 16px;
            padding: 35px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.05);
        }

        .header-cotizacion {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            border-bottom: 2px solid var(--gris-suave);
            padding-bottom: 20px;
        }

        .header-cotizacion h2 { margin: 0; color: var(--azul-oscuro); font-size: 1.8rem; }

        .cliente-section { margin-bottom: 25px; }
        
        /* Grid de Selecci¨Žn de Productos */
        .form-grid {
            display: grid;
            grid-template-columns: 2fr 0.5fr 1fr;
            gap: 15px;
            align-items: end;
            background: var(--gris-suave);
            padding: 25px;
            border-radius: 12px;
            margin-bottom: 30px;
        }

        .form-group { display: flex; flex-direction: column; }
        .form-group label {
            font-weight: 600;
            font-size: 0.85rem;
            color: var(--azul-oscuro);
            margin-bottom: 8px;
        }

        /* Select2 Custom */
        .select2-container--default .select2-selection--single {
            height: 45px !important;
            border: 1px solid var(--borde) !important;
            border-radius: 8px !important;
            display: flex;
            align-items: center;
        }

        #cantidad-input {
            height: 45px;
            border: 1px solid var(--borde);
            border-radius: 8px;
            padding: 0 10px;
            width: 100%;
            text-align: center;
            box-sizing: border-box; /* Evita que el padding sume ancho */
        }

        #btn-agregar {
            
            height: 45px;
            background: var(--azul-oscuro);
            color: white;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        #btn-agregar:hover { background: #334155; transform: translateY(-1px); }

        /* Tabla Modernizada */
        .tabla-container { overflow-x: auto; }
        #tabla-cotizacion { width: 100%; border-collapse: collapse; margin-top: 10px; }
        #tabla-cotizacion th {
            text-align: left;
            padding: 15px;
            color: var(--texto-muted);
            font-size: 0.75rem;
            text-transform: uppercase;
            border-bottom: 2px solid var(--gris-suave);
            letter-spacing: 0.05em;
        }
        #tabla-cotizacion td { padding: 15px; border-bottom: 1px solid var(--gris-suave); font-size: 0.95rem; color: #334155; }

        /* Totales */
        .resumen-container {
            display: flex;
            justify-content: flex-end;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 2px solid var(--gris-suave);
        }
        .resumen-box { width: 300px; text-align: right; }
        .resumen-row { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--texto-muted); }
        .total-row {
            display: flex;
            justify-content: space-between;
            margin-top: 15px;
            font-size: 1.4rem;
            font-weight: 800;
            color: #d63638;
        }

        /* Botones de Acci¨Žn */
        .acciones-footer {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-top: 30px;
        }
        .btn-main {
            padding: 15px;
            border: none;
            border-radius: 10px;
            font-weight: 700;
            cursor: pointer;
            transition: opacity 0.2s;
            text-transform: uppercase;
            font-size: 0.9rem;
        }
        .btn-pdf { background: #27ae60; color: white; }
        .btn-email {
            background: linear-gradient(
                135deg,
                #343e40   10%,   /* verde oscuro */
                #343e40    50%,  /* verde normal */
                #008090 90%  /* difuminado blanco */
            );
            color: white;
            border: none;
            border-radius: 8px;
            padding: 12px 22px;
            font-weight: bold;
            cursor: pointer;
        
            /* Efecto moderno */
            box-shadow: 
                0 4px 10px rgba(0, 0, 0, 0.15),
                inset 0 1px 2px rgba(255, 255, 255, 0.4);
        
            transition: all 0.3s ease;
        }
        /* Input / Textarea estilo JULGUER (igual a Select2) */
        .julguer-input {
            width: 100%;
            min-height: 45px;
            padding: 12px 14px;
            border: 1px solid var(--borde);
            border-radius: 8px;
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            font-size: 0.95rem;
            color: #334155;
            background: white;
            resize: vertical;
            box-sizing: border-box;
        }
        
        /* Focus elegante (igual que inputs modernos) */
        .julguer-input:focus {
            outline: none;
            border-color: var(--verde-julguer);
            box-shadow: 0 0 0 2px rgba(27, 67, 50, 0.12);
        }
        
        /* Placeholder */
        .julguer-input::placeholder {
            color: var(--texto-muted);
            font-size: 0.9rem;
        }

    

        .btn-main:hover { opacity: 0.9; }

    @media (max-width: 768px) {

        .form-grid {
            grid-template-columns: 1fr;
            padding: 15px;
            min-width: 0;
        }
    
        .form-grid > .form-group {
            width: 100%;
            min-width: 0;
        }
    
        .form-grid .select2-container {
            width: 100% !important;
            min-width: 0 !important;
        }
    
        #btn-agregar {
            width: 100%;
        }
    }

    </style>
